:root {
  --ink: #12201c;
  --ink-soft: #2a3b35;
  --mist: #e8efe9;
  --foam: #f7faf7;
  --accent: #0f6e56;
  --accent-deep: #0a4f3d;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow: 0 24px 60px color-mix(in srgb, var(--ink) 12%, transparent);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--foam);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 12% -10%, #cfe8d8 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 10%, #d7e4f2 0%, transparent 50%),
    linear-gradient(160deg, #f4f8f5 0%, #e7eee9 45%, #dfe8e3 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.mark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.login {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.login:hover {
  color: var(--accent-deep);
  border-bottom-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 44rem;
  animation: rise 700ms ease-out both;
}

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

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink-soft) 88%, transparent);
}

.cta {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.story {
  margin: 0 clamp(1.25rem, 4vw, 3rem) 5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 38rem;
  animation: rise 900ms 120ms ease-out both;
}

.story h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.story p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero,
  .story {
    animation: none;
  }

  .button:hover {
    transform: none;
  }
}
