/**
 * TrackRecord — shared design system.
 * Matches syntaxweave.com tokens, themed for music/personality.
 * No frameworks. No gradients on backgrounds. Sharp edges.
 */

:root {
  --bg: #0a0a0c;
  --surface: #131316;
  --text: #e8e8ec;
  --text-dim: #8a8a92;
  --text-faint: #555560;
  --accent: #d4a574;
  --border: rgba(255, 255, 255, 0.07);
  --max: 1100px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
}

/* Canvas sits behind everything */
#weave {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* All content above the canvas */
.page, .nav, main, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */

.headline { font-family: 'Fraunces', ui-serif, Georgia, serif; font-weight: 300; margin: 0; }
.headline .line {
  display: block;
  position: relative;
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.headline .line .ghost {
  visibility: hidden;
  display: block;
  font: inherit;
  color: inherit;
}
.headline .line .scramble {
  position: absolute;
  inset: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.headline .line.app-name {
  color: var(--accent);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
}
.headline .line.italic {
  font-style: italic;
  color: var(--text-dim);
}

h2 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 1rem;
}

.tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand::before { content: "♪ "; color: var(--accent); }
.nav nav { display: flex; gap: 1.5rem; }
.nav nav a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav nav a:hover { color: var(--accent); }

/* ---------- Buttons (sharp edges, no rounding) ---------- */

.btn {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
  border-radius: 0;
  letter-spacing: 0.02em;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--text-dim); color: var(--text); }

/* ---------- Surfaces ---------- */

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 0;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
