/* ============================================================
   The Tidal Wolves — coastal indie-folk one-pager
   Palette: deep tide teal, ink, bone, warm amber accent
   ============================================================ */
:root {
  --ink: #0b1417;
  --ink-2: #0f1d22;
  --deep: #102a30;
  --teal: #1f6f74;
  --foam: #7fd1cb;
  --amber: #e8a04a;
  --amber-2: #f2b563;
  --bone: #f4efe6;
  --bone-dim: #d9d2c4;
  --muted: #9bb0b2;
  --line: rgba(244, 239, 230, 0.12);
  --player-h: 84px;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}

img { display: block; max-width: 100%; }
a { color: var(--foam); text-decoration: none; }
a:hover { color: var(--amber-2); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
}

::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background: var(--amber); color: var(--ink); border-color: var(--amber);
}
.btn--solid:hover { background: var(--amber-2); color: var(--ink); }
.btn--ghost {
  background: transparent; color: var(--bone);
  border-color: rgba(244, 239, 230, 0.35);
}
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 44px);
  background: rgba(11, 20, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--bone); }
.brand:hover { color: var(--bone); }
.brand__mark { color: var(--foam); display: inline-flex; }
.brand__name {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.site-nav__links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.site-nav__links a { color: var(--bone-dim); font-weight: 500; font-size: 0.96rem; }
.site-nav__links a:hover { color: var(--bone); }
.nav-cta {
  background: rgba(232, 160, 74, 0.16);
  border: 1px solid rgba(232, 160, 74, 0.5);
  color: var(--amber-2) !important;
  padding: 8px 16px; border-radius: 100px;
}
.nav-cta:hover { background: rgba(232, 160, 74, 0.28); }
@media (max-width: 720px) {
  .site-nav__links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.12) translateY(-14px); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,20,23,0.55) 0%, rgba(11,20,23,0.12) 32%, rgba(11,20,23,0.78) 80%, var(--ink) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(16,42,48,0.7), transparent 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(28px, 6vw, 64px);
  max-width: var(--maxw);
  width: 100%;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.78rem; font-weight: 600; color: var(--foam);
  margin: 0 0 14px;
}
.hero__title {
  font-size: clamp(3.6rem, 13vw, 9rem);
  font-weight: 900; letter-spacing: -0.03em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}
.hero__tagline {
  max-width: 38ch; font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--bone); margin: 0 0 26px;
}
.hero__tagline strong { color: var(--amber-2); }
.hero__tagline em { font-style: italic; color: var(--bone); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(244,239,230,0.5);
  border-radius: 100px; display: none;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--bone); border-radius: 4px; transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { opacity: .3; top: 8px; } 50% { opacity: 1; top: 18px; } }
@media (min-width: 760px) { .hero__scroll { display: block; } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 44px);
}
.section__head { max-width: 60ch; margin-bottom: 38px; }
.section__kicker {
  text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.74rem; font-weight: 600; color: var(--amber);
  margin: 0 0 10px;
}
.section__title { font-size: clamp(2rem, 5vw, 3rem); }
.section__lede { color: var(--muted); font-size: 1.06rem; margin: 14px 0 0; max-width: 52ch; }

/* ---------- Tracklist ---------- */
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center; gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, padding-left .15s ease;
}
.track:hover, .track:focus-within { background: rgba(127, 209, 203, 0.06); padding-left: 18px; }
.track__num {
  font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--muted);
  text-align: center; position: relative;
}
.track.is-active .track__num { color: transparent; }
.track.is-active .track__num::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.track.is-active.is-playing .track__num::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zM14 5h4v14h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zM14 5h4v14h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.track__title { font-weight: 600; font-size: 1.08rem; }
.track.is-active .track__title { color: var(--amber-2); }
.track__tag {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: var(--foam);
  padding: 3px 9px; border-radius: 100px; font-weight: 700;
}
.track__dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
@media (max-width: 560px) {
  .track { grid-template-columns: 28px 1fr auto; gap: 12px; }
  .track__dur { display: none; }
}

.streaming {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 28px;
}
.streaming__label { color: var(--muted); font-size: 0.9rem; margin-right: 4px; }
.streaming__link {
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px;
  color: var(--bone-dim); font-weight: 500; font-size: 0.92rem;
  transition: border-color .2s, color .2s;
}
.streaming__link:hover { border-color: var(--foam); color: var(--foam); }

/* ---------- Tour ---------- */
.tour { border-top: 1px solid var(--line); }
.shows { list-style: none; margin: 0; padding: 0; }
.show {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center; gap: clamp(14px, 3vw, 32px);
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.show__date { text-align: center; }
.show__month {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem;
  color: var(--amber); font-weight: 700;
}
.show__day { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 600; line-height: 1; }
.show__city { font-size: 1.25rem; font-weight: 600; font-family: "Fraunces", serif; }
.show__venue { color: var(--muted); font-size: 0.96rem; }
.show__cta .btn { padding: 10px 20px; }
.show__soldout {
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--line); padding: 9px 18px; border-radius: 100px;
}
.show__few {
  display: inline-flex; align-items: center; gap: 7px;
}
.show__few::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 0 rgba(232,160,74,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,160,74,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(232,160,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,160,74,0); }
}
.tour__note { color: var(--muted); margin-top: 26px; }
@media (max-width: 600px) {
  .show { grid-template-columns: 64px 1fr; row-gap: 10px; }
  .show__cta { grid-column: 2; justify-self: start; }
}

/* ---------- Merch ---------- */
.merch { border-top: 1px solid var(--line); }
.merch__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.merch-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.merch-card:hover { transform: translateY(-4px); border-color: rgba(127,209,203,0.4); }
.merch-card__img { aspect-ratio: 1; overflow: hidden; background: var(--deep); }
.merch-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.merch-card:hover .merch-card__img img { transform: scale(1.05); }
.merch-card__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.merch-card__name { font-weight: 600; font-size: 1.08rem; font-family: "Fraunces", serif; }
.merch-card__desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.merch-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.merch-card__price { font-weight: 700; font-size: 1.15rem; }
.merch-card__buy { font-size: 0.9rem; padding: 9px 18px; }

/* ---------- Mailing ---------- */
.mailing { max-width: var(--maxw); margin: 0 auto; padding-block: clamp(40px, 7vw, 70px); }
.mailing__panel {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(31,111,116,0.45), transparent 55%),
    linear-gradient(180deg, var(--ink-2), var(--deep));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.mailing__copy p { color: var(--bone-dim); margin: 12px 0 0; max-width: 36ch; }
.mailing__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--bone-dim); }
.field input {
  background: rgba(11, 20, 23, 0.6);
  border: 1px solid var(--line); color: var(--bone);
  padding: 13px 15px; border-radius: 10px; font-size: 1rem; font-family: inherit;
  transition: border-color .2s;
}
.field input::placeholder { color: rgba(155, 176, 178, 0.6); }
.field input:focus { border-color: var(--foam); outline: none; }
.field input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.mailing__form .btn { justify-content: center; margin-top: 4px; }
.form-status { margin: 4px 0 0; font-size: 0.92rem; min-height: 1.2em; font-weight: 600; }
.form-status.is-ok { color: var(--foam); }
.form-status.is-err { color: #f0876b; }
@media (max-width: 720px) { .mailing__panel { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
  border-top: 1px solid var(--line);
}
.about__media img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow);
}
.about__copy p { color: var(--bone-dim); }
.about__copy .section__title { margin: 6px 0 16px; }
.members { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.members li { color: var(--muted); }
.members strong { color: var(--bone); font-weight: 600; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16/10; }
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact__card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--ink-2);
}
.contact__card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact__card p { color: var(--muted); margin: 0 0 6px; font-size: 0.94rem; }
.contact__card a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-2); }
.site-foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.site-foot__brand { font-family: "Fraunces", serif; font-size: 1.3rem; font-weight: 600; margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.socials a { color: var(--bone-dim); font-weight: 500; }
.socials a:hover { color: var(--foam); }
.site-foot__fine { width: 100%; color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ============================================================
   Sticky player
   ============================================================ */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: var(--player-h);
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) minmax(160px, 2fr) auto;
  align-items: center; gap: 14px;
  padding: 0 clamp(12px, 3vw, 24px);
  background: rgba(13, 26, 30, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(127, 209, 203, 0.18);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}
.player[hidden] { display: none; }
.player__art {
  width: 56px; height: 56px; padding: 0; border: none; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--deep);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__toggle {
  width: 50px; height: 50px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--amber); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s ease, background .2s ease;
}
.player__toggle:hover { background: var(--amber-2); transform: scale(1.05); }
.player__meta { min-width: 0; }
.player__title {
  margin: 0; font-weight: 600; font-size: 0.98rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__artist { margin: 0; color: var(--muted); font-size: 0.82rem; }
.player__seek { display: flex; align-items: center; gap: 10px; }
.player__time { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; min-width: 34px; }
.player__time:last-child { text-align: right; }
.player__bar {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 5px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--foam) 0%, var(--foam) var(--p, 0%), rgba(244,239,230,0.18) var(--p, 0%), rgba(244,239,230,0.18) 100%);
}
.player__bar::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--bone);
  border: 2px solid var(--amber); cursor: pointer;
}
.player__bar::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--bone);
  border: 2px solid var(--amber); cursor: pointer;
}
.player__side { display: flex; gap: 4px; }
.player__skip {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--bone-dim);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.player__skip:hover { background: rgba(244,239,230,0.08); color: var(--bone); }

@media (max-width: 760px) {
  :root { --player-h: 70px; }
  .player { grid-template-columns: auto auto 1fr auto; gap: 10px; }
  .player__art { width: 46px; height: 46px; }
  .player__toggle { width: 44px; height: 44px; }
  .player__seek { display: none; }
}
@media (max-width: 420px) {
  .player__side .player__prev { display: none; }
}
