:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #65716a;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --line: #d8d2c6;
  --green: #145944;
  --green-dark: #0d4635;
  --red: #c74f3c;
  --gold: #dda83e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(221, 168, 62, .11), transparent 22rem),
    linear-gradient(180deg, #f7f3ea 0%, #f2ede2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.skip-link { background: white; left: 12px; padding: 10px 14px; position: fixed; top: -80px; z-index: 20; }
.skip-link:focus { top: 12px; }

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(23, 35, 29, .12);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
}
.brand { align-items: center; display: inline-flex; gap: 12px; text-decoration: none; }
.brand-mark {
  align-items: center; background: var(--green); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255,255,255,.14);
  color: white; display: flex; font-family: Georgia, serif; font-size: 22px; font-weight: 700; height: 42px; justify-content: center; width: 42px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 16px; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .18em; margin-top: 2px; text-transform: uppercase; }
.field-cards-link { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.field-cards-link:hover { text-decoration: underline; }

.hero { margin: 0 auto; max-width: 820px; padding: 78px 24px 44px; position: relative; text-align: center; }
.route-line { align-items: center; display: flex; justify-content: center; margin: 0 auto 24px; position: relative; width: 92px; }
.route-line::before { background: var(--red); content: ""; height: 2px; position: absolute; width: 92px; }
.route-line span { background: var(--cream); border: 2px solid var(--red); border-radius: 50%; height: 10px; margin: 0 10px; position: relative; width: 10px; z-index: 1; }
.route-line span:nth-child(2) { background: var(--red); }
.kicker, .eyebrow { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .19em; margin: 0 0 14px; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 78px); line-height: .98; }
.lede { color: var(--muted); font-family: Georgia, serif; font-size: 19px; line-height: 1.65; margin: 25px auto 0; max-width: 660px; }

.matcher-shell { margin: 0 auto; max-width: 900px; padding: 0 24px 70px; }
.status-card { background: var(--paper); border: 1px solid var(--line); color: var(--muted); padding: 30px; text-align: center; }
.status-card.error { border-color: var(--red); color: #8b3024; }
.progress-row { align-items: center; color: var(--muted); display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; letter-spacing: .12em; margin: 0 10px 14px; text-transform: uppercase; }
.progress { display: flex; gap: 6px; }
.progress i { background: #d5d0c4; border-radius: 10px; height: 4px; transition: .25s ease; width: 34px; }
.progress i.active { background: var(--green); }
.question-card {
  background: rgba(255, 253, 248, .92); border: 1px solid rgba(23,35,29,.13); border-radius: 4px; box-shadow: 0 22px 70px rgba(46,39,24,.09);
  padding: clamp(30px, 6vw, 58px); position: relative;
}
.question-card::before { background: var(--red); content: ""; height: 4px; left: 0; position: absolute; right: 0; top: 0; }
.question-card h2, .results-heading h2 { font-size: clamp(32px, 5vw, 47px); line-height: 1.06; }
.subhead { color: var(--muted); margin: 10px 0 0; }
.subhead:empty { display: none; }
.choice-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
.choice {
  align-items: center; background: #fbf8f1; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); cursor: pointer; display: flex; gap: 13px;
  min-height: 72px; padding: 15px 17px; text-align: left; transition: border-color .2s, background .2s, transform .2s;
}
.choice:hover { border-color: rgba(20,89,68,.6); transform: translateY(-1px); }
.choice.active { background: #edf4ef; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.choice:disabled { background: #efede7; border-color: #d8d4ca; color: #92958f; cursor: not-allowed; opacity: .72; transform: none; }
.choice:disabled .radio { border-color: #bbbcb7; }
.choice:disabled small { color: #81857f; }
.radio { align-items: center; border: 1px solid #9ba59f; border-radius: 50%; display: flex; flex: 0 0 auto; height: 20px; justify-content: center; width: 20px; }
.choice.active .radio { border-color: var(--green); }
.choice.active .radio i { background: var(--green); border-radius: 50%; height: 10px; width: 10px; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.controls { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 34px; padding-top: 24px; }
.primary-button { background: var(--green); border: 0; border-radius: 2px; color: white; cursor: pointer; font-size: 13px; font-weight: 750; letter-spacing: .04em; padding: 15px 19px; }
.primary-button:hover { background: var(--green-dark); }
.primary-button span { margin-left: 18px; }
.text-button { background: transparent; border: 0; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 750; letter-spacing: .08em; padding: 10px 0; text-transform: uppercase; }
.text-button:disabled { color: #aaa79e; cursor: default; }
.surprise-button {
  align-items: center; background: transparent; border: 1px dashed #bdb6a8; color: var(--ink); cursor: pointer; display: flex; gap: 13px; justify-content: center;
  margin: 18px auto 0; max-width: 440px; padding: 14px 18px; width: 100%;
}
.surprise-button > span:first-child { color: var(--gold); font-size: 22px; }
.surprise-button strong, .surprise-button small { display: block; }
.surprise-button strong { font-family: Georgia, serif; font-size: 16px; }
.surprise-button small { color: var(--muted); font-size: 10px; margin-top: 2px; }

.results-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 0 28px; }
.results-heading > div > p:last-child { color: var(--muted); line-height: 1.55; max-width: 650px; }
.edit-button { border-bottom: 1px solid currentColor; flex: 0 0 auto; margin-bottom: 14px; }
.result-list { display: grid; gap: 16px; }
.result-card { background: var(--paper); border: 1px solid rgba(23,35,29,.14); display: grid; grid-template-columns: 76px 1fr; overflow: hidden; }
.rank { background: var(--green); color: white; display: flex; justify-content: center; padding-top: 30px; }
.rank span { align-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: flex; font-family: Georgia, serif; font-size: 21px; height: 38px; justify-content: center; width: 38px; }
.result-main { padding: 28px 30px 30px; }
.result-title-row { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.result-title-row .eyebrow { margin-bottom: 7px; }
.result-title-row h3 { font-size: 37px; }
.scouted { align-items: center; background: rgba(20,89,68,.08); border: 1px solid rgba(20,89,68,.18); border-radius: 99px; color: var(--green); display: inline-flex; font-size: 9px; font-weight: 800; gap: 7px; letter-spacing: .1em; padding: 7px 9px; text-transform: uppercase; white-space: nowrap; }
.scouted i { background: var(--green); border-radius: 50%; height: 7px; width: 7px; }
.hook { font-family: Georgia, serif; font-size: 17px; line-height: 1.55; margin: 18px 0 10px; }
.why { background: #eef4ef; border-left: 3px solid var(--green); color: #365044; font-size: 12px; line-height: 1.55; margin: 0 0 20px; padding: 10px 12px; }
.trip-facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin: 0; }
.trip-facts div { padding: 14px 14px 14px 0; }
.trip-facts div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.trip-facts dt, .stops p { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.trip-facts dd { font-size: 12px; font-weight: 650; line-height: 1.35; margin: 5px 0 0; }
.stops { margin-top: 20px; }
.stops ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 9px 0 0; padding: 0; }
.stops li { background: #f4f0e7; border-radius: 99px; font-size: 11px; padding: 7px 10px; }
.field-card-link { color: var(--green); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; margin-top: 22px; text-decoration: none; text-transform: uppercase; }
.field-card-link:hover { text-decoration: underline; }
.field-card-link span { margin-left: 5px; }
.result-actions { align-items: center; display: flex; gap: 22px; justify-content: center; margin-top: 24px; }
.compact-surprise { margin: 0; max-width: 320px; padding: 9px 14px; }

.feed-note { align-items: flex-start; background: var(--ink); color: white; display: flex; gap: 18px; margin: 0 auto 50px; max-width: 852px; padding: 24px 27px; }
.feed-icon { align-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: flex; flex: 0 0 auto; font-family: Georgia, serif; height: 44px; justify-content: center; width: 44px; }
.feed-note strong { font-family: Georgia, serif; font-size: 17px; }
.feed-note p { color: #ccd3cf; font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
footer { border-top: 1px solid rgba(23,35,29,.12); color: var(--muted); display: flex; font-size: 10px; gap: 20px; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 24px; }
footer p { margin: 0; }
footer a { color: var(--green); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 700px) {
  .topbar { padding: 16px; }
  .field-cards-link { font-size: 9px; text-align: right; }
  .hero { padding: 55px 18px 34px; }
  .hero br { display: none; }
  .lede { font-size: 16px; }
  .matcher-shell { padding-left: 14px; padding-right: 14px; }
  .question-card { padding: 30px 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice { min-height: 62px; }
  .progress i { width: 23px; }
  .results-heading { align-items: start; flex-direction: column; }
  .edit-button { margin: 8px 0 0; }
  .result-card { grid-template-columns: 48px 1fr; }
  .rank { padding-top: 24px; }
  .rank span { font-size: 16px; height: 30px; width: 30px; }
  .result-main { padding: 23px 18px; }
  .result-title-row { display: block; }
  .scouted { margin-top: 12px; }
  .trip-facts { grid-template-columns: 1fr; }
  .trip-facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .feed-note { margin: 0 14px 35px; }
  footer { display: block; padding: 20px 16px; }
  footer p + p { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
