/* Local self-hosted SIL OFL 1.1 open-source English fonts */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
}

:root {
  /* Core dark architectural surfaces */
  --bg-canvas: #101113;
  --bg-surface: #16181c;
  --bg-surface-elevated: #1d2026;
  --bg-glass: rgba(16, 17, 19, 0.78);

  /* Ink & borders */
  --ink-primary: #f1eee8;
  --ink-secondary: #a8a39b;
  --ink-muted: #706c65;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Primary outer scene backdrop (low-brightness, clearly tinted) */
  --scene-color: #4b3a2c;
  --scene-tan: #4b3a2c;
  --scene-cyan: #2e2a25;
  --scene-red: #4d2621;
  --scene-blue: #1d3954;
  --scene-violet: #2c2440;

  /* Active inner shell backdrop (low-brightness, updated dynamically per slide/section) */
  --shell-bg: #261e18;
  --shell-glow: rgba(168, 128, 92, 0.16);
  --shell-accent: #c7a27c;

  /* Named low-brightness shell palettes */
  --shell-tan-bg: #261e18;
  --shell-tan-glow: rgba(176, 134, 96, 0.16);
  --shell-tan-accent: #c7a27c;

  --shell-cyan-bg: #181614;
  --shell-cyan-glow: rgba(207, 196, 174, 0.14);
  --shell-cyan-accent: #cfc4ae;

  --shell-red-bg: #271716;
  --shell-red-glow: rgba(182, 92, 82, 0.16);
  --shell-red-accent: #cf8278;

  --shell-blue-bg: #141f2b;
  --shell-blue-glow: rgba(102, 146, 196, 0.16);
  --shell-blue-accent: #82add9;

  --shell-violet-bg: #1a1624;
  --shell-violet-glow: rgba(150, 122, 204, 0.16);
  --shell-violet-accent: #b5a0e0;

  /* Typography (100% SIL OFL 1.1 open-source commercial-free fonts + W3C generic fallbacks) */
  --font-sans: "DM Sans", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Noto Serif SC", "Source Han Serif SC", serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.28s;
  --dur-medium: 0.65s;
  --dur-slow: 1.1s;

  /* Layout */
  --shell-pad-x: clamp(12px, 2.2vw, 34px);
  --shell-pad-y: clamp(12px, 1.8vw, 28px);
  --canvas-max: 1480px;
  --header-height: 74px;

  /* Z-index layers */
  --z-backdrop: 0;
  --z-canvas: 10;
  --z-header: 100;
  --z-drawer: 150;
  --z-cursor-glow: 900;
  --z-cursor-ring: 910;
}
