@import url("./tokens.css");

:root {
  color-scheme: light;
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --cream: var(--color-surface);
  --white: var(--color-panel);
  --orange: var(--color-action);
  --orange-deep: var(--color-action-hover);
  --blue: var(--color-soft);
  --lavender: var(--color-soft);
  --line: var(--color-border);
  font-family: "Nunito", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--cream); font-size: 1.0625rem; line-height: 1.6; }
button, input, audio { font: inherit; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, audio:focus-visible { outline: 3px solid #1769bd; outline-offset: 3px; }
img, svg { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; left: 1rem; top: -6rem; padding: .65rem 1rem; background: white; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .45rem; align-items: center; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #f9ce71; color: #81452a; font-size: 1.6rem; letter-spacing: 0; }
.brand-accent { color: var(--orange-deep); }
.brand small { font-size: .78em; letter-spacing: -.025em; }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.45rem; }
.site-header nav a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; font-weight: 800; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--orange-deep); }
.site-header nav a[aria-current="page"] { color: var(--orange-deep); }
.eyebrow { margin: 0; color: var(--orange-deep); font-size: .875rem; font-weight: 900; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.08; }
h1 { font-size: clamp(3.2rem, 7vw, 6.35rem); letter-spacing: -.072em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); letter-spacing: -.035em; }
p { max-width: 62ch; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); min-height: 630px; padding-block: clamp(3rem, 6vw, 5.7rem); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 9ch; margin: 1rem 0 1.35rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 31rem; margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.featured-song { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--white); box-shadow: 0 20px 50px rgb(79 89 84 / 9%); }
.featured-song > .eyebrow { margin: .25rem .3rem .8rem; }
.featured-stage { aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; background: var(--blue); }
.featured-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.featured-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-play-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #fff9ef; color: var(--orange-deep); font-size: 1.8rem; transform: translate(-50%, -50%); box-shadow: 0 8px 30px rgb(41 65 74 / 25%); }
.featured-play:hover .featured-play-icon { background: #f9ce71; }
.featured-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.featured-stage.is-spotify { aspect-ratio: auto; height: 152px; }
.featured-stage.is-spotify iframe { height: 152px; }
.featured-details { padding: 1rem .3rem .3rem; }
.featured-details h2 { margin: .1rem 0; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.featured-details p { margin: .35rem 0; color: var(--muted); }
.featured-details p a { color: var(--orange-deep); font-weight: 900; }
.inline-button { display: inline; padding: 0; border: 0; background: none; color: var(--orange-deep); font: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.1rem; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 900; text-align: center; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange-deep); color: white; }
.button-primary:hover { background: var(--orange); }
.button-outline { border: 2px solid var(--ink); }
.button-outline:hover { background: white; }
.intro-band { background: var(--color-accent); border-block: 1px solid var(--line); }
.intro-band-inner { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 4rem); min-height: 105px; }
.intro-band p { margin: .8rem 0; font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 900; text-align: center; line-height: 1.3; }
.intro-star { color: #bb5b37; font-size: 2.2rem; }
.songs-section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.collection-intro { padding-block: 1.25rem 0; }
.collection-intro h1 { max-width: none; margin: .15rem 0; font-size: clamp(2rem, 3.1vw, 3.2rem); }
.collection-intro > p:not(.eyebrow) { max-width: none; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.collection-tabs { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.songs-section > .collection-tabs { margin-bottom: 1.8rem; }
.collection-tabs a { display: inline-flex; align-items: center; min-height: 2.85rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 900; text-decoration: none; }
.collection-tabs a:hover, .collection-tabs a[aria-current="page"] { background: var(--orange-deep); border-color: var(--orange-deep); color: white; }
.collection-page .collection-tabs { margin-top: .75rem; }
.collection-page .collection-tabs a { min-height: 2.4rem; padding: .3rem .8rem; }
.collection-page .songs-section { padding-top: 1rem; padding-bottom: 3rem; }
.birthday-page-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "intro player" "songs player"; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: .35rem; align-items: start; }
.birthday-page-grid > .collection-intro { grid-area: intro; padding-top: 1rem; }
.birthday-page-grid > .songs-section { grid-area: songs; padding-top: .2rem; }
.birthday-page-grid > .player-panel { grid-area: player; margin-top: 1rem; }
.collection-page .section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-js-videos { margin-top: 2rem; }
.no-js-videos article { max-width: 42rem; margin-bottom: 2rem; }
.no-js-videos iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .75rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.3rem; }
.section-heading h2 { margin: .35rem 0 0; }
.section-heading > p { max-width: 24rem; margin: 0; color: var(--muted); }
.section-heading > p a { font-weight: 800; }
.listening-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.player-panel { position: sticky; top: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--white); box-shadow: 0 20px 50px rgb(79 89 84 / 9%); }
.video-caption { margin: .7rem .2rem 0; color: var(--muted); font-size: .95rem; }
.video-caption a { color: var(--orange-deep); font-weight: 900; }
.spotify-option { display: block; min-height: 2.75rem; margin-top: .35rem; padding: .35rem .7rem; border: 1px solid var(--orange-deep); border-radius: .5rem; background: var(--white); color: var(--orange-deep); font-weight: 900; cursor: pointer; }
.spotify-option[hidden] { display: none; }
.spotify-option:hover { background: var(--color-soft); }
.player-kicker { margin: 1.1rem 0 .1rem; color: var(--orange-deep); font-size: .875rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.player-panel h3 { margin: .3rem 0 .2rem; }
#current-credit { margin: 0 0 1rem; color: var(--muted); }
audio { display: block; width: 100%; height: 54px; }
.audio-option { margin-top: .6rem; }
.audio-option summary { width: fit-content; color: var(--orange-deep); cursor: pointer; font-size: .95rem; font-weight: 900; }
.audio-option audio { margin-top: .5rem; }
.continuous-control { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin-top: .75rem; cursor: pointer; font-size: .95rem; font-weight: 800; }
.continuous-control input { width: 1.2rem; height: 1.2rem; accent-color: var(--orange-deep); }
.player-status { min-height: 1.5em; margin: .85rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.source-link { display: inline-block; color: var(--orange-deep); font-size: .9rem; font-weight: 900; }
.track-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.birthday-groups { min-width: 0; }
.language-group + .language-group { margin-top: 1.5rem; }
.language-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .45rem; color: var(--orange-deep); font-size: 1.15rem; font-weight: 900; letter-spacing: .02em; }
.language-group h3 span { color: var(--muted); font-size: .88rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.track-list li { border-bottom: 1px solid var(--line); }
.track-select { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; align-items: center; gap: 1rem; min-height: 6.2rem; padding: .8rem .5rem; text-decoration: none; transition: background-color .18s ease, padding .18s ease; }
.track-select:hover, .track-select.is-selected { padding-inline: 1rem; background: var(--color-soft); }
.track-number { align-self: start; padding-top: .7rem; color: #77553c; font-size: .9rem; font-weight: 900; }
.track-copy { display: grid; gap: .1rem; min-width: 0; }
.track-copy strong { font-size: clamp(1.08rem, 2vw, 1.38rem); font-weight: 900; line-height: 1.25; }
.track-copy small { color: var(--muted); font-size: .88rem; }
.track-arrow { color: var(--orange-deep); font-size: 1.35rem; font-weight: 900; }
.about-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--lavender); }
.about-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.about-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.about-mark { display: flex; align-items: center; justify-content: center; width: 8rem; height: 8rem; border-radius: 50%; background: #f8d47f; color: #873e38; font-size: 5rem; font-weight: 900; letter-spacing: -.1em; transform: rotate(-12deg); }
.about-mark span { margin-left: -.2em; color: var(--orange); font-size: .34em; }
.about-copy h2 { margin: 0 0 1.25rem; }
.about-copy p { margin: 0 0 1rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.text-link { display: inline-block; margin-top: .4rem; color: var(--orange-deep); font-weight: 900; }
.closing-section { padding-block: clamp(4.5rem, 8vw, 7rem); text-align: center; }
.closing-section h2 { max-width: 14ch; margin: .45rem auto 1rem; }
.closing-section p:not(.eyebrow) { margin: 0 auto 1.5rem; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 800; }
.error-page main { align-self: center; justify-self: center; }
.not-found { width: min(62rem, calc(100% - 3rem)); margin: 3rem auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 2rem; }
.not-found h1 { margin: .5rem 0; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.not-found-copy p { color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.not-found-art { width: 100%; height: auto; }
.theme-selector { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .5rem; max-width: calc(100vw - 2rem); padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); font-size: .875rem; }
.theme-selector[hidden] { display: none; }
.theme-selector label { flex: none; font-weight: 800; }
.theme-selector select { min-width: 0; max-width: 13rem; min-height: 2.75rem; padding: .25rem .45rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.theme-selector select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 400px) { .theme-selector { right: .5rem; bottom: .5rem; max-width: calc(100vw - 1rem); } .theme-selector select { max-width: calc(100vw - 7rem); } }
@media (max-width: 830px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .listening-layout { grid-template-columns: 1fr; }
  .player-panel { position: static; }
  .birthday-page-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "player" "songs"; row-gap: 1rem; }
  .birthday-page-grid > .player-panel { margin-top: 0; width: 100%; }
  .birthday-page-grid > .songs-section { padding-top: 0; }
  .collection-page .listening-layout { display: flex; flex-direction: column; }
  .collection-page .player-panel { order: -1; width: 100%; }
  .collection-page .track-list { width: 100%; }
  .collection-page .birthday-groups { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-label { flex-direction: row; align-items: center; }
  .about-mark { width: 4.5rem; height: 4.5rem; font-size: 2.8rem; }
}
@media (max-width: 610px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .site-header nav { width: 100%; gap: .1rem 1.1rem; }
  .hero { padding-block: 3.4rem 3rem; gap: 2.4rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .intro-star { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .track-select { gap: .55rem; grid-template-columns: 2rem minmax(0, 1fr) 1.2rem; min-height: 5.5rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .not-found { grid-template-columns: 1fr; text-align: center; }
  .not-found-actions { justify-content: center; }
  .not-found-art { width: min(60%, 240px); margin: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .featured-stage, audio { display: none; }
  body { background: white; }
  .track-select { min-height: 0; }
}
