/* ─── Page content: base, type, buttons, sections ─────────────────────────
   Loaded on every page with tokens.css and shell.css. Structure follows
   contractual-web's site.css; brand values come from tokens.css only.
   Page-specific sections are added below as each page lands.            */

/* ── 1. Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
main a:focus-visible, main button:focus-visible, main summary:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.band a:focus-visible, .band button:focus-visible { outline-color: var(--b-brass); }

/* ── 2. Type (brand sheet §5: Newsreader 500 display, Figtree interface) ── */
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.h1 { font-size: 38px; line-height: 1.1; }
.h2 { font-size: 30px; line-height: 1.15; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.lede { font-size: 18px; line-height: 1.55; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--c-text-muted); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent-text);
}
@media (min-width: 768px) {
  .h1 { font-size: 52px; }
  .h2 { font-size: 38px; }
  .lede { font-size: 20px; }
}
@media (min-width: 1200px) {
  .h1 { font-size: 60px; line-height: 1.05; }
  .h2 { font-size: 44px; line-height: 1.1; }
}

/* ── 3. Sections and bands ───────────────────────────────────────────────── */
.sec { padding: 64px var(--gutter); }
@media (min-width: 768px) { .sec { padding: 88px var(--gutter); } }
@media (min-width: 1024px) { .sec { padding: 112px var(--gutter); } }
.sec-surface { background: var(--c-surface); }
.sec-sunken { background: var(--c-surface-sunken); }
.wrap { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 720px; }

/* The Forest band (hero, closing call to action). Heritage Dark roles on it. */
.band { background: var(--b-forest); color: var(--b-ivory); }
.band .muted { color: var(--cd-text-muted); }
.band .eyebrow { color: var(--b-brass); }
.band a { color: var(--b-ivory); }

/* ── 4. Buttons, badges, pills ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); border: 0;
  font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-text); color: var(--c-on-primary); }
.btn-brass { background: var(--b-brass); color: var(--b-ink); }
.btn-brass:hover { background: var(--b-ivory); color: var(--b-ink); }

.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pill-tint { background: var(--c-primary-tint); color: var(--c-text); }
.band .pill-tint { background: var(--b-brass); color: var(--b-ink); }

/* Store badges: the official artwork, unaltered. Before launch they are not
   links, and a separate "Coming soon" caption sits beside them. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.badges img { display: block; height: 48px; width: auto; }
.badges .is-soon { opacity: 1; }

/* ── 5. Pre-launch hero (index.html until the Home page lands) ───────────── */
.hero { padding: var(--space-7) var(--gutter) 64px; }
.hero-copy { max-width: 720px; }
.hero .h1 { margin-top: var(--space-4); }
.hero .lede { margin-top: var(--space-4); max-width: 600px; }
.hero-cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 120px var(--gutter) 128px; }
}

/* ── 6. 404 ──────────────────────────────────────────────────────────────── */
.nf { min-height: 50vh; }
.nf .logo { display: block; width: 255px; height: auto; }
.nf .h1 { margin-top: var(--space-6); }
.nf p { margin-top: var(--space-4); }
.nf .links { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.nf .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
