:root {
  color-scheme: light;
  --cream-primary: #fbf8f2;
  --cream-warm: #f3ede0;
  --cream-deep: #e8dfcc;
  --border-soft: #d8cfbc;
  --ochre-sacred: #8a6d3b;
  --ochre-gold: #ba7517;
  --ochre-deep: #7a5b22;
  --ink-warm: #1a1a1a;
  --ink-medium: #5a524a;
  --ink-quiet: #8a8178;
  --harvest-gold: #e8d89b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 223, 204, 0.32), rgba(251, 248, 242, 0) 360px),
    var(--cream-primary);
  color: var(--ink-warm);
  font-family: 'Source Serif 4', 'Georgia', serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(216, 207, 188, 0.72);
  background: rgba(251, 248, 242, 0.9);
}

.wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ochre-sacred);
  font-family: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
}

.header-note,
.eyebrow,
.section-kicker,
.status,
label span,
label small,
.field-help,
.geo-note,
.review dt,
.submit,
.result,
fieldset legend,
.form-note {
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
}

.header-note {
  display: none;
  margin-left: auto;
  color: var(--ink-quiet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.shell {
  width: min(1160px, calc(100% - 24px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.intro {
  display: block;
  padding: 0 0 34px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink-quiet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink-warm);
  font-family: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.04;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.12;
}

.intro-rule {
  width: 76px;
  height: 1.5px;
  margin: 0 0 26px;
  border: 0;
  background: var(--ochre-gold);
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-medium);
  font-size: 18px;
  line-height: 1.72;
  text-wrap: pretty;
}

.geo-note {
  max-width: 650px;
  margin: 18px 0 0;
  border-left: 3px solid var(--ochre-sacred);
  background: rgba(243, 237, 224, 0.62);
  color: var(--ink-medium);
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 14px;
}

.geo-note.is-ok {
  color: var(--ochre-deep);
}

.seal-panel {
  max-width: 220px;
  margin-top: 28px;
}

.seal-paper {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(255, 250, 230, 0.38), rgba(255, 250, 230, 0) 46%),
    radial-gradient(ellipse at 50% 45%, var(--cream-warm) 0%, var(--cream-deep) 60%, var(--ochre-sacred) 100%);
  overflow: hidden;
}

.seal-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 12px at 16% 18%, rgba(61, 46, 18, 0.08), transparent 72%),
    radial-gradient(circle 18px at 84% 22%, rgba(61, 46, 18, 0.06), transparent 72%),
    radial-gradient(circle 10px at 78% 76%, rgba(61, 46, 18, 0.08), transparent 72%),
    radial-gradient(circle 14px at 12% 84%, rgba(61, 46, 18, 0.06), transparent 72%);
}

.seal-paper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.thanks-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.status {
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--ochre-deep);
  padding: 10px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.layout {
  display: block;
}

.form-flow {
  display: grid;
  gap: 18px;
}

.band,
.review {
  border: 1px solid var(--border-soft);
  background: rgba(243, 237, 224, 0.58);
  padding: 22px;
}

.band::before,
.review::before {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--ochre-gold);
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--ink-quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

label span,
fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-medium);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label small,
.field-help {
  display: block;
  margin-top: 7px;
  color: var(--ink-medium);
  font-size: 13px;
  line-height: 1.5;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: rgba(251, 248, 242, 0.78);
  color: var(--ink-warm);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(186, 117, 23, 0.24);
  border-color: var(--ochre-gold);
}

.wide {
  display: block;
  margin-top: 16px;
}

.checkline {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checkline span {
  color: var(--ink-warm);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  text-transform: none;
}

.checkline input,
.options input,
.segmented input,
.radio-block input {
  width: auto;
  margin-top: 5px;
  accent-color: var(--ochre-sacred);
}

.options {
  display: grid;
  gap: 10px;
}

.options label,
.segmented label,
.radio-block label {
  border: 1px solid rgba(216, 207, 188, 0.92);
  background: rgba(251, 248, 242, 0.54);
  padding: 11px 12px;
}

.options label,
.radio-block label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
}

.segmented,
.radio-block {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.segmented span,
.options span,
.radio-block span {
  margin-bottom: 0;
  color: var(--ink-warm);
  font-size: 12px;
}

.voice {
  display: none;
}

.voice.is-visible {
  display: block;
}

.review {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.66), rgba(243, 237, 224, 0.86)),
    var(--cream-warm);
}

.review h2 {
  margin-bottom: 22px;
}

.review dl {
  margin: 0;
}

.review dt {
  margin-top: 14px;
  color: var(--ink-medium);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.review dt:first-child {
  margin-top: 0;
}

.review dd {
  margin: 3px 0 0;
  color: var(--ink-warm);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.submit {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--ochre-gold);
  border-radius: 0;
  background: var(--ochre-gold);
  color: var(--cream-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 14px;
  text-transform: uppercase;
}

.submit:hover {
  background: var(--ochre-deep);
  border-color: var(--ochre-deep);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.result {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--ochre-deep);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.result.error,
.form-note {
  color: #9f2b1f;
}

.form-note {
  margin: 14px 0 0;
  border-left: 3px solid var(--ochre-sacred);
  background: rgba(251, 248, 242, 0.68);
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 14px;
}

.thanks-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.thanks-shell {
  width: min(720px, calc(100% - 32px));
  margin: auto;
  padding: 54px 0;
  text-align: center;
}

.thanks-seal {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(ellipse at 50% 45%, var(--cream-warm) 0%, var(--cream-deep) 60%, var(--ochre-sacred) 100%);
}

.thanks-text {
  color: var(--ink-medium);
  font-family: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.45;
}

@media (min-width: 680px) {
  .header-note {
    display: block;
  }

  .shell {
    width: min(1160px, calc(100% - 36px));
    padding-top: 56px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 20px;
  }

  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 54px;
    align-items: center;
    padding-bottom: 48px;
  }

  .seal-panel {
    margin-top: 0;
    max-width: none;
  }

  .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }

  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
  }

  .review {
    position: sticky;
    top: 16px;
    margin-top: 0;
  }
}
