/* ==========================================================================
   GIRL BEER — BRAND
   The single source of truth for the whole site's look.

   FOUR COLOURS: ink, Girl Beer pink, deep wine, warm cream. Khaki gold
   survives only as the halftone dot. One language: newspaper print.

   Nothing below this file should contain a raw colour, radius, font or
   speed. If you want to change how Girl Beer looks anywhere — this page,
   a future page, a landing page on another platform — change it HERE and
   nowhere else.

   Mirrored, platform-agnostically, in brand/brand.json and BRAND.md.
   ========================================================================== */

/* ------------------------------------------------------------- webfont --
   Courier Prime, served from this domain. Self-hosting means one less
   third-party request, no render-blocking stylesheet from fonts.googleapis
   and nothing about the visitor sent anywhere else. The files live in
   assets/fonts/; the licence that permits this is OFL.txt beside them.
   Times New Roman is already on the machine, so --display needs no file. */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-700.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400-italic.woff2") format("woff2");
}

:root {

  /* ------------------------------------------------------------ palette --
     The first three come straight out of the logo. The rest support them. */

  --ink:        #29261C;   /* dark olive-brown — body text, outlines, dark grounds */
  --pink:       #DC4A70;   /* Girl Beer raspberry — THE accent.
                              TYPE AND RULES ONLY, never a ground behind
                              text: cream on pink is 3.46:1 and ink on pink
                              is 3.79:1, both under the 4.5:1 a label needs.
                              As a headline colour on cream it is 3.46:1,
                              which clears the 3:1 large text needs. Filled
                              states use --wine. */
  --gold:       #ADA174;   /* halftone khaki — dot patterns, tape, small fills */
  --wine:       #7D173E;   /* deep raspberry — the same hue as the pink (337 vs 340),
                              55% darker. A DARK GROUND and nothing else:
                                · one wine band per page, maximum
                                · never adjacent to an ink band (1.49:1 apart —
                                  side by side they read as one muddy block)
                                · text on wine is cream. Pink on wine is 2.55:1,
                                  so the accent never goes here */

  --paper:      #F4EEE3;   /* warm cream — default ground */
  --paper-lit:  #FCF9F1;   /* the same cream, a shade lighter. A paper tint,
                              not a fourth colour. Mats and inset panels. */

  /* ONE flat fill for photo placeholders — it goes when real photography
     lands. Deliberately colourless, so the boxes never add a hue. */
  --ph:         #CFC7B6;

  /* ------------------------------------------------------- semantic roles --
     Components reference THESE, not the raw palette above. Re-point them to
     re-skin the site without touching a single component. */

  --color-bg:       var(--paper);
  --color-text:     var(--ink);
  --color-accent:   var(--pink);
  --color-line:     var(--ink);      /* every rule on the site */
  --color-on-dark:  var(--paper);    /* text sitting on an ink ground */

  /* Section grounds: cream, ink, or wine. Nothing else — pink is type,
     never a ground. Mostly cream, with dark bands as punctuation and a
     hairline rule where one cream section meets the next. At most one
     wine band per page, never touching an ink one.

     The homepage has no wine band now. The one it had was behind a pull
     quote, and a pull quote before launch is a quote from nobody. Wine is
     still in use on About and on Contact. */
  --bg-hero:      var(--paper);
  --bg-banner:    var(--ink);
  --bg-start:     var(--paper);
  --bg-episodes:  var(--ink);
  --bg-footer:    var(--ink);

  /* ----------------------------------------------------------- typefaces --
     TWO faces. Each has exactly one job. Never add a third. */

  /* Liberation Serif and Tinos are metrically identical to Times New Roman,
     so a Linux or ChromeOS visitor gets the same letter widths rather than a
     wider substitute the hero was never measured against. */
  --display:        "Times New Roman", "Liberation Serif", Tinos, Times, serif;
  --display-weight: 700;
  --display-style:  italic;          /* Bold Italic only — never roman, never light */

  --mono:           "Courier Prime", "Courier New", Courier, monospace;

  /* ---------------------------------------------------------- type scale --
     Three ROLES across the two faces:
       1. display  — headlines, episode numbers, big figures
       2. body     — paragraphs, episode details
       3. label    — small uppercase monospace: nav, buttons, meta, kickers
     Roles 2 and 3 are the same typeface at different settings. */

  --fs-hero:      27.5cqw;                              /* spans the hero width */
  --fs-display-l: clamp(2.4rem, 5.6vw, 4.9rem);         /* section headlines */
  --fs-display-m: clamp(2rem, 4.4vw, 3.6rem);           /* block headlines */
  --fs-display-s: clamp(1.9rem, 3.2vw, 2.8rem);         /* card names */
  --fs-body:      clamp(0.95rem, 0.9rem + 0.3vw, 1.02rem);   /* 15.2 -> 16.3px */
  /* Both hold their full size down to 300px and only shrink below it. The
     widest button label, "Subscribe on Substack", comes to 228px at 12.6px
     type and the page has 194px of room at a 230px window -- so under about
     262px it cannot fit, and a button that will not wrap had nowhere to go
     but off the edge. The ramps are solved from those two numbers rather than
     picked: full size at 300px, and small enough to fit at 230px. */
  --fs-label:     clamp(0.58rem, 0.161rem + 3.14vw, 0.75rem);   /* 12px at 300px+ */
  --fs-button:    clamp(0.6rem, 0.136rem + 3.49vw, 0.79rem);    /* 12.6px at 300px+ */

  --lh-display:   0.84;
  --lh-body:      1.85;
  --ls-display:   -0.028em;
  --ls-label:     0.14em;

  /* ---------------------------------------------------------- line + form */

  --rule:         2px;     /* the standard ink outline, used everywhere */
  --rule-hair:    1px;

  --radius-card:  22px;
  --radius-pill:  999px;
  --radius-round: 50%;

  /* ------------------------------------------------------------- spacing */

  --gutter:       clamp(18px, 4vw, 56px);
  --section-pad:  clamp(56px, 7vw, 104px);
  --measure:      62ch;
  --wrap:         1320px;

  /* ------------------------------------------------------------ texture --
     Halftone is the site's main pattern, taken from the logo's print. */

  --halftone-dot:   1.5px;
  --halftone-gap:   7px;
  --grain-opacity:  0.5;

  /* -------------------------------------------------------------- motion */

  --speed-banner:  42s;
  --speed-hover:   0.12s;
}
