/* @wonmor/tokens 0.1.0 - design tokens used by wonmor.io.
   Components should use the semantic --theme-* tokens, never raw hex.
   The Wonmor brand colours (--wm-*) are for the logo only.

   Fonts are NOT included in this package. The @font-face rules below expect the font files in
   ../fonts/ relative to this file, with the names listed in the README. All four families are
   open fonts under the SIL Open Font License 1.1: Hanken Grotesk and Onest (Wm Sans),
   Source Serif 4 (Wm Serif), JetBrains Mono (Wm Mono). Without the files, the font stacks fall
   back to system fonts. */


@font-face { font-family: 'Wm Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/sans-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: 'Wm Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Wm Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wm Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

@font-face { font-family: 'Wm Serif'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/serif-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: 'Wm Serif'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/serif-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Wm Serif'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/serif-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wm Serif'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/serif-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F; }

@font-face { font-family: 'Wm Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(../fonts/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+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Wm Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(../fonts/mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --sans: 'Wm Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Wm Serif', Georgia, 'Times New Roman', serif;
  --mono: 'Wm Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gray-000: #ffffff; --gray-050: #faf9f5; --gray-100: #f5f4ed; --gray-150: #f0eee6; --gray-200: #e8e6dc;
  --gray-250: #dedcd1; --gray-300: #d1cfc5; --gray-350: #c2c0b6; --gray-400: #b0aea5; --gray-450: #9c9a92;
  --gray-500: #87867f; --gray-550: #73726c; --gray-600: #5e5d59; --gray-650: #4d4c48; --gray-700: #3d3d3a;
  --gray-750: #30302e; --gray-800: #262624; --gray-850: #1f1e1d; --gray-900: #1a1918; --gray-950: #141413;

  /* illustration palette (collages only, never UI chrome) */
  --ill-oat: #e3dacc; --ill-olive: #788c5d; --ill-cactus: #bcd1ca; --ill-sky: #6a9bcc; --ill-heather: #cbcadb;
  --ill-coral: #ebcece; --ill-gold: #c9a45c; --ill-lapis: #3e5f9a; --ill-clay: #c47a55;

  /* Wonmor brand (logo only) */
  --wm-blue: #2969FF; --wm-ink: #090A1E;
  --wm-mark: var(--wm-blue); --wm-text: var(--wm-ink);

  --theme-background-primary: var(--gray-050);
  --theme-background-secondary: var(--gray-100);
  --theme-background-tertiary: var(--gray-200);
  --theme-background-quaternary: var(--gray-300);
  --theme-foreground-primary: var(--gray-950);
  --theme-foreground-secondary: var(--gray-750);
  --theme-foreground-tertiary: var(--gray-600);
  --theme-foreground-quaternary: var(--gray-500);
  --theme-border-primary: var(--gray-350);
  --theme-border-secondary: var(--gray-250);
  --theme-border-tertiary: var(--gray-150);
  --theme-button-primary-background: var(--gray-950);
  --theme-button-primary-foreground: var(--gray-050);
  --theme-button-primary-border: var(--gray-950);
  --theme-button-secondary-background: var(--gray-200);
  --theme-button-secondary-foreground: var(--gray-750);
  --theme-button-secondary-border: var(--gray-250);
  --theme-button-tertiary-background: var(--gray-100);
  --theme-button-tertiary-foreground: var(--gray-700);
  --theme-button-tertiary-border: var(--gray-200);
  --theme-popup-background: var(--gray-000);
  --theme-focus-ring: #154c92;

  --grid-max-width: 1920px;
  --grid-columns: 4; --grid-margin: 32px; --grid-gutter: 16px;
  --page-top-spacer: 48px;
  --section-spacer-sm: 32px; --section-spacer-lg: 64px;
  --header-nav-height: 84px;
  --reading-width: 660px;
  --radius-media: 4px; --radius-card: 16px;

  /* fluid type: clamp(value at 390px → value at 1920px) */
  --fs-headline-1: clamp(48px, calc(48px + 32 * ((100vw - 390px) / 1530)), 80px);
  --fs-headline-2: clamp(40px, calc(40px + 31 * ((100vw - 390px) / 1530)), 71px);
  --fs-display: clamp(32px, calc(32px + 29 * ((100vw - 390px) / 1530)), 61px);
  --fs-subheadline-1: clamp(30px, calc(30px + 18 * ((100vw - 390px) / 1530)), 48px);
  --fs-manifest: clamp(25px, calc(25px + 23 * ((100vw - 390px) / 1530)), 48px);
  --fs-subheadline-2: clamp(25px, calc(25px + 11 * ((100vw - 390px) / 1530)), 36px);
  --fs-subheadline-3: clamp(22px, calc(22px + 6 * ((100vw - 390px) / 1530)), 28px);
  --fs-headline-5: clamp(19px, calc(19px + 6 * ((100vw - 390px) / 1530)), 25px);
  --fs-body-1: clamp(20px, calc(20px + 2 * ((100vw - 390px) / 1530)), 22px);
  --fs-body-2: clamp(18px, calc(18px + 2 * ((100vw - 390px) / 1530)), 20px);
  --fs-body-3: clamp(16px, calc(16px + 1 * ((100vw - 390px) / 1530)), 17px);
  --fs-body-4: clamp(14px, calc(14px + 1 * ((100vw - 390px) / 1530)), 15px);
  --fs-caption-1: 13px;
  --fs-caption-2: 11px;

  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);
  --ease-rise: cubic-bezier(.16, 1, .3, 1);
  --ease-opacity: cubic-bezier(.2, .7, .1, 1);
  --ease-scrim: cubic-bezier(.33, 1, .68, 1);
  --ease-swap: cubic-bezier(.25, 1, .5, 1);
  --ease-icon: cubic-bezier(.2, .8, .2, 1);
  --ease-panel: cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 768px) {
  :root { --grid-columns: 12; --grid-margin: 48px; --page-top-spacer: 64px; --section-spacer-sm: 40px; --section-spacer-lg: 80px; }
}
@media (min-width: 1280px) {
  :root { --grid-margin: 80px; --page-top-spacer: 80px; --section-spacer-sm: 48px; --section-spacer-lg: 96px; }
}

.theme-ivory-medium {
  --theme-background-primary: var(--gray-150);
  --theme-foreground-secondary: var(--gray-700);
  --theme-border-primary: var(--gray-300);
}
.theme-slate {
  --theme-background-primary: var(--gray-950);
  --theme-background-secondary: var(--gray-850);
  --theme-background-tertiary: var(--gray-800);
  --theme-foreground-primary: var(--gray-050);
  --theme-foreground-secondary: var(--gray-400);
  --theme-foreground-tertiary: var(--gray-500);
  --theme-foreground-quaternary: var(--gray-650);
  --theme-border-primary: var(--gray-700);
  --theme-border-secondary: var(--gray-750);
  --theme-button-primary-background: var(--gray-050);
  --theme-button-primary-foreground: var(--gray-950);
  --theme-button-primary-border: var(--gray-050);
  --theme-button-secondary-background: var(--gray-750);
  --theme-button-secondary-foreground: var(--gray-050);
  --theme-button-secondary-border: var(--gray-700);
  --theme-button-tertiary-background: var(--gray-850);
  --theme-button-tertiary-foreground: var(--gray-300);
  --theme-button-tertiary-border: var(--gray-750);
  --theme-popup-background: var(--gray-850);
  --theme-focus-ring: #8fb4ec;
  --wm-text: #ffffff;
}
