/* ─── FONTS ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Array';
  src: url('./assets/fonts/Array-Bold.otf') format('opentype');
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: 'Gambarino';
  src: url('./assets/fonts/Gambarino-Regular.otf') format('opentype');
  font-weight: normal;
  font-display: swap;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --yellow: #e2ce3a;
  --white: #FEFEFE;

  --font-display: 'Array', sans-serif;
  --font-body: 'Gambarino', serif;
}

html, body {
  height: 100%;
  background-color: #000000;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ─── SCREEN READER ONLY ─────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── BACKGROUND LAYERS ──────────────────────────────────── */
#bg,
#bg-next,
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

#bg,
#bg-next {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
  z-index: 0;
}

#bg-next {
  opacity: 0;
  z-index: 1;
}

#overlay {
  background: rgba(0, 0, 0, 0.62);
  z-index: 2;
}

/* ─── MAIN ───────────────────────────────────────────────── */
#main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

#main h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 2vw, 15px);
  color: var(--white);
  opacity: 0.65;
  letter-spacing: 0.02em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 36px calc(28px + env(safe-area-inset-bottom));
}

.footer-signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-label {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--white);
  opacity: 0.45;
  letter-spacing: 0.02em;
}

.signup-form {
  margin-top: 32px;
  max-width: 380px;
  width: 100%;
}

.signup-label {
  margin-top: 12px;
}

.signup-form {
  width: 100%;
}

.signup-field {
  display: flex;
  align-items: stretch;
  border-bottom: 3px solid var(--white);
  transition: border-color 250ms ease;
}

.signup-field:focus-within {
  border-color: var(--yellow);
}

.signup-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  padding: 10px 0;
  caret-color: var(--yellow);
  touch-action: manipulation;
}

.signup-field input::placeholder {
  color: var(--white);
  opacity: 0.4;
}

.signup-field button {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 20px;
  padding: 10px 0 10px 12px;
  cursor: pointer;
  line-height: 1;
  transition: color 250ms ease;
  touch-action: manipulation;
}

.signup-field button:hover {
  color: var(--yellow);
}

.signup-field button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-artist-link {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.8vw, 13px);
  color: var(--white);
  text-decoration: none;
  opacity: 0.45;
  letter-spacing: 0.02em;
  transition: opacity 250ms ease, color 250ms ease;
}

.footer-artist-link:hover {
  opacity: 1;
  color: var(--yellow);
}

.instagram-link {
  color: var(--white);
  opacity: 0.5;
  display: flex;
  align-items: center;
  transition: opacity 250ms ease, color 250ms ease;
}

.instagram-link:hover {
  opacity: 1;
  color: var(--yellow);
}

.instagram-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#artwork-credit {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--white);
  opacity: 0.45;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  #main {
    padding: 0 28px;
  }

  #main h1 {
    font-size: clamp(64px, 18vw, 90px);
    margin-bottom: 16px;
  }

  .tagline {
    font-size: 14px;
  }

  #footer {
    padding: 0 24px calc(20px + env(safe-area-inset-bottom));
  }

  #artwork-credit {
    display: none;
  }
}
