/* ============================================================
   Tommy B SAL — Link Tree
   Aesthetic: xeroxed sound-system dance poster.
   High-contrast B&W, photocopy grain, slapped-on sticker labels,
   brush display type, rasta stripe as structure, gold as accent.
   ============================================================ */

/* ===== Design tokens ===== */
:root {
  --ink:    #0c0c0b;   /* page background — near-black */
  --paper:  #f1ede1;   /* primary text — warm newsprint white */
  --muted:  #8f8c80;   /* secondary text */
  --gold:   #f0b32a;   /* primary accent — headlines, hover, stickers */
  --gold-hi:#f7c64f;   /* gold hover */
  --red:    #d2342a;   /* reserve accent — rasta stripe */
  --green:  #1b8a4c;   /* reserve accent — rasta stripe */
  --card:   #15150f;   /* raised surface */
  --card-hi:#1e1e16;   /* raised surface hover */
  --line:   #36352d;   /* hairline borders */

  --font-display: 'Knewave', 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  --maxw: 588px;       /* mobile-first content column */
  --pad: 22px;
  --gap: 13px;
  --radius: 4px;       /* tight, poster-like — not soft app rounding */
  --shadow-hard: 4px 4px 0 rgba(0,0,0,0.9);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ===== Base ===== */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* photocopy grain — fixed overlay, sits above bg, below content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }

section { padding: 46px var(--pad); border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

/* ===== Rasta stripe (the one full-palette structural nod) ===== */
.rasta-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66% 100%);
}

/* ===== Sticker label — slapped-on, angled ===== */
.sticker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 6px 13px 5px;
  transform: rotate(-2.4deg);
  box-shadow: var(--shadow-hard);
  margin-bottom: 20px;
}

/* ===== Section heading — brush display ===== */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

/* ===== Button base ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s ease, box-shadow 0.13s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--gold);
  background: var(--card-hi);
  box-shadow: var(--shadow-hard);
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(0,0,0,0.9); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 800;
}
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

.btn-disabled { opacity: 0.4; cursor: not-allowed; }
.btn-disabled:hover { transform: none; border-color: var(--line); background: var(--card); box-shadow: none; }

/* ===== Accessibility ===== */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

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

/* ============================================================
   HERO — pasted-photo poster
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px var(--pad) 76px;
  overflow: hidden;
  border-bottom: none;
}
/* ghosted oversized initials behind everything */
#hero::before {
  content: "SAL";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%) rotate(-8deg);
  font-family: var(--font-display);
  font-size: 54vw;
  line-height: 1;
  color: #ffffff;
  opacity: 0.035;
  pointer-events: none;
  white-space: nowrap;
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

/* the pasted photo */
.hero-photo {
  position: relative;
  width: min(74vw, 312px);
  margin-bottom: 26px;
  border: 7px solid var(--paper);
  box-shadow: var(--shadow-hard);
  transform: rotate(-3deg);
}
.hero-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.32) brightness(1.02);
  display: block;
}
.hero-photo-tag {
  position: absolute;
  right: -14px;
  bottom: -16px;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 7px 12px;
  transform: rotate(6deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.85);
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-shadow: 4px 5px 0 rgba(0,0,0,0.75);
}
.hero-name span { display: block; }
.hero-name span:first-child { font-size: clamp(2.7rem, 13vw, 4.4rem); }
.hero-name span:last-child {
  font-size: clamp(4.4rem, 23vw, 7.6rem);
  color: var(--gold);
}

.hero-sub {
  margin-top: 18px;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero-sub::before, .hero-sub::after { content: "/"; color: var(--gold); margin: 0 10px; }

.hero-tagline {
  margin-top: 18px;
  max-width: 17em;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--paper);
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  text-decoration: none;
  animation: bob 1.9s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* staggered load reveal */
.hero-photo, .hero-name span, .hero-sub, .hero-tagline {
  opacity: 0;
  animation: rise 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-photo { animation-delay: 0.05s; }
.hero-name span:first-child { animation-delay: 0.2s; }
.hero-name span:last-child { animation-delay: 0.31s; }
.hero-sub { animation-delay: 0.46s; }
.hero-tagline { animation-delay: 0.56s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
/* keep the photo's rotation through the reveal */
.hero-photo { animation-name: rise-rot; }
@keyframes rise-rot {
  from { opacity: 0; transform: translateY(24px) rotate(-3deg); }
  to { opacity: 1; transform: translateY(0) rotate(-3deg); }
}

/* ============================================================
   SHARED — section lead text, outbound buttons
   ============================================================ */
.section-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
  max-width: 30em;
}

.btn-arrow { transition: transform 0.13s ease; }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ============================================================
   LISTEN
   ============================================================ */
.apple-embed {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.dsp-grid { display: grid; gap: var(--gap); }
.dsp-btn { justify-content: space-between; }
.dsp-btn .btn-arrow { color: var(--gold); font-size: 1.1rem; }

/* ============================================================
   WATCH — click-to-load video facades
   ============================================================ */
.video-grid { display: grid; gap: var(--gap); }
.video-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
}
.video-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
  border-color: var(--gold);
}
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.15);
  transition: filter 0.2s ease;
}
.video-card:hover .video-thumb { filter: grayscale(0) contrast(1.05); }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.85);
}
.video-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 11px;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
}
.video-title em { color: var(--gold); font-style: normal; font-weight: 600; font-size: 0.85rem; }
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* ============================================================
   LIVE
   ============================================================ */
.live-note {
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.live-note a {
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: 3px;
}
.live-credit {
  color: var(--paper);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.98rem;
}
.live-credit strong { color: var(--gold); font-weight: 800; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-short {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.about-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
}
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::after { content: "▾"; font-size: 0.7rem; }
.about-more[open] summary::after { content: "▴"; }
.about-full { padding-top: 4px; }
.about-full p { margin-bottom: 14px; color: var(--paper); }
.about-full p:last-child { margin-bottom: 0; }

/* ============================================================
   PRESS
   ============================================================ */
.press-quote {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 18px 16px;
  margin-bottom: var(--gap);
}
.press-quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
}
.press-quote p {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}
.press-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.press-quote cite a { color: var(--gold); text-decoration: none; }
.press-quote cite a:hover { text-decoration: underline; text-underline-offset: 3px; }
#press .btn-disabled { margin-top: 6px; }

/* ============================================================
   FOLLOW
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.social-btn {
  justify-content: space-between;
  font-size: 0.96rem;
}
.social-btn .btn-arrow { color: var(--gold); }

/* ============================================================
   MAILING LIST
   ============================================================ */
.beehiiv-embed {
  width: 100%;
  min-height: 200px;
}
.mailing-fallback {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.mailing-fallback a {
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ============================================================
   BOOKING + FOOTER
   ============================================================ */
#booking { text-align: center; }
#booking .sticker { margin-left: auto; margin-right: auto; }
#booking .section-lead { margin-left: auto; margin-right: auto; }
#booking .btn-primary { max-width: 340px; margin: 0 auto; }

footer { max-width: none; }
.footer-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 26px var(--pad) 36px;
}

/* ============================================================
   SCROLL REVEAL (progressive — .reveal added by JS)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   DESKTOP — frame the column as a pinned poster
   ============================================================ */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  body {
    background-image:
      radial-gradient(ellipse 70% 50% at 50% 0%, rgba(240,179,42,0.05), transparent 70%);
  }
  section { padding: 58px var(--pad); }
  main {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  }
  .dsp-grid { grid-template-columns: 1fr 1fr; }
}
