:root {
  color-scheme: light;
  --ink: #112c33;
  --paper: #fbf4e3;
  --gold: #f9ce73;
  --berry: #963c30;
  --pine: #205444;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #297554; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

.site-header {
  background: var(--ink);
  color: var(--paper);
  border-block-end: 3px solid var(--gold);
}
.header-content, .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.header-content { min-height: 67px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: bold 1.22rem/1.2 var(--serif);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  padding-bottom: 3px;
  background: var(--gold);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  font: 1.2rem/1 var(--sans);
}
.nav-link, .site-footer a { font-size: .9rem; font-weight: 650; text-underline-offset: .28em; }
.nav-link { white-space: nowrap; }
.brand-mark { flex-shrink: 0; }
.site-header a:focus-visible, .cover a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--gold);
}

.cover {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  margin-top: 34px;
  padding: 12px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: var(--paper);
  box-shadow: 0 8px 0 #dfcdaa;
}
.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4.2vw, 60px);
  border: 1px dashed #b59662;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}
.cover-copy p { margin: 0; }
.title-prefix {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font: 750 .875rem/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.title-prefix span { margin-right: .25em; }
.cover h1 {
  margin: 0 0 1.15rem;
  font: bold clamp(3rem, 6.3vw, 5.7rem)/.94 var(--serif);
  letter-spacing: -.065em;
}
.cover h1 em { display: block; color: var(--gold); }
.cover-copy > p:last-of-type { max-width: 23ch; font-size: 1.12rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  margin-top: 1.55rem;
  padding: .62rem 1.05rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 5px;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: #ffe2a0; }
.cover-art { position: relative; min-height: 420px; }
.cover-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 7px 7px 0;
}

.songs { padding-block: 67px 76px; scroll-margin-top: 24px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px dashed #ccb78e;
}
.section-heading h2 {
  margin: 0;
  font: bold clamp(2.1rem, 4.3vw, 3.35rem)/1.1 var(--serif);
  letter-spacing: -.045em;
}
.section-heading p { margin: 0; color: var(--pine); font-size: .95rem; font-weight: 700; }
.song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.song-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d8c7a5;
  border-radius: 10px;
  background: #fffbf1;
  box-shadow: 0 4px 0 #e9d9b9;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.song-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #e9d9b9; }
.thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--pine);
  border-bottom: 3px solid var(--gold);
}
.thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #112c33e8;
  color: #fff9ea;
  box-shadow: 0 2px 12px #0004;
  z-index: 1;
}
.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 14px solid currentColor;
  border-block: 8px solid transparent;
}
.song-card:hover .play-icon, .song-card:focus-visible .play-icon { background: var(--berry); }
.song-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  padding: 15px 17px 17px;
}
.song-details h3 { margin: 0; font: bold 1.28rem/1.24 var(--serif); }
.version {
  display: inline-block;
  vertical-align: .13em;
  margin-left: .25rem;
  padding: .12rem .42rem;
  border-radius: 4px;
  background: #f2e4c5;
  font: 700 .78rem/1.3 var(--sans);
  white-space: nowrap;
}
.watch-label { color: var(--berry); font-size: .875rem; font-weight: 710; text-underline-offset: .22em; }
.song-card:hover .watch-label { text-decoration: underline; }
.site-footer { background: var(--ink); color: var(--paper); border-top: 3px solid var(--gold); }
.footer-content { min-height: 80px; padding-block: 15px; }
.footer-star { margin-right: .35em; color: var(--gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .cover-art { min-height: 370px; }
  .song-grid { gap: 18px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-content { min-height: 59px; }
  .brand { font-size: 1.05rem; }
  .cover { grid-template-columns: 1fr; margin-top: 20px; padding: 9px; }
  .cover-copy {
    padding: 25px 21px 27px;
    border-right: 1px dashed #b59662;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
  }
  .cover h1 { font-size: clamp(2.75rem, 10vw, 4.3rem); }
  .cover h1 em { display: inline-block; }
  .cover-art { min-height: auto; aspect-ratio: 3 / 2; }
  .cover-art img { border-radius: 0 0 6px 6px; }
  .songs { padding-block: 51px 55px; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .song-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .song-card { transition: none; }
  .song-card:hover { transform: none; }
}
