/* ------------------------------------------------------------
   Tyler Hendricks — light, bright & breezy
   Fonts: Unbounded (airy wide display), Instrument Serif (italic
   flourishes + lyrics), Bricolage Grotesque (UI + body)
------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --ink: #2a2b55;
  --ink-soft: #6a6c93;
  --line: rgba(120, 120, 180, 0.16);
  --glass: rgba(255, 255, 255, 0.68);

  --pink: #ffb3c9;
  --peach: #ffd9b0;
  --lemon: #fff3a8;
  --mint: #c4f5c9;
  --sky: #a8e6ff;
  --lilac: #c9b6ff;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;

  --radius: 28px;
  --shadow: 0 10px 40px -12px rgba(120, 110, 200, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px;
}
.skip:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------
   Ribbon background
------------------------------------------------------------ */
.ribbons {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(201, 182, 255, 0.14), transparent 70%),
    radial-gradient(900px 600px at -10% 100%, rgba(168, 230, 255, 0.16), transparent 70%),
    #fff;
}
.ribbons svg { width: 100%; height: 114%; filter: blur(11.2px); }
.ribbons .ribbon-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: sway var(--dur, 28s) ease-in-out var(--delay, 0s) infinite alternate;
}
.ribbons .ribbon-body { filter: url(#soften); }

@keyframes sway {
  0%   { transform: translate3d(-18px, 6px, 0) rotate(-1.2deg) scale(1); }
  50%  { transform: translate3d(10px, -14px, 0) rotate(0.6deg) scale(1.02); }
  100% { transform: translate3d(22px, 8px, 0) rotate(1.4deg) scale(1.01); }
}

/* ------------------------------------------------------------
   Nav
------------------------------------------------------------ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  width: min(940px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 24px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 30px -10px rgba(120, 110, 200, 0.28);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 300; font-size: 0.82rem; letter-spacing: 0.04em;
  text-decoration: none;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 7px 16px; border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s;
}
.nav__links a:hover { background: rgba(201, 182, 255, 0.28); color: var(--ink); }

/* ------------------------------------------------------------
   Shared
------------------------------------------------------------ */
main { display: block; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.74rem; font-weight: 600;
  color: #8a7bea;
}

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2, .about h2 {
  font-family: var(--font-display);
  font-weight: 200; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-top: 12px;
}
.about h2 em, .hero__tag em, .section-head h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  color: var(--ink);
  background: linear-gradient(120deg, var(--pink), var(--peach) 35%, var(--mint) 65%, var(--sky));
  background-size: 200% 100%;
  box-shadow: 0 12px 30px -10px rgba(255, 140, 180, 0.55);
  transition: transform 0.3s, background-position 0.6s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 16px 34px -10px rgba(120, 180, 255, 0.55); }
.btn svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero .eyebrow { margin-bottom: 26px; }
.hero__title { display: flex; flex-direction: column; align-items: center; line-height: 0.95; }
.hero__first {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  color: #8a7bea;
  margin-bottom: -0.1em;
}
.hero__last {
  font-family: var(--font-display);
  font-weight: 200; letter-spacing: -0.045em;
  font-size: clamp(2.6rem, 10.2vw, 7.4rem);
  background: linear-gradient(100deg, #2a2b55 0%, #5b4fc9 55%, #e0527f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__tag {
  margin: 30px 0 38px;
  max-width: 30ch;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  font-weight: 300;
}
.hero__tag em { font-size: 1.15em; color: var(--ink); }

.hero > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: 0.1s; }
.hero > :nth-child(3) { animation-delay: 0.25s; }
.hero > :nth-child(4) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ------------------------------------------------------------
   Songs
------------------------------------------------------------ */
.songs { padding: 70px 20px 40px; max-width: 860px; margin: 0 auto; }

.tracklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }

.track article {
  position: relative;
  padding: 28px 30px 20px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s;
}
.track article::before {
  /* soft pastel wash in the corner */
  content: ""; position: absolute; inset: -40% auto auto -10%;
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--c1), transparent 68%);
  opacity: 0.35; filter: blur(22px); pointer-events: none;
}
.track article::after {
  content: ""; position: absolute; inset: auto -10% -45% auto;
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--c2), transparent 68%);
  opacity: 0.4; filter: blur(24px); pointer-events: none;
}
.track article:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -14px rgba(120, 110, 200, 0.35); }
.track article > * { position: relative; z-index: 1; }

.track__top { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.track__num {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 300; font-size: 0.95rem;
  color: var(--accent, #6c58e0);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65);
}
.track__title {
  font-family: var(--font-display);
  font-weight: 300; letter-spacing: -0.015em;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem); line-height: 1.2;
}
.track__sub { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

/* Player */
.player {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px 10px 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.player__btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: var(--ink);
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 55%, var(--c1)));
  box-shadow: 0 8px 18px -6px var(--c1);
  transition: transform 0.25s;
}
.player__btn:hover { transform: scale(1.08); }
.player__btn svg { width: 22px; height: 22px; }
.player__btn .i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }

.player__seek {
  --p: 0%;
  flex: 1; min-width: 0; height: 22px; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.player__seek::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--c1), var(--c2)) 0 0 / var(--p) 100% no-repeat, rgba(140, 140, 190, 0.18);
}
.player__seek::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(140, 140, 190, 0.18); }
.player__seek::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -5px;
  background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(80, 70, 160, 0.3);
}
.player__seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }

.player__time {
  flex: none; font-variant-numeric: tabular-nums;
  font-size: 0.85rem; color: var(--ink-soft); min-width: 5.6em; text-align: right;
}

/* Lyrics */
.lyrics-toggle {
  margin: 14px 0 0; padding: 8px 14px 8px 4px;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}
.lyrics-toggle svg { transition: transform 0.35s; }
.lyrics-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lyrics-toggle:hover { color: #6c58e0; }

.lyrics {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 0.5s cubic-bezier(.2,.7,.2,1), visibility 0s 0.5s;
}
.lyrics.is-open {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 0.5s cubic-bezier(.2,.7,.2,1), visibility 0s 0s;
}
.lyrics__inner { overflow: hidden; min-height: 0; }
.lyrics.is-open .lyrics__inner { padding: 10px 0 18px; }

.stanza {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.45;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(var(--c1), var(--c2)) 1;
}
.stanza .tag {
  display: block; margin-bottom: 4px;
  font-family: var(--font-body); font-style: normal;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
}
.stanza.chorus { font-style: italic; }
.stanza.refrain { color: var(--ink-soft); font-size: 1.15rem; margin-top: 12px; }

/* ------------------------------------------------------------
   About
------------------------------------------------------------ */
.about { padding: 100px 20px 60px; }
.about__card {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 56px 36px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 44px;
  box-shadow: var(--shadow);
}
.about__card p:last-child { margin-top: 22px; color: var(--ink-soft); font-size: 1.12rem; max-width: 52ch; margin-inline: auto; }
.about h2 em { color: #8a7bea; }

/* ------------------------------------------------------------
   Coming soon
------------------------------------------------------------ */
.soon { padding: 60px 20px 110px; max-width: 980px; margin: 0 auto; }
.soon__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.soon__card {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)) padding-box,
    linear-gradient(135deg, var(--c1), var(--c2)) border-box;
  border: 2px dashed transparent;
  background-clip: padding-box, border-box;
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.soon__card:nth-child(2) { animation-delay: -2.3s; }
.soon__card:nth-child(3) { animation-delay: -4.6s; }
.soon__card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0.25;
}
.soon__card > * { position: relative; }
.soon__card .track__num { color: #6c58e0; }
.soon__label { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Reveal on scroll (class added by script.js, so no-JS stays visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.footer {
  text-align: center; padding: 30px 20px 50px;
  color: var(--ink-soft); font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Responsive & motion
------------------------------------------------------------ */
@media (max-width: 700px) {
  .nav { padding-left: 18px; }
  .nav__links a { padding: 7px 10px; font-size: 0.85rem; }
  .nav__links a:first-child { display: none; }
  .track article { padding: 22px 18px 14px; }
  .track__top { gap: 14px; }
  .track__num { width: 46px; height: 46px; font-size: 0.8rem; }
  .player { gap: 10px; padding-right: 14px; }
  .player__time { min-width: 0; font-size: 0.78rem; }
  .player__time .t-dur { display: none; }
  .soon__grid { grid-template-columns: 1fr; }
  .soon__card { aspect-ratio: 16 / 7; flex-direction: row; }
  .about__card { padding: 40px 22px; }
}

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