:root {
  color-scheme: light;
  --ink: #14231c;
  --muted: #5b6861;
  --paper: #f5f3eb;
  --surface: #fffefa;
  --line: #d7d8cf;
  --green: #134f3a;
  --green-bright: #207a58;
  --gold: #d99d35;
  --red: #a53c37;
  --shadow: 0 18px 48px rgb(27 45 35 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgb(255 254 250 / 92%); }
.site-header, .page-shell, .site-footer { padding-inline: max(1.1rem, calc((100vw - 1180px) / 2)); }
.site-header { padding-block: 1rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.wordmark-kicker, .eyebrow { color: var(--green-bright); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-shell { min-height: calc(100vh - 180px); padding-block: clamp(2rem, 5vw, 4.5rem); }
.site-footer { padding-block: 1.5rem 2.5rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { margin: .35rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: 1.45rem; }
.lede { max-width: 690px; color: #34433b; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.preseason-note { max-width: 720px; padding: .8rem 1rem; border-left: 4px solid var(--green-bright); background: #e8f4ed; }
.pilot-note { max-width: 720px; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff8e8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(2rem, 8vw, 7rem); align-items: end; }
.cutoff-callout { display: inline-flex; flex-direction: column; margin-top: 1rem; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff8e8; }
.cutoff-callout span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.survey-facts, .start-panel, .completion-panel, .survey-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.survey-facts { padding: 1.25rem; }
.survey-facts dl, .completion-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.survey-facts dl div, .completion-stats div { padding: 1rem; background: var(--surface); }
dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 800; }
.start-panel, .completion-panel { max-width: 900px; margin-top: 3rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.form-grid label { display: grid; grid-template-rows: auto 3rem auto; gap: .4rem; font-weight: 700; }
.form-grid label > span { display: grid; gap: .1rem; }
.form-grid small { display: block; color: var(--muted); font-weight: 400; }
select { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #aeb7b1; border-radius: .25rem; background: white; }
.consent-row { display: flex; gap: .65rem; align-items: flex-start; margin: 1.25rem 0; }
.consent-row input { width: 1.2rem; height: 1.2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1.1rem; border: 2px solid var(--green); border-radius: .25rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: #0b3a29; }
.button-secondary { color: var(--green); background: transparent; }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #4a9ddd; outline-offset: 3px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.principles-grid article { border-top: 4px solid var(--green); padding-top: .5rem; }
.field-list { margin-top: 2.5rem; padding: 1rem; border: 1px solid var(--line); background: #ebe9df; }
.field-list summary { cursor: pointer; font-weight: 800; }
.field-list ul { columns: 3; padding-left: 1.5rem; }
.alert { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid var(--red); background: #fff0ee; }
.alert-error { color: #6c211e; }
.is-hidden { display: none; }
.survey-panel { max-width: 1120px; margin-inline: auto; padding: clamp(1rem, 3vw, 2rem); }
.survey-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.survey-topline p { margin: 0; }
.screen-count { font-size: 1.05rem; }
.compact-cutoff { color: var(--muted); font-size: .9rem; }
.progress-track { height: .5rem; margin: 1rem 0 2rem; overflow: hidden; background: #dfe4df; border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--green-bright); transition: width .25s ease; }
.task-heading { max-width: 760px; }
.task-heading h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.team-card { display: flex; min-width: 0; flex-direction: column; border: 2px solid var(--line); background: white; transition: border-color .15s, box-shadow .15s; }
.team-card.is-strongest { border-color: var(--green-bright); box-shadow: inset 0 5px 0 var(--green-bright); }
.team-card.is-weakest { border-color: var(--red); box-shadow: inset 0 -5px 0 var(--red); }
.team-identity { display: flex; min-height: 145px; flex-direction: column; align-items: center; justify-content: center; padding: 1rem .75rem .65rem; text-align: center; }
.team-identity img { object-fit: contain; }
.team-identity h2 { margin: .4rem 0 .1rem; font-size: 1.25rem; }
.team-identity p { margin: 0; color: var(--muted); font-size: .85rem; }
.logo-fallback { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.35rem; font-weight: 900; }
.record { display: flex; justify-content: space-between; margin: 0; padding: .65rem .8rem; border-block: 1px solid var(--line); }
.record span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.choice-controls { display: grid; grid-template-columns: 1fr 1fr; margin: auto 0 0; padding: 0; border: 0; }
.choice { position: relative; display: block; text-align: center; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: .8rem .3rem; font-size: .82rem; font-weight: 900; cursor: pointer; }
.choice-strongest span { color: var(--green); border-right: 1px solid var(--line); }
.choice-weakest span { color: var(--red); }
.choice input:checked + span { color: white; background: var(--green-bright); }
.choice-weakest input:checked + span { background: var(--red); }
.choice input:focus-visible + span { outline: 3px solid #4a9ddd; outline-offset: -3px; }
.action-row { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.25rem; }
.skip-box { flex: 1; padding: .7rem 1rem; border: 1px solid var(--line); background: #f7f6f1; }
.skip-box summary { cursor: pointer; font-weight: 800; }
.unfamiliar-options { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .8rem 0; }
.save-note, .privacy-note { color: var(--muted); font-size: .88rem; }
.completion-panel { margin: 0 auto; text-align: left; }
.completion-panel h1 { max-width: 780px; }
.completion-stats { max-width: 620px; grid-template-columns: repeat(3, 1fr); margin-block: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.errorlist { margin: .25rem 0; padding: 0; color: #7b2723; list-style: none; font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .form-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .field-list ul { columns: 2; }
}

@media (max-width: 560px) {
  .page-shell { padding-inline: .75rem; }
  .site-header, .site-footer { padding-inline: 1rem; }
  .team-grid { grid-template-columns: 1fr; }
  .team-identity { min-height: 110px; flex-direction: row; gap: .8rem; justify-content: flex-start; text-align: left; }
  .survey-topline, .action-row { align-items: stretch; flex-direction: column; }
  .field-list ul { columns: 1; }
  .completion-stats { grid-template-columns: 1fr; }
}

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