/* =========================================================================
   Weir Media — Colours & Type
   Single source of truth. Import in every HTML artifact.
   ========================================================================= */

/* --- Webfonts ------------------------------------------------------------
   League Gothic is self-hosted from /fonts (brand-supplied OTF files).
   Lato (300/400/700) is loaded from Google Fonts — no Lato files shipped.
   -------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap");

@font-face {
  font-family: "League Gothic";
  src: url("fonts/LeagueGothic-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "League Gothic";
  src: url("fonts/LeagueGothic-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Condensed variants exposed as a separate family so designers can opt in
   explicitly. The brief says condensed uppercase is the headline standard;
   "League Gothic" (Regular) is already condensed, but these OTFs provide
   a tighter cut for tight/stacked display contexts. */
@font-face {
  font-family: "League Gothic Condensed";
  src: url("fonts/LeagueGothic-Condensed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "League Gothic Condensed";
  src: url("fonts/LeagueGothic-CondensedItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* --- Brand colours (strict four-colour palette + extensions) --------- */
  --wm-crimson:      #C02250;  /* primary accent */
  --wm-dark-grey:    #414042;  /* body copy, headlines, backgrounds */
  --wm-medium-grey:  #6D6E71;  /* tagline, captions, supporting copy */
  --wm-white:        #FFFFFF;  /* primary document background */
  --wm-light-grey:   #F5F5F5;  /* card backgrounds only */

  /* Tints/shades derived from the palette for rare UI needs.
     Do NOT extract logo-gradient colours for standalone use. */
  --wm-crimson-80:   rgba(192, 34, 80, 0.80);
  --wm-crimson-20:   rgba(192, 34, 80, 0.20);
  --wm-crimson-08:   rgba(192, 34, 80, 0.08);
  --wm-dark-grey-80: rgba(65, 64, 66, 0.80);
  --wm-dark-grey-20: rgba(65, 64, 66, 0.20);
  --wm-hairline:     rgba(65, 64, 66, 0.12);

  /* --- Semantic tokens ------------------------------------------------- */
  --fg:              var(--wm-dark-grey);
  --fg-muted:        var(--wm-medium-grey);
  --fg-on-dark:      var(--wm-white);
  --fg-accent:       var(--wm-crimson);

  --bg:              var(--wm-white);
  --bg-card:         var(--wm-light-grey);
  --bg-emphasis:     var(--wm-dark-grey);

  --rule:            var(--wm-crimson);   /* accent rules under section heads */
  --rule-thin:       var(--wm-hairline);  /* neutral hairlines */

  /* --- Type families --------------------------------------------------- */
  --font-display:    "League Gothic", "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body:       "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* --- Type scale (print-aware; rem-based for web) -------------------- */
  /* Display scale uses condensed face, tight 0.9em leading. */
  --fs-display-xl:   96px;   /* cover page client name */
  --fs-display-lg:   64px;
  --fs-display-md:   44px;
  --fs-display-sm:   28px;   /* first-level subheads */

  /* Body scale (web analogue of ~10–11pt print) */
  --fs-body-lg:      18px;
  --fs-body:         16px;
  --fs-body-sm:      14px;
  --fs-caption:      12px;   /* ~9pt print */
  --fs-micro:        10px;   /* disclaimer / footnotes */

  --lh-display:      0.9;    /* NON-NEGOTIABLE for headlines */
  --lh-subhead:      1.05;
  --lh-body:         1.5;
  --lh-caption:      1.35;

  --tracking-display: 0.01em;
  --tracking-label:   0.12em;   /* small uppercase labels */
  --tracking-url:     0.06em;

  /* --- Spacing (8pt system, with print-friendly extras) --------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* --- Radii, borders, elevation -------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --accent-bar: 4px;             /* crimson left accent on cards */
  --rule-weight: 2px;            /* accent rule under section heads */

  /* Elevation is used SPARINGLY. Editorial first, chrome second. */
  --shadow-sm: 0 1px 2px rgba(65, 64, 66, 0.06);
  --shadow-md: 0 6px 18px rgba(65, 64, 66, 0.08);
  --shadow-lg: 0 18px 48px rgba(65, 64, 66, 0.12);

  /* --- Layout --------------------------------------------------------- */
  --page-max:   1200px;
  --gutter:     var(--space-7);
  --left-rail:  var(--space-8);  /* generous left margin for grid alignment */
}

/* =========================================================================
   Element defaults — opinionated reset that bakes in the brand.
   ========================================================================= */

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Headlines ---------------------------------------------------------- */
h1, h2, h3, .wm-display {
  font-family: var(--font-display);
  font-weight: 400;          /* League Gothic ships as Regular only */
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--wm-dark-grey);
  margin: 0 0 var(--space-4) 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display-lg); }
h2 { font-size: var(--fs-display-md); }
h3 { font-size: var(--fs-display-sm); color: var(--wm-crimson); }  /* first-level subhead */

/* Second-level subhead = Lato Bold sentence case, Dark Grey */
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-subhead);
  color: var(--wm-dark-grey);
  margin: 0 0 var(--space-3) 0;
  letter-spacing: 0;
}

p {
  margin: 0 0 var(--space-4) 0;
  text-wrap: pretty;         /* orphan prevention */
  max-width: 68ch;           /* comfortable measure */
}

small, .wm-caption {
  font-size: var(--fs-caption);
  color: var(--wm-medium-grey);
  line-height: var(--lh-caption);
}

/* --- Links: crimson, no default underline, tight hover --------------- */
a, .wm-link {
  color: var(--wm-crimson);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover, .wm-link:hover { border-bottom-color: var(--wm-crimson); }
a:focus-visible {
  outline: 2px solid var(--wm-crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- URLs are ALWAYS League Gothic, never Lato ----------------------- */
.wm-url {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-url);
  color: var(--wm-crimson);
  border: 0;
}

/* --- Accent rule under section headers -------------------------------- */
.wm-rule {
  display: block;
  width: 64px;
  height: var(--rule-weight);
  background: var(--wm-crimson);
  border: 0;
  margin: var(--space-3) 0 var(--space-5) 0;
}
.wm-rule--wide { width: 120px; }
.wm-rule--full { width: 100%; }

/* --- Small uppercase label (document type, eyebrows) ------------------ */
.wm-label {
  font-family: var(--font-display);
  color: var(--wm-crimson);
  text-transform: uppercase;
  font-size: var(--fs-display-sm);
  letter-spacing: var(--tracking-label);
  line-height: 1;
}

/* --- Bulleted lists: crimson filled bullets, dark grey text ---------- */
ul.wm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
}
ul.wm-list > li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  text-wrap: pretty;
}
ul.wm-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wm-crimson);
}

/* --- Card pattern: Light Grey rect + 4px crimson left accent ---------- */
.wm-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  border-left: var(--accent-bar) solid var(--wm-crimson);
}

/* --- Stat box: dark grey rect, white title, crimson number ----------- */
.wm-stat {
  background: var(--wm-dark-grey);
  color: var(--wm-white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}
.wm-stat__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--wm-white);
  font-size: var(--fs-display-sm);
  letter-spacing: var(--tracking-label);
  line-height: 1;
  margin: 0 0 var(--space-2) 0;
}
.wm-stat__rule { width: 40px; height: 2px; background: var(--wm-crimson); margin: var(--space-2) 0 var(--space-3) 0; border: 0; display: block; }
.wm-stat__number {
  font-family: var(--font-display);
  color: var(--wm-crimson);
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* --- Buttons: crimson primary, dark secondary ------------------------ */
.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--wm-crimson);
  color: var(--wm-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: var(--tracking-label);
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}
.wm-btn:hover    { background: #A01B43; }     /* 12% darker */
.wm-btn:active   { transform: translateY(1px); }
.wm-btn--ghost {
  background: transparent;
  color: var(--wm-crimson);
  box-shadow: inset 0 0 0 2px var(--wm-crimson);
}
.wm-btn--ghost:hover { background: var(--wm-crimson-08); }
.wm-btn--dark {
  background: var(--wm-dark-grey);
  color: var(--wm-white);
}
.wm-btn--dark:hover { background: #2e2d2f; }

/* --- Chrome for dark-surface pages (cover, back) --------------------- */
.wm-dark {
  background: var(--wm-dark-grey);
  color: var(--wm-white);
}
.wm-dark h1, .wm-dark h2, .wm-dark h4 { color: var(--wm-white); }
.wm-dark .wm-label { color: var(--wm-crimson); }
.wm-dark .wm-caption, .wm-dark small { color: rgba(255,255,255,0.62); }

/* --- Utilities -------------------------------------------------------- */
.wm-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--wm-medium-grey);
  font-size: var(--fs-body-lg);
  letter-spacing: 0.02em;
}
.wm-signature {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--wm-medium-grey);
  font-size: var(--fs-caption);
}

/* Text-block helper: enforces 2-word minimum orphan prevention via pretty */
.wm-block { text-wrap: pretty; hyphens: manual; }

/* Left-rail container — strict left grid alignment */
.wm-rail {
  padding-left: var(--left-rail);
  padding-right: var(--left-rail);
}

/* Page-like surface for documents/slides */
.wm-page {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
