/* ============================================
   NX CENTURY — BASE
   Pure Cinema + Harbor hybrid foundation
   ============================================ */

:root {
  /* color */
  --bg: #050505;
  --bg-soft: #0c0c0c;
  --surface: #111111;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.22);
  --fg: #f5f5f3;
  --fg-mute: rgba(245,245,243,0.62);
  --fg-dim:  rgba(245,245,243,0.40);
  --accent: #ff2a2a;
  --accent-soft: #d11414;

  /* type */
  --font-display: "Editorial New", "PP Editorial New", "Tiempos Headline", "Times New Roman", serif;
  --font-sans: "Neue Haas Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* scale (clamped) */
  --t-xs:   clamp(11px, 0.72vw, 12px);
  --t-sm:   clamp(13px, 0.85vw, 14px);
  --t-base: clamp(15px, 1.05vw, 17px);
  --t-md:   clamp(18px, 1.4vw, 22px);
  --t-lg:   clamp(28px, 3vw, 40px);
  --t-xl:   clamp(48px, 6vw, 84px);
  --t-mega: clamp(80px, 14vw, 240px);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 144px; --s-11: 192px;

  /* misc */
  --radius: 2px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 280ms;
  --dur-2: 600ms;
  --dur-3: 1100ms;

  /* layout */
  --gutter: clamp(20px, 3vw, 48px);
  --max:   1680px;
}

/* harbor (editorial) variant overrides */
.theme-harbor {
  --bg: #ece8e1;
  --bg-soft: #e2ddd3;
  --surface: #ffffff;
  --line: rgba(0,0,0,0.14);
  --line-strong: rgba(0,0,0,0.30);
  --fg: #0d0d0d;
  --fg-mute: rgba(13,13,13,0.62);
  --fg-dim: rgba(13,13,13,0.38);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, video, svg { display: block; max-width: 100%; }
video { background: #000; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

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

/* type primitives */
h1,h2,h3,h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-size: var(--t-xl); line-height: 0.95; }
h2 { font-family: var(--font-display); font-size: var(--t-lg); line-height: 1.05; }
h3 { font-family: var(--font-sans);   font-size: var(--t-md); line-height: 1.2; font-weight: 500; }
p  { margin: 0 0 1em; max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* fonts (Fontshare) */
@import url("https://api.fontshare.com/v2/css?f[]=editorial-new@400,500&f[]=neue-haas-grotesk-display-pro@400,500,600&f[]=jetbrains-mono@400,500&display=swap");

/* hide scrollbar (preserve scroll) */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.uppercase { text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
.disp { font-family: var(--font-display); }
.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; }

/* media-query hooks */
@media (max-width: 768px) {
  :root { --gutter: 18px; }
}
