/* Ticket Tape — design tokens. Three palette presets + light/dark + density. */

:root {
  /* Type */
  --font-display: "Fraunces", "EB Garamond", ui-serif, Georgia, serif;
  --font-body: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* THEME: dark (default) */
[data-theme="dark"] {
  --bg: #0c0d10;
  --surface: #16181d;
  --surface-2: #1f2128;
  --line: #25282f;
  --line-strong: #383b44;
  --ink: #f4f3ee;
  --ink-2: #b8b6ad;
  --ink-3: #7c7a73;
}

[data-theme="light"] {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efece5;
  --line: #e3dfd6;
  --line-strong: #c8c2b5;
  --ink: #14151a;
  --ink-2: #4a4d57;
  --ink-3: #8a8b91;
}

/* PALETTES */
[data-palette="sunset"] {
  --primary: #ff5722;
  --accent: #ffd23f;
  --ink-on-primary: #fff;
}
[data-palette="electric"] {
  --primary: #6366f1;
  --accent: #22d3ee;
  --ink-on-primary: #fff;
}
[data-palette="acid"] {
  --primary: #c0fc54;
  --accent: #ff4592;
  --ink-on-primary: #0c0d10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button { background: none; border: 0; cursor: pointer; color: inherit; font-family: inherit; }
img { display: block; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.t-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
.t-mono { font-family: var(--font-mono); }
.t-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: all var(--dur) var(--ease); white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--ink-on-primary); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur); }
.icon-btn:hover { background: rgba(0,0,0,0.6); }

.ico { width: 18px; height: 18px; stroke-width: 1.6; stroke: currentColor; fill: none; flex-shrink: 0; }
.ico-sm { width: 14px; height: 14px; stroke-width: 1.7; stroke: currentColor; fill: none; flex-shrink: 0; }
.ico-lg { width: 24px; height: 24px; stroke-width: 1.5; stroke: currentColor; fill: none; flex-shrink: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
