:root {
  --bg: #080c14;
  --bg-card: #111827;
  --bg-soft: #162033;
  --border: rgba(148, 163, 184, 0.2);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --cyan: #38bdf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --violet: #a78bfa;
}
html[data-theme="light"] {
  --bg: #eef2f6;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --border: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #475569;
  --cyan: #0284c7;
  --emerald: #059669;
  --amber: #b45309;
  --violet: #6d28d9;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--cyan); text-decoration: none; touch-action: manipulation; }
a:hover, a:focus-visible { text-decoration: underline; }
.seo-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.seo-header { border-bottom: 1px solid var(--border); background: var(--bg-card); position: sticky; top: 0; z-index: 20; }
.seo-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; }
.seo-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); min-height: 44px; min-width: 44px; }
.seo-brand img { width: 34px; height: 34px; border-radius: 8px; }
.seo-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seo-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.seo-nav a.is-primary { background: var(--cyan); color: #080c14; border-color: transparent; font-weight: 800; }
.seo-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin: 18px 0 10px; }
.seo-crumb a { min-height: 44px; min-width: 44px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.seo-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin: 12px 0 22px; }
.seo-hero h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.2; overflow-wrap: anywhere; }
.seo-hero p { margin: 0 0 14px; color: var(--text-muted); max-width: 78ch; overflow-wrap: anywhere; }
.seo-artist-hero-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.seo-artist-portrait {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.seo-venue-photo {
  width: 220px;
  height: 144px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.seo-hero-main { flex: 1 1 280px; min-width: 0; }
.seo-meta-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}
.seo-btn.is-accent { background: var(--cyan); color: #080c14; border-color: transparent; }
.seo-search-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.seo-search-form input[type="search"] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.seo-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.seo-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.seo-stat-val { font-size: 1.35rem; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.seo-stat-lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.seo-grid, .seo-highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.seo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-card h2, .seo-card h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.seo-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); overflow-wrap: anywhere; }
.seo-card a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.seo-card-body a:not(.seo-btn) { display: inline; min-height: 0; min-width: 0; }
.seo-section-h { margin: 26px 0 10px; font-size: 1.25rem; }
.seo-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); margin-bottom: 24px; }
table.seo-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.seo-table th, .seo-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.seo-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg-soft); }
.seo-table tr:last-child td { border-bottom: none; }
.seo-table td a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.seo-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.seo-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); margin: 2px 4px 2px 0; }
.seo-badge.is-gold { border-color: rgba(251, 191, 36, 0.45); color: var(--amber); }
.seo-badge.is-emerald { border-color: rgba(52, 211, 153, 0.45); color: var(--emerald); }
.seo-pill-list, .seo-year-nav, .seo-letter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.seo-pill-list a, .seo-year-nav a, .seo-letter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.86rem;
  font-weight: 600;
}
.seo-pill-list a.is-active, .seo-year-nav a.is-active, .seo-letter-nav a.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.seo-card h3, .seo-card p, .seo-card li { overflow-wrap: anywhere; }
.seo-card-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.seo-card-body p:last-child { margin-bottom: 0; }
.seo-card li a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.seo-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82em; padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--border); overflow-wrap: anywhere; }
.seo-flow-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 14px; }
.seo-flow-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); font-size: 0.82rem; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.seo-flow-arrow { color: var(--text-muted); font-weight: 700; }
.seo-faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.seo-faq summary { cursor: pointer; font-weight: 700; min-height: 44px; min-width: 44px; display: flex; align-items: center; }
.seo-faq p { margin: 8px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.seo-faq p a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.seo-footer { border-top: 1px solid var(--border); margin-top: 38px; padding: 22px 0 34px; font-size: 0.84rem; color: var(--text-muted); }
.seo-footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.seo-footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); }
.nerd-story-mixtape-link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-radius: 5px;
  padding: 0 2px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.16s ease, background-color 0.16s ease, text-decoration-color 0.16s ease;
}
.seo-hero h1 .nerd-story-mixtape-link {
  color: var(--amber);
  font-weight: inherit;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  padding: 0 3px;
}
@media (hover: hover) {
  .nerd-story-mixtape-link:hover {
    color: #fef3c7;
    background-color: rgba(245, 158, 11, 0.16);
    text-decoration-color: #fcd34d;
  }
}
.nerd-story-mixtape-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  background-color: rgba(245, 158, 11, 0.16);
}
.nerd-story-mixtape-link:active {
  background-color: rgba(245, 158, 11, 0.24);
}
@media (pointer: coarse) {
  .nerd-story-mixtape-link {
    padding: 2px 3px;
    margin: -2px -1px;
  }
}
html[data-theme="light"] .nerd-story-mixtape-link {
  color: #b45309;
  text-decoration-color: rgba(180, 83, 9, 0.52);
}
@media (hover: hover) {
  html[data-theme="light"] .nerd-story-mixtape-link:hover {
    color: #78350f;
    background-color: rgba(217, 119, 6, 0.14);
    text-decoration-color: #92400e;
  }
}
html[data-theme="light"] .nerd-story-mixtape-link:focus-visible {
  outline-color: #b45309;
  background-color: rgba(217, 119, 6, 0.14);
}
html[data-theme="light"] .nerd-story-mixtape-link:active {
  background-color: rgba(217, 119, 6, 0.22);
}
@media (max-width: 640px) {
  .seo-hero { padding: 16px; }
  .seo-artist-portrait { width: 96px; height: 96px; }
  .seo-venue-photo { width: 100%; height: 180px; }
  .seo-table th, .seo-table td { padding: 8px 10px; font-size: 0.84rem; }
}
