/* ==========================================================================
   Fonts - self-hosted Sora (display) + Inter (body), no external CDN
   ========================================================================== */
@font-face { font-family:'Sora'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/sora/sora-600.woff2') format('woff2'); }
@font-face { font-family:'Sora'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/sora/sora-700.woff2') format('woff2'); }
@font-face { font-family:'Sora'; font-style:normal; font-weight:800; font-display:swap; src:url('/assets/fonts/sora/sora-800.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/inter/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/inter/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/inter/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/inter/inter-700.woff2') format('woff2'); }

/* ==========================================================================
   Design tokens - rich/dynamic: dark gradient-mesh heroes, glass cards,
   glowing red->amber->wine accent system.
   ========================================================================== */
:root {
  --ink: #1A1113;
  --paper: #FAF7F5;
  --paper-2: #F1E9E5;
  --dark: #0D0509;
  --dark-2: #180A10;

  --text-dark: #F5EDE9;
  --text-dark-2: #C9B5AE;
  --text-body-muted: #5C4F4B;

  --red: #E0342E;
  --red-hover: #B8241F;
  --wine: #7A1B3D;
  --amber: #FFB74A;

  --line: #EBDFD9;
  --line-dark: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);

  --color-primary: var(--red);
  --color-primary-hover: var(--red-hover);
  --color-text: var(--ink);
  --color-text-muted: var(--text-body-muted);
  --color-heading: var(--ink);
  --color-bg: var(--paper);
  --color-bg-alt: var(--paper-2);
  --color-border: var(--line);
  --focus-ring: 0 0 0 3px rgba(224, 52, 46, 0.35);

  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.03rem);
  --fs-lg: clamp(1.1rem, 1.03rem + 0.3vw, 1.28rem);
  --fs-h4: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  --fs-h2: clamp(2rem, 1.65rem + 1.6vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.85rem + 3vw, 4.7rem);

  /* space-1..6: fixed rem, fine-grained UI gaps that should stay predictable.
     space-7..9: fluid clamp(), large section-rhythm tokens that compress on
     small phones instead of imposing a flat desktop-sized gap everywhere. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-8: clamp(2.75rem, 2.2rem + 2.75vw, 4.5rem);
  --space-9: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 4, 8, 0.06);
  --shadow-md: 0 20px 45px -20px rgba(20, 4, 8, 0.25);
  --shadow-lg: 0 30px 80px -28px rgba(20, 4, 8, 0.45);
  --glow-red: 0 10px 34px -10px rgba(224, 52, 46, 0.65);

  --container-w: 1160px;
  --transition: 250ms cubic-bezier(.2,.7,.2,1);
  /* Overshoot/spring easing for hover lifts and press feedback - a snappier,
     more "alive" feel than the plain ease-out used for color/opacity fades. */
  --spring: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Native browser view transitions between page loads (Chrome/Edge 126+;
   silently ignored elsewhere, so this is a zero-risk progressive enhancement).
   Cross-fades the outgoing/incoming page instead of a hard cut. */
@view-transition {
  navigation: auto;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
h5 { font-size: var(--fs-lg); font-weight: 600; }
p { color: var(--color-text-muted); }
.text-muted { color: var(--color-text-muted); }
.text-lg { font-size: var(--fs-lg); }
.text-sm { font-size: var(--fs-sm); }

.grad-text {
  background: linear-gradient(100deg, var(--red) 10%, var(--amber) 55%, var(--wine) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow.on-dark { color: var(--amber); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}
