/* ─── Synful: tokens, reset, type ────────────────────────────── */

@font-face {
  font-family: "Deadly Killers";
  src: url("../fonts/deadly-killers.woff2") format("woff2"),
       url("../fonts/deadly-killers.woff")  format("woff");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

:root {
  /* palette */
  --color-bg:         #050505;
  --color-bg-alt:     #0d0d0d;
  --color-bg-elev:    #131313;
  --color-fg:         #f4f4f4;
  --color-muted:      #8a8a8a;
  --color-line:       rgba(255, 255, 255, 0.08);
  --color-line-hi:    rgba(0, 229, 255, 0.45);
  --color-accent:     #00e5ff;
  --color-accent-dim: #00b8cc;

  /* type */
  --font-display: "Deadly Killers", "Impact", "Anton", sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* scale */
  --space-2xs: .25rem;
  --space-xs:  .5rem;
  --space-s:   1rem;
  --space-m:   2rem;
  --space-l:   4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --radius:     2px;
  --radius-lg:  6px;
  --max-w:      1280px;

  --easing:     cubic-bezier(.2, .8, .2, 1);
  --t-fast:     150ms;
  --t-med:      300ms;
  --t-slow:     600ms;

  /* z-index */
  --z-nav:      100;
  --z-overlay: 1000;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* base */
html, body { background: var(--color-bg); color: var(--color-fg); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — generated inline via SVG turbulence, no extra asset request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 240px 240px;
  opacity: .07;
  mix-blend-mode: overlay;
  z-index: 9999;
}

/* subtle vignette behind the grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(0,0,0,.7) 100%);
  z-index: 9998;
}

/* typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
h2 { font-size: clamp(2rem,   1.4rem + 3vw, 4rem); }
h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }

.display {
  font-weight: 300;
  text-transform: none;
  display: inline-block;
}
.display .accent {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 400;
  letter-spacing: .02em;
  display: inline-block;
  text-shadow: 0 0 28px rgba(0, 229, 255, .25);
}

a { transition: color var(--t-fast) var(--easing); }
a:hover { color: var(--color-accent); }

p { max-width: 65ch; }

/* utility */
.muted   { color: var(--color-muted); }
.center  { text-align: center; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #000;
  padding: .5rem 1rem;
  font-weight: 700;
  z-index: var(--z-overlay);
}
.skip-link:focus { left: 0; }

::selection { background: var(--color-accent); color: #000; }

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