/* ─────────────────────────────────────────
   Tokens — Default (dark-first; all themes
   stay dark — it's a design decision)
───────────────────────────────────────── */

:root {
  --color-bg:           #0f0d0d;
  --color-surface:      #181414;
  --color-border:       #2a2020;
  --color-text:         #e8e2dc;
  --color-text-muted:   #6b6060;
  --color-accent:       #8b1a1a;
  --color-highlight:    #1f1515;

  --font-serif:         'Playfair Display', Georgia, serif;
  --font-mono:          'Fira Mono', 'Courier New', monospace;
  --font-size-base:     13px;
  --font-size-sm:       11px;
  --line-height:        1.75;
  --letter-tight:       -0.02em;
  --letter-wide:        0.12em;

  --measure:            62ch;
  --padding-x:          1.5rem;

  --space-xs:           0.5rem;
  --space-sm:           1rem;
  --space-md:           1.75rem;
  --space-lg:           3rem;
  --space-xl:           5rem;
  --space-xxl:          8rem;

  --progress-height:    2px;
}

/* ─────────────────────────────────────────
   Tokens — Dark (cooler near-black)
───────────────────────────────────────── */

[data-theme="dark"] {
  --color-bg:           #0a0a0a;
  --color-surface:      #121212;
  --color-border:       #222222;
  --color-text:         #ede7e0;
  --color-text-muted:   #635858;
  --color-accent:       #8b1a1a;
  --color-highlight:    #161010;
}

/* ─────────────────────────────────────────
   Tokens — Light (true white, ultra-modern)
───────────────────────────────────────── */

[data-theme="light"] {
  --color-bg:           #ffffff;
  --color-surface:      #f9fafb;
  --color-border:       #e5e7eb;
  --color-text:         #111111;
  --color-text-muted:   #6b7280;
  --color-accent:       #b91c1c;
  --color-highlight:    #fef2f2;

  /* Modern type stack for light mode */
  --font-serif:         'Fraunces', Georgia, serif;
  --font-mono:          'Inter', system-ui, sans-serif;
  --letter-wide:        0.07em;
}

/* ASCII art is too faint at default opacity on white */
[data-theme="light"] .ascii-art {
  opacity: 0.7;
}

/* Progress bar stays accent red */
[data-theme="light"] .progress-bar {
  background: var(--color-accent);
}

/* ─────────────────────────────────────────
   Tokens — Amber (warm dark, golden accent)
───────────────────────────────────────── */

[data-theme="amber"] {
  --color-bg:           #1c1509;
  --color-surface:      #261c0c;
  --color-border:       #3d2e14;
  --color-text:         #f0dfc0;
  --color-text-muted:   #a08850;
  --color-accent:       #f5b942;
  --color-highlight:    #2e2008;
}

/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */

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

/* ─────────────────────────────────────────
   Base
───────────────────────────────────────── */

html {
  font-size: var(--font-size-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  font-family: var(--font-mono);
  line-height: var(--line-height);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   Progress Bar
───────────────────────────────────────── */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--progress-height);
  width: 0%;
  background-color: var(--color-accent);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   Page Shell
───────────────────────────────────────── */

.article-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 4rem; /* clear fixed footer */
}

/* ─────────────────────────────────────────
   Nav
───────────────────────────────────────── */

.article-nav {
  padding-block: var(--space-md);
  padding-inline: var(--padding-x);
  max-width: var(--measure);
  margin-inline: auto;
  width: 100%;
}

.back-link {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   Article Container
───────────────────────────────────────── */

.article-container {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--padding-x);
  padding-block-end: var(--space-xxl);
  width: 100%;
}

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

.article-header {
  padding-block-start: var(--space-xl);
  padding-block-end: var(--space-lg);
}

.article-kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  color: var(--color-accent);
  margin-block-end: var(--space-sm);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-block-end: var(--space-md);
}

.article-subtitle {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-block-end: var(--space-sm);
}

.article-byline {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   Divider
───────────────────────────────────────── */

.divider {
  border: none;
  border-block-start: 1px solid var(--color-border);
  margin-block: 0;
}

/* ─────────────────────────────────────────
   Chapter
───────────────────────────────────────── */

.chapter {
  padding-block: var(--space-xl) var(--space-lg);
}

.chapter-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  margin-block-end: var(--space-xs);
}

.chapter-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-block-end: var(--space-xs);
  line-height: 1.1;
}

.chapter-year {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  letter-spacing: var(--letter-wide);
  margin-block-end: var(--space-md);
}

.chapter-body p {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text-muted);
}

.chapter-body p + p {
  margin-block-start: var(--space-sm);
}

.chapter-body em {
  font-style: italic;
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   Pull Quote
───────────────────────────────────────── */

.pull-quote {
  padding-block: var(--space-md);
  padding-inline: var(--space-lg);
  border-left: 2px solid var(--color-accent);
  margin-inline: 0;
  margin-block: var(--space-lg);
}

.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   Guitar Techniques Legend
───────────────────────────────────────── */

.tech-legend {
  margin: var(--space-xl) 0;
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  border-radius: 2px;
}

.tech-legend-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tech-card {
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
}

.tech-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tech-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.tech-play {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  cursor: pointer;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--font-mono);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.tech-play:hover,
.tech-play.tech-play--active {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.tech-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.art-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.art-thumb-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 90px;
}

.art-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
}

.art-thumb-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-muted);
  opacity: 0.6;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.art-card-body {
  flex: 1;
  min-width: 0;
}

.theme-bands {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  opacity: 0.75;
  margin: 6px 0 0;
  letter-spacing: 0.05em;
}

.tech-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-top: var(--space-md);
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0.05em;
}


/* ─────────────────────────────────────────
   Album / ASCII Block
───────────────────────────────────────── */

.album-block {
  padding-block: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ascii-art {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  color: var(--color-text-muted);
  overflow-x: auto;
  white-space: pre;
  opacity: 0.55;
  tab-size: 4;
}

.album-caption {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

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

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-block-start: 1px solid var(--color-border);
  padding-block: var(--space-sm);
  padding-inline: var(--space-md);
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 100;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  max-width: 90rem;
  margin-inline: auto;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-copy:hover {
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   Theme toggle
───────────────────────────────────────── */

.theme-toggle {
  display: flex;
  gap: var(--space-sm);
}

.theme-toggle button {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.theme-toggle button:hover {
  color: var(--color-text);
}

.theme-toggle button[data-active="true"] {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────────
   Timeline
───────────────────────────────────────── */

.timeline-section {
  padding-block: var(--space-xl);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 3.5ch 20px 1fr;
  column-gap: 1.25rem;
  padding-block-end: var(--space-md);
}

.timeline-item:last-child {
  padding-block-end: 0;
}

/* Year */
.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-tight);
  padding-top: 1px;
  text-align: right;
  white-space: nowrap;
  line-height: 1;
}

/* Marker column — dot + connecting line */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-muted);
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-dot--accent {
  background: var(--color-accent);
}

.timeline-dot--dim {
  background: var(--color-border);
}

.timeline-item:not(:last-child) .timeline-marker::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--color-border);
  margin-top: 6px;
  min-height: var(--space-md);
}

/* Content */
.timeline-content {
  padding-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.4;
  margin-block-end: 0.3rem;
}

.timeline-title em {
  font-style: italic;
  color: var(--color-text);
}

.timeline-desc {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   Spotify Embed
───────────────────────────────────────── */

/* ─────────────────────────────────────────
   Metronome
───────────────────────────────────────── */

.metronome {
  margin-block: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.metro-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.metro-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  position: relative;
  transition: border-color 0.2s;
}

.metro-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  transform: scale(0.4);
}

.metro-pulse::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  opacity: 0;
}

.metro-pulse.beat::before {
  animation: metro-flash 0.22s ease-out forwards;
}

.metro-pulse.beat::after {
  animation: metro-ring 0.5s ease-out forwards;
}

.is-playing .metro-pulse {
  border-color: var(--color-accent);
}

@keyframes metro-flash {
  0%   { opacity: 0.95; transform: scale(0.4); }
  25%  { opacity: 0.7;  transform: scale(1); }
  100% { opacity: 0;    transform: scale(1); }
}

@keyframes metro-ring {
  0%   { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.7); }
}

.metro-info {
  text-align: center;
}

.metro-bpm-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--color-text);
  line-height: 1;
}

.metro-style-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.metro-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.metro-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  transition: border-color 0.15s, color 0.15s;
}

.metro-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.metro-btn--active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.metro-btn-bpm {
  font-size: 14px;
  font-weight: bold;
}

.metro-btn-style {
  font-size: 8px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metro-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.metro-legend {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.metro-legend-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.metro-legend dt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.metro-legend dd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   Tuning Legend
───────────────────────────────────────── */

.tun-legend {
  margin-block: var(--space-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.tun-legend-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.tun-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.tun-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.tun-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.tun-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.tun-ref {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.tun-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tun-strings {
  display: flex;
  gap: 4px;
}

.tun-str {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  width: 32px;
  height: 28px;
  cursor: pointer;
  transition: border-color 0.1s, color 0.1s, background 0.1s;
  padding: 0;
  letter-spacing: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tun-str:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.tun-str--struck {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  animation: tun-flash 0.6s ease-out forwards;
}

@keyframes tun-flash {
  0%   { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
  100% { background: transparent; }
}

.tun-strum {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 4px 8px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tun-strum:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tun-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-top: var(--space-md);
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .tun-meta {
    min-width: 90px;
  }
  .tun-str {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
  .tun-strum {
    font-size: 8px;
    padding: 3px 6px;
  }
}

.spotify-embed {
  margin-block: 0;
}

.spotify-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ─────────────────────────────────────────
   Guitar Tab
───────────────────────────────────────── */

.tab-block {
  margin-block: 0;
}

.tab-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.tab-notation {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  scrollbar-width: none;
}

.tab-notation::-webkit-scrollbar {
  display: none;
}

.tab-s {
  display: block;
  color: var(--color-text);
}

.tab-s--muted {
  color: var(--color-text-muted);
  opacity: 0.45;
}

.tab-pm {
  display: block;
  color: var(--color-accent);
  opacity: 0.7;
  font-style: italic;
  margin-top: 0.1rem;
}

.tab-caption {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 0.85rem;
  display: block;
  font-style: italic;
}

/* ─────────────────────────────────────────
   Timeline — Hover States
───────────────────────────────────────── */

.timeline-year {
  transition: color 0.2s ease;
}

.timeline-item:hover .timeline-year {
  color: var(--color-text);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(139, 26, 26, 0.2);
}

/* ─────────────────────────────────────────
   Timeline — Dot Entrance Pulse
───────────────────────────────────────── */

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(139, 26, 26, 0.55); }
  65%  { box-shadow: 0 0 0 10px rgba(139, 26, 26, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(139, 26, 26, 0);   }
}

.timeline-dot.pulse {
  animation: dotPulse 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* ─────────────────────────────────────────
   Timeline — Album Hover Card
───────────────────────────────────────── */

.album-hover-card-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .album-hover-card-wrapper {
  grid-template-rows: 1fr;
}

.album-hover-card {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  padding-top: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    opacity 0.25s ease 0.1s,
    padding-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* External link icon — top-right corner */
.album-hover-card::after {
  content: '↗';
  position: absolute;
  top: 0.85rem;
  right: 0;
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.timeline-item:hover .album-hover-card::after {
  opacity: 1;
  transform: translate(0, 0);
}

.album-hover-card:hover::after {
  color: var(--color-accent);
}

.timeline-item:hover .album-hover-card {
  opacity: 1;
  padding-top: 0.85rem;
}

.album-hover-art {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.album-hover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-hover-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.13) 3px,
    rgba(0, 0, 0, 0.13) 4px
  );
  pointer-events: none;
}

.album-hover-band {
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.album-hover-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.album-hover-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.3;
}

.album-hover-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Inline album links in prose / timeline titles */
.album-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* Touch devices — tap-to-expand accordion (hover not available) */
@media (hover: none) {
  /* Expand chevron on timeline content */
  .timeline-content {
    position: relative;
    cursor: pointer;
  }

  .timeline-content::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.2s ease;
    line-height: 1.4;
  }

  .timeline-item.is-expanded .timeline-content::after {
    transform: rotate(180deg);
    color: var(--color-accent);
  }

  /* Keep wrapper in flow but collapsed */
  .album-hover-card-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .timeline-item.is-expanded .album-hover-card-wrapper {
    grid-template-rows: 1fr;
  }

  .timeline-item.is-expanded .album-hover-card {
    opacity: 1;
    padding-top: 0.85rem;
  }

  .timeline-item.is-expanded .album-hover-card::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .timeline-item.is-expanded .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 0 5px rgba(139, 26, 26, 0.2);
  }

  .timeline-item.is-expanded .timeline-year {
    color: var(--color-text);
  }
}

/* ─────────────────────────────────────────
   Smooth Scroll
───────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

/* ─────────────────────────────────────────
   Scroll Reveal — Fade Up
───────────────────────────────────────── */

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   Scroll Reveal — Divider Wipe
───────────────────────────────────────── */

.reveal-line {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-line.is-visible {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────
   Article Header — Enter Animation
───────────────────────────────────────── */

.header-enter {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-enter-active {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   Reduced Motion — disable all animations
───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-line,
  .header-enter {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .album-hover-card-wrapper,
  .album-hover-card {
    transition: none;
  }

  .timeline-dot.pulse {
    animation: none;
  }
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --space-xl:    3rem;
    --space-xxl:   5rem;
    --padding-x:   1.25rem;
  }

  /* Scale pedal to fit narrow screens */
  .pedal-section {
    transform: scale(0.85);
    transform-origin: top center;
    margin-block: calc(var(--space-xl) * -0.15);
  }

  .pull-quote {
    padding-inline: var(--space-sm);
  }

  .ascii-art {
    font-size: 7px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* ─────────────────────────────────────────
   HM-2 Pedal — Embed
───────────────────────────────────────── */

.pedal-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-xl);
  gap: 1.25rem;
}

.pedal-caption {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  text-align: center;
}

.pedal {
  background: #1a1a1a;
  width: 260px;
  height: 480px;
  border-radius: 12px;
  border: 3px solid #333;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.pedal .top {
  background: #1a1a1a;
  border-bottom: 2px solid #333;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 6px;
  position: relative;
}

.pedal .check-indicator {
  background: #550000;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.2s, box-shadow 0.2s;
}

.pedal .check-indicator.on {
  background: #ff2200;
  box-shadow: 0 0 6px 2px #ff4400, 0 0 14px 5px rgba(255, 60, 0, 0.5);
}

.pedal .check-label {
  display: block;
  text-align: center;
  color: #e87c1e;
  font-size: 9px;
  font-family: sans-serif;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.pedal .knob-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-bottom: 4px;
}

.pedal .knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pedal .knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5a623, #c97a10);
  border: 3px solid #222;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-out;
}

.pedal .knob::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 2px;
}

.pedal .knob-label {
  color: #e87c1e;
  font-size: 9px;
  font-family: sans-serif;
  letter-spacing: 0.5px;
  text-align: center;
}

.pedal .color-labels {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #e87c1e;
  font-size: 9px;
  font-family: sans-serif;
}

.pedal .middle {
  flex: 1;
  padding: 8px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
}

.pedal .jack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pedal .jack-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pedal .jack-group label {
  color: #e87c1e;
  font-size: 10px;
  font-family: sans-serif;
  letter-spacing: 0.5px;
}

.pedal .branding {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 4px;
}

.pedal .pedal-name {
  color: #e87c1e;
  font-family: serif;
  font-size: 32px;
  font-style: italic;
  font-weight: bold;
  margin: 0;
  letter-spacing: 1px;
}

.pedal .pedal-model {
  color: #e87c1e;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 3px;
}

.pedal .bottom {
  border-top: 2px solid #333;
  border-radius: 0 0 12px 12px;
  padding: 8px 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pedal .stomp-pad {
  background: #111;
  width: 220px;
  height: 180px;
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pedal .stomp-pad:active {
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.95);
  transform: translateY(1px);
}

.pedal .boss-logo {
  width: 100%;
  color: #2a2a2a;
  font-family: sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.pedal .boss-icon {
  font-size: 22px;
}
