/* KalosTCG - "Ledger" theme design tokens.
   Load before components.css and pages.css.

   The design brief called for a Google Fonts <link>. These three families
   are self-hosted instead: IBM Plex Sans/Mono already were (this repo has
   shipped them from /static/fonts since launch), and the privacy policy
   states no third-party requests run on the site - a fonts.googleapis.com
   stylesheet plus fonts.gstatic.com payloads would be two of them on every
   page. Newsreader was pulled from Google's own woff2 subsets, same latin /
   latin-ext split they serve, so the rendered result is identical.

   Newsreader is a variable font: one file covers 400-600 upright and
   400-500 italic, which is every weight the design uses. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/newsreader-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 {
  /* Card names carry accents - "Márton Stromgald", "Adéwalé", "Óin the
     Brave" are all in live inventory - so latin-ext is not optional here. */
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/newsreader-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: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/static/fonts/newsreader-italic-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: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/static/fonts/newsreader-italic-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: 'IBM Plex Sans';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('/static/fonts/plex-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/static/fonts/plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/static/fonts/plex-mono-500.woff2') format('woff2');
}

:root {
  /* Color - paper & ink */
  --k-paper: #F3EEE3;        /* page background */
  --k-paper-raised: #FBF8F1; /* panels, cards, inputs */
  --k-paper-band: #EAE3D3;   /* note boxes / bands */
  --k-ink: #1E1A14;          /* text, borders, primary buttons */
  --k-ink-soft: #3D372D;     /* body copy */
  --k-ink-muted: #5E564A;    /* meta text (passes 4.5:1 on paper) */
  --k-rule: #CFC5B0;         /* hairlines */
  --k-topbar-text: #E9E2D2;  /* text on the ink top strip */

  /* Accent - bronze. Alternates tested in the design: #8A3B2E oxblood, #2F5A57 teal, #3E4F7A navy */
  --k-accent: #7A571A;
  --k-accent-hover: #4E3810;

  /* Prism (logo burst) - desaturated, decorative only, never for text */
  --k-prism-1: #B5726B; --k-prism-2: #BC8A57; --k-prism-3: #B7A15A;
  --k-prism-4: #7C9A68; --k-prism-5: #5C918D; --k-prism-6: #5D7CA8;
  --k-prism-7: #7768A3; --k-prism-8: #9A689A; --k-prism-9: #B06A86;

  /* Type */
  --k-font-display: "Newsreader", Georgia, serif;
  --k-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --k-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --k-size-masthead-home: 84px;
  --k-size-masthead: 48px;
  --k-size-h1-hero: 80px;
  --k-size-h1: 72px;
  --k-size-h2: 52px;
  --k-size-h2-sm: 40px;
  --k-size-lead: 21px;
  --k-size-body: 16px;
  --k-size-label: 12px;
  --k-size-eyebrow: 13px;

  /* Layout */
  --k-max: 1200px;
  --k-gutter: 24px;
  --k-radius: 0;             /* the theme is square-cornered everywhere */
  --k-shadow-hard: 8px 8px 0 var(--k-ink);
  --k-shadow-hard-lg: 10px 10px 0 var(--k-ink);
  --k-tap: 44px;             /* minimum touch target */
}
