/* ============================================================
   CSS Custom Properties — werden via Airtable-Farbfelder überschrieben
   ============================================================ */
:root {
  --color-primary:    #2B1B14;
  --color-secondary:  #B86A4A;
  --color-text:       #F2EBE0;
  --color-background: #EDE5DC;
  --color-accent:     #B8B4C9;

  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --spacing-base: 8px;
  --border-radius: 2px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #1A0F0A;
  font-family: var(--font-body);
  color: var(--color-text);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-secondary);
  color: var(--color-text);
}

/* ============================================================
   Hero — Full-Bleed 100vh
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-primary);
}

/* ============================================================
   Hero background image
   ============================================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 30%; /* mobile */
  filter: saturate(1.05) contrast(1.02);
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-bg { object-position: center 32%; }
}

/* ============================================================
   Overlays (grain, vignette, gradient)
   ============================================================ */
.hero-grain,
.hero-vignette,
.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Film grain via SVG fractal noise */
.hero-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* Warm radial vignette */
.hero-vignette {
  background: radial-gradient(
    ellipse at 50% 28%,
    rgba(184,180,201,0) 0%,
    rgba(43,27,20,0) 45%,
    rgba(20,8,4,0.55) 100%
  );
}

/* Bottom gradient for legibility */
.hero-gradient {
  top: auto;
  height: 62%;
  background: linear-gradient(
    to bottom,
    rgba(20,8,4,0) 0%,
    rgba(20,8,4,0.25) 30%,
    rgba(20,8,4,0.78) 75%,
    rgba(20,8,4,0.92) 100%
  );
}

@media (min-width: 768px) {
  .hero-gradient { height: 54%; }
}

/* ============================================================
   Top bar
   ============================================================ */
.hero-topbar {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-topbar {
    top: 44px;
    left: 64px;
    right: 64px;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-shadow: 0 1px 14px rgba(20,8,4,0.5);
  line-height: 1;
}

@media (min-width: 768px) {
  .wordmark { font-size: 30px; }
}

/* AIRTABLE: logo — ersetzt Text-Wordmark wenn vorhanden */
.wordmark-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .wordmark-logo { height: 56px; }
}

.hero-meta {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .hero-meta { display: block; }
}

/* ============================================================
   Title zone (save_the_date, out_now)
   top startet tief genug damit das Lockup-PNG nie in die Topbar ragt.
   Der onload-Check in app.js verschiebt bei Bedarf weiter nach unten.
   ============================================================ */
.hero-title-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-title-zone {
    top: 22%;
    padding: 0 64px;
  }
}

/* AIRTABLE: title_lockup_desktop / title_lockup_mobile */
.title-lockup-img {
  width: 100%;
  max-width: 100%;
  max-height: 55vh;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .title-lockup-img { max-height: 50vh; }
}

.title-fallback {
  text-align: center;
  color: var(--color-text);
  width: 100%;
}

.supertitle {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .supertitle {
    font-size: 12px;
    margin-bottom: 22px;
  }
}

.title-text {
  font-family: var(--font-display);
  font-size: 78px;
  font-style: italic;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(20,8,4,0.35);
}

@media (min-width: 768px) {
  .title-text { font-size: 196px; }
}

.release-date {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .release-date {
    font-size: 14px;
    margin-top: 22px;
  }
}

/* ============================================================
   Artist zone (explore state)
   ============================================================ */
.hero-artist-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  padding: 0 22px;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-artist-zone { padding: 0 64px; }
}

.artist-name-large {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
  text-shadow: 0 2px 40px rgba(20,8,4,0.5);
  line-height: 0.9;
}

@media (min-width: 768px) {
  .artist-name-large { font-size: 220px; }
}

/* ============================================================
   Event zone (event state)
   ============================================================ */
.hero-event-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  text-align: center;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-event-zone {
    top: 35%;
    padding: 0 64px;
    gap: 24px;
  }
}

.event-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
  text-shadow: 0 2px 30px rgba(20,8,4,0.35);
}

@media (min-width: 768px) {
  .event-title { font-size: 120px; }
}

.event-date-display {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.78;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .event-date-display { font-size: 15px; }
}

/* ============================================================
   Release cover thumbnail (out_now)
   ============================================================ */
.release-cover {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(20,8,4,0.5);
  z-index: 3;
}

@media (min-width: 768px) {
  .release-cover {
    width: 180px;
    height: 180px;
    right: 64px;
    top: 40%;
  }
}

/* ============================================================
   Bottom zone
   ============================================================ */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4;
}

@media (min-width: 768px) {
  .hero-bottom {
    padding: 0 64px 56px;
    gap: 36px;
  }
}

/* ============================================================
   Countdown row
   ============================================================ */
.countdown-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .countdown-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
}

.countdown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .countdown-section { gap: 14px; }
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .countdown-label { font-size: 12px; }
}

.countdown {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

@media (min-width: 768px) {
  .countdown { gap: 28px; }
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.countdown-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .countdown-val { font-size: 64px; }
}

.countdown-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .countdown-lbl {
    font-size: 12px;
    margin-top: 8px;
  }
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  color: var(--color-text);
  opacity: 0.35;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .countdown-sep { font-size: 52px; }
}

/* Quote — desktop only, save_the_date */
.hero-quote {
  display: none;
}

@media (min-width: 768px) {
  .hero-quote {
    display: block;
    max-width: 360px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    line-height: 1.45;
    color: var(--color-text);
    opacity: 0.82;
    text-align: right;
  }
}

/* ============================================================
   Action row
   ============================================================ */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .hero-buttons { gap: 14px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn-primary:hover,
.btn-ghost:hover { opacity: 0.88; }

@media (min-width: 768px) {
  .btn-primary,
  .btn-ghost {
    padding: 22px 36px;
    font-size: 17px;
  }
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-primary);
  font-weight: 500;
  box-shadow: 0 10px 40px -10px rgba(20,8,4,0.45), inset 0 0 0 1px rgba(20,8,4,0.04);
}

.btn-ghost {
  background: rgba(43,27,20,0.18);
  color: var(--color-text);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  gap: 10px;
  border: 1px solid rgba(242,235,224,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
  .btn-ghost {
    font-size: 15px;
    padding: 21px 30px;
  }
}

.btn-arrow,
.btn-icon-sm {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .btn-arrow,
  .btn-icon-sm {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   Social icons
   ============================================================ */
.hero-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .hero-socials {
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 0;
  }
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text);
  border-radius: 999px;
  border: 1px solid rgba(242,235,224,0.35);
  background: rgba(43,27,20,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-icon:hover {
  border-color: rgba(242,235,224,0.65);
  background: rgba(43,27,20,0.35);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .social-icon {
    width: 46px;
    height: 46px;
  }
  .social-icon svg {
    width: 21px;
    height: 21px;
  }
}

/* ============================================================
   Below-hero section (YouTube embed — out_now)
   ============================================================ */
.below-hero {
  background: var(--color-primary);
  padding: 48px 22px 64px;
}

@media (min-width: 768px) {
  .below-hero { padding: 80px 120px 100px; }
}

.youtube-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--border-radius);
  display: block;
}
