:root {
  --twilight-indigo: #182c56;
  --ink-black: #030b18;
  --lilac-ash: #a192b6;
  --prussian-blue: #111c34;
  --black: #020209;
  --text-light: #d4cde0;
  --white: #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ink-black);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('images/hero-mobile-portrait.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 2, 9, 0.3) 0%,
    rgba(2, 2, 9, 0.15) 40%,
    rgba(2, 2, 9, 0.4) 70%,
    rgba(3, 11, 24, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.subline {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--lilac-ash);
  max-width: 28em;
  margin: 0 auto;
  line-height: 1.6;
}

/* About blocks */

.about {
  padding: 6rem 1.5rem 4rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.block {
  padding: 3rem 0;
}

.block + .block {
  border-top: 1px solid rgba(161, 146, 182, 0.1);
}

.block h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.block p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-light);
}

/* Waitlist */

.waitlist {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.waitlist h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.waitlist-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--lilac-ash);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(161, 146, 182, 0.2);
  transition: border-color 0.2s ease;
}

.waitlist-input-group:focus-within {
  border-color: var(--lilac-ash);
}

.waitlist-input-group input {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: var(--prussian-blue);
  border: none;
  outline: none;
  min-width: 0;
}

.waitlist-input-group input::placeholder {
  color: rgba(161, 146, 182, 0.4);
}

.waitlist-input-group button {
  padding: 0.85rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: var(--twilight-indigo);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.waitlist-input-group button:hover {
  background: #1e3668;
}

.waitlist-input-group button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waitlist-error {
  color: #e54d4d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.waitlist-error.visible {
  opacity: 1;
}

.waitlist-proof {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--lilac-ash);
  margin-top: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.waitlist-proof.visible {
  opacity: 0.85;
}

.waitlist-success {
  margin-top: 1.5rem;
}

.waitlist-check {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.waitlist-follow {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-light);
}

.instagram-link {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.instagram-link:hover {
  border-bottom-color: var(--white);
  opacity: 0.85;
}

.instagram-link:focus-visible {
  outline: 2px solid var(--lilac-ash);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Footer */

footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(161, 146, 182, 0.1);
}

footer p {
  font-size: 0.85rem;
  color: var(--lilac-ash);
  opacity: 0.6;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 0.85;
}

/* Waitlist — mobile stack */

@media (max-width: 480px) {
  .waitlist-input-group {
    flex-direction: column;
  }

  .waitlist-input-group button {
    border-top: 1px solid rgba(161, 146, 182, 0.1);
  }
}

/* Responsive hero images */

@media (min-width: 768px) {
  .hero {
    background-image: url('images/hero-hd.jpg');
  }
}

@media (min-width: 1920px) {
  .hero {
    background-image: url('images/hero-2k.jpg');
  }
}

@media (min-width: 2560px) {
  .hero {
    background-image: url('images/hero-4k.jpg');
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .instagram-link,
  .waitlist-input-group,
  .waitlist-input-group button,
  .waitlist-error,
  .waitlist-proof {
    transition: none;
  }
}
