@font-face {
  font-family: Fraunces;
  src: url("/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 560;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3ecdf;
  --paper-deep: #e7dcc8;
  --card: #fffaf3;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e3d6c2;
  --forest: #1e4a38;
  --forest-deep: #143328;
  --better: #1f6b45;
  --same: #8a6a32;
  --same-bar: #c6a15a;
  --worse: #9d3d32;
  --early: #3d4f66;
  --shadow: 0 16px 40px rgba(58, 42, 18, 0.08);
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 40%, #efe4d2 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--forest); }
a:hover { color: var(--forest-deep); }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.local-ribbon {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  background: #143328;
  color: #f3ecdf;
  font-size: 0.92rem;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header { padding-top: 18px; }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(var(--better), var(--better)) 4px 16px / 12px 4px no-repeat,
    linear-gradient(#f4efe4, #f4efe4) 4px 10px / 18px 4px no-repeat,
    linear-gradient(#e7b2a8, #e7b2a8) 4px 4px / 8px 4px no-repeat,
    var(--forest);
}

nav { display: flex; gap: 16px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--forest); }

.disclaimer {
  width: min(1080px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 0 12px;
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero { padding: 36px 0 8px; }
.hero h1, .version h1, .prose h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { font-size: 1.15rem; max-width: 40rem; color: var(--ink); margin: 0; }

.sample-banner, .placeholder-banner, .notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 18px 0;
}

.sample-banner, .placeholder-banner {
  background: #fff4d8;
  border: 1px solid #e2c98a;
  color: #5c4514;
}

.notice-ok { background: #e7f5ec; border: 1px solid #b7dcc6; color: #143328; }
.notice-warn { background: #fdecea; border: 1px solid #f0c2ba; color: #6d2b24; }

.current-grid, .split-grid {
  display: grid;
  gap: 16px;
}

.card, .results, .verdict-block, .quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card { padding: 18px 18px 16px; }
.card h3, .row h3, .version h2, .steps-block h2, .prose h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
}
.card h3 { font-size: 1.8rem; margin: 0 0 4px; }
.card h3 a, .row h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .row h3 a:hover { color: var(--forest); }
.card-kicker, .audience, .meta-line, .hint, .optional { color: var(--muted); }
.card-kicker, .audience { margin: 0 0 8px; }
.meta-line { margin: 8px 0; }
.optional { font-weight: 400; }

.grade {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: #f4f7fb;
}
.tone-better { color: var(--better); background: #e7f5ec; }
.tone-worse { color: var(--worse); background: #fdecea; }
.tone-mixed { color: var(--same); background: #fbf6ea; }
.tone-early { color: var(--early); background: #eef3f8; }
.tone-waiting { color: var(--muted); background: #f3efe6; }

.bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #efe6d6;
}
.bar-empty { background: repeating-linear-gradient(90deg, #efe6d6, #efe6d6 8px, #e7dcc8 8px, #e7dcc8 16px); }
.seg { display: block; height: 100%; }
.seg.better { background: var(--better); }
.seg.same { background: var(--same-bar); }
.seg.worse { background: var(--worse); }

.legend { display: flex; gap: 14px; padding: 0; margin: 10px 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }
.dot.better { background: var(--better); }
.dot.same { background: var(--same-bar); }
.dot.worse { background: var(--worse); }

.mix { font-weight: 600; margin: 8px 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--forest-deep);
  color: #f6f1e6;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #0e241c; color: white; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.text-link { font-weight: 600; }

.earlier { display: grid; gap: 10px; }
.row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.row h3 { margin: 0; font-size: 1.35rem; }
.row p { margin: 2px 0 0; color: var(--muted); }
.mini p { margin: 6px 0 0; font-size: 0.95rem; }

.steps-block { padding: 12px 0 28px; }
.steps-block h2 { font-size: 2rem; margin: 0 0 12px; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; max-width: 40rem; }
.steps strong { font-weight: 600; }

.quote { margin: 0 0 28px; padding: 18px 18px 14px; }
.quote p {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.quote footer { color: var(--muted); }

.version { padding-bottom: 48px; }
.back { margin: 18px 0 0; }
.version-hero { display: grid; gap: 18px; align-items: center; margin-top: 8px; }
.medallion {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--card);
}
.medallion span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.medallion strong { font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 560; }
.medallion b { font-weight: 600; font-size: 0.95rem; }

.results, .verdict-block { padding: 18px; margin: 18px 0; }
.results-head, .split-name, .issue-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.results h2, .version section h2 { margin: 0 0 10px; font-size: 1.6rem; }
.sample-count { margin: 0; font-family: var(--serif); font-size: 1.8rem; }
.five { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 8px 0 0; list-style: none; color: var(--muted); }
.five strong { color: var(--ink); font-weight: 600; }
.honest, .early-note { color: var(--muted); }
.early-note { font-weight: 600; color: var(--early); }
.empty { color: var(--muted); }

.split-grid { margin: 8px 0 18px; }
.split-row { margin: 0 0 12px; }
.split-name { margin-bottom: 6px; font-weight: 600; }
.split-n { color: var(--muted); font-weight: 400; }

.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issue-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.issue-bar { grid-column: 1 / -1; height: 8px; background: #efe6d6; border-radius: 99px; overflow: hidden; }
.issue-bar span { display: block; height: 100%; background: var(--forest); }

.verdict-form { display: grid; gap: 4px; }
fieldset { border: 0; margin: 0 0 8px; padding: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choices, .check-grid, .field-grid { display: grid; gap: 8px; }
.choice, .check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.choice small { grid-column: 2; color: var(--muted); }
.choice input, .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--forest); }
.choice-better:has(input:checked) { border-color: var(--better); background: #f3faf6; }
.choice-same:has(input:checked) { border-color: var(--same); background: #fbf7ee; }
.choice-worse:has(input:checked) { border-color: var(--worse); background: #fdf6f4; }
.check:has(input:checked) { border-color: var(--forest); background: #f3faf6; }

.field { margin: 8px 0; }
.field label, .field-grid label { display: block; font-weight: 600; margin-bottom: 6px; }
select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d9cdb8;
  background: white;
  color: inherit;
  font: inherit;
  padding: 0 12px;
}
.field-error { color: var(--worse); margin: 6px 0 0; font-weight: 600; }
.invalid legend, .invalid > label { color: var(--worse); }
.form-error {
  background: #fdecea;
  border-radius: 12px;
  padding: 10px 12px;
  color: #6d2b24;
}
.hint { margin: 6px 0 0; font-size: 0.92rem; }
.turnstile { min-height: 68px; margin: 8px 0; }
.verdict-form .button { margin-top: 8px; }

.prose { padding: 12px 0 48px; max-width: 740px; }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin: 1.4rem 0 0.4rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 8px; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .choice { grid-template-columns: auto 1fr auto; align-items: center; }
  .choice small { grid-column: auto; }
  .field-grid.two { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1.1fr); align-items: center; }
  .verdict-form .button { width: auto; justify-self: start; padding-inline: 22px; }
}

@media (min-width: 860px) {
  .current-grid, .split-grid { grid-template-columns: 1fr 1fr; }
  .version-hero { grid-template-columns: 1fr auto; }
}

@media (max-width: 719px) {
  .verdict-form .button, .card-actions .button { width: 100%; }
  .header-row { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
