/* ==========================================================================
   zipcoin · $ZC Holder Crates
   base.css: tokens, reset, typography, layout primitives
   ========================================================================== */

:root {
  /* surfaces: built from zipcoin's #06080c night */
  --bg: #06080c;
  --bg-2: #090c11;
  --panel: #0c1017;
  --panel-2: #10151e;
  --line: #1a2029;
  --line-2: #262e3b;
  --line-3: #343e4e;

  /* text: snow on night */
  --snow: #f1eee8;
  --text: #d8d5ce;
  --muted: #9aa0aa;
  --faint: #7a808b;

  /* the fire: every trade feeds it */
  --ember-0: #3b2416;
  --ember-1: #7a3612;
  --ember-2: #c2501a;
  --ember: #ff6a1f;
  --flame: #ff9a3c;
  --glow: #ffc978;
  --white-hot: #fff2d9;

  /* cold: sealed, unresolved */
  --ice: #aebdcd;
  --ice-dim: #4a5664;

  /* tier tints (always paired with text + symbol) */
  --t-copper: #d27b47;
  --t-bronze: #c09155;
  --t-silver: #c8cdd4;
  --t-gold: #e6b84c;
  --t-platinum: #e4ecef;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--snow);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--snow);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--glow); text-decoration-color: var(--ember); }

code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .92em; }

strong { color: var(--snow); font-weight: 600; }

ul, ol { margin: 0; padding: 0; list-style: none; }

dl, dd { margin: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--ember); color: #120700; }

/* focus: always visible, never color-only */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* layout */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__lede { color: var(--muted); font-size: 1.0625rem; margin-top: 14px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--flame);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 106, 31, .18);
}

.muted { color: var(--muted); }

.fineprint {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  max-width: 760px;
}

/* accessibility helpers */
.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: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--snow);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* reveal on scroll (only when JS is on and motion allowed) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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