/* claudebeat landing page — system fonts, no external deps */

:root {
  --cb-bg:         #0f1117;
  --cb-surface:    #1a1d27;
  --cb-code-bg:    #12141f;
  --cb-text:       #e8eaf0;
  --cb-text-muted: #8b90a0;
  --cb-accent:     #D97706;
  --cb-accent-dim: rgba(217, 119, 6, 0.15);
  --cb-border:     rgba(255, 255, 255, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cb-bg);
  color: var(--cb-text);
  line-height: 1.6;
  padding: 2rem 1.25rem 4rem;
}

/* ── Layout container ────────────────────────────────────────────────────── */

header, main, footer {
  max-width: 720px;
  margin-inline: auto;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

header {
  padding-block: 3rem 2rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cb-text);
}

.tagline {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--cb-text-muted);
}

/* ── Hero section ────────────────────────────────────────────────────────── */

.hero {
  margin-bottom: 3rem;
}

pre {
  background-color: var(--cb-code-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

pre code {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--cb-text);
  white-space: pre;
  line-height: 1.7;
}

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cb-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.gh-link:hover {
  border-bottom-color: var(--cb-accent);
}

.gh-link:focus-visible {
  outline: 2px solid var(--cb-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Sound demos section ─────────────────────────────────────────────────── */

.demos {
  margin-bottom: 3rem;
}

.demos h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-text-muted);
  margin-bottom: 0.5rem;
}

.demos p {
  color: var(--cb-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 56ch;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.sound-grid button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cb-text);
  background-color: var(--cb-surface);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
  min-height: 48px;
}

.sound-grid button:hover {
  background-color: var(--cb-accent-dim);
  border-color: var(--cb-accent);
  color: var(--cb-accent);
}

.sound-grid button:focus-visible {
  outline: 2px solid var(--cb-accent);
  outline-offset: 3px;
}

.sound-grid button:active {
  background-color: rgba(217, 119, 6, 0.25);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--cb-border);
  padding-top: 1.5rem;
}

footer p {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
}

footer a {
  color: var(--cb-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer a:focus-visible {
  outline: 2px solid var(--cb-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Responsive: small screens ───────────────────────────────────────────── */

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  body {
    padding-block: 1.5rem 3rem;
  }
}
