/* Manchester Signal: plain, fast, accessible. System fonts, no external requests.
   Layout: one column of full-width bands (header, slate hero, sections, slate footer),
   content capped at 68rem. Palette and type from branding.md. */
:root {
  --slate: #2F3B45;   /* headings, hero, footer */
  --brick: #8C3B2E;   /* accents, rules */
  --teal: #1F6F6B;    /* links */
  --gold: #E0A526;    /* buttons and highlights only, never text on light */
  --paper: #F6F2EA;   /* page background */
  --ink: #1C1C1C;     /* body text */
  --stone: #5A6670;   /* secondary text */
  --white: #FFFFFF;
  --line: #D9D2C3;
  --cream: #FFF6DD;
  --font-display: Archivo, "Source Sans 3", system-ui, Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--slate); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--slate); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }

.draft-banner { background: var(--brick); color: var(--white); padding-block: .6rem; font-weight: 700; font-size: .95rem; }

header.site { background: var(--white); border-bottom: 4px solid var(--brick); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-block: .75rem; flex-wrap: wrap; }
header.site img { height: 40px; width: auto; display: block; }
header.site nav { display: flex; gap: 1rem; flex-wrap: wrap; }
header.site nav a { font-weight: 600; }

/* Hero */
.hero { background: var(--slate); color: var(--paper); padding-block: 3.25rem 3.5rem; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .kicker { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin: 0 0 .75rem; }
.hero .lede { font-size: 1.25rem; max-width: 38rem; margin: 0 0 .75rem; }
.hero .who { max-width: 38rem; margin: 0 0 1.75rem; color: #D8DEE2; }
.hero .bars { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: -3.5rem; display: flex; align-items: flex-end; gap: 14px; opacity: .16; pointer-events: none; }
.hero .bars span { display: block; width: 34px; border-radius: 3px; background: var(--paper); }
.hero .bars span:nth-child(1) { height: 70px; }
.hero .bars span:nth-child(2) { height: 120px; }
.hero .bars span:nth-child(3) { height: 170px; }
.hero .bars span:nth-child(4) { height: 220px; }
@media (max-width: 720px) { .hero .bars { display: none; } }

.button { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; padding: .8rem 1.35rem; border-radius: 4px; text-decoration: none; border: 0; font-size: 1.05rem; cursor: pointer; }
.button:hover { background: #F0B83A; color: var(--ink); }
.hero .small { font-size: .95rem; color: #D8DEE2; margin: .75rem 0 0; }

.region { background: var(--white); border-bottom: 1px solid var(--line); }
.region p { margin: 0; padding-block: .85rem; color: var(--stone); font-size: .98rem; }
.region strong { color: var(--slate); }

section { padding-block: 3rem; }
section.alt { background: var(--white); }
.intro { max-width: 40rem; margin: -.25rem 0 1.5rem; color: var(--stone); }

/* Issue sections: a real running order, so numbered */
ol.sections { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: s; }
ol.sections li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: 4px; padding: 1rem 1.1rem 1.15rem; min-width: 0; }
ol.sections li h3::before { content: counter(s) ". "; color: var(--brick); }
ol.sections li p { margin: 0; }
ol.sections li.labelled { border-top-color: var(--brick); }

/* Example headlines, set like a contents list */
.examples { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-top: 2px solid var(--slate); }
.examples li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; padding-block: .9rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.examples .tag { font-family: var(--font-mono); font-size: .8rem; color: var(--brick); font-weight: 700; }
.examples .h { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate); line-height: 1.3; min-width: 0; }
.examples-note { color: var(--stone); font-size: .95rem; margin: 1rem 0 0; max-width: 46rem; }

/* Signup */
.signup { background: var(--white); border: 2px solid var(--slate); border-radius: 6px; padding: 1.5rem; max-width: 40rem; }
.signup h2 { margin-bottom: .5rem; }
.signup .terms { font-weight: 600; margin: 0 0 1rem; }
.placeholder { background: var(--cream); border: 1px dashed var(--gold); padding: .75rem 1rem; border-radius: 4px; font-family: var(--font-mono); font-size: .9rem; }
.placeholder .button { margin-top: .75rem; font-family: var(--font-body); opacity: .55; cursor: not-allowed; }
.consent { font-size: .95rem; color: var(--slate); margin: 1rem 0 0; }

footer.site { background: var(--slate); color: var(--paper); padding-block: 2rem; font-size: .95rem; }
footer.site a { color: var(--paper); }
footer.site p { margin: 0 0 .5rem; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose .note { background: var(--cream); border-left: 3px solid var(--gold); padding: .5rem .75rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
