:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --ink: #292a24;
  --muted: #77776d;
  --olive: #65704e;
  --line: #ded9ce;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #e8e4da;
}

html::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: var(--olive);
}

html::-webkit-scrollbar-thumb:hover {
  background: #4e593b;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--olive) #e8e4da;
    scrollbar-width: thin;
  }
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.page-shell {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--olive);
  border-radius: 50%;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: -1px;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-link {
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease;
}

.header-link:hover,
.site-footer a:hover {
  color: var(--olive);
}

.header-link span {
  margin-left: 6px;
  color: var(--olive);
}

.hero {
  position: relative;
  display: grid;
  min-height: 540px;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 8%;
  padding: 70px 7.5% 80px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d37a52;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(56px, 7.2vw, 88px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

h1 em {
  color: var(--olive);
  font-weight: 500;
}

.hero-description {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.listen-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 19px 0 10px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.listen-button:hover {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
}

.listen-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e8e4d9;
  color: var(--olive);
  font-size: 15px;
}

.artwork {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: 0.92;
  justify-self: end;
  overflow: hidden;
  border-radius: 46% 46% 4px 4px;
  background: #6d5943;
  box-shadow: 22px 24px 0 #e9e3d7;
}

.author-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.92;
  object-fit: cover;
  object-position: center 27%;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.hero-note span {
  color: #d37a52;
  font-size: 18px;
}

.songs-section {
  padding: 42px 7.5% 90px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.track-count {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.song-list {
  border-top: 1px solid var(--line);
}

.song-row {
  display: grid;
  min-height: 78px;
  grid-template-columns: 44px 1fr auto 38px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.song-number {
  color: #a4a095;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.song-meta strong,
.song-meta span {
  display: block;
}

.song-meta strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.song-meta span,
.song-duration {
  color: var(--muted);
  font-size: 10px;
}

.song-duration {
  font-variant-numeric: tabular-nums;
}

.row-play {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.row-play:hover,
.row-play[aria-pressed='true'] {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
}

.row-play[data-state='pause'],
#play-icon[data-state='pause'] {
  position: relative;
  font-size: 0;
}

.row-play[data-state='pause']::before,
.row-play[data-state='pause']::after,
#play-icon[data-state='pause']::before,
#play-icon[data-state='pause']::after {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: currentColor;
  content: '';
  transform: translateY(-50%);
}

.row-play[data-state='pause']::before,
#play-icon[data-state='pause']::before {
  left: calc(50% - 3px);
}

.row-play[data-state='pause']::after,
#play-icon[data-state='pause']::after {
  left: calc(50% + 1px);
}

.empty-state {
  display: grid;
  min-height: 190px;
  justify-items: center;
  align-content: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-note {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 50%;
  background: #e9e4d8;
  color: var(--olive);
  font-size: 18px;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.site-footer > span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.footer-center {
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.site-footer a {
  transition: color 160ms ease;
}

.song-player-card {
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 0 0 16px 16px;
  background: #1c3027;
  color: #f5f1e9;
  box-shadow: 0 10px 24px rgba(30, 32, 24, 0.08);
}

.now-playing {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.now-playing strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.player-controls {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.control-buttons {
  display: flex;
  height: 35px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.control-button,
.play-button {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.control-button {
  width: 24px;
  height: 26px;
  font-family: var(--serif);
  font-size: 25px;
}

.play-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #364c3e;
  color: white;
  font-size: 11px;
  transition: background 160ms ease;
}

.play-button:hover:not(:disabled) {
  background: var(--olive);
}

.play-button:disabled,
.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.timeline {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;
}

.time-label {
  color: #d3d9cd;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.time-label:last-child {
  text-align: right;
}

input[type='range'] {
  width: 100%;
  min-width: 0;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 3px;
  background: #59665a;
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #d7d9bb;
}

input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #d7d9bb;
}

input[type='range']:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lyrics-text-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lyrics-text-toggle:hover,
.lyrics-text-toggle[aria-pressed='true'] {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
}

.lyrics-layout[hidden] {
  display: none;
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.lyrics-track-label {
  color: #d9c58f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.lyrics-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.lyrics-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 42px;
  margin-top: 44px;
}

.lyrics-main {
  min-width: 0;
}

.lyrics-nav {
  align-self: start;
  position: sticky;
  top: 28px;
}

.lyrics-nav > p {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

#lyrics-nav-items {
  display: grid;
  gap: 4px;
}

.lyrics-nav-link {
  display: grid;
  min-height: 35px;
  grid-template-columns: 25px 1fr;
  align-items: center;
  padding: 0 10px;
  border-left: 2px solid transparent;
  color: #66675e;
  font-size: 11px;
  transition: color 150ms ease, background 150ms ease;
}

.lyrics-nav-link span:first-child {
  color: #929186;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.lyrics-nav-link:hover,
.lyrics-nav-link[aria-current='location'] {
  border-left-color: #b8793e;
  background: #e8e8d9;
  color: var(--ink);
}

.lyrics-content {
  min-width: 0;
}

.lyrics-section {
  scroll-margin-top: 60px;
}

.lyrics-section + .lyrics-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lyrics-section h3 {
  margin: 2px 0 13px;
  color: var(--olive);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.lyrics-section p {
  margin: 0;
  color: #35372f;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.85;
  white-space: pre-line;
}

.lyrics-content.larger-text p {
  font-size: 26px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 40px, 520px);
  }

  .site-header {
    height: 70px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 0 76px;
  }

  h1 {
    font-size: clamp(62px, 16vw, 82px);
  }

  .artwork {
    width: min(82%, 330px);
    justify-self: center;
  }

  .hero-note {
    right: 0;
    bottom: 28px;
  }

  .songs-section {
    padding: 34px 0 58px;
  }

  .song-player-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .player-controls {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .control-buttons {
    height: 32px;
    justify-content: flex-start;
    gap: 11px;
  }

  .timeline {
    grid-template-columns: 27px 1fr 27px;
    gap: 6px;
  }

  .lyrics-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 12px;
  }

  .song-row {
    grid-template-columns: 25px 1fr 30px;
    gap: 10px;
  }

  .song-duration {
    display: none;
  }

  .lyrics-text-toggle {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .player-controls {
    gap: 8px;
  }

  .control-buttons {
    gap: 8px;
  }

  .timeline {
    grid-template-columns: 24px 1fr 24px;
    gap: 4px;
  }

  .lyrics-layout {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
  }

  .lyrics-nav > p {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .lyrics-nav-link {
    min-height: 33px;
    grid-template-columns: 21px 1fr;
    padding: 0 5px;
    font-size: 9px;
  }

  .lyrics-section p {
    font-size: 17px;
  }

  .lyrics-content.larger-text p {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .lyrics-layout {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
