/* The chrome every page of this site carries: the signage tokens, the type scale, the
   masthead and the section heading.

   Lifted out of index.html when a second page arrived. Two copies of a palette is how one
   page ends up in a different typeface from the next - which is what happened to the
   console, where tokens.css asked for Archivo and nothing loaded it for months.

   Anything belonging to one page only stays in that page. */

/* ---- Tokens -------------------------------------------------------------
   Signage, not stationery. What is being sold is a panel bolted to a wall in a
   corridor, so the page borrows from what hangs beside it: departure boards,
   fire-door plates, timetables. Navy carries the structure, a signal yellow
   does the pointing, and almost nothing is rounded - a sign is cut, not drawn.

   One typeface, worked hard. A display serif over a body sans is the reflex
   pairing; here the contrast is weight and size within a single grotesk, which
   is how a sign gets its hierarchy when it only has one plate to work with. */
:root {
  --ground:      #f3f4f6;
  --surface:     #ffffff;
  --panel:       #131f3d;
  --panel-2:     #1d2b50;
  --ink:         #101728;
  --ink-2:       #3f4a60;
  --muted:       #6b7486;
  --line:        #d7dae1;
  --rule:        #101728;
  --navy:        #1b2d5b;
  --signal:      #eeb111;
  --signal-ink:  #1a1405;

  --face: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 34rem;
  --page: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0b0f19;
    --surface:     #131a29;
    --panel:       #0d1526;
    --panel-2:     #18233c;
    --ink:         #eef1f6;
    --ink-2:       #b4bccb;
    --muted:       #7b8598;
    --line:        #253049;
    --rule:        #eef1f6;
    --navy:        #9fb4e6;
    --signal:      #f2bd2e;
    --signal-ink:  #1a1405;
  }
}

:root[data-theme="dark"] {
  --ground:      #0b0f19;
  --surface:     #131a29;
  --panel:       #0d1526;
  --panel-2:     #18233c;
  --ink:         #eef1f6;
  --ink-2:       #b4bccb;
  --muted:       #7b8598;
  --line:        #253049;
  --rule:        #eef1f6;
  --navy:        #9fb4e6;
  --signal:      #f2bd2e;
  --signal-ink:  #1a1405;
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
@media (max-width: 560px) { .wrap { padding-left: 18px; padding-right: 18px; } }

/* Tight, heavy, and squared off. The size jump between h1 and body is the
   whole hierarchy - there is no second typeface doing that work. */
h1, h2, h3 { font-family: var(--face); text-wrap: balance; margin: 0; }
h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 800;
  line-height: 1.0; letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.025em;
}
h3 { font-size: 1.02rem; line-height: 1.32; font-weight: 700; letter-spacing: -0.008em; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.lede { font-size: 1.1rem; color: var(--ink-2); max-width: var(--measure); }

/* ---- Masthead ----------------------------------------------------------
   A heavy rule rather than a hairline: the page opens the way a sign does. */
header.top { border-bottom: 2px solid var(--rule); background: var(--ground); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 16px;
}
.mark {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
}
/* A square, not a dot. Round marks read as bullets; this one reads as a plate. */
.mark .dot { width: 13px; height: 13px; background: var(--signal); flex: none; }
.top-note {
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}



/* ---- Sections -----------------------------------------------------------
   The label moves out of the way. Instead of an uppercase line stacked above
   every heading, it sits in a gutter to the left and the heading starts at the
   same place every time - the way a printed timetable keys its rows. */
.shot { margin: 0; padding-block: clamp(10px, 2vw, 26px); }
.shot img {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 2px solid var(--rule); border-radius: 0;
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; max-width: var(--measure); }

section { padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }

.section-head {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: 32px; row-gap: 14px; margin-bottom: 38px; align-items: start;
}
.section-head .eyebrow { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.section-head h2, .section-head .lede { grid-column: 2; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; row-gap: 12px; }
  .section-head .eyebrow { grid-column: 1; grid-row: auto; }
}


/* ---- The eyebrow and the buttons -------------------------------------------
   Both read as page furniture and both are chrome: every section on every page opens with
   the eyebrow, and the two buttons are the only controls this site has. */
.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  display: inline-block; border-top: 2px solid var(--signal); padding-top: 7px;
}

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 0;
  font-weight: 700; font-size: 0.92rem; text-decoration: none; letter-spacing: 0.01em;
  border: 2px solid var(--rule); transition: background .12s ease, color .12s ease;
}
.btn-primary { background: var(--rule); color: var(--ground); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: none; color: var(--ink); }
.btn-ghost:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Goes with the button rather than with the page that happened to declare it first. */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---- The footer ------------------------------------------------------------- */
footer {
  border-top: 2px solid var(--rule); padding-block: 26px 44px;
  color: var(--muted); font-size: 0.82rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
footer .sign { display: inline-flex; align-items: center; gap: 9px; }
footer .sign img { width: 20px; height: 20px; display: block; }
footer a {
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px; text-decoration-color: var(--line);
}
footer a:hover, footer a:focus-visible { text-decoration-color: var(--signal); }
/* Takes the whole width, so the two-sided row above it keeps its ends. */
footer .legal { flex-basis: 100%; font-size: 0.78rem; }
