/* =====================================================================
   J1407B · Deep-Space Cinema Design Tokens
   Obsidian Void · Champagne Gold · Solar Vermilion · Telemetry Cyan
   Wide Sculptural Geometric Display + Refined Chinese Editorial Pairing
   ===================================================================== */

:root {
  --font-display: "Avenir Next", "SF Pro Display", "Futura", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Didot", "Bodoni 72", "Bodoni MT", "Baskerville", "Georgia", serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --void: #050508;
  --ink-light: #f6f1e8;
  --ink-light-dim: rgba(246, 241, 232, 0.64);
  --ink-light-muted: rgba(246, 241, 232, 0.36);
  --line-void: rgba(246, 241, 232, 0.14);

  --flame: #e83b1c;
  --flame-rgb: 232, 59, 28;
  --gold: #ffd699;
  --gold-rgb: 255, 214, 153;
  --cyan: #8ce2ff;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);

  --grain-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  background: var(--void);
  color: var(--ink-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
html::-webkit-scrollbar { display: none; }

body {
  height: 100%;
  background: var(--void);
  color: var(--ink-light);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  line-height: 1.35;
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background: var(--flame);
  color: var(--ink-light);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background-image: var(--grain-svg);
  background-repeat: repeat;
  opacity: 0.48;
}
