/* ============================================================
   SHOWMETHEDATA.XYZ — design system
   Light paper base · pops of dark · purple + gold signature
   FINAL v1 — Outfit headlines · regular density · balanced dark ratio
   ============================================================ */

:root {
  /* paper / ink (warm, low-saturation) */
  --paper:    #ffffff;
  --paper-2:  #f4f1ea;
  --paper-3:  #ebe6da;
  --card:     #f4f1ea;
  --ink:      #1a1714;
  --ink-2:    #2c2823;
  --ink-soft: #423c34;
  --muted:    #756c5f;
  --muted-2:  #988d7d;
  --line:     rgba(26,23,20,0.12);
  --line-2:   rgba(26,23,20,0.07);

  /* signature accents (tweakable) */
  --purple:   #6a45b8;
  --purple-d: #4c2f8c;
  --gold:     #c2962b;
  --gold-soft:#e3c156;
  --accent:   var(--purple);
  --accent-2: var(--gold);
  --accent-dark: #9b78e6;         /* lightened purple, recomputed in JS from accent */
  --accent-ink: #ffffff;          /* text on accent fills */

  /* dark surface tokens (for .sec--dark) */
  --d-bg:    #16130f;
  --d-bg-2:  #211c16;
  --d-card:  #1f1a14;
  --d-ink:   #f3efe6;
  --d-muted: #bfb39c;
  --d-line:  rgba(243,239,230,0.14);

  /* type (FINAL: Outfit headlines, Sora body) */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  /* density (driven by tweak) */
  --pad: 116px;          /* vertical section padding */
  --gutter: clamp(20px, 5vw, 84px);
  --maxw: 1380px;

  --r: 14px;             /* card radius */
  --r-sm: 9px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 420;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--pad); position: relative; }
.sec--tight { padding-block: calc(var(--pad) * 0.62); }

/* density variants */
body[data-density="compact"] { --pad: 84px; font-size: 16px; }
body[data-density="comfy"]   { --pad: 150px; }

/* ---------- type scale (restrained — no oversized) ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.kicker--plain::before { display: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.h-hero { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 720; }
.h-sec  { font-size: clamp(1.6rem, 2.9vw, 2.15rem); }
.h-card { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 640; letter-spacing: -0.018em; }
.lead   { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-soft); line-height: 1.5; font-weight: 440; max-width: 44ch; text-wrap: pretty; }
.body   { color: var(--ink-soft); text-wrap: pretty; }
.muted  { color: var(--muted); }

.accent-text { color: var(--accent); }
.gold-text   { color: var(--accent-2); }

/* section header block */
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; }
.sec-head .h-sec { max-width: 18ch; }
.sec-head--split {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 28px; max-width: none;
}
@media (max-width: 760px){ .sec-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  font-family: var(--font-head);
  font-weight: 580;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); box-shadow: 0 8px 24px -12px var(--accent); }
.btn--ghost  { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .25s, color .2s;
}
.link-arrow:hover { gap: 13px; color: var(--accent); }

/* ---------- dark section theming ---------- */
.sec--dark {
  background: var(--d-bg);
  color: var(--d-ink);
  --ink: var(--d-ink);
  --ink-soft: #e0d9c8;
  --muted: var(--d-muted);
  --line: var(--d-line);
  --line-2: rgba(243,239,230,0.06);
  --card: var(--d-card);
  --paper: var(--d-bg);
  --paper-2: var(--d-bg-2);
  --accent: var(--accent-dark);   /* lightened purple for legibility on black */
}
.sec--dark .btn--ghost { --fg: var(--d-ink); }
.sec--dark .btn--ghost:hover { background: var(--d-ink); color: var(--d-bg); }

/* ---------- reveal animation ----------
   Base state is VISIBLE. Hidden-then-reveal only applies under html.anim,
   which the JS driver removes if it detects a frozen animation clock
   (the preview sandbox freezes transitions; real browsers are fine). */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal.d1 { transition-delay: .07s; }
html.anim .reveal.d2 { transition-delay: .14s; }
html.anim .reveal.d3 { transition-delay: .21s; }
html.anim .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce){
  html.anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* tiny divider tag */
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* image placeholder striping */
.ph {
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 9px, var(--paper-3) 9px 18px);
  display: grid; place-items: center;
  color: var(--muted-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em;
}
