:root {
  --sand: #f6efe4;
  --sand-deep: #ebdfcb;
  --ink: #1c2b33;
  --muted: #5b6b72;
  --sea: #1f5f73;
  --sea-soft: #6fa3ad;
  --sun: #e9a96a;
  --sun-glow: #f2c48d;
  --foam: #ffffff;
  --bg: var(--sand);
  --bg-2: var(--sand-deep);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f1;
    --muted: #a9b9bd;
    --sea: #7fc0cb;
    --sea-soft: #2f6a78;
    --sun: #f0b47a;
    --sun-glow: #f6cf9f;
    --foam: #d9ebee;
    --bg: #0d1b26;
    --bg-2: #13293a;
  }
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
  position: relative;
  z-index: 1;
}
.sun {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sun-glow) 0%, var(--sun) 70%);
  box-shadow: 0 0 60px 10px color-mix(in srgb, var(--sun) 35%, transparent);
  margin-bottom: 36px;
  animation: rise 2.4s ease-out both;
}
.eyebrow {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 18px;
  animation: fade 1.2s 0.4s ease-out both;
}
h1 {
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  animation: fade 1.2s 0.6s ease-out both;
}
h1 em { font-style: italic; color: var(--sea); }
.rule {
  width: 56px; height: 1px; background: var(--muted); opacity: .5;
  margin: 28px auto;
  animation: fade 1.2s 0.8s ease-out both;
}
p.lede {
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  animation: fade 1.2s 1s ease-out both;
}
.waves {
  position: relative;
  height: 160px;
  width: 100%;
  flex-shrink: 0;
}
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.w1 { fill: var(--sea-soft); opacity: .35; animation: drift 18s linear infinite; }
.w2 { fill: var(--sea); opacity: .55; animation: drift 12s linear infinite reverse; }
.w3 { fill: var(--sea); opacity: .9; animation: drift 24s linear infinite; }
footer {
  position: absolute; bottom: 14px; width: 100%;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--foam); opacity: .85;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
