/* Tydal's look, round 3 (2026-11-28, "much better, animations, better colours, more eye popping and unique"):
   "Moonrise", a printed space poster. The original is a planet, its moon goes around it, and every buy is a spark
   that hits the planet first.
     night   the sky: a deep cobalt night for the hero, the header, the moons and the footer
     paper   the planet's surface: the cream page under the horizon
     ink     navy, the print colour on paper
     sun     the one action and money: buy, launch, the spark (kept from the PFP's orange tile)
     cobalt  bright blue blocks: the ticker band and the closing band, never text on paper
   The mark is unchanged: the Crescent (an orange tile, a cream coin, a dark coin over it). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;

  --paper: #F5F3FF;
  --paper-2: #FFFFFF;
  --paper-3: #E9E4FF;
  --ink: #170C47;
  --ink-2: #3B2C7C;
  --muted: #6A6296;
  --night: #170C47;
  --night-2: #23165F;
  --night-3: #322183;
  --cream: #F5F3FF;
  --cream-muted: #B6ACEF;
  --sun: #6A4CFF;
  --sun-2: #7F66FF;
  --sun-deep: #4A2DD9;
  --sun-soft: rgba(106, 76, 255, 0.14);
  --cobalt: #6A4CFF;
  --cobalt-2: #8C75FF;
  --navy: #170C47;

  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  --line: rgba(23, 12, 71, 0.1);
  --line-2: rgba(23, 12, 71, 0.22);
  --accent: var(--sun);
  --on-accent: #FFFFFF;

  --good: #138A55;
  --bad: #D2361E;
  --warn: #8A5A00;

  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display-weight: 800;
  --display-tracking: -0.035em;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --border: 1px solid var(--line);
  /* a printed offset: cards carry a hard navy edge, not a blur */
  --shadow: 0 1px 0 rgba(23, 12, 71, 0.08), 0 10px 26px -14px rgba(23, 12, 71, 0.28);
  --print: 4px 4px 0 var(--navy);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  --t-fast: 140ms;
  --t: 260ms;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --top-h: 68px;
}

/* night sections: the same names, turned to sky */
.night {
  --bg: var(--night);
  --bg-2: var(--night-2);
  --surface: var(--night-2);
  --surface-2: var(--night-3);
  --ink: var(--cream);
  --ink-2: #DCD6F7;
  --muted: var(--cream-muted);
  --line: rgba(245, 243, 255, 0.1);
  --line-2: rgba(245, 243, 255, 0.24);
  --good: #6FE0A5;
  --bad: #FF8A73;
  --warn: #FFD166;
  --sun-deep: #B3A3FF;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --print: 4px 4px 0 rgba(0, 0, 0, 0.35);
  background: var(--night);
  color: var(--cream);
}
