/* ---------------------------------------------------------------------------
   ODSA Drive Pilot, public pages.

   Shared by index.html and the three guide pages. Same origin, served by the
   same Caddy site block: no fonts, scripts, images or styles are fetched from
   anywhere else, there is no JavaScript on any page, and nothing sets a cookie.

   Typefaces are system stacks by necessity, since loading a webfont would mean
   a third-party request. Personality comes from treatment instead: heavy tight
   display sans, monospace for anything that reads as a record.
   --------------------------------------------------------------------------- */

:root {
  --paper:      #faf7f8;
  --surface:    #ffffff;
  --ink:        #16121a;
  --muted:      #5c5560;
  --rule:       #e4dade;
  --rose:       #de0064;
  --rose-ink:   #a8004c;
  --rose-wash:  #fdeef4;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 68rem;
  --col: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #131017;
    --surface:   #1b1620;
    --ink:       #f3edf0;
    --muted:     #a598a1;
    --rule:      #2e2733;
    --rose:      #ff4d94;
    --rose-ink:  #ff77ac;
    --rose-wash: #24121c;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }
.col { max-width: var(--col); }

a { color: var(--rose-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--rose); }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rose); color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.8125rem;
  z-index: 10;
}
.skip:focus { left: 0; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.25rem);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.15; }

/* --- masthead ------------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }

.masthead .shell {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline; justify-content: space-between;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark a:hover { color: var(--rose); }
.wordmark span { color: var(--rose); }

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

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }

.hero h1 {
  font-size: clamp(2.125rem, 1.2rem + 4.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 1.25rem 0 0;
  max-width: 18ch;
}

/* The one loud thing on the site. It exists to stop somebody reading "the
   chapter has a new Drive" into a set of working logins. Said once, here, and
   once more as a field in the record block. Not repeated in prose. */
.hero h1 .verdict { display: block; color: var(--rose); margin-top: 0.15em; }

.hero .lede { margin: 1.75rem 0 0; }

/* --- record block, the signature element ---------------------------------- */

.record {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rose);
  background: var(--surface);
  max-width: 34rem;
}

.record h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.record dl { margin: 0; padding: 0.35rem 1.25rem 1rem; }

.record div {
  display: flex; flex-wrap: wrap;
  gap: 0 1rem;
  align-items: baseline; justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--rule);
}
.record div:last-child { border-bottom: 0; padding-bottom: 0.25rem; }

.record dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.record dd { margin: 0; font-family: var(--mono); font-size: 0.875rem; text-align: right; }

.record .decision dd {
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- generic band --------------------------------------------------------- */

.band { padding: clamp(2.75rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--rule); }

.band > .shell > h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0;
}

.band p { max-width: var(--col); }

/* --- the three candidates ------------------------------------------------- */

.candidates {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .candidates { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.candidate {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.candidate h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.75rem 0 0;
}

/* Parallel candidates, not steps. Every card carries the same status rather
   than a rank or a number, because nothing here is ordered or preferred. */
.status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0;
}

.candidate p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.candidate .links {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.host {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
  word-break: break-all;
}

/* --- call to action ------------------------------------------------------- */

.cta { background: var(--rose-wash); }
.cta h2 { margin-top: 0.6rem; }
.cta .lede { margin: 1rem 0 0; }

/* --- guide pages ---------------------------------------------------------- */

.guide { padding: clamp(2.5rem, 7vw, 4rem) 0 1rem; }

.guide h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.35rem;
}

.guide h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  max-width: var(--col);
}

.guide h3 { font-size: 1rem; font-weight: 700; margin: 1.75rem 0 0.4rem; max-width: var(--col); }

.guide p, .guide ol, .guide ul { max-width: var(--col); }
.guide ol, .guide ul { padding-left: 1.35rem; }
.guide li { margin: 0.35rem 0; }

.guide blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rose);
  background: var(--surface);
  max-width: var(--col);
}
.guide blockquote p { margin: 0; }

.tell {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  max-width: var(--col);
}
.tell strong { color: var(--rose-ink); }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--rose-wash);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

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

.foot {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot p { max-width: var(--col); margin: 0 0 0.75rem; }
.foot .rule-line { color: var(--ink); font-weight: 600; }
.foot .backlink {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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