:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #261332;
  background: #f5f1fa;
  --violet: #6531ac;
  --muted: #594a66;
  --edge: #a793bf;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--violet); text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #8550c1; outline-offset: 3px; }

.page-width { width: min(91.5%, 85rem); margin-inline: auto; }
.site-header { color: white; background: #1d102a; }
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: .75rem;
}

.site-header a { color: inherit; }
.wordmark { font-size: clamp(1.1rem, 2vw, 1.65rem); font-weight: 750; text-decoration: none; }

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: start;
  flex: 1 0 auto;
  padding-block: clamp(2.75rem, 5vw, 4.5rem) 2rem;
}

.review-intro h1 {
  margin: .1em 0 .45em;
  color: #270d35;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.review-intro p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.4rem); max-width: 40ch; }
.review-intro .review-note {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 3px solid #a35cdd;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.review-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  background: #fff;
  border: 1px solid #c3a0e6;
  border-radius: 1.2rem;
  box-shadow: 0 8px 25px #3711510f;
}

.review-card h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; }
.field { min-width: 0; margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 650; }
.field label span { color: var(--muted); font-weight: 400; }

.field input, .review-card textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--edge);
  border-radius: .45rem;
  color: inherit;
  background: #fff;
  font: inherit;
}

.review-card textarea { resize: vertical; min-height: 4rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.help { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }

.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem 1rem;
  border: 1px solid var(--violet);
  border-radius: .5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-action { color: #fff; background: var(--violet); }
.primary-action:hover { background: #4f228b; border-color: #4f228b; }
.secondary-action { color: var(--violet); background: white; }
.secondary-action:hover { background: #f5ebff; }
#review-form > .primary-action { width: 100%; }
.form-note { margin: 1.1rem 0 0; padding-top: .75rem; border-top: 1px solid #d8c4ed; text-align: center; font-size: .9rem; }

.draft { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #d8c4ed; }
.draft h3, .draft p:first-of-type { margin: 0 0 .6rem; }
.draft p { overflow-wrap: anywhere; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .75rem; }

@media (max-width: 740px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem 1.25rem; }
  .review-intro h1 { text-wrap: initial; }
  .review-intro .review-note { margin-top: 1.15rem; padding-top: .8rem; }
}

@media (max-width: 420px) {
  .contact-fields { display: block; }
  .site-bar { gap: .25rem 1rem; }
  .site-header .site-bar > a + a { font-size: .9rem; }
}
