/* Fonts served from our own server (no visitor IP sent to Google). Variable files from Google Fonts, SIL Open Font License. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Phéroïa design tokens: "Nuit dorée" (night) + warm day mode.
   Theme is picked from the visitor's local hour by shared/theme.js (data-theme on <html>). */
:root,
:root[data-theme="night"] {
  --indigo: #1b1638;
  --indigo-2: #2a2452;
  --indigo-3: #3a3268;
  --amber: #ff9f2e;
  --amber-deep: #e8861c;
  --gold: #ffcf6b;
  --glass: #7fe3ff;
  --cream: #f6efe4;
  --terracotta: #c9673f;

  --bg: var(--indigo);
  --bg-raised: var(--indigo-2);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6efe4;
  --text-soft: rgba(246, 239, 228, 0.72);
  --accent: var(--amber);
  --accent-ink: #1b1638;
  --link: var(--glass);

  --font-title: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --max: 1160px;
  color-scheme: dark;
}

:root[data-theme="day"] {
  --bg: #f6efe4;
  --bg-raised: #fffaf2;
  --line: rgba(27, 22, 56, 0.12);
  --text: #1b1638;
  --text-soft: rgba(27, 22, 56, 0.7);
  --accent: #e8861c;
  --accent-ink: #fffaf2;
  --link: #a8461f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.6s, color 0.6s;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.4em; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--glass); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
