@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/BigShouldersDisplay-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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;
}

/* 夜藍とデコード typefaces, self-hosted so no runtime font provider is
 * contacted. Each file is a subset carrying only the glyphs this site
 * renders — including the decode animation's scramble pool — which keeps
 * the Japanese faces near 65KB instead of several megabytes. Licences and
 * provenance are recorded in assets/fonts/OFL.txt. */
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("assets/fonts/zen-maru-gothic-700-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("assets/fonts/zen-maru-gothic-900-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("assets/fonts/mplus-rounded-1c-500-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("assets/fonts/mplus-rounded-1c-700-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

/* 夜藍とデコード — Alpine Ink · Decode
 * Canonical (dark / 夜藍) design tokens. The 白妙 (light) and 暁 (hidden)
 * palettes override these slots from the theme layer at the end of
 * modern.css; tokens.css intentionally carries a single palette so the
 * contrast contracts in tests/quality read one unambiguous token set. */
:root {
  --color-paper: oklch(17% 0.03 253);
  --color-paper-2: oklch(21% 0.033 252);
  --color-paper-3: oklch(27% 0.035 250);
  --color-surface: oklch(24% 0.034 251);
  --color-surface-raised: oklch(31% 0.038 250);
  --color-ink: oklch(94% 0.015 95);
  --color-ink-2: oklch(83% 0.02 250);
  --color-muted: oklch(72% 0.03 250);
  --color-rule: oklch(49% 0.04 250);
  --color-accent: oklch(76% 0.13 75);
  --color-accent-2: oklch(42% 0.08 70);
  --color-accent-ink: oklch(15% 0.025 253);
  --color-on-dark: oklch(95% 0.012 95);
  --color-focus: oklch(88% 0.09 85);
  --color-ok: oklch(74% 0.107 156);
  --color-scene-hero: oklch(19% 0.032 253);
  --color-scene-about: oklch(22% 0.036 248);
  --color-scene-projects: oklch(20% 0.04 245);
  --color-scene-contact: oklch(24% 0.036 252);
  /* Contact marks share one lightness and chroma and differ only by hue, so
   * the four read as one family. Both move with the ground: a value tuned
   * for 夜藍 washes out on 白妙's near-white paper. */
  --service-lightness: 76%;
  --service-chroma: 0.1;
  --color-project-a: oklch(26% 0.042 245);
  --color-project-b: oklch(22% 0.034 251);
  --color-print-paper: oklch(100% 0 0);
  --color-print-ink: oklch(20% 0.012 250);
  --color-print-muted: oklch(42% 0.018 245);
  --color-print-rule: oklch(78% 0.012 245);
  --color-transparent: transparent;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  --font-body-ja: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --font-heading: var(--font-display);
  --font-heading-ja: var(--font-display-ja);
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;
  --space-4xl: 9rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.9531rem;
  --text-2xl: 2.4414rem;
  --text-3xl: 3.0518rem;
  --text-display: clamp(2.75rem, 7vw + 1rem, 6rem);
  --page-gutter: max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-left));
  --content-width: 80rem;
  --copy-width: 65ch;
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius-none: 0;
  --radius-sm: 0.375rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --rule-strong: 2px;
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-progress: 250;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  --shadow-hard: 0 14px 34px -16px oklch(6% 0.02 253 / 0.9);
  --shadow-float: 0 0.75rem 2.5rem oklch(8% 0.02 253 / 0.4);
  --shadow-cinematic: 0 1.5rem 5rem oklch(8% 0.02 253 / 0.5);
  --header-height: 4rem;
  --depth-project-max: 14px;
  --depth-hero-max: 5px;
  --dur-marquee: 32s;
  --parallax-distance: 5px;
  --reveal-offset: 14px;
  --reveal-stagger-step: 50ms;
  --reveal-stagger-cap: 450ms;
}

@media screen and (prefers-contrast: more) {
  :root {
    --color-ink-2: oklch(91% 0.014 95);
    --color-muted: oklch(86% 0.02 250);
    --color-rule: oklch(70% 0.035 250);
    --color-focus: oklch(97% 0.03 90);
  }
}
