/* ===================================================================
   BPM landing pages styling — minimal, matches the metronome aesthetic.
   =================================================================== */

:root {
  /* Tomato Hero light — matches the metronome page chrome */
  --bg-1: #faf6f1;
  --bg-2: #f3eee5;
  --card: #ffffff;
  --surface-2: #faf6ed;
  --border: #e8dfcc;
  --border-soft: #f0e9da;
  --text: #1f1a14;
  --text-2: #5c5547;
  --text-dim: #8a8275;
  --text-faint: #b5ac9b;
  --accent: #e85f4d;
  --accent-2: #d44a39;
  --accent-glow: rgba(232, 95, 77, 0.30);
  --red: #d63a2e;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 235, 220, 0.55) 0%, transparent 70%),
    var(--bg-1);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(16px, 4vw, 32px) 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 12px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.topbar-nav {
  display: flex;
  gap: 16px;
}
.nav-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.nav-link:hover { color: var(--accent); }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 32px 16px 36px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.06);
}
.hero-eyebrow {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 18px;
  text-shadow: none;
}
.hero-title {
  font-family: 'Menlo', 'Consolas', monospace;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 12px;
}
.hero-bpm {
  font-size: clamp(72px, 18vw, 120px);
  color: var(--accent-2);
  text-shadow:
    0 0 16px rgba(232, 95, 77, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.5);
}
.hero-unit {
  display: inline-block;
  font-size: clamp(20px, 5vw, 28px);
  color: var(--accent);
  margin-left: 8px;
  opacity: 0.85;
  vertical-align: super;
}
.hero-sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 3.5vw, 16px);
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, #ff6b5e 0%, var(--red) 50%, #5a1208 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow:
    0 8px 18px rgba(214, 58, 46, 0.45),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(214, 58, 46, 0.55),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}
.hero-cta:active { transform: translateY(0); }

/* ============ Info section ============ */
.info { margin-bottom: 40px; }
.info h2 {
  font-family: Georgia, serif;
  color: var(--text);
  font-size: clamp(20px, 4.5vw, 24px);
  margin: 28px 0 12px;
  letter-spacing: 0.3px;
}
.info p, .info li {
  font-size: clamp(14px, 3.5vw, 15px);
  line-height: 1.75;
  color: var(--text-2);
  opacity: 1;
}
.info ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
.info ol li { margin-bottom: 8px; }
.info strong { color: var(--accent); font-weight: 600; }

/* ============ Related BPMs grid ============ */
.related h2 {
  font-family: Georgia, serif;
  color: var(--text);
  font-size: clamp(18px, 4vw, 22px);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.bpm-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.bpm-grid li {
  margin: 0;
}
.bpm-grid a {
  display: block;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
}
.bpm-grid a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 95, 77, 0.10);
}
.bpm-grid strong {
  color: var(--accent);
  font-family: 'Menlo', monospace;
  letter-spacing: 0.5px;
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 56px;
  padding: 24px 12px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .sub {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
