/* ── Brand fonts ── */

@font-face {
  font-family: 'Veronesi';
  src: url('assets/fonts/Veronesi-Regular.woff2') format('woff2'),
       url('assets/fonts/Veronesi-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Veronesi';
  src: url('assets/fonts/Veronesi-Bold.woff2') format('woff2'),
       url('assets/fonts/Veronesi-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TAYWingman';
  src: url('assets/fonts/TAYWingman.woff2') format('woff2'),
       url('assets/fonts/TAYWingman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --analog-black: #1C1C17;
  --newsprint: #F7F3E6;
  --smack: #B46D69;
  --whisper: #DBC0B4;
  --blush: #EDC8C1;
  --after-hours: #411823;
  --soft-focus: #E9D6D4;
  --double-shot: #33211C;
}

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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  background-color: var(--double-shot);
  color: var(--newsprint);
  font-family: 'Veronesi', 'Georgia', 'Times New Roman', serif;
  overflow-x: hidden;
}

/* ── Film grain ── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
}

/* ── Vignette ── */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* ── Light leak ── */

.light-leak {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  width: 300px;
  height: 300px;
  top: -5%;
  right: -5%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 109, 105, 0.12) 0%,
    rgba(180, 109, 105, 0.06) 40%,
    transparent 70%
  );
  filter: blur(60px);
  animation: leakDrift 20s ease-in-out infinite alternate;
}

@keyframes leakDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-30px, 40px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(10px, 20px) scale(0.9);
    opacity: 0.5;
  }
}

/* ── Page layout ── */

.page {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 1.5rem;
}

/* ── Hero logo ── */

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ── Tagline ── */

.tagline {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-top: 3rem;
}

/* ── Email signup ── */

.signup {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 340px;
}

.field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(219, 192, 180, 0.3);
  border-radius: 0;
  padding: 0.875rem 1rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.field:focus-within {
  border-color: var(--smack);
  box-shadow: 0 0 20px rgba(180, 109, 105, 0.15), 0 0 40px rgba(180, 109, 105, 0.06);
}

.field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--newsprint);
  font-family: 'Host Grotesk', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
}

.field input::placeholder {
  color: rgba(219, 192, 180, 0.5);
  font-style: italic;
}

.field button {
  background: transparent;
  border: none;
  color: var(--newsprint);
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.field button:hover {
  color: var(--smack);
  transform: translateX(2px);
}

/* Message (success / error) */

.message {
  font-family: 'Host Grotesk', system-ui, sans-serif;
  font-style: italic;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-align: center;
  min-height: 1.4em;
  transition: opacity 0.6s ease;
  opacity: 0;
}

.message.visible {
  opacity: 1;
}

.message.success {
  color: var(--smack);
}

.message.error {
  color: var(--blush);
}

/* Submitted state */

.signup.submitted .field {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ── Footer mark ── */

.footer-mark {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-top: 3rem;
  opacity: 0.35;
}

/* ── Location line ── */

.location {
  margin-top: 1.25rem;
  font-family: 'TAYWingman', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(219, 192, 180, 0.3);
}

/* ── Deck link ── */

.deck-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Host Grotesk', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(219, 192, 180, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 192, 180, 0.2);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.deck-link:hover {
  color: rgba(219, 192, 180, 0.9);
  border-color: rgba(219, 192, 180, 0.5);
}

/* ── Marquee ── */

.marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.06;
  padding: 0.75rem 0;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  font-family: 'Veronesi', 'Georgia', serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--newsprint);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Cursor glow ── */

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(219, 192, 180, 0.07) 0%,
    rgba(219, 192, 180, 0.02) 40%,
    transparent 70%
  );
  filter: blur(30px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cursor-glow.visible {
  opacity: 1;
}

/* ── Text reveal ── */

.tagline {
  overflow: hidden;
}

.tagline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tagline .char.space {
  width: 0.3em;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Fade-in ── */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1.0s; }
.delay-3 { animation-delay: 1.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Desktop ── */

@media (min-width: 768px) {
  .logo {
    max-width: 460px;
  }

  .tagline {
    font-size: 1.875rem;
    margin-top: 3.5rem;
  }

  .signup {
    max-width: 340px;
    margin-top: 3rem;
  }

  .footer-mark {
    max-width: 200px;
    margin-top: 3.5rem;
  }

  .location {
    margin-top: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .logo {
    max-width: 520px;
  }
}
