@font-face {
  font-family: 'Etna X Condensed';
  src: url('assets/fonts/EtnaX-Condensed.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --font-serif: 'Etna X Condensed', 'Cormorant Garamond', 'Prata', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  overscroll-behavior: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  background-image: url('assets/desktop-bg.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  align-items: center;
  padding: 4rem clamp(4rem, 14vw, 16rem) 4rem clamp(3rem, 10vw, 10rem);
  gap: 2rem;
}

.col {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.col--left {
  align-items: flex-start;
  justify-self: start;
  grid-column: 1;
}

.col--right {
  align-items: flex-end;
  justify-self: end;
  gap: clamp(0.75rem, 1vw, 1.25rem);
  grid-column: 3;
}

.col--right .cta {
  align-self: flex-end;
}

.logo {
  width: clamp(70px, 6vw, 110px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* CTA button */
.cta {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.75rem);
  font-weight: 300;
  color: var(--fg);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--fg);
  border-radius: 230px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.cta:hover,
.cta:focus-visible {
  background: #FFFFFF;
  color: #1E1E1E;
  outline: none;
}

/* Filled variant — white bg, dark text by default */
.cta--filled {
  background: #FFFFFF;
  color: #1E1E1E;
  border-color: #FFFFFF;
}

.cta--filled:hover,
.cta--filled:focus-visible {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.cta:active {
  transform: scale(0.98);
}

/* Button + scribble group: scribble absolutely positioned so it doesn't affect centering */
.cta-wrap {
  position: relative;
  display: inline-block;
}

.scribble {
  user-select: none;
  pointer-events: none;
}

.scribble--buy {
  position: absolute;
  left: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 16vw, 260px);
  height: auto;
}

.scribble--follow {
  width: clamp(170px, 15vw, 230px);
  height: auto;
}

/* Instagram link (scribble includes the IG glyph) */
.ig-link {
  display: inline-block;
  transition: transform 0.2s ease;
  align-self: flex-start;
  margin-left: 2rem;
}

.ig-link:hover {
  transform: scale(1.05);
}

/* Merch stack — tight right-anchored stack, cap slightly over shirt shoulder */
.merch {
  position: relative;
  width: 240px;
  height: 270px;
  align-self: flex-end;
  margin-bottom: -1.25rem;
}

.merch__tshirt {
  position: absolute;
  right: 0;
  top: 60px;
  width: 220px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.merch__cap {
  position: absolute;
  right: 40px;
  top: 0;
  width: 200px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* Pre-composed cap+shirt combo — hidden on desktop, used on mobile */
.merch__combo {
  display: none;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* Email bottom-center */
.email {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg);
  text-decoration: underline;
  font-size: 24px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.email:hover {
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
  }

  .hero {
    background-image: url('assets/mobile-bg.webp');
    background-position: center center;
    background-size: cover;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    justify-items: center;
    padding: 3rem 1.25rem 3.5rem;
    gap: 2.5rem;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .col--left,
  .col--right {
    grid-column: 1;
    width: 100%;
    align-items: center;
    justify-self: center;
    margin-top: 0;
  }

  .col--right {
    gap: 2rem;
  }

  .col--left .button-stack {
    align-items: center;
    gap: 2rem;
  }

  .cta-wrap {
    position: static;
  }

  .col--right .cta {
    align-self: center;
  }

  .logo {
    width: 78px;
  }

  /* Figma mobile: CTA = 44px Etna X Condensed, padding 12px 24px, radius 230px */
  .cta {
    font-size: 44px;
    line-height: 55px;
    padding: 12px 24px;
  }

  /* BUY HERE pinned to top-right, angled so the arrow points down to the CTA */
  .scribble--buy {
    position: absolute;
    top: 4.5rem;
    right: 1.25rem;
    left: auto;
    transform: rotate(-20deg);
    transform-origin: center;
    width: clamp(100px, 28vw, 130px);
    z-index: 3;
  }

  /* COME FOLLOW scribble: shift left so IG glyph sits at horizontal center */
  .ig-link {
    margin-left: 0;
    align-self: center;
    transform: translateX(-22%);
  }

  .scribble--follow {
    width: clamp(200px, 55vw, 260px);
  }

  /* Merch: use pre-composed combo PNG, bleeds off left edge */
  .merch {
    width: 100%;
    max-width: 340px;
    height: auto;
    align-self: flex-start;
    margin-left: 0;
    margin-bottom: 0;
    overflow: visible;
    position: relative;
  }

  /* On mobile: hide individual cap/shirt, show combo PNG */
  .merch__cap,
  .merch__tshirt {
    display: none;
  }

  .merch__combo {
    display: block;
    width: 130%;
    max-width: none;
    margin-left: -20%;
  }

  .email {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    align-self: center;
    justify-self: center;
    display: block;
    font-size: 20px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
