/* ==========================================================================
   Coldpress — brand typography
   Loaded AFTER main.css, so everything here is an override layer. Deleting
   the <link> in inc/head.php reverts the whole site to the six Google
   fonts with no side effects; main.css is never touched.

   The two faces shipped by the client were built in Fontself and had no
   real umlauts (a-dieresis pointed at plain 'a'), no eszett and no euro
   sign. The files below are repaired copies. Do not swap them back for the
   originals or every German word loses its dots and every price its
   currency symbol.

   COVERAGE
   Every one of the 47 font-family rules in main.css reads one of six
   custom properties, so redefining those six moves the entire site:
   headings, body copy, buttons, navigation, form fields, the menu board
   and the legal pages.

     Morning Rainbow   --ff-script   wordmarks, card notes, quote marks
     Kopikoo           everything else

   Kopikoo carries the reading layer rather than Morning Rainbow because
   its x-height is 524/1000 against 471 — meaningfully taller, which is
   what decides whether a face survives at paragraph size.

   WHAT THIS COSTS
   Neither face has a bold or an italic. Section 3 pins every weight to
   400, so the size and colour contrast in main.css now carries the whole
   typographic hierarchy on its own. That is a real loss and it is the
   price of a single-weight brand face; nothing in this file can recover
   it. If a heading ever stops reading as a heading, raise its font-size
   rather than its weight.

   The admin panel is unaffected: admin.css declares its own :root and the
   admin pages never include inc/head.php.
   ========================================================================== */

@font-face {
  font-family: 'Kopikoo';
  src: url('../fonts/kopikoo-cp.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Latin-1 plus the punctuation that was added by hand during the repair. */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+2013-2014,
                 U+2018-201E, U+2022, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Morning Rainbow';
  src: url('../fonts/morning-rainbow-cp.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+2013-2014,
                 U+2018-201E, U+2022, U+2039-203A, U+20AC;
}

/* ==========================================================================
   1. THE SWAP
   The Google fonts stay in each stack as fallbacks, so a woff2 that fails
   to load degrades to the previous design rather than to Times.
   ========================================================================== */
:root {
  --ff-display: 'Kopikoo', 'Fredoka', 'Fredoka One', system-ui, sans-serif;
  --ff-head:    'Kopikoo', 'Comfortaa', system-ui, sans-serif;
  --ff-body:    'Kopikoo', 'Quicksand', system-ui, sans-serif;
  --ff-read:    'Kopikoo', 'Poppins', system-ui, sans-serif;
  --ff-ui:      'Kopikoo', 'Montserrat', system-ui, sans-serif;
  --ff-script:  'Morning Rainbow', 'Pacifico', cursive;

  --ff-accent:  var(--ff-display);
}

/* ==========================================================================
   2. THE SWAP, RESTATED
   Section 1 alone should be enough. It is restated here on purpose: a
   variable override only wins if this file really does load after
   main.css, and one wrong line in head.php silently undoes all of it.
   Stated explicitly, every element shows fonts.css as its source in
   DevTools, so a swap that did not take is one glance to diagnose.
   ========================================================================== */
body,
.skip, .nav, .eyebrow, .hero__scroll, .evt__eyebrow, .evt__date,
.stat__l, .dl__k, .btn, .foot, .rev__name, .rev__meta,
.fld label, .fld__err, .note,
.hero__title, .evt__title, .stat__n, .card__price,
.dsp, .wordmark, .it__n, .it__p, .row__n, .row__p,
.evt__h, .section__title, .card__name,
.hero__sub, .evt__meta, .section__lede, .card__desc, .dl__v,
.hours li, .rev__q p, .fld__hint, .contact__note,
.it__d, .pill, .strip, .rows--dish .row__d,
.fld input, .fld select, .fld textarea {
  font-family: var(--ff-body);
}

.nav__brand, .foot__brand, .card__note, .rev::before {
  font-family: var(--ff-script);
}

/* ==========================================================================
   3. WEIGHT GUARD
   Both faces have exactly one weight. main.css asks these selectors for
   300, 500, 600 or 700, and the browser answers by smearing the outline
   into a synthetic bold or thinning it into a fake light — either one
   destroys the brush edge. Every rule in main.css that sets a weight
   other than 400 is listed here.
   ========================================================================== */
body, .nav, .nav__brand, .eyebrow, .hero__title, .hero__sub,
.evt__eyebrow, .evt__h, .evt__date, .evt__title, .evt__meta,
.section__title, .section__lede, .stat__n, .stat__l,
.card__name, .card__price, .card__desc, .card__note,
.dl__k, .dl__v, .hours li, .btn, .foot, .foot__brand,
.dsp, .wordmark, .it__n, .it__d, .it__p, .it__v b,
.pill, .strip, .row__n, .row__p, .rows--dish .row__d,
.rev::before, .rev__q p, .rev__name, .rev__meta,
.fld label, .fld__opt, .fld__hint, .fld__err, .contact__note, .note,
.fld input, .fld select, .fld textarea {
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. OPTICAL CORRECTIONS
   Every measurement in main.css was taken against Comfortaa, Fredoka,
   Quicksand and Poppins. Kopikoo runs wider, sits on a taller ascent —
   raised during the repair to clear the new umlaut dots — and carries
   almost no side bearing. Only the values that actually move are here.
   ========================================================================== */

/* ----------------------------------------------------------- reading --- */
/* A brush face needs more air between lines than Quicksand did, or the
   ascenders of one line run into the descenders of the one above. */
body { line-height: 1.72; }

.section__lede,
.card__desc,
.rev__q p,
.contact__note,
.hours li,
.dl__v { line-height: 1.7; }

/* Poppins Light sat lower and read smaller; at the same pixel size
   Kopikoo now looks a step up, so the lede comes back down slightly. */
.section__lede { font-size: clamp(1rem, .96rem + .22vw, 1.125rem); }

/* ---------------------------------------------------------- wordmarks --- */
.nav__brand  { letter-spacing: .01em; }
.foot__brand { font-size: 1.625rem; line-height: 1.1; }

/* --------------------------------------------------------------- hero --- */
/* .92 was safe under Fredoka. Against the raised ascent the descenders of
   one line start touching the dots of the next. */
.hero__title { line-height: .98; letter-spacing: -.005em; }
.hero__sub   { line-height: 1.7; }

/* ------------------------------------------------------------ headings --- */
.evt__h         { line-height: 1.12; }
.evt__title     { line-height: 1.18; }
/* Comfortaa needed -.015em to close up. Kopikoo is already tight; keeping
   the negative tracking jams the round letters into each other. */
.section__title { line-height: 1.02; letter-spacing: 0; }
.card__name     { line-height: 1.18; }

/* ------------------------------------------------- small uppercase --- */
/* Kopikoo has almost no side bearing, so every tracked uppercase label
   needs its spacing opened past the Montserrat setting or the letters
   touch. These are the smallest text on the site and the first place a
   brush face falls apart, so they also get a size floor. */
.eyebrow,
.evt__eyebrow,
.stat__l,
.dl__k,
.rev__meta,
.note,
.fld label,
.hero__scroll { letter-spacing: .14em; }

.stat__l,
.rev__meta,
.fld label,
.evt__date { font-size: max(.8125rem, 1em); }

/* -------------------------------------------------------------- cards --- */
.card__price { letter-spacing: .01em; }
/* Morning Rainbow has the lower x-height of the two; at 1rem the note
   read small next to the description above it. */
.card__note  { font-size: 1.0625rem; line-height: 1.5; }

/* ------------------------------------------------------------ reviews --- */
/* The opening quote is chunkier than Pacifico's and was overpowering the
   card, so it comes down a size and sits slightly lower. */
.rev::before { font-size: 5rem; top: -.28em; }

/* ---------------------------------------------------------------- nav --- */
/* Navigation links were 600 Montserrat and are now 400 Kopikoo, which
   reads lighter at the same size. */
.nav { letter-spacing: .03em; }

/* ==========================================================================
   5. MENU BOARD — menu.php
   The chalkboard keeps its own palette but inherits the faces. Its
   tracking was set for Fredoka's narrow figures; Kopikoo needs roughly
   half as much or the price column stops aligning.
   ========================================================================== */
.dsp    { line-height: .96; letter-spacing: .02em; }
.it__n  { letter-spacing: .02em; }
.row__n { letter-spacing: .015em; }

/* ==========================================================================
   6. SMALL SCREENS
   Below 40rem several clamps bottom out near 15px, under the comfortable
   floor for a brush face. The floors are raised rather than the face
   swapped, so the page keeps one voice.
   ========================================================================== */
@media (max-width: 40rem) {
  .eyebrow    { font-size: max(.8125rem, .72em); letter-spacing: .11em; }
  .card__note { font-size: 1rem; }
  .row__n,
  .row__p     { font-size: 1rem; }
  .foot       { font-size: .875rem; }
}

/* ==========================================================================
   7. ESCAPE HATCH
   Form fields are the one place where a brush face has a functional cost
   rather than only an aesthetic one: people cannot proof-read what they
   typed, and browser autofill styling assumes a normal sans. Uncomment to
   put the inputs — and only the inputs — back on Quicksand.

.fld input,
.fld select,
.fld textarea { font-family: 'Quicksand', system-ui, sans-serif; }
   ========================================================================== */