/*
 * NEWOLD design tokens.
 *
 * Licensed Futura: drop the font files into /assets/fonts and uncomment.
 * "Futura PT" is first in --font-primary, so it takes over automatically.
 *
 * @font-face {
 *   font-family: "Futura PT";
 *   src: url("../assets/fonts/FuturaPT-Book.woff2") format("woff2");
 *   font-weight: 400;
 *   font-style: normal;
 *   font-display: swap;
 * }
 * @font-face {
 *   font-family: "Futura PT";
 *   src: url("../assets/fonts/FuturaPT-Medium.woff2") format("woff2");
 *   font-weight: 500;
 *   font-style: normal;
 *   font-display: swap;
 * }
 */

:root {
  --font-primary: "Futura PT", Futura, "Jost", "Century Gothic", sans-serif;

  /* colour */
  --c-ink: #0d3429; /* v18: calm-centre median of the updated teal-green background (v14-v17 #042d1c) */
  /* v19: median colour of the top edge of the portrait background */
  --c-edge-rgb: 22, 61, 48;
  --c-edge: rgb(var(--c-edge-rgb)); /* #163d30 */
  --c-shade: 3, 24, 18; /* v12: deeper shade of the new paper hue for vignettes / panels (v11 5,20,15) */
  /* v14: one warmer, yellower text colour for ALL type (DOM, canvas pixels, objects) - was #e9e2d3 */
  --c-paper-rgb: 248, 241, 214;
  --c-paper: rgb(var(--c-paper-rgb)); /* #f8f1d6 */
  --c-paper-dim: rgba(var(--c-paper-rgb), 0.66);
  --c-paper-faint: rgba(var(--c-paper-rgb), 0.34);
  --c-blue: #6f8793;
  --c-brown: #8a6a4f;

  /* type scale */
  --fs-title: clamp(2rem, 5.2vw, 7.4rem); /* a third of the original poster size */
  --track-title: 0.09em;
  --fs-tagline: clamp(1.6rem, 2.2vw, 2.45rem); /* v7: ~2x, light weight keeps it below the wordmark */
  --track-tagline: 0.07em;
  --fs-meta: clamp(0.66rem, 0.78vw, 0.82rem);
  --track-meta: 0.3em;
  --fs-manifesto: clamp(1.2rem, 2.3vw, 2.1rem); /* all four lines share one size */
  --manifesto-gap: 0.5em;
  --manifesto-track: 0.06em; /* v7: open letter-spacing for the pixel text (canvas + DOM agree) */
  --section-gap: clamp(2.6rem, 9vh, 6.5rem); /* v7: lines 1-3 -> coda == coda -> signup */
  --signup-gap: var(--section-gap); /* clear space between manifesto and signup */
  --fs-label: clamp(0.78rem, 0.95vw, 0.95rem);

  /* spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --gutter: max(1rem, 4vw);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
}

@media (orientation: portrait) {
  :root {
    --fs-title: clamp(1.9rem, 8.5vw, 4.4rem);
    --fs-tagline: clamp(1.2rem, 5.5vw, 1.75rem); /* ~1.75x: stays narrower than the wordmark */
    --track-tagline: 0.04em;
    --fs-meta: clamp(0.6rem, 2.5vw, 0.76rem);
    --track-meta: 0.24em;
    --fs-manifesto: clamp(1rem, 5.3vw, 1.6rem);
    --section-gap: clamp(2.4rem, 7.5vh, 4.5rem);
  }
}
