/* Layout: a start-sheet line-up. Header, a short thesis, a lane-line divider, then each app as a row on a timing sheet; app pages pair the pitch with an example screen; legal details in the footer */
:root {
  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #13201A;
  --muted: #56675F;
  --line: #D6DFDA;
  --soft: #E8EFEB;
  --route: #075C3B;
  --sign: #F2C230;
  --dash: #D9A20E;
  --link: #075C3B;
  --ok: #0B6B42;
  --ok-bg: #DCEFE4;
  --wip: #7A4F00;
  --wip-bg: #FBEED0;
  --warn: #A3401A;
  --ph-bg: #FFF1BD;
  --ph-ink: #5A4300;

  --display: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.22rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.5rem, 6.4vw, 3.9rem);
  --wrap: 68rem;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1512; --surface: #151F1A; --ink: #E5ECE8; --muted: #9BACA3; --line: #283530; --soft: #1A2621;
    --route: #0A6643; --sign: #F2C230; --dash: #F2C230; --link: #6FD3A0;
    --ok: #6FD3A0; --ok-bg: #15301F; --wip: #F1C46A; --wip-bg: #33270E; --warn: #F0946C;
    --ph-bg: #3B3112; --ph-ink: #F5DC8C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1512; --surface: #151F1A; --ink: #E5ECE8; --muted: #9BACA3; --line: #283530; --soft: #1A2621;
  --route: #0A6643; --sign: #F2C230; --dash: #F2C230; --link: #6FD3A0;
  --ok: #6FD3A0; --ok-bg: #15301F; --wip: #F1C46A; --wip-bg: #33270E; --warn: #F0946C;
  --ph-bg: #3B3112; --ph-ink: #F5DC8C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; border-radius: 3px; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Placeholder: details still to be filled in */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-bottom: 1px dashed currentColor;
  padding: 0 .2em;
  border-radius: 2px;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding-block: 14px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark .mark {
  width: 22px; height: 22px; border-radius: 4px; flex: none;
  background: var(--route);
  box-shadow: inset 0 0 0 3px var(--route), inset 0 0 0 4.5px var(--sign);
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--dash);
  text-decoration-thickness: 3px; text-underline-offset: .42em;
}

/* Type */
.eyebrow {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.028em; }
h2 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Home hero */
.hero .wrap { padding-block: 56px 36px; display: grid; gap: 18px; }
.hero h1 { max-width: 15ch; }

/* The road centre line: the page's one flourish */
.lane-line {
  height: 5px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--dash) 0 34px, transparent 34px 58px);
}

/* Line-up */
.lineup .wrap { padding-block: 44px 56px; display: grid; gap: 18px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.sheet { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sheet-labels {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 11rem 1.5rem; gap: 20px;
  padding: 8px 4px; border-bottom: 1px solid var(--line);
}
.sheet-labels span:last-child { visibility: hidden; }
.row {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 11rem 1.5rem; gap: 6px 20px;
  align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.row:hover { background: var(--soft); }
.row:hover .row-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.row-main { min-width: 0; display: grid; gap: 4px; }
.row-name { font-family: var(--display); font-weight: 800; font-size: var(--step-1); letter-spacing: -.01em; }
.row-desc { color: var(--muted); max-width: 44rem; }
.row-status { display: grid; gap: 6px; justify-items: start; }
.row-go { font-family: var(--mono); font-weight: 700; color: var(--link); justify-self: end; }
@media (max-width: 720px) {
  .sheet-labels { display: none; }
  .row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .row-status { grid-column: 2; }
  .row-go { display: none; }
}

/* Route-number badge, after a UK primary route sign */
.badge {
  display: inline-block; min-width: 3.4rem; text-align: center;
  font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .05em; line-height: 1;
  padding: 9px 9px 8px; border-radius: 5px;
  background: var(--route); color: var(--sign);
  box-shadow: inset 0 0 0 3px var(--route), inset 0 0 0 4.5px rgba(255, 255, 255, .7);
}
.badge.big { font-size: 1.15rem; padding: 12px 12px 11px; min-width: 4.2rem; }

.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.wip { color: var(--wip); background: var(--wip-bg); }
.status.live { color: var(--ok); background: var(--ok-bg); }
.platforms { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* About band */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about .wrap { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.about .wrap > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
@media (max-width: 720px) { .about .wrap { grid-template-columns: 1fr; } }

/* App page */
.app-hero .wrap {
  padding-block: 40px 48px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px 48px; align-items: center;
}
.app-hero .intro { min-width: 0; display: grid; gap: 18px; }
.crumbs { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 760px) { .app-hero .wrap { grid-template-columns: 1fr; } }

/* Example screen */
.screen-wrap { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.screen {
  width: 100%; max-width: 23rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 18px 20px; display: grid; gap: 14px;
  box-shadow: 0 14px 34px -22px rgba(10, 30, 20, .45);
}
.screen-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.screen-title { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.screen-sub { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.readout { display: grid; gap: 0; font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; }
.readout .r {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.readout .r:last-child { border-bottom: 0; }
.readout .r.head { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 0; }
.readout .r .v { text-align: right; }
.flag { color: var(--warn); font-weight: 700; }
.pending { color: var(--wip); font-weight: 700; }
.big-clock {
  font-family: var(--mono); font-weight: 700; font-size: 3rem; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--route); border-radius: 99px; }

/* Content blocks */
.content .wrap {
  padding-block: 8px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px;
}
.content .wrap > section { min-width: 0; display: grid; gap: 14px; align-content: start; }
.content .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .content .wrap { grid-template-columns: 1fr; } }

.dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dashes li { position: relative; padding-left: 30px; }
.dashes li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 16px; height: 4px; background: var(--dash);
}

.note { background: var(--soft); border-radius: 8px; padding: 16px 18px; display: grid; gap: 6px; }
.note strong { font-family: var(--display); font-weight: 800; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: .98rem;
  padding: 10px 16px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--soft); }
.btn.solid { background: var(--route); border-color: var(--route); color: #FFFFFF; }
.btn.solid:hover { filter: brightness(1.1); background: var(--route); }

/* Support page */
.page-head .wrap { padding-block: 44px 28px; display: grid; gap: 14px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; display: grid; gap: 10px; justify-items: start;
}
.email {
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  overflow-wrap: anywhere; user-select: all;
}

/* Long-form text (privacy) */
.prose .wrap { padding-block: 8px 64px; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 32px 56px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); align-self: start; display: grid; gap: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.text { min-width: 0; max-width: 42rem; display: grid; gap: 40px; }
.text section { display: grid; gap: 12px; scroll-margin-top: 20px; }
.text h3 { margin-top: 6px; }
.text ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 820px) {
  .prose .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px 32px; font-size: .9rem; color: var(--muted);
}
.site-footer .legal { max-width: 40rem; display: grid; gap: 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

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

.done { color: var(--ok); font-weight: 700; }

/* App logos */
.logo { display: block; flex: none; width: 46px; height: 46px; }
.logo.big { width: 72px; height: 72px; }
.logo.sm { width: 38px; height: 38px; }
.logo .tile { fill: var(--route); }
.logo .rim { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.logo .lw, .logo .ly { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.logo .lw { stroke: #FFFFFF; }
.logo .ly { stroke: var(--sign); }
.logo .faint { stroke-opacity: .42; }
.logo .fw { fill: #FFFFFF; }
.logo .fy { fill: var(--sign); }
.logo .dot { stroke: var(--route); stroke-width: 1.6; }
.logo .road { stroke-width: 7; stroke-opacity: .3; }
