/* Velora — Private Screening Room & Film Cutting Table Design System
 * 100% Self-Hosted Fonts (Newsreader + Public Sans + IBM Plex Mono) + Themed Browser Surfaces
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
  --stage: #0D0D0C;
  --stage-elev: #151413;
  --stage-rail: #1E1C1A;
  --stage-line: rgba(248, 248, 246, 0.12);
  --stage-line-hi: rgba(248, 248, 246, 0.24);
  --ivory: #F8F8F6;
  --stone: #C4C1BA;

  --paper: #F5F5F7;
  --paper-well: #EBECEF;
  --paper-white: #FFFFFF;
  --paper-line: rgba(17, 17, 16, 0.11);
  --paper-line-hi: rgba(17, 17, 16, 0.22);
  --ink: #111110;
  --umber: #474745;

  /* Deep Cinema Vermilion — WCAG AA 5.8:1 contrast with #FFFFFF */
  --action: #B83510;
  --action-top: #C93E17;
  --action-hover: #9C2B0C;
  --action-soft: rgba(184, 53, 16, 0.12);
  --sage: #166534;
  --sage-soft: rgba(22, 101, 52, 0.14);
  --crimson: #B91C1C;
  --crimson-soft: rgba(185, 28, 28, 0.12);
  --brass: #B45309;
  --brass-soft: rgba(180, 83, 9, 0.14);

  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
  caret-color: var(--action);
  text-underline-offset: 0.2em;
}

::selection {
  background: var(--action);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 146, 0.36); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(184, 53, 16, 0.72); border: 2px solid transparent; background-clip: content-box; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #C93E17 0%, #B83510 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo), filter 180ms ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.26) inset, 0 14px 28px rgba(0, 0, 0, 0.36);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(248, 248, 246, 0.06);
  color: var(--ivory);
  border: 1px solid var(--stage-line-hi);
  border-radius: 10px;
  padding: 11px 18px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.btn-ghost-dark:hover { background: rgba(248, 248, 246, 0.13); border-color: rgba(248, 248, 246, 0.4); }

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper-white);
  color: var(--ink);
  border: 1px solid var(--paper-line-hi);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.btn-ghost-light:hover { background: var(--paper-well); border-color: rgba(17, 17, 16, 0.36); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
