/* ==========================================================================
   Neo Production House — reset.css
   Global reset, box model, and the single source of truth for design tokens.
   Every color, font, radius, and easing curve used across the site is
   declared once here as a custom property. Nothing is hardcoded elsewhere.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
  /* ---------- Color: warm-black / cream / old-gold axis only ---------- */
  --bg: #0a0805;
  --bg-soft: #100c08;
  --surface: rgba(20, 15, 10, 0.55);
  --surface-strong: rgba(20, 15, 10, 0.8);
  --surface-border: rgba(201, 169, 97, 0.18);

  --cream: #f4ead5;
  --cream-70: rgba(244, 234, 213, 0.7);
  /* 0.55 alpha (not 0.45) is intentional: it's the minimum that still clears
     4.5:1 contrast against --bg for the small mono labels this token is used
     on (stat labels, footer links, meta text) — verified against WCAG AA. */
  --cream-45: rgba(244, 234, 213, 0.55);

  --gold: #c9a961;
  --gold-light: #e8d098;
  --gold-dim: rgba(201, 169, 97, 0.5);
  --gold-border: rgba(201, 169, 97, 0.25);
  --gold-glow: rgba(201, 169, 97, 0.18);
  --gold-tint: rgba(201, 169, 97, 0.06);
  --gold-tint-strong: rgba(201, 169, 97, 0.09);
  --gold-shadow-off: rgba(201, 169, 97, 0);
  --gold-shadow-on: rgba(201, 169, 97, 0.35);

  --nav-bg: rgba(10, 8, 5, 0.55);
  --footer-bg: rgba(10, 8, 5, 0.65);
  --vignette-edge: rgba(10, 8, 5, 0.55);
  --hero-scrim: rgba(10, 8, 5, 0.78);
  --hero-scrim-soft: rgba(10, 8, 5, 0.35);

  --panel-1: #171009;
  --panel-2: #0d0a06;

  /* Functional color — reserved exclusively for form error states. Kept in
     the warm family (a muted rust, not a saturated red) so it reads as
     "on-brand" while still being visually distinct from gold. */
  --danger: #d98a6f;
  --danger-border: rgba(217, 138, 111, 0.4);

  /* ---------- Type ---------- */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  /* ---------- Shape / depth ---------- */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow-glow: 0 0 40px var(--gold-glow);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
  --blur: blur(14px);

  /* ---------- Layout ---------- */
  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-height: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

input {
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

em {
  color: var(--gold);
  font-style: italic;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-strong);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::placeholder {
  color: var(--cream-45);
}

/* ---------- Accessibility utility ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 999;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
