/* css/base.css
   Reset, page defaults, typography and layout helpers used on every page. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  /* Side gutter that also clears a phone's rounded corners or system bar */
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-700); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Full-width coloured bands: the band spans the page, .wrap keeps content centred */
.wrap { max-width: var(--max-width); margin-inline: auto; }
.band { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
section, .section { padding-block: var(--space-section); }
.section-soft { background: var(--bg-soft); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 70ch; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy-700); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Content still to be supplied by TCTI: loud on purpose, blocks a release build */
.ph { background: var(--ph-bg); color: var(--ph-ink); outline: 1px dashed var(--gold-500); padding: 0 4px; border-radius: 3px; font-weight: 600; }

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