@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --sky: #d3e5f7;
  --sky-deep: #bfd8ee;
  --mist: #d9ebf1;
  --mint: #a8d9d1;
  --sea: #7fc3b9;
  --glow: rgba(255, 255, 255, 0.55);
  --ink: #1e2a33;
  --ink-soft: #3b4a54;
  --accent: #3d8a80;
  --cool: #2858b0;
  --warm: #23824a;
  --paper: rgba(255, 255, 255, 0.55);
  --paper-line: rgba(255, 255, 255, 0.7);
  --shadow: rgba(28, 46, 69, 0.14);
  --cta-hover-ink: #fff;
  --font: "Newsreader", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0f1c2e;
    --sky-deep: #12263a;
    --mist: #133038;
    --mint: #17413f;
    --sea: #1d5550;
    --glow: rgba(127, 195, 185, 0.12);
    --ink: #e8f1f5;
    --ink-soft: #b9cbd3;
    --accent: #7fc3b9;
    --cool: #8db4f2;
    --warm: #6fd49a;
    --paper: rgba(20, 38, 54, 0.55);
    --paper-line: rgba(127, 195, 185, 0.2);
    --shadow: rgba(0, 0, 0, 0.45);
    --cta-hover-ink: #0f1c2e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 28%, var(--mist) 46%, var(--mint) 70%, var(--sea) 100%);
  background-size: 100% 140%;
  background-attachment: fixed;
  animation: drift 22s ease-in-out infinite alternate;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes drift {
  0% {
    background-position: 0 0%;
  }
  100% {
    background-position: 0 12%;
  }
}

a {
  color: inherit;
}

main {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.hero-inner {
  width: 100%;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  filter: drop-shadow(0 10px 24px rgba(28, 46, 69, 0.18));
}

.floaty {
  animation: rise 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards, float 5s ease-in-out infinite;
  animation-delay: var(--d, 0s), 1.6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 .warm {
  color: var(--warm);
}

h1 .cool {
  color: var(--cool);
}

.wave {
  width: min(100%, 26rem);
  height: 48px;
  opacity: 0.8;
  margin: clamp(2rem, 5vw, 3.25rem) 0;
}

.wave-path {
  stroke: var(--cool);
  stroke-width: 1.4;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 2.2s ease-out 0.9s forwards, sway 6s ease-in-out 3.2s infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sway {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-3px) scaleY(1.08);
  }
}

.cta {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent);
  color: var(--cta-hover-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--shadow);
}

.sub {
  margin: 1.75rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- Breath ---------- */

.breath {
  padding: clamp(5rem, 14vw, 10rem) 1.5rem;
  display: grid;
  place-items: center;
}

.breath p {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.breath .warm {
  color: var(--warm);
}

.breath .cool {
  color: var(--cool);
}

.wide {
  display: none;
}

@media (min-width: 640px) {
  .wide {
    display: inline;
  }
}

/* ---------- Facts & cards ---------- */

.facts {
  list-style: none;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  text-align: center;
}

.facts li {
  padding: 1.1rem 0.75rem;
  border-radius: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.facts strong {
  display: block;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--cool);
}

.facts span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.gifts {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.card {
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  box-shadow: 0 18px 44px var(--shadow);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.card .glyph {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.card h2 {
  margin: 0 0 0.6rem;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
}

.card p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

.tongues {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Still ---------- */

.still {
  display: grid;
  place-items: center;
  padding: 0 1.5rem clamp(4rem, 10vw, 7rem);
}

.line {
  display: block;
  width: 1px;
  height: clamp(4rem, 10vw, 7rem);
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.35;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 0.75;
    transform: scaleY(1);
  }
}

/* ---------- Footer ---------- */

footer {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.dedication {
  margin: 0 0 1.5rem;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.disclaimer {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0.85;
}

.legal {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.legal a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.legal a:hover,
.legal a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* ---------- Motion ---------- */

.fade {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.reveal {
  transition: opacity 1.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Accessibility ---------- */

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sky);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 1rem;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta:focus-visible {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body,
  .fade,
  .reveal,
  .js .reveal,
  .floaty,
  .wave-path,
  .line {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- Legal pages ---------- */

.doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem clamp(3rem, 6vw, 5rem);
}

.doc .back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.doc .back:hover {
  color: var(--ink);
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.doc .meta {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

.doc h2 {
  font-weight: 400;
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}

.doc p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.doc li {
  margin: 0 0 0.4rem;
}

.doc .intro {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  opacity: 0.85;
}

.doc a:not(.back) {
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}
