:root {
  --ink: #1a1612;
  --ink-soft: #4a433c;
  --paper: #f7f2ea;
  --sand: #e8ddd0;
  --clay: #c45c3a;
  --clay-deep: #9e3f24;
  --mist: rgba(255, 255, 255, 0.45);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 15% 10%, #fff8f0 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 85%, #d9cfc2 0%, transparent 50%),
    linear-gradient(165deg, #faf6f0 0%, #ebe2d6 48%, #ddd2c4 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, #f0c9b4 0%, transparent 70%);
}

.orb-b {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, #c8b8a4 0%, transparent 70%);
  animation-delay: -7s;
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 720px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.support {
  margin-top: 1.1rem;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.notify {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.notify input {
  flex: 1 1 12rem;
  width: 100%;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0 1.1rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--mist);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.notify input::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
}

.notify input:focus {
  border-color: color-mix(in srgb, var(--clay) 55%, transparent);
  background: rgba(255, 255, 255, 0.62);
}

.notify button {
  height: 3rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: none;
  background: var(--clay);
  color: #fffaf6;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.notify button:hover {
  background: var(--clay-deep);
}

.notify button:active {
  transform: translateY(1px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  height: 3rem;
  padding: 0 1.4rem;
  background: var(--clay);
  color: #fffaf6;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
  transition: background 0.25s ease, transform 0.2s ease;
}

.home-link:hover {
  background: var(--clay-deep);
}

.home-link:active {
  transform: translateY(1px);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--clay-deep);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.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;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@media (max-width: 520px) {
  .notify {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .notify input {
    flex: 0 0 3rem;
    width: 100%;
  }

  .notify button {
    flex: 0 0 3rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .brand,
  .headline,
  .support,
  .notify,
  .home-link,
  .form-note {
    animation: none;
  }
}
