/* IDYL design system — shared tokens & primitives. Owned by lead; extend in page CSS. */
:root {
  --ink-950: #07090D;
  --ink-900: #0B0E14;
  --ink-850: #10141C;
  --ink-800: #161B25;
  --line: #1F2632;
  --line-strong: #2A3342;

  --bone: #F3EEE4;
  --bone-2: #C9C2B4;
  --mute: #7D8696;
  --faint: #4A5263;

  --gold: #F2B85B;
  --gold-2: #FFD89A;
  --gold-deep: #B8822F;
  --meadow: #7FE3A0;
  --dusk: #8E9CFF;
  --ember: #FF7A5C;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --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: 128px;

  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }

/* Type */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; }
.display em, .serif-em { font-style: italic; color: var(--gold-2); }
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 8vw, 112px); letter-spacing: -0.03em; line-height: .95; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.h3 { font-family: var(--font-ui); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--bone-2); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--mute); display: inline-flex; gap: 10px; align-items: center;
}
.eyebrow .idx { color: var(--gold); }
.muted { color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn, .btn-ghost, .btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 14.5px/1 var(--font-ui); letter-spacing: -0.005em; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn { background: var(--bone); color: var(--ink-950); }
.btn:hover { background: #fff; }
.btn-gold { background: var(--gold); color: var(--ink-950); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--bone-2); }
.btn:active, .btn-gold:active, .btn-ghost:active { transform: translateY(1px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* Surfaces */
.card { background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hairline { border-top: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--meadow); box-shadow: 0 0 0 3px rgba(127,227,160,.15); }
.dot.off { background: var(--faint); box-shadow: none; }
.dot.warn { background: var(--gold); box-shadow: 0 0 0 3px rgba(242,184,91,.15); }

/* Status tags */
.tag { font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--bone-2); }
.tag.beta { color: var(--meadow); border-color: rgba(127,227,160,.35); }
.tag.devnet { color: var(--dusk); border-color: rgba(142,156,255,.35); }
.tag.roadmap { color: var(--gold); border-color: rgba(242,184,91,.35); }

/* Brand mark (inline usage) */
.mark { width: 28px; height: 28px; color: var(--bone); }
.wordmark { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.01em; line-height: 1; }

/* Code */
pre, code { font-family: var(--font-mono); font-size: 13px; }
pre { background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); overflow: auto; color: var(--bone-2); line-height: 1.6; }

/* Motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.disclaimer { font-size: 12.5px; color: var(--mute); line-height: 1.6; }
