/* ARC Cards and Collectibles — base: tokens, reset, typography, layout */

/* Self-hosted Google Fonts (OFL): latin subset, variable weight axis trimmed to the weights the site uses */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-tight-latin.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/assets/fonts/unbounded-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); }
/* Width-matched local fallbacks, so text wraps the same before and after the web fonts swap in (no layout shift) */
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Black"), local("Arial-Black"); font-weight: 400 900; size-adjust: 114%; }
@font-face { font-family: "Unbounded Fallback Arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 400 900; size-adjust: 131%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 96%; }

:root {
  --void: #07090A;
  --obsidian: #0F1311;
  --obsidian-2: #161C19;
  --obsidian-3: #1D2420;
  --ivory: #F3EFE4;
  --ivory-dim: #B9B4A6;
  --silver: #DDE1E4;
  --gold: #DDE1E4;
  --gold-hi: #FFFFFF;
  --gold-deep: #9AA3AB;
  --gold-line: rgba(221, 225, 228, .30);
  --arc: #12A26A;
  --arc-text: #22C58B;
  --arc-glow: rgba(18, 162, 106, .45);
  --jade: #0A3B29;
  --danger: #E5675A;
  --btn-gold: #BEA05F;
  --btn-gold-hi: #D4BC82;
  --btn-gold-deep: #8F7A47;
  --btn-gold-fill: rgba(190, 160, 95, .10);
  --btn-gold-glow: rgba(190, 160, 95, .35);

  --gold-text: #5B636B;

  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Unbounded", "Unbounded Fallback", "Unbounded Fallback Arial", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter Tight", "Inter Tight Fallback", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --bar-h: 36px;
  --header-h: 68px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--arc-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2.16rem, 4.8vw, 3.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ivory-dim); max-width: 60ch; }
.muted { color: var(--ivory-dim); }
.gold { color: var(--gold); }
a.gold { text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: var(--font-mono); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--arc-text);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head > div { display: grid; gap: .75rem; max-width: 46rem; }
.section-head p { color: var(--ivory-dim); }

.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }

.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .75rem); align-items: center; }

.grid {
  display: grid;
  gap: clamp(.75rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

main { display: block; min-height: 60vh; }

/* Page hero band (interior pages) */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(221, 225, 228, .14);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(18, 162, 106, .14), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(221, 225, 228, .07), transparent 60%),
    var(--obsidian);
  overflow: hidden;
}
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero p { color: var(--ivory-dim); max-width: 60ch; }

/* Utilities */
.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: 1rem; top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Reveal on scroll (fx.js adds .reveal / .is-in) */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
