/* WSV shared foundation — typography, links, buttons and layout primitives.
 *
 * Before 2026-09-03 every page carried its own copy of these rules and they
 * had forked: uppercase headings and the 17px body were homepage-only, three
 * pages set their own radius, .btn-ghost meant two opposite components, and
 * `a { color: gold }` on the secondary pages made every link compete with the
 * apply button. Change a foundation rule here, nowhere else.
 *
 * Load order per page: tokens.css -> base.css -> the page's own <style>.
 * A page may still override anything here for something genuinely local;
 * it should not restate these rules to say the same thing.
 */

/* Deliberately NOT a global margin/padding reset: index.html never had one
   and its spacing depends on default margins. Pages that carry their own
   `* { margin:0; padding:0 }` keep it — that rule is consistent, not forked. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--mont);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* The display voice. Size stays with the page — a hero and a case-study
   heading are allowed to differ — but family, weight, case and colour do not.
   Uppercase suits short display headings. A long editorial headline (case
   studies, articles, anything past ~70 characters) opts out on its own page
   with `text-transform: none`, the way seo-page.html already did. */
h1, h2, h3 {
  font-family: var(--barlow);
  color: var(--text);
  text-transform: uppercase;
}

img { max-width: 100%; }

/* Gold is what the primary action looks like. Links rest in text colour and
   reach for gold only on interaction, so nothing competes with the CTA. */
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold); }

/* Links inside running text still need to look like links. */
p a, li a, .prose a, .sub a, .foot-col a {
  text-decoration: underline;
  text-decoration-color: rgba(196,168,74,0.55);
  text-underline-offset: 3px;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  background: var(--gold); color: #000;
  font-family: var(--barlow); font-size: 14px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--gold-hi); color: #000; transform: translateY(-1px); }
.btn-big { font-size: 16px; padding: 18px 36px; }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--line); color: var(--text);
  font-family: var(--barlow); font-size: 13px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--gold-hi); color: var(--gold-hi); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #000;
  padding: 10px 18px; font-family: var(--barlow); font-weight: 700; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* Keyboard focus. Before this the site had exactly one focus rule (the skip
   link) while `a { text-decoration: none }` removed the other affordance. */
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
