:root {
  color-scheme: light;
  --ink: #3e271e;
  --muted: #685044;
  --cream: #fffcf5;
  --line: #dfcbaa;
  --gold: #f0cb8b;
  font: 16px/1.6 "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f6eee0; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: #f9f2e7; border-bottom: 1px solid var(--line); }
.site-header .wrap, nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.site-header .wrap { justify-content: space-between; padding-block: 14px; }
.site-header span { font: 1.25rem Georgia, serif; }
a { color: inherit; text-underline-offset: .2em; }
.hero { position: relative; display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(24px, 5vw, 65px); margin-block: 26px; padding: clamp(25px, 6vw, 66px); border-radius: 22px; background: radial-gradient(ellipse at 5% 0, #6d4736, transparent 70%), #382219; color: #fff1dc; }
.hero > div:first-child > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 20px; }
.hero-motif { display: grid; gap: 9px; font: italic clamp(1.3rem, 3vw, 2.2rem) Georgia, serif; color: #ffdead; }
.hero-motif span { display: block; padding: .38em .7em; border-bottom: 1px solid #dcb48171; }
.hero-motif span:nth-child(2) { margin-left: 12%; }
.hero-motif span:nth-child(3) { margin-left: 24%; }
.hero .quiet-link { display: inline-block; margin: 8px 0 0 12px; }
.eyebrow { margin: 0 0 8px; color: #795021; font-size: .82rem; letter-spacing: .075em; font-weight: 650; }
.hero .eyebrow { color: #f3cb93; }
h1, h2, h3 { margin: 0 0 .45em; font-family: Georgia, serif; font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.3rem); max-width: 12ch; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 .9rem; }
.panel { margin: 24px auto; padding: clamp(16px, 4vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--cream); max-width: 850px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.gold { color: #382219; background: var(--gold); border-color: #e3b878; }
.outline { color: var(--ink); background: transparent; border-color: #af8d62; }
.button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #8f592e; }
.button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid #966121; outline-offset: 3px; }
.hero :focus-visible { outline-color: #fff0d6; }
.actions { margin-top: 15px; }
fieldset { margin: 14px 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 650; }
.progress-label { margin-bottom: 3px; font-size: .92rem; color: var(--muted); }
.test-method { margin: 0 0 16px; }
.test-method summary { width: fit-content; color: #744725; cursor: pointer; }
.test-method p { margin: 7px 0 0; color: var(--muted); }
progress { display: block; width: 100%; height: 12px; accent-color: #9c6439; }
#options { display: grid; gap: 6px; }
#options label { display: flex; align-items: baseline; gap: 9px; border-radius: 8px; border: 1px solid var(--line); padding: 10px; cursor: pointer; }
#options label:has(input:checked) { background: #f5e5c7; border-color: #b3834d; }
input[type="radio"] { flex-shrink: 0; accent-color: #8d5b35; }
.score-chart {
  margin-block: 14px;
  padding: clamp(13px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcf6eb;
}
.score-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.score-list { display: grid; gap: 14px; padding: 0; margin: 8px 0 0; list-style: none; }
.score-row[data-tone="gold"] { --bar: #b97d34; --bar-light: #d6a75d; }
.score-row[data-tone="terracotta"] { --bar: #a45940; --bar-light: #ce8b6c; }
.score-row[data-tone="green"] { --bar: #5e8068; --bar-light: #92ac91; }
.score-row[data-tone="blue"] { --bar: #526f8a; --bar-light: #87a7be; }
.score-row[data-tone="lilac"] { --bar: #8d5d83; --bar-light: #bb8fb0; }
.score-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.score-caption strong { font: 1.24rem Georgia, serif; }
.score-caption span { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.score-row p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.score-track {
  height: 15px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: repeating-linear-gradient(to right, #f1e7d8 0, #f1e7d8 calc(25% - 1px), #dcc9ac calc(25% - 1px), #dcc9ac 25%);
}
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bar), var(--bar-light)); }
.request-hint, #result-reflection { background: #f6ead4; border-radius: 8px; margin-block: 14px; padding: 10px 13px; }
.follow-up { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }
.follow-up .field-grid label { display: grid; align-content: start; font-weight: 650; }
.follow-up .field-grid :is(input, select) { width: 100%; min-width: 0; margin-top: 3px; border: 1px solid #bca587; border-radius: 7px; padding: 8px; color: var(--ink); background: white; font: inherit; }
.follow-up-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; }
.follow-up-consent input { margin-top: .5em; accent-color: #8d5b35; }
.follow-up-docs { margin: 4px 0 11px 26px; }
#follow-up-status:empty { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 11px; }
#request label { display: block; font-weight: 650; }
#request label span, #copy-status { color: var(--muted); font-weight: 400; font-size: .88rem; }
#request :is(input, select, textarea) { width: 100%; min-width: 0; display: block; margin-top: 3px; border: 1px solid #bca587; border-radius: 7px; padding: 8px; color: var(--ink); background: white; font: inherit; }
#request textarea { resize: vertical; }
.request-detail { margin-top: 12px; }
.draft { margin-top: 16px; }
#copy-status { margin-top: 7px; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(14px, 3vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.offer a { margin-top: auto; }
.price { font: 1.45rem Georgia, serif; color: #744725; }
.premium { border-color: #a77a4f; }
footer { padding-block: 26px; color: var(--muted); }
@media (max-width: 650px) {
  .hero, .offers { grid-template-columns: 1fr; }
  .hero-motif { grid-template-columns: repeat(3, auto); gap: 4px; font-size: clamp(.85rem, 3.8vw, 1.35rem); }
  .hero-motif span:is(:nth-child(2), :nth-child(3)) { margin: 0; }
  .hero .quiet-link { display: block; margin-left: 0; }
}
