/*
Theme Name: KayganTheme
Theme URI: https://kayganmusic.com
Author: Kaygan Music
Author URI: https://kayganmusic.com
Description: A minimal, dark music producer profile theme. Hero studio image, bio block, and a multi-track player that decodes WAV/MP3/FLAC files client-side and renders real waveforms. Tracks are a custom post type; waveforms are cached at upload and playback is streamed. Cold Room palette, overlay hero, streaming links and per-track release links.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profile
Tags: music, dark, minimal, one-page, audio, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------------- Self-hosted fonts ---------------- */
/* Instrument Serif — SIL Open Font License 1.1 */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — Apache 2.0 — variable font covers 100–800 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ground — Cold Room: cool graphite, blue-grey bias */
  --bg:        #0A0D11;
  --bg-elev:   #111720;
  --bg-sunk:   #070A0D;

  /* rules */
  --line:      #243040;
  --line-soft: #1A2129;

  /* type */
  --ink:       #E4EAF1;   /* 16.1:1 on --bg */
  --ink-dim:   #9BA9BA;   /*  8.1:1 */
  --ink-mute:  #75838F;   /*  5.0:1 */

  /* accent — ice cyan, where an analyser's energy sits */
  --accent:      #5CD3E0;   /* 11.0:1 on --bg */
  --accent-hex:  #5CD3E0;
  --accent-dim:  rgba(92, 211, 224, 0.18);
  --accent-glow: rgba(92, 211, 224, 0.06);
  --accent-hi:   #86E2EC;   /* hover */

  /* on-accent text (buttons, active play head) */
  --on-accent: #05161A;

  /* waveform */
  --wave-idle:   #68798A;   /* 4.0:1 on --bg-elev */
  --wave-played: #5CD3E0;

  /* type families */
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* mono tracking — two values, applied by role, not ad hoc */
  --tk-label: 0.18em;   /* small-caps labels */
  --tk-data:  0.06em;   /* numbers, durations */

  /* spacing scale */
  --s1: 6px;
  --s2: 12px;
  --s3: 18px;
  --s4: 28px;
  --s5: 44px;
  --s6: 68px;
  --s7: 96px;

  --radius: 2px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection { background: var(--accent-dim); color: var(--ink); }

a { color: inherit; }

/* Visible keyboard focus — the original theme had none anywhere. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--s4) 32px var(--s7);
}

/* shared small-caps label role */
.u-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-mute);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  flex-wrap: wrap;
  min-width: 0;
}
.brand .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark:hover { color: var(--accent); }
.brand .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
}

.nav {
  display: flex;
  gap: var(--s4);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
}
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a.current-menu-item,
.nav .current-menu-item > a,
.nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s4);
}

/* ==========================================================================
   HERO PHOTO
   ========================================================================== */

.hero {
  margin-top: var(--s4);
  position: relative;
  aspect-ratio: 21 / 9;
  width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-sunk);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Seats the photo on the page instead of ending in a hard horizontal line. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(14, 12, 10, 0.55));
  pointer-events: none;
}
.hero .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s4);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--bg-sunk);
}

/* ==========================================================================
   BIO
   ========================================================================== */

.bio {
  margin: var(--s6) auto 0;
  max-width: 620px;
  text-align: center;
}
.bio .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  margin-bottom: var(--s2);
}
.bio h1,
.bio h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 58px);
  line-height: 1.02;
  margin: 0 0 var(--s3);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.bio h1 em, .bio h2 em { font-style: italic; color: var(--accent); }
.bio p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}
.bio .meta {
  margin-top: var(--s4);
  display: flex;
  gap: var(--s2) var(--s4);
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
}
.bio .meta span { display: inline-flex; align-items: center; gap: var(--s1); }
.bio .meta .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

/* ==========================================================================
   PLAYER
   ========================================================================== */

.player {
  margin: var(--s7) auto 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-dim);
}
.player-head .left { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.player-head .pill {
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  white-space: nowrap;
}
.player-head .count { color: var(--ink); font-variant-numeric: tabular-nums; }
.player-head .controls { display: flex; gap: var(--s3); }
.player-head button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s;
}
.player-head button:hover { color: var(--ink); }

/* --- track rows --- */
.track {
  display: grid;
  /* title column widened from max 240px — long titles were being ellipsised */
  grid-template-columns: 52px minmax(180px, 300px) 1fr 92px;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s3);
  min-height: 82px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.18s;
  position: relative;
}
.track:first-of-type { border-top: 1px solid var(--line); }
.track:hover { background: rgba(255, 240, 220, 0.02); }
.track.playing { background: var(--accent-glow); }
/* amber rail marks the playing row without relying on the faint tint alone */
.track.playing::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}

.track .play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  padding: 0;
}
.track .play:hover { border-color: var(--accent); color: var(--accent); }
.track.playing .play {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.track .play svg { display: block; }

.track .meta { min-width: 0; }
.track .title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.track .sub {
  margin-top: var(--s1);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-mute);
  display: flex;
  gap: var(--s2);
  align-items: baseline;
}
.track .sub .idx {
  color: var(--accent);
  letter-spacing: var(--tk-data);
  font-variant-numeric: tabular-nums;
}
.track .sub .dur { letter-spacing: var(--tk-data); font-variant-numeric: tabular-nums; }

.track .wave { position: relative; height: 54px; cursor: pointer; }
.track .wave canvas { width: 100%; height: 100%; display: block; }
.track .wave .loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
}

.track .time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-align: right;
  letter-spacing: var(--tk-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- drop zone --- */
.drop {
  padding: var(--s4) var(--s3);
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  background: rgba(0,0,0,0.15);
}
.drop.over { background: var(--accent-dim); border-top-color: var(--accent); }
.drop .hint {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-dim);
}
.drop .hint b { color: var(--ink); font-weight: 500; }
.drop .actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }

/* --- empty state --- */
.empty {
  padding: var(--s7) var(--s4);
  text-align: center;
  color: var(--ink-mute);
}
.empty .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--ink-dim);
  margin-bottom: var(--s1);
}
.empty .sm {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-mute);
}
.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-footer a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .track { grid-template-columns: 52px minmax(150px, 1fr) 1.2fr 88px; }
  .track .title { font-size: 21px; }
}

@media (max-width: 720px) {
  .page { padding: 20px 18px var(--s6); }

  /* The nav used to be display:none here — it simply vanished on phones.
     It now wraps under the brand instead. */
  .topbar { align-items: flex-start; }
  .nav, .nav ul { flex-wrap: wrap; gap: var(--s3); width: 100%; }
  .nav { padding-top: var(--s2); }

  .bio { margin-top: var(--s5); }
  .player { margin-top: var(--s6); }

  .track {
    grid-template-columns: 44px 1fr auto;
    gap: var(--s2);
    min-height: 0;
    padding: var(--s3) 14px;
  }
  .track .wave { grid-column: 1 / -1; height: 44px; margin-top: var(--s1); }
  .track .title { font-size: 19px; white-space: normal; }
  .track .time { font-size: 10.5px; }
  .drop { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand .mark { font-size: 24px; }
  .bio h1, .bio h2 { font-size: 34px; }
}

/* WP admin bar */
.admin-bar .page { padding-top: 60px; }

/* ==========================================================================
   HERO OVERLAY  (v1.2)
   The photo now carries the name. Previously the largest text on the page
   was the section label "Discography" while the artist name sat at 28px in
   the corner.
   ========================================================================== */

.hero.has-overlay {
  aspect-ratio: auto;
  min-height: clamp(420px, 62vh, 660px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero.has-overlay img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Scrim carries the type. Strong at the base, gone by the top third, so the
   console stays readable while the headline never sits on raw photo. */
.hero.has-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 13, 17, 0.97) 0%,
    rgba(10, 13, 17, 0.93) 22%,
    rgba(10, 13, 17, 0.86) 46%,
    rgba(10, 13, 17, 0.48) 68%,
    rgba(10, 13, 17, 0.06) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--s5) clamp(20px, 4vw, 46px) clamp(26px, 4vw, 42px);
  text-shadow: 0 1px 2px rgba(10, 13, 17, 0.85), 0 2px 18px rgba(10, 13, 17, 0.75);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--accent);
  margin: 0 0 var(--s2);
}
.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 8.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub {
  margin: var(--s3) 0 0;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  text-wrap: pretty;
}
.hero-cta {
  margin-top: var(--s4);
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 12px 20px; text-shadow: none; }

/* ==========================================================================
   SECTION HEADS  (v1.2)
   ========================================================================== */

.sec-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin: 0 0 var(--s4);
}
.sec-head h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tk-label);
  color: var(--ink-dim);
  margin: 0;
  white-space: nowrap;
}
.sec-head .rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-soft);
}
.sec-head .aside {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tk-label);
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.section-block { margin-top: var(--s7); }

/* ==========================================================================
   PER-TRACK RELEASE LINK  (v1.2)
   ========================================================================== */

/* Fixed last column: with `auto`, a row lacking a release link gave its
   waveform the slack instead, so the time readouts didn't line up down the
   list. Every row now reserves the same width whether it has a chip or not. */
.track { grid-template-columns: 52px minmax(180px, 300px) 1fr 92px 108px; }
.track-link {
  justify-self: end;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tk-label);
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 11px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.track-link:hover { color: var(--accent); border-color: var(--accent); }
.track-link-spacer { width: 0; }

/* ==========================================================================
   STREAMING LINKS  (v1.2)
   ========================================================================== */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tk-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  transition: opacity 0.15s;
  flex: none;
}
.links a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.links a:hover::before { opacity: 1; }

/* ==========================================================================
   CONTACT  (v1.2)
   ========================================================================== */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
}
.contact-mail {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-availability {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tk-label);
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin: 0;
}
.contact-availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ==========================================================================
   RESPONSIVE  (v1.2 additions — after the base rules so they win)
   ========================================================================== */

@media (max-width: 900px) {
  .track { grid-template-columns: 52px minmax(150px, 1fr) 1.2fr 88px 100px; }
}

@media (max-width: 720px) {
  .hero.has-overlay { min-height: clamp(380px, 66vh, 560px); }
  .hero-inner { padding: var(--s5) 18px var(--s4); }
  .hero-cta { margin-top: var(--s3); }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; justify-content: center; }

  .section-block { margin-top: var(--s6); }

  /* link chip drops onto its own line beneath the waveform */
  .track { grid-template-columns: 44px 1fr auto; }
  .track .wave { grid-column: 1 / -1; }
  .track-link { grid-column: 1 / -1; justify-self: start; margin-top: var(--s1); }
  .track-link-spacer { display: none; }

  .links a { padding: 11px 14px; }
  .contact { flex-direction: column; align-items: flex-start; gap: var(--s2); }
}

/* screen-reader-only text (WP convention) */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}

/* .player brings its own top margin from the pre-1.2 layout; inside a
   .section-block the section already provides that space. */
.section-block .player { margin-top: 0; }

/* With the wordmark suppressed on the front page, the tagline becomes the
   left-hand item on its own and needs to hold that position. */
.brand.no-mark .tag {
  color: var(--ink-dim);
  font-size: 11.5px;
}

/* ==========================================================================
   PLAY BUTTON — LOADING  (from 1.4, kept)
   Audio is not preloaded, so the first press waits on the network.
   ========================================================================== */

.track .play.loading {
  border-color: var(--accent);
  color: var(--accent);
  animation: profile-spin 1.2s linear infinite;
}
@keyframes profile-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .track .play.loading { animation: none; opacity: 0.65; }
}

.track.load-failed .time { color: var(--ink-mute); }
.track.load-failed .play { opacity: 0.4; pointer-events: none; }
