/* ============================================================
   Teal palette
   ============================================================ */

/* Replace hosted Google fonts with Nerd Fonts families. */
@font-face {
  font-family: "Space Grotesk";
  src:
    url("fonts/JetBrainsMonoNerdFont-Regular.woff2") format("woff2"),
    url("fonts/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src:
    url("fonts/IosevkaNerdFont-Regular.woff2") format("woff2"),
    url("fonts/IosevkaNerdFont-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src:
    url("fonts/VictorMonoNerdFont-Regular.woff2") format("woff2"),
    url("fonts/VictorMonoNerdFont-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --teal-950: oklch(18% 0.045 210);
  --teal-900: oklch(22% 0.06 202);
  --teal-800: oklch(30% 0.08 196);
  --teal-700: oklch(42% 0.11 190);
  --teal-600: oklch(51% 0.12 185);
  --teal-500: oklch(60% 0.11 178);
  --teal-300: oklch(82% 0.07 174);
  --teal-200: oklch(90% 0.04 172);

  --accent-500: oklch(76% 0.16 48);
  --accent-300: oklch(88% 0.08 70);

  --text: oklch(94% 0.01 185);
  --text-main: oklch(94% 0.01 185);
  --text-dim: oklch(80% 0.03 182);
  --text-dark: oklch(31% 0.04 200);

  --surface-900: oklch(20% 0.05 206);
  --surface-800: oklch(24% 0.055 202);
  --surface-700: oklch(30% 0.05 198);
  --surface-100: oklch(98% 0.01 180);
  --surface-200: oklch(95% 0.02 176);

  --border-dark: oklch(45% 0.08 188 / 0.45);
  --border-light: oklch(75% 0.06 180 / 0.5);

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background-color: var(--teal-950);
  background-image:
    radial-gradient(circle at 8% 9%, oklch(48% 0.14 190 / 0.35), transparent 42%),
    radial-gradient(circle at 92% 88%, oklch(61% 0.12 175 / 0.2), transparent 35%),
    linear-gradient(140deg, var(--teal-950), oklch(13% 0.035 220));
  background-attachment: fixed;
  display: flex;
  justify-content: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

#container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  flex-direction: column;
}

.page-music #container,
.page-writings #container,
.page-projects #container,
.page-journal #container,
.page-random #container {
  width: 100%;
  max-width: none;
}

/* ============================================================
   Header / nav
   ============================================================ */

#headerArea {
  width: 100%;
}

#navbar {
  display: flex;
  align-items: center;
}

#navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

#navbar li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  border-radius: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#navbar li a:hover,
#navbar a.active,
#navbar a[aria-current="page"] {
  background: oklch(100% 0 0 / 0.12);
  color: var(--accent-300);
}

.home-nav-bar,
.music-nav-bar,
.writings-nav-bar,
.projects-nav-bar,
.journal-nav-bar,
.random-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  padding: 0.5rem 0.8rem;
  backdrop-filter: blur(8px);
}

.site-mark {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-200);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-dark);
}

.site-mark:hover {
  color: var(--accent-300);
}

.home-nav-bar {
  background: oklch(24% 0.055 202 / 0.86);
}

.music-nav-bar {
  background: oklch(20% 0.07 260 / 0.9);
}

.writings-nav-bar {
  background: oklch(98% 0.01 180 / 0.95);
  border-color: oklch(75% 0.04 180 / 0.45);
}

.writings-nav-bar #navbar li a {
  color: oklch(30% 0.03 200);
}

.writings-nav-bar #navbar li a:hover,
.writings-nav-bar #navbar a.active,
.writings-nav-bar #navbar a[aria-current="page"] {
  background: oklch(35% 0.08 190 / 0.1);
  color: oklch(35% 0.1 190);
}

.projects-nav-bar {
  background: oklch(20% 0.055 235 / 0.9);
}

.journal-nav-bar {
  background: oklch(95% 0.02 165 / 0.94);
  border-color: oklch(70% 0.05 165 / 0.45);
}

.journal-nav-bar #navbar li a {
  color: oklch(29% 0.03 185);
}

.journal-nav-bar #navbar li a:hover,
.journal-nav-bar #navbar a.active,
.journal-nav-bar #navbar a[aria-current="page"] {
  background: oklch(30% 0.08 185 / 0.1);
  color: oklch(35% 0.1 185);
}

.random-nav-bar {
  background: oklch(21% 0.07 176 / 0.9);
}

/* ============================================================
   Footer
   ============================================================ */

#footer {
  width: 100%;
  text-align: center;
  margin: 2rem 0 1.2rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

#footer p {
  margin: 0.15rem 0;
}

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

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

.home-site-footer,
.music-site-footer,
.projects-site-footer,
.random-site-footer {
  background: oklch(22% 0.055 202 / 0.8);
  color: var(--text-dim);
}

.writings-site-footer,
.journal-site-footer {
  background: oklch(96% 0.014 176 / 0.96);
  border-color: oklch(75% 0.04 180 / 0.4);
  color: oklch(42% 0.03 185);
}

.writings-site-footer a,
.journal-site-footer a {
  color: oklch(38% 0.12 190);
}

/* ============================================================
   Shared helpers
   ============================================================ */

main {
  background: transparent;
  color: inherit;
}

.breadcrumb {
  margin: 0 0 1rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-dark);
  padding: 0 0 0.55rem;
}

.breadcrumb a {
  color: var(--accent-300);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.text-muted {
  color: var(--text-dim);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealIn 700ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Home
   ============================================================ */

.page-home {
  color: var(--text);
}

.home-main {
  padding: 2rem 0 0;
  max-width: 920px;
}

.home-hero {
  background: linear-gradient(150deg, oklch(27% 0.08 195 / 0.92), oklch(18% 0.05 212 / 0.82));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 18px 44px oklch(0% 0 0 / 0.35);
  text-align: center;
}

.home-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300);
}

.home-hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.page-home .breadcrumb {
  display: none;
}

.home-lead {
  margin: 1rem 0 0;
  max-width: 54ch;
  color: oklch(91% 0.03 183);
  line-height: 1.58;
}

.home-cards {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background: oklch(22% 0.06 198 / 0.72);
  text-decoration: none;
  color: var(--text);
  padding: 1rem;
  min-height: 150px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  border-color: oklch(70% 0.12 175 / 0.6);
  background: oklch(26% 0.07 194 / 0.8);
}

.home-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.home-card p {
  margin: 0.5rem 0 0;
  color: var(--text-dim);
  line-height: 1.5;
}

.home-card--wide {
  grid-column: 1 / -1;
}

/* Floating lofi player */
.lofi-player {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: oklch(22% 0.06 200 / 0.9);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.35);
}

.lofi-toggle {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: oklch(16% 0.03 210);
  background: linear-gradient(145deg, var(--teal-500), var(--teal-300));
  cursor: pointer;
}

.lofi-toggle:hover {
  filter: brightness(1.06);
}

.lofi-toggle.is-playing {
  background: linear-gradient(145deg, var(--accent-500), var(--accent-300));
}

.lofi-toggle.is-blocked {
  background: linear-gradient(145deg, oklch(64% 0.17 32), oklch(80% 0.13 66));
  color: oklch(18% 0.04 28);
}

.lofi-volume {
  width: 88px;
  accent-color: var(--teal-500);
}

.lofi-station {
  max-width: 170px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-main);
  background: oklch(20% 0.05 198 / 0.86);
}

/* ============================================================
   Guestbook
   ============================================================ */

.guestbook-layout {
  width: min(920px, 100%);
  margin: 0 auto;
}

.guestbook-layout main {
  display: grid;
  gap: 1rem;
  padding: 1.8rem 0.2rem 0;
}

.guestbook-hero,
.guestbook-form-wrap,
.guestbook-list {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: oklch(22% 0.06 198 / 0.75);
  padding: 1rem;
}

.guestbook-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-300);
}

.guestbook-hero h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.guestbook-hero p {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
}

.guestbook-form {
  display: grid;
  gap: 0.75rem;
}

.guestbook-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: oklch(17% 0.05 208 / 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.guestbook-form textarea {
  min-height: 130px;
  resize: vertical;
}

.guestbook-form button {
  justify-self: start;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  color: oklch(16% 0.03 210);
  background: linear-gradient(145deg, var(--teal-500), var(--teal-300));
  cursor: pointer;
}

.guestbook-form button:hover {
  filter: brightness(1.06);
}

.guestbook-list h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.guestbook-empty {
  margin: 0;
  color: var(--text-dim);
}

.guestbook-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.guestbook-entry {
  border: 1px solid oklch(100% 0 0 / 0.09);
  border-radius: var(--radius-sm);
  background: oklch(16% 0.04 206 / 0.85);
  padding: 0.7rem 0.8rem;
}

.guestbook-entry-meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--teal-300);
}

.guestbook-entry-message {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
}

.guestbook-replies {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0.65rem 0 0 0.85rem;
  border-left: 2px solid rgba(45, 212, 191, 0.25);
  display: grid;
  gap: 0.55rem;
}

.guestbook-reply {
  border: 1px solid oklch(100% 0 0 / 0.08);
  border-radius: var(--radius-sm);
  background: oklch(17% 0.04 205 / 0.78);
  padding: 0.55rem 0.65rem;
}

.guestbook-reply-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.guestbook-reply-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--mp-text-muted);
}

.guestbook-reply-form textarea {
  min-height: 70px;
  resize: vertical;
}

.guestbook-reply-form button {
  justify-self: start;
  border: 1px solid rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.08);
  color: var(--mp-teal-primary);
  border-radius: var(--radius-pill);
  padding: 0.36rem 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   Music page
   ============================================================ */

.page-music {
  background:
    radial-gradient(circle at 8% 10%, oklch(44% 0.14 260 / 0.28), transparent 46%),
    linear-gradient(150deg, oklch(12% 0.05 255), oklch(10% 0.04 285));
}

.music-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.music-layout main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.35rem;
  padding: 1.8rem 0.2rem 0;
}

.music-layout .breadcrumb {
  grid-column: 1 / -1;
}

.music-hero,
.music-recs {
  border-radius: var(--radius-lg);
  border: 1px solid oklch(50% 0.13 280 / 0.28);
  background: oklch(18% 0.06 270 / 0.76);
  padding: 1.2rem;
}

.music-hero-label,
.music-recs-title {
  margin: 0 0 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: oklch(78% 0.14 290);
}

.music-loading {
  margin: 0;
  color: oklch(80% 0.03 280);
}

.music-now-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.music-now-info {
  min-width: 0;
}

.music-now-art {
  width: 116px;
  height: 116px;
  border-radius: 0.8rem;
  object-fit: cover;
}

.music-now-track {
  display: block;
  color: oklch(93% 0.03 280);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.music-now-artist {
  display: block;
  margin-top: 0.25rem;
  color: oklch(80% 0.03 280);
}

.music-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.music-track {
  padding: 0.6rem 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}

.music-track-name {
  display: block;
  font-weight: 600;
}

.music-track-artist {
  color: oklch(82% 0.03 280);
  font-size: 0.92rem;
}

/* ============================================================
   Writings page
   ============================================================ */

.page-writings {
  color: var(--text-dark);
  background: linear-gradient(145deg, oklch(97% 0.012 178), oklch(92% 0.02 170));
}

.writings-layout {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 2rem 0;
}

.writings-content {
  background: oklch(99% 0.004 180 / 0.9);
  border: 1px solid oklch(75% 0.04 180 / 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.writings-title {
  margin: 0;
  color: oklch(34% 0.1 188);
  font-size: 2.2rem;
}

.writings-subtitle {
  margin: 0.4rem 0 0;
  color: oklch(42% 0.03 180);
}

.writings-entries {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.writings-entry {
  border-bottom: 1px solid oklch(70% 0.03 180 / 0.35);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.writings-entry h2 a {
  color: oklch(36% 0.12 192);
  text-decoration: none;
}

.writings-entry h2 a:hover {
  text-decoration: underline;
}

.writings-entry time {
  color: oklch(46% 0.03 180);
  font-size: 0.88rem;
}

.writings-excerpt {
  line-height: 1.65;
  margin-top: 0.65rem;
}

/* ============================================================
   Projects page
   ============================================================ */

.page-projects {
  background: linear-gradient(160deg, oklch(14% 0.05 226), oklch(14% 0.04 198));
}

.projects-layout {
  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 1.8rem 0;
}

.projects-head {
  margin-bottom: 1.2rem;
}

.projects-title {
  margin: 0;
  font-size: 1.7rem;
}

.projects-lead {
  margin-top: 0.45rem;
  color: var(--text-dim);
}

.projects-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.projects-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background: oklch(20% 0.055 210 / 0.82);
}

.projects-card h2 a {
  color: var(--teal-200);
  text-decoration: none;
}

.projects-card h2 a:hover {
  text-decoration: underline;
}

.projects-card p {
  margin: 0.6rem 0 0;
  color: var(--text-dim);
}

.projects-tags {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-300);
  font-size: 0.82rem;
}

/* ============================================================
   Journal page
   ============================================================ */

.page-journal {
  color: var(--text-dark);
  background: linear-gradient(140deg, oklch(95% 0.02 170), oklch(89% 0.03 165));
}

.journal-layout {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 2rem 0;
}

.journal-title {
  margin: 0 0 0.7rem;
  color: oklch(33% 0.11 182);
}

.journal-topic-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
}

.journal-pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid oklch(68% 0.05 174 / 0.6);
  text-decoration: none;
  color: oklch(38% 0.08 178);
  background: oklch(97% 0.01 176 / 0.92);
}

.journal-pill--active,
.journal-pill:hover {
  background: oklch(35% 0.1 182);
  color: oklch(98% 0.01 180);
}

.journal-stream {
  margin-top: 1rem;
}

.journal-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid oklch(70% 0.03 172 / 0.4);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.journal-date {
  font-family: "IBM Plex Mono", monospace;
  color: oklch(43% 0.05 176);
  font-size: 0.83rem;
}

.journal-item-title {
  margin: 0;
  color: oklch(31% 0.08 182);
}

/* ============================================================
   Random page
   ============================================================ */

.page-random {
  background:
    radial-gradient(circle at 0% 100%, oklch(56% 0.15 170 / 0.16), transparent 45%),
    linear-gradient(145deg, oklch(14% 0.05 177), oklch(12% 0.04 200));
}

.random-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.8rem 0;
}

.random-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.random-bento .breadcrumb {
  grid-column: 1 / -1;
}

.random-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  padding: 1rem;
  background: oklch(20% 0.06 182 / 0.82);
}

.random-tile--wide {
  grid-column: span 2;
}

.random-tile--tall {
  grid-row: span 2;
}

.random-tile-title {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-300);
}

.random-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.random-links a {
  color: var(--teal-200);
  text-decoration: none;
}

.random-links a:hover {
  text-decoration: underline;
}

.random-tile blockquote {
  margin: 0;
  border-left: 3px solid var(--teal-500);
  padding-left: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================
   Scroll to top
   ============================================================ */

.scroll-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 4.8rem;
  z-index: 35;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  text-decoration: none;
  background: oklch(18% 0.06 205 / 0.92);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
}

.scroll-to-top--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media only screen and (max-width: 900px) {
  #container {
    padding: 0 0.8rem;
  }

  .home-nav-bar,
  .music-nav-bar,
  .writings-nav-bar,
  .projects-nav-bar,
  .journal-nav-bar,
  .random-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .music-layout main {
    grid-template-columns: 1fr;
  }

  .music-recs {
    grid-column: 1;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-card--wide {
    grid-column: auto;
  }

  .journal-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .random-bento {
    grid-template-columns: 1fr;
  }

  .random-tile--wide,
  .random-tile--tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media only screen and (max-width: 640px) {
  .lofi-player {
    right: 0.75rem;
    left: 0.75rem;
    justify-content: space-between;
  }

  .lofi-volume {
    width: 74px;
  }

  .lofi-station {
    max-width: 120px;
  }

  .scroll-to-top {
    bottom: 5.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .scroll-to-top,
  .home-card,
  .lofi-toggle {
    transition: none;
  }
}

/* ============================================================
   Magic Patterns Recreation Overrides
   ============================================================ */

:root {
  --mp-bg-deep: #080f10;
  --mp-bg-base: #0a1214;
  --mp-bg-surface: #0f1a1c;
  --mp-bg-elevated: #132023;
  --mp-teal-primary: #2dd4bf;
  --mp-teal-muted: #14b8a6;
  --mp-cyan-accent: #06b6d4;
  --mp-violet-accent: #c4b5fd;
  --mp-text-primary: #e2e8f0;
  --mp-text-muted: #7a9a9e;
  --mp-text-dim: #4a6568;
  --mp-border: rgba(45, 212, 191, 0.12);
}

body {
  color: var(--mp-text-primary);
  font-family: "IBM Plex Mono", monospace;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.08), transparent 38%),
    radial-gradient(circle at 86% 85%, rgba(196, 181, 253, 0.08), transparent 34%),
    linear-gradient(170deg, var(--mp-bg-deep), #060b0c);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.18));
  background-size: 100% 4px;
}

#container {
  width: min(1120px, 100%);
  padding: 0 1rem;
}

#headerArea {
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-shell {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--mp-border);
  background: rgba(8, 15, 16, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--mp-text-primary);
  border: 0;
  padding: 0;
}

.site-mark span {
  color: var(--mp-text-muted);
}

#navbar ul {
  gap: 0.25rem;
}

#navbar li a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--mp-text-muted);
  min-height: auto;
  padding: 0.45rem 0.75rem;
}

#navbar li a:hover,
#navbar a.active,
#navbar a[aria-current="page"] {
  background: transparent;
  color: var(--mp-teal-primary);
}

.page-head {
  margin-bottom: 1.6rem;
}

.page-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  color: var(--mp-text-primary);
}

.page-head h1 span {
  color: var(--mp-text-muted);
  font-style: italic;
}

.page-head p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--mp-text-dim);
  letter-spacing: 0.03em;
}

.page-head--center {
  text-align: center;
}

.journal-head h1 {
  font-size: clamp(2.7rem, 6vw, 4.1rem);
  letter-spacing: 0.06em;
  color: #f3fbfc;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.3);
}

.journal-head p {
  font-size: 1rem;
  color: #c6dde0;
}

.page-journal .journal-stream {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.page-journal .journal-stream::after {
  content: "";
  position: absolute;
  inset: -0.5rem -0.9rem;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 14, 0.58),
    rgba(6, 12, 14, 0.42) 26%,
    rgba(6, 12, 14, 0.28) 58%,
    rgba(6, 12, 14, 0.18)
  );
  border-radius: 16px;
}

.page-journal .journal-stream > * {
  position: relative;
  z-index: 1;
}

.page-journal .journal-date {
  color: #b8e8e3;
  font-size: 0.78rem;
  text-shadow: 0 1px 10px rgba(3, 10, 12, 0.45);
}

.page-journal .journal-body {
  border: 0;
  background: transparent;
  padding: 0;
}

.page-journal .journal-item-title {
  color: #f5feff;
  font-size: 1.72rem;
  text-shadow: 0 2px 14px rgba(3, 10, 12, 0.44);
}

.page-journal .journal-body p {
  color: #e8f7f8;
  font-size: 1.28rem;
  line-height: 1.72;
  text-shadow: 0 1px 12px rgba(3, 10, 12, 0.4);
}

.page-journal .journal-filter-btn {
  border-color: rgba(139, 232, 224, 0.52);
  background: rgba(7, 14, 16, 0.84);
  color: #d4efee;
}

.page-journal .journal-filter-btn.active,
.page-journal .journal-filter-btn:hover {
  border-color: rgba(138, 238, 229, 0.82);
  background: rgba(37, 169, 158, 0.25);
  color: #f2ffff;
}

.page-writings .writings-content {
  background: rgba(8, 15, 16, 0.94);
  border-color: rgba(45, 212, 191, 0.28);
}

.page-writings .writings-entry {
  border-color: rgba(45, 212, 191, 0.2);
}

.page-writings .writings-entry h2 {
  color: #eef8f9;
  font-size: 2rem;
}

.page-writings .writings-entry time {
  color: #a8ccd0;
}

.page-writings .writings-excerpt {
  color: #d7e9eb;
  font-size: 1.14rem;
}

.page-writings .writings-full {
  color: #edf7f8;
  font-size: 1.12rem;
  line-height: 1.85;
  border-left-color: rgba(45, 212, 191, 0.42);
}

.vault-text {
  margin-top: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d8ebed;
}

.journal-filter {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.journal-filter-btn {
  border: 1px solid var(--mp-border);
  background: rgba(8, 15, 16, 0.7);
  color: var(--mp-text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.journal-filter-btn.active,
.journal-filter-btn:hover {
  color: var(--mp-text-primary);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.1);
}

.home-main {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 4.2rem;
}

.home-hero {
  border: 1px solid var(--mp-border);
  background: rgba(15, 26, 28, 0.82);
  padding: 2.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.home-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.03;
}

.home-hero h1 span {
  display: block;
  color: var(--mp-text-muted);
  font-style: italic;
}

.home-copy {
  margin-top: 1.15rem;
  max-width: 52ch;
}

.home-copy p {
  margin: 0 0 0.8rem;
  color: var(--mp-text-dim);
  font-size: 0.85rem;
  line-height: 1.72;
}

.home-inline-icon {
  display: inline-block;
  font-size: 1.02em;
  vertical-align: -0.06em;
}

.home-visitor-counter {
  margin: 1.15rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--mp-border);
  background: rgba(14, 24, 26, 0.72);
  color: var(--mp-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.home-counter-icon {
  color: var(--mp-teal-primary);
  font-size: 0.96rem;
}

.home-counter-label {
  color: var(--mp-text-dim);
}

.home-visitor-count-num {
  color: var(--mp-text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-directory {
  margin-top: 1.4rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--mp-border);
}

.section-divider span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mp-teal-muted);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.directory-card {
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-surface);
  color: inherit;
  text-decoration: none;
  padding: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.directory-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
  background: var(--mp-bg-elevated);
}

.directory-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.directory-card p {
  margin: 0.35rem 0 0;
  color: var(--mp-text-dim);
  font-size: 0.75rem;
}

.music-layout,
.writings-layout,
.projects-layout,
.journal-layout,
.random-layout,
.guestbook-layout {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.music-main,
.writings-content,
.projects-grid-wrap,
.journal-stream,
.random-bento,
.guestbook-layout main {
  padding-top: 2.4rem;
}

.music-hero,
.music-recs,
.music-curated,
.writings-entry,
.projects-card,
.journal-body,
.random-tile,
.guestbook-hero,
.guestbook-form-wrap,
.guestbook-list {
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-surface);
}

.music-hero,
.music-recs,
.music-curated {
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.music-hero-label,
.music-recs-title,
.random-tile-title {
  margin: 0 0 0.8rem;
  color: var(--mp-teal-primary);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.music-now-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.music-now-art {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--mp-border);
}

.music-now-track {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--mp-text-primary);
  text-decoration: none;
}

.music-now-artist {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--mp-text-muted);
}

.music-track-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.music-track-tile {
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-base);
  padding: 0.7rem;
}

.music-track-name {
  display: block;
  font-size: 0.75rem;
  color: var(--mp-text-primary);
}

.music-track-artist {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  color: var(--mp-text-dim);
}

.curated-item {
  padding: 0.8rem;
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-base);
}

.curated-item + .curated-item {
  margin-top: 0.6rem;
}

.curated-item h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  color: var(--mp-text-primary);
}

.curated-item p {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--mp-text-dim);
}

.music-curated-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: -0.2rem 0 0.7rem;
}

.music-curated-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--mp-text-muted);
  letter-spacing: 0.06em;
}

.writings-filter {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--mp-border);
  font-size: 0.68rem;
  color: var(--mp-violet-accent);
}

.writings-filter-btn {
  border: 1px solid var(--mp-border);
  background: rgba(8, 15, 16, 0.7);
  color: var(--mp-text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.writings-filter-btn.active,
.writings-filter-btn:hover {
  color: var(--mp-text-primary);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.1);
}

.writings-entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.writings-entry {
  padding: 1rem;
}

.writings-entry summary {
  list-style: none;
  cursor: pointer;
}

.writings-entry summary::-webkit-details-marker {
  display: none;
}

.entry-type {
  display: inline-block;
  color: var(--mp-violet-accent);
  border: 1px solid rgba(196, 181, 253, 0.35);
  padding: 0.2rem 0.4rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.writings-entry time {
  margin-left: 0.5rem;
  font-size: 0.67rem;
  color: var(--mp-text-dim);
}

.writings-entry h2 {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
}

.writings-excerpt {
  margin: 0.45rem 0 0;
  color: var(--mp-text-muted);
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

.writings-full {
  margin-top: 0.75rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(196, 181, 253, 0.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

.projects-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.projects-card {
  padding: 1rem;
}

.projects-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.projects-card h2 a {
  color: inherit;
  text-decoration: none;
}

.projects-card p {
  margin: 0.45rem 0 0.75rem;
  color: var(--mp-text-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.projects-tags {
  font-size: 0.62rem;
  color: var(--mp-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journal-stream {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.journal-stream::before {
  content: "";
  position: absolute;
  top: 10rem;
  bottom: 1rem;
  left: 7.2rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--mp-border), transparent);
}

.journal-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.journal-date {
  color: var(--mp-teal-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.journal-body {
  padding: 0.95rem;
}

.journal-item-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.journal-body p {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  color: var(--mp-text-primary);
  line-height: 1.54;
}

.random-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 0.75rem;
}

.random-bento .page-head {
  grid-column: 1 / -1;
}

.random-tile {
  padding: 0.9rem;
}

.random-tile--wide {
  grid-column: span 2;
}

.random-tile--tall {
  grid-row: span 2;
}

.random-tile blockquote,
.random-tile p {
  margin: 0;
  color: var(--mp-text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.45;
}

.random-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.random-links a {
  color: var(--mp-text-primary);
  text-decoration: none;
  font-size: 0.78rem;
}

.guestbook-layout main {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.guestbook-hero,
.guestbook-form-wrap,
.guestbook-list {
  padding: 1rem;
}

.guestbook-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
}

.guestbook-hero p {
  margin: 0.45rem 0 0;
  color: var(--mp-text-dim);
  font-size: 0.76rem;
}

.guestbook-form {
  display: grid;
  gap: 0.7rem;
}

.guestbook-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--mp-text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-base);
  color: var(--mp-text-primary);
  padding: 0.62rem;
  font: inherit;
}

.guestbook-form textarea {
  min-height: 120px;
  resize: vertical;
}

.guestbook-form button {
  border: 1px solid rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.08);
  color: var(--mp-teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.guestbook-entry {
  border: 1px solid var(--mp-border);
  background: var(--mp-bg-base);
}

.guestbook-entry-meta {
  color: var(--mp-teal-muted);
}

#footer.site-footer {
  margin-top: 3.5rem;
  border: 0;
  border-top: 1px solid var(--mp-border);
  border-radius: 0;
  padding: 1.4rem 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner {
  display: grid;
  gap: 0.1rem;
}

.footer-quote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--mp-text-muted);
  font-style: italic;
}

.footer-meta {
  margin: 0;
  font-size: 0.7rem;
  color: var(--mp-text-dim);
}

.footer-system {
  margin: 0;
  font-size: 0.7rem;
  color: var(--mp-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mp-teal-primary);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.scroll-to-top {
  border-color: var(--mp-border);
  background: rgba(8, 15, 16, 0.9);
  color: var(--mp-text-primary);
}

.lofi-player {
  border-color: var(--mp-border);
  background: rgba(8, 15, 16, 0.88);
}

.lofi-toggle {
  background: rgba(45, 212, 191, 0.15);
  color: var(--mp-teal-primary);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.lofi-toggle.is-playing {
  background: rgba(45, 212, 191, 0.25);
}

.lofi-station {
  border-color: var(--mp-border);
  color: var(--mp-text-primary);
  background: rgba(8, 15, 16, 0.92);
}

@media (max-width: 980px) {
  .directory-grid,
  .projects-grid,
  .music-track-grid,
  .random-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-main,
  .music-main,
  .writings-content,
  .projects-grid-wrap,
  .journal-stream,
  .random-bento,
  .guestbook-layout main {
    padding-top: 1.2rem;
  }

  .directory-grid,
  .projects-grid,
  .music-track-grid,
  .random-bento,
  .journal-item {
    grid-template-columns: 1fr;
  }

  .random-tile--wide,
  .random-tile--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .journal-stream::before {
    display: none;
  }

  #footer.site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* React-parity motion and overlays */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  background: radial-gradient(circle at center, transparent 52%, rgba(8, 15, 16, 0.75) 100%);
}

.page-journal::after {
  opacity: 0.3;
}

.nav-shell {
  transition: padding 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.nav-shell.is-scrolled {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(8, 15, 16, 0.9);
}

main.page-enter {
  opacity: 0;
  transform: translateY(14px);
}

main.page-enter.page-enter--active {
  opacity: 1;
  transform: none;
  transition: opacity 0.52s ease, transform 0.52s ease;
}

@media (prefers-reduced-motion: reduce) {
  main.page-enter,
  main.page-enter.page-enter--active {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* React-parity interaction details */
.stagger-in {
  opacity: 0;
  transform: translateY(12px);
  animation: staggerIn 0.48s ease forwards;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(8, 15, 16, 0.75);
  color: var(--mp-text-muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 15, 16, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
}

.mobile-nav-panel {
  max-width: 1120px;
  margin: 6rem auto 0;
  padding: 0 1rem;
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.mobile-nav-panel a {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--mp-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a[aria-current="page"] {
  color: var(--mp-teal-primary);
}

.music-hero {
  position: relative;
  overflow: hidden;
}

.music-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -36px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  opacity: 0.22;
  animation: spinSlow 10s linear infinite;
}

.music-now-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.67rem;
  color: var(--mp-teal-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-now-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mp-teal-primary);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.7);
  animation: pulseDot 1.5s infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell #navbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .music-hero::after,
  .music-now-status::before {
    animation: none;
  }
}
