/* =========================================================================
   CobWebZ — design tokens
   Soft-grey canvas, white floating surfaces and ink type in Geist, one sans
   family throughout; dusty blue + rose gold survive only as small accents.
   ========================================================================= */

/* Fonts: Geist and Geist Mono, self-hosted (SIL Open Font License, fonts/OFL.txt).
   Latin only, plus latin-ext, which the browser fetches only if a page uses its letters. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 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;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 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 Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/geist-mono-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 Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/geist-mono-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;
}

:root {
  color-scheme: light;             /* native controls (selects, scrollbars) match the theme */

  /* Colors */
  --color-canvas: #f0f1f3;
  --color-surface: #ffffff;
  --color-surface-soft: #f7f8fa;
  --color-ink: #0a0a0a;            /* headings, primary buttons */
  --color-on-ink: #ffffff;         /* text on ink-filled buttons and badges */
  --color-muted: #7d7f85;          /* second line of display headings */
  --color-body: #696b70;           /* paragraphs, footer links */
  --color-subtle: #9a9ca1;         /* captions inside illustrations */
  --color-black-hover: #262626;
  --color-line: rgba(10, 10, 10, 0.08);
  --color-line-strong: rgba(10, 10, 10, 0.16);
  --color-nav: #3f4147;            /* header links at rest */
  --color-word: #d9dce1;           /* the big footer word */
  --hero-glow: rgba(255, 255, 255, 0.8);

  --color-dusty-blue: #8fa5c6;
  --color-dusty-blue-deep: #5b78a6;
  --color-rose-gold: #d9a796;
  --color-rose-gold-deep: #b0664f;

  /* Status (illustrations and form feedback only) */
  --color-good: #4f7a61;
  --color-danger: #b4533f;

  /* Typography */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking-tight: -0.035em;

  /* Shape */
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  --shadow-soft-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -6px rgba(0, 0, 0, 0.14);
  --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 18px -6px rgba(0, 0, 0, 0.35);

  /* Layout */
  --page-max-width: 1200px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --color-canvas: #0c0d10;
  --color-surface: #16181d;
  --color-surface-soft: #1e2026;
  --color-ink: #f0f2f5;
  --color-on-ink: #0c0d10;
  --color-muted: #95989f;
  --color-body: #a2a5ac;
  --color-subtle: #6c6f76;
  --color-black-hover: #ffffff;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.18);
  --color-nav: #b4b7be;
  --color-word: #1c1f25;
  --hero-glow: rgba(255, 255, 255, 0.045);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  --shadow-soft-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -6px rgba(0, 0, 0, 0.5);
  --shadow-button: 0 1px 2px rgba(255, 255, 255, 0.15), 0 8px 18px -6px rgba(255, 255, 255, 0.2);
}
