/* ============================================================
   GENTLE & LOWLY — gentleandlowlyband.com
   ------------------------------------------------------------
   The music sub-brand of Worship Music & Arts Club (Penn State).
   Espresso canvas · cream ink · amber "&" · Cormorant + Source Sans.
   Whispered, spacious, hymnal. The "&" is the identity.

   Design tokens mirror the WM&A Design System
   (.claude/skills/WMA Design System/colors_and_type.css).
   ============================================================ */

/* ---------- Local variable fonts (offline-safe) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* G&L palette */
  --espresso:     #1a1714;   /* canvas */
  --espresso-2:   #211d19;   /* deeper section break */
  --card:         #242019;   /* elevated surface */
  --border:       #3a3228;   /* warm-brown hairline */
  --border-soft:  rgba(245, 234, 214, 0.10);
  --cream:        #f5ead6;   /* ink */
  --cream-2:      rgba(245, 234, 214, 0.60);  /* body / secondary */
  --cream-3:      rgba(245, 234, 214, 0.40);  /* captions */
  --cream-4:      rgba(245, 234, 214, 0.22);  /* faint / locked */
  --amber:        #c4793a;   /* the "&", accent, hover */
  --amber-bright: #d97757;   /* lift on hover */

  /* type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Courier New', monospace;

  /* fluid scale — display leans large, body small/quiet */
  --fs-hero:    clamp(2.8rem, 9vw, 6.5rem);
  --fs-display: clamp(2.2rem, 5.5vw, 4rem);
  --fs-h3:      clamp(1.1rem, 2.4vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.875rem;
  --fs-eyebrow: 0.7rem;
  --fs-micro:   0.65rem;

  /* motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --dur:        220ms;
  --dur-slow:   520ms;

  /* rhythm */
  --max:  1100px;
  --gut:  clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--espresso); }

/* Paper-grain overlay — material, not gradient. Fixed, non-interactive. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.035;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow .amp { color: var(--amber); font-weight: 700; }

.amp { color: var(--amber); font-weight: 700; }  /* the hero glyph */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Wordmark (canonical G&L compact) ---------- */
.wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .amp { margin: 0 0.1em; }

/* ============================================================
   HERO — the billboard
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 0;
  overflow: hidden;
}
/* atmospheric band photo — veiled so the wordmark + covers stay legible */
.hero__bg {
  position: absolute; inset: 0;
  background: url('../img/band-photo.jpg') center 30% / cover no-repeat;
  opacity: 0.55;
  transform: scale(1.06);
  animation: drift 26s var(--ease) infinite alternate;
  z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 0%, rgba(26,23,20,0.5) 58%, rgba(26,23,20,0.9) 100%),
    linear-gradient(180deg, rgba(26,23,20,0.55) 0%, rgba(26,23,20,0.35) 45%, var(--espresso) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }

.hero__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.hero__wordmark .amp { font-style: normal; font-weight: 600; margin: 0 0.04em; }

/* Two album covers as the primary CTA */
.releases {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.release {
  display: flex; flex-direction: column; gap: 1rem;
  width: clamp(220px, 34vw, 300px);
}
.release__cover {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.release__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.92);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease);
}
.release:hover .release__cover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,0.6); }
.release:hover .release__cover img { transform: scale(1.04); filter: brightness(1); }
.release:focus-visible { outline: none; }
.release:focus-visible .release__cover { box-shadow: 0 0 0 3px rgba(196,121,58,0.6); }

/* badge — play / plus, sits on the cover */
.release__badge {
  position: absolute; right: 0.8rem; bottom: 0.8rem;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(26,23,20,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,234,214,0.4);
  color: var(--cream);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.release__badge .ico { width: 1.1rem; height: 1.1rem; margin-left: 0.12rem; }
.release__badge--plus .ico { margin-left: 0; }
.release:hover .release__badge { background: var(--amber); color: var(--espresso); border-color: var(--amber); transform: scale(1.08); }

.release__label { display: flex; flex-direction: column; gap: 0.2rem; text-align: center; }
.release__action {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-bright);
}
.release__title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: 1.35rem; line-height: 1.1;
  color: var(--cream);
  transition: color var(--dur) var(--ease);
}
.release:hover .release__title { color: var(--amber-bright); }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.cd {
  position: relative;
  overflow: hidden;
  min-height: 78svh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(196,121,58,0.07), transparent 70%),
    var(--espresso-2);
}
/* Darkened water texture, faint behind the gray, parallaxes on scroll. */
.cd__bg {
  position: absolute; left: 0; right: 0; top: -14%; height: 128%;
  z-index: 0;
  background: url('../img/peace-like-a-river.jpg') center / cover no-repeat;
  opacity: 0.20;
  filter: brightness(0.42) saturate(0.85);
  will-change: transform;
  pointer-events: none;
}
/* keep the gray prominent + soften edges into the espresso */
.cd::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--espresso-2) 0%, rgba(33,29,25,0.35) 30%, rgba(33,29,25,0.35) 70%, var(--espresso-2) 100%);
}
.cd .wrap { position: relative; z-index: 2; }
.cd__eyebrow { margin: 0; }
.cd__title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.02; letter-spacing: -0.01em;
  margin: 1rem 0 clamp(2.5rem, 6vw, 4rem);
}
.cd__clock {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 2rem);
}
.cd__unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(3.5rem, 14vw, 9rem); }
.cd__num {
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-size: clamp(3.2rem, 15vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.cd__lab {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-3);
}
.cd__sep {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: clamp(2.2rem, 10vw, 7rem);
  line-height: 0.9;
  color: var(--amber);
  opacity: 0.55;
  align-self: flex-start;
  margin-top: 0.05em;
}
.cd__cta {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-bright);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cd__cta .ico { width: 1.1em; height: 1.1em; }
.cd__cta:hover { gap: 1em; color: var(--cream); }

/* "Out now" state when the timer hits zero */
.cd__live { display: none; }
.cd.is-live .cd__clock { display: none; }
.cd.is-live .cd__live {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: var(--fs-hero); color: var(--cream); margin: 0.5rem 0 0;
}

@media (max-width: 560px) {
  .cd__sep { display: none; }
  .cd__clock { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; max-width: 320px; margin-inline: auto; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: clamp(3.5rem, 8vw, 6rem) 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
/* record-label lockup with rules above + below */
.foot__mark {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-block;
  padding: 1rem 0;
  position: relative;
}
.foot__mark .amp { font-weight: 600; margin: 0 0.2em; letter-spacing: 0; }
.foot__mark::before, .foot__mark::after {
  content: ""; position: absolute; left: 12%; right: 12%; height: 1px;
  background: rgba(245,234,214,0.30);
}
.foot__mark::before { top: 0; }
.foot__mark::after { bottom: 0; }

.foot__verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream-2);
  max-width: 36ch;
  margin: 2rem auto 0;
  line-height: 1.4;
}
.foot__verse cite {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-mono); font-style: normal;
  font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-3);
}
.foot__links {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  justify-content: center;
  font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.foot__links a { color: var(--cream-2); transition: color var(--dur) var(--ease); }
.foot__links a:hover { color: var(--amber); }
.foot__fine {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--cream-4);
}

/* ============================================================
   PAGE-LOAD REVEAL (one orchestrated entrance)
   ============================================================ */
/* Hidden only when JS is present — no-JS users see everything immediately. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.is-ready .reveal {
  animation: rise var(--dur-slow) var(--ease-out) forwards;
}
.is-ready .reveal[data-d="1"] { animation-delay: 0.05s; }
.is-ready .reveal[data-d="2"] { animation-delay: 0.18s; }
.is-ready .reveal[data-d="3"] { animation-delay: 0.31s; }
.is-ready .reveal[data-d="4"] { animation-delay: 0.44s; }
.is-ready .reveal[data-d="5"] { animation-delay: 0.57s; }

/* scroll-in for lower sections — only hidden when JS can reveal them */
.inview { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .inview { opacity: 0; transform: translateY(24px); }
.inview.seen { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  .release { width: min(78vw, 320px); }
}

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