/* Renewal Crew — the whole site's stylesheet.
   Values come straight from the brand book's tokens. One theme (light).
   Rules worth not breaking:
     - Big Shoulders Display is never set under 28px.
     - One manila panel per screen; safety is only the main button and the
       marked month tile, and always takes ink text with an ink border.
     - Edges are borders, never shadows. Tap targets are at least 48px.
     - Left-aligned, one column on phones with a 16px gutter. */

:root {
  --paper: #f8f6f0;
  --manila: #ecdcab;
  --steel: #1f3a52;
  --safety: #f26a1b;
  --ink: #1c1b19;
  --ink-muted: #57534a;
  --safety-text: #9c3d08;
  --rule: #7c7667;
  --on-steel: #f8f6f0;
  --on-steel-muted: #c9d3db;

  --font-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-text: Barlow, "Helvetica Neue", Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 40px;
  --space-4: 80px;

  --radius-none: 0;
  --radius-sm: 3px;
  --radius-tag: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  text-align: left;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }

a { color: var(--safety-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band :focus-visible, footer :focus-visible { outline-color: var(--safety); }

/* ---------- type ---------- */

.display, h1 { font-family: var(--font-display); font-size: 88px; line-height: 84px; font-weight: 800; letter-spacing: -0.005em; }
.headline, h2 { font-family: var(--font-display); font-size: 52px; line-height: 52px; font-weight: 800; }
.subhead, h3, legend { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; }
h4 { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 700; }
.small { font-size: 16px; line-height: 24px; }
.muted { color: var(--ink-muted); }
.label {
  display: block;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.band .label, footer .label { color: var(--on-steel-muted); }

/* Reading text never runs wider than 640px. */
.prose p, .prose li { max-width: 640px; }
.prose > * + * { margin-top: var(--space-2); }
.prose h2 { margin-top: var(--space-3); }
.prose h3 { margin-top: var(--space-3); }
.prose ul li, .prose ol li { padding-left: 20px; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink-muted); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; }
.prose ol li::before { content: counter(step) "."; position: absolute; left: 0; font-weight: 600; }

/* ---------- shell ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-3); }
.narrow { max-width: 760px; }
section { padding: var(--space-4) 0; }
section + section { padding-top: 0; }
.band { background: var(--steel); color: var(--on-steel); padding: var(--space-4) 0; }
.band + section { padding-top: var(--space-4); }
.rule-top { border-top: 1px solid var(--rule); padding-top: var(--space-3); }

/* ---------- header ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--rule);
  max-width: 1180px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.bar nav { display: flex; gap: var(--space-2) var(--space-3); flex-wrap: wrap; align-items: center; }
.bar nav a { font-weight: 600; text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: 1fr 460px; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; }
.hero h1 { max-width: 15ch; }
.hero p { max-width: 540px; }
.hero > div > * + * { margin-top: var(--space-2); }
.hero > div > h1 + p { margin-top: var(--space-3); }

/* ---------- the manila panel + the reminder form ---------- */

.panel {
  background: var(--manila);
  border-radius: var(--radius-tag);
  padding: var(--space-3);
}
.panel legend { max-width: 22ch; }
.panel > * + * { margin-top: var(--space-2); }
.panel .hint { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.panel fieldset .hint { margin-top: var(--space-1); }

.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); margin-top: var(--space-2); }
.months input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.months span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
}
.months label { display: block; }
/* The selected tile also gets a heavier border, so colour never works alone. */
.months input:checked + span { background: var(--safety); border: 2px solid var(--ink); }
.months input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.field { display: block; margin-top: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; }
.field > input, .field > select {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: var(--space-1);
  padding: 0 var(--space-2);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 18px;
  font-weight: 400;
}
.field > select { appearance: none; background-image: none; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.two-up .field { margin-top: 0; }

.consent { display: flex; gap: var(--space-1); align-items: flex-start; margin-top: var(--space-2); font-size: 16px; line-height: 24px; }
.consent input { width: 24px; height: 24px; margin: 0; flex: 0 0 24px; accent-color: var(--ink); }
.consent span { max-width: 56ch; }

.err {
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 16px;
  line-height: 24px;
}
.err[hidden] { display: none; }

/* ---------- buttons ---------- */

.go, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.go { width: 100%; background: var(--safety); color: var(--ink); border: 2px solid var(--ink); }
.go:disabled { opacity: 0.6; cursor: progress; }
.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.band .ghost { color: var(--on-steel); border-color: var(--on-steel); }
.go-inline { width: auto; }

/* ---------- plain content blocks ---------- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.cols > div > * + *, .cols-2 > div > * + * { margin-top: var(--space-1); }
.cols p, .cols-2 p { font-size: 18px; line-height: 28px; }
.band .cols p { color: var(--on-steel-muted); }

.steps { counter-reset: s; display: grid; gap: var(--space-3); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-2); align-items: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink-muted);
  border-top: 2px solid var(--rule);
  padding-top: var(--space-1);
}
.band .steps li::before { color: var(--on-steel-muted); border-top-color: var(--on-steel-muted); }
.steps h3 + p { margin-top: var(--space-1); }
.steps p { max-width: 54ch; }

table { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 18px; line-height: 28px; }
th, td { text-align: left; padding: var(--space-1) var(--space-2) var(--space-1) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

.faq > * + * { margin-top: var(--space-2); }
.faq details { border-top: 1px solid var(--rule); padding: var(--space-2) 0; max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::marker { color: var(--ink-muted); }
.faq details > p, .faq details > ul { margin-top: var(--space-1); max-width: 640px; }
.faq details > * + * { margin-top: var(--space-1); }

/* The month-tile graphic: all twelve, one marked. Decorative only. */
.tile-graphic { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-1); max-width: 480px; }
.tile-graphic div {
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.tile-graphic div.on { background: var(--safety); border: 2px solid var(--ink); }
.band .tile-graphic div { background: var(--steel); border-color: var(--on-steel-muted); color: var(--on-steel); }
.band .tile-graphic div.on { background: var(--safety); border: 2px solid var(--ink); color: var(--ink); }

/* ---------- footer ---------- */

footer { background: var(--steel); color: var(--on-steel); padding: var(--space-4) 0 var(--space-3); margin-top: var(--space-4); }
footer .wordmark { color: var(--on-steel); }
footer .foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); }
footer .foot > div > * + * { margin-top: var(--space-2); }
footer a { color: var(--on-steel); }
footer .links { display: grid; gap: var(--space-1); }
footer .links a { text-decoration: none; font-weight: 600; }
footer .links a:hover { text-decoration: underline; }
footer p { font-size: 16px; line-height: 24px; color: var(--on-steel-muted); max-width: 60ch; }
.disclosure {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--on-steel-muted);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-steel-muted);
}
.disclosure strong { color: var(--on-steel); }

/* ---------- phones ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 var(--space-2); }
  .bar { padding: var(--space-2); }
  .hero { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-3) 0; }
  .cols, .cols-2, footer .foot { grid-template-columns: 1fr; gap: var(--space-3); }
  section { padding: var(--space-3) 0; }
  .band { padding: var(--space-3) 0; }
  section + section { padding-top: 0; }
  .band + section { padding-top: var(--space-3); }
  h1, .display { font-size: 52px; line-height: 52px; }
  h2, .headline { font-size: 40px; line-height: 42px; }
  .two-up { grid-template-columns: 1fr; }
  .two-up .field + .field { margin-top: var(--space-2); }
  .panel { padding: var(--space-2); }
  .tile-graphic { grid-template-columns: repeat(4, 1fr); }
  footer { margin-top: var(--space-3); }
}

@media (prefers-reduced-motion: no-preference) {
  .months span, .go, .ghost { transition: background-color 120ms linear, border-color 120ms linear; }
}
