/* ============================================================
   gabe & eli — gig-poster / digicam zine
   ============================================================ */
:root {
  --ink:        #0a0a0a;
  --paper:      #efe7d5;   /* off-white cream — cards */
  --paper-warm: #f5ecd6;
  --stamp:      #F5C518;   /* date-stamp yellow */
  --stamp-deep: #d8a800;
  --night:      #050308;
  --bruise:     #2a1638;
  --ember:      #ff5722;
  --halo:       #ffd27a;

  --shadow:     8px 8px 0 var(--ink);
  --shadow-sm:  4px 4px 0 var(--ink);

  --display: 'Fraunces', 'Times New Roman', serif;
  --mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--night); }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  font-family: var(--mono);
  color: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- background: mobile gradient, desktop photo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% 115%, #ff5722 0%, #c1284f 22%, #4a1858 48%, #14091e 75%, var(--night) 100%);
}
.bg::after {
  /* subtle grain */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (min-width: 820px) {
  .bg {
    background:
      linear-gradient(180deg, #00000088 0%, #00000022 35%, #00000099 100%),
      url("desktop_bg.webp") center 35% / cover no-repeat,
      var(--night);
  }
}

/* ---------- stars (mobile only — desktop uses the photo sky) ---------- */
.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle 1.4px at  6% 5%,  #ffffff 0, #ffffffcc 40%, transparent 100%),
    radial-gradient(circle 1px   at 18% 9%,  #fff4dc 0, #fff4dcaa 40%, transparent 100%),
    radial-gradient(circle 2px   at 31% 14%, #ffffff 0, #ffffffdd 35%, transparent 100%),
    radial-gradient(circle 1.2px at 44% 7%,  #ffffff 0, #ffffffaa 40%, transparent 100%),
    radial-gradient(circle 1px   at 57% 17%, #fff4dc 0, #fff4dcaa 40%, transparent 100%),
    radial-gradient(circle 1.6px at 68% 11%, #ffffff 0, #ffffffcc 35%, transparent 100%),
    radial-gradient(circle 1.1px at 79% 6%,  #ffffff 0, #ffffffbb 40%, transparent 100%),
    radial-gradient(circle 2.2px at 91% 19%, #ffffff 0, #ffffffee 35%, transparent 100%),
    radial-gradient(circle 1px   at 12% 24%, #ffffff 0, #ffffff99 40%, transparent 100%),
    radial-gradient(circle 1.4px at 26% 31%, #fff4dc 0, #fff4dccc 35%, transparent 100%),
    radial-gradient(circle 1px   at 41% 27%, #ffffff 0, #ffffff88 40%, transparent 100%),
    radial-gradient(circle 1.6px at 53% 36%, #ffffff 0, #ffffffbb 35%, transparent 100%),
    radial-gradient(circle 1px   at 64% 29%, #fff4dc 0, #fff4dc99 40%, transparent 100%),
    radial-gradient(circle 1.3px at 76% 38%, #ffffff 0, #ffffffbb 35%, transparent 100%),
    radial-gradient(circle 1px   at 87% 33%, #ffffff 0, #ffffff77 40%, transparent 100%),
    radial-gradient(circle 1.5px at  9% 45%, #fff4dc 0, #fff4dcaa 35%, transparent 100%),
    radial-gradient(circle 1px   at 36% 50%, #ffffff 0, #ffffff77 40%, transparent 100%),
    radial-gradient(circle 1.2px at 62% 52%, #ffe9c2 0, #ffe9c277 40%, transparent 100%);
  opacity: 0;
  animation: starsIn 1400ms ease-out 200ms forwards, starsTwinkle 5400ms ease-in-out 1600ms infinite;
}
@keyframes starsIn      { to { opacity: 1; } }
@keyframes starsTwinkle {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(.72); }
}
@media (min-width: 820px) {
  .stars { display: none; }
}

/* ---------- horizon glow ----------
   A warm gradient that GROWS UPWARD from the bottom edge.
   transform-origin: bottom keeps the amber pinned to the horizon
   while scaleY pushes the warmth higher into the sky as the sun rises. */
.horizon-glow {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
    #ffd27a 0%,
    #ff9a4e 12%,
    #ff5022 26%,
    #c1284f 44%,
    #6a2a8a 62%,
    transparent 90%);
  transform-origin: bottom center;
  transform: scaleY(.08);
  opacity: 0;
  filter: blur(4px);
  animation: dawnRise 4400ms cubic-bezier(.32, .04, .26, 1) 900ms forwards;
  will-change: transform, opacity;
}
/* a softer wash behind that bleeds further into the night */
.horizon-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    #ff572266 0%,
    #c1284f33 30%,
    transparent 70%);
  filter: blur(28px);
  transform-origin: bottom center;
  transform: scaleY(.12);
  animation: dawnWash 4400ms cubic-bezier(.32, .04, .26, 1) 900ms forwards;
}
@keyframes dawnRise {
  0%   { opacity: 0;   transform: scaleY(.08); }
  22%  { opacity: .55; }
  100% { opacity: .6;  transform: scaleY(.62); }
}
@keyframes dawnWash {
  0%   { transform: scaleY(.12); }
  100% { transform: scaleY(.9); }
}

@media (min-width: 820px) {
  /* desktop: no horizon glow — the photo carries the mood */
  .horizon-glow { display: none; }
}

/* ---------- sun-in-letter ----------
   The sun rides inside the first "o" of "Goodmorning".
   Starts deep red below the viewport, drifts up and slightly left
   (atmospheric refraction), grows from oversized to letter-sized,
   and warms from ember → amber → gold. */

.o-slot {
  display: inline-block;
  position: relative;
  width: 0.56em;
  height: 0.56em;
  vertical-align: -0.04em;
  margin: 0 0.01em;
}

.sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    #fff8d8 0%,
    #ffe27a 28%,
    var(--stamp) 52%,
    #ff8d3a 78%,
    #c93a16 100%);
  box-shadow:
    0 0 10px 2px #ffe27a99,
    0 0 28px 6px #ffb35e66,
    0 0 70px 14px #ff572233;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity, filter;
  /* three concurrent animations so transform stays a single smooth
     cubic-bezier curve, while color-warmth and fade-in run on
     their own gentler curves. */
  animation:
    sunRise   4600ms cubic-bezier(.16, .78, .22, 1) 300ms forwards,
    sunWarm   4600ms cubic-bezier(.4, 0, .3, 1)     300ms forwards,
    sunAppear  700ms ease-out                       300ms forwards;
}

@keyframes sunRise {
  from { transform: translate(1.4em, 16em) scale(3.4); }
  to   { transform: translate(0, 0) scale(1); }
}
@keyframes sunWarm {
  0%   { filter: saturate(1.45) brightness(.55) hue-rotate(-14deg) blur(2.2px); }
  35%  { filter: saturate(1.35) brightness(.78) hue-rotate(-10deg) blur(1.2px); }
  70%  { filter: saturate(1.18) brightness(.95) hue-rotate(-4deg)  blur(.3px); }
  100% { filter: saturate(1)    brightness(1.04) hue-rotate(0)     blur(0); }
}
@keyframes sunAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  padding:
    calc(env(safe-area-inset-top) + 22px)
    clamp(20px, 5vw, 56px)
    calc(env(safe-area-inset-bottom) + 28px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
}
.topbar .mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}
.topbar .mark .dot {
  width: 8px; height: 8px;
  background: var(--stamp);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--stamp);
}
.timestamp {
  font-family: var(--mono);
  color: var(--stamp);
  text-shadow: 0 0 8px #00000055;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .05em;
}

/* ---------- album bar ---------- */
.album-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 0 6px;
}
.album-bar .album-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .65;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.album-bar .album-eyebrow::before,
.album-bar .album-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.album-word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 12vw, 92px);
  line-height: .95;
  letter-spacing: -0.014em;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 3px 0 #00000055, 0 0 50px #00000099;
  white-space: nowrap;
  max-width: 100%;
}
.album-word .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  max-width: 720px;
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) 200ms both;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stamp);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--stamp);
}
.title {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(64px, 16vw, 184px);
  line-height: .82;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 4px 0 #00000055, 0 0 60px #00000088;
}
.title .amp {
  font-style: italic;
  font-weight: 400;
  font-family: var(--display);
  color: var(--stamp);
  padding: 0 .04em;
}
.lyric {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 2.4vw, 22px);
  line-height: 1.4;
  max-width: 36ch;
  color: #efe7d5d8;
  margin: 0;
  text-shadow: 0 1px 0 #0a0a0a99;
  border-left: 2px solid var(--stamp);
  padding-left: 14px;
  margin-top: 30px;
}

/* ---------- listen section ---------- */
.listen-wrap {
  align-self: end;
  width: 100%;
  display: grid;
  gap: 18px;
  animation: rise 800ms cubic-bezier(.2,.7,.2,1) 300ms both;
}

.listen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #efe7d566;
}
.listen-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--paper);
}
.listen-head .release {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--stamp);
}

/* cards stacked, brutalist paper with hard offset shadow */
.services {
  display: grid;
  gap: 18px;
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  min-height: 68px;
  touch-action: manipulation;
  isolation: isolate;
  overflow: hidden;
}
.svc::before {
  /* faint vertical strip echoing service brand */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--svc-bg, var(--ink));
}
.svc .chip {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--svc-bg, var(--ink));
  color: var(--svc-fg, var(--paper));
  border: 1.5px solid var(--ink);
  margin-left: 4px;
}
.svc .chip svg { width: 26px; height: 26px; display: block; }
.svc .label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.svc .label .name {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "opsz" 96;
  font-size: clamp(22px, 4.4vw, 28px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.svc .label .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
}
.svc .arrow {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 160ms ease;
}
.svc:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
@media (hover: hover) {
  .svc:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--ink);
    background: var(--paper-warm);
  }
  .svc:hover .arrow { transform: translate(4px, -4px); }
}

/* ---------- footer ---------- */
footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .8;
  padding-top: 12px;
  border-top: 1px dashed #efe7d533;
}
footer a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
footer a:hover { color: var(--stamp); }
.footer-right { text-align: right; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- desktop layout ---------- */
@media (min-width: 820px) {
  main {
    grid-template-columns: 1.05fr .95fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "top   top"
      "album album"
      "hero  listen";
    gap: 24px 56px;
    padding: 36px clamp(28px, 5vw, 72px) 56px;
  }
  .topbar    { grid-area: top; }
  .album-bar { grid-area: album; padding: 4px 0 0; }
  .hero      { grid-area: hero; align-self: end; }
  .listen-wrap { grid-area: listen; align-self: end; max-width: 460px; justify-self: end; width: 100%; }
  .album-word { font-size: clamp(48px, 6.2vw, 78px); }
  .services { gap: 20px; }
  .svc { box-shadow: var(--shadow); padding: 18px 20px; min-height: 76px; }
  .svc:active { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--ink); }
}
@media (min-width: 820px) and (hover: hover) {
  .svc:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
}

/* ---------- mobile: hide hero, let album-bar take its place ---------- */
@media (max-width: 819px) {
  .hero { display: none; }
  main { gap: 22px; }
  .album-bar { padding: 36px 0 12px; gap: 14px; }
  .topbar .mark { font-size: 12.5px; letter-spacing: .18em; }
  .topbar .mark .dot { width: 9px; height: 9px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sun, .horizon-glow, .hero, .listen-wrap, .album-bar, .stars { animation: none !important; }
  .sun { opacity: 1; transform: none; filter: none; }
  .horizon-glow { opacity: .55; transform: none; }
  .stars { opacity: 1; }
}

/* ---------- very narrow phones ---------- */
@media (max-width: 380px) {
  .title { font-size: 56px; }
}
