:root {
  color-scheme: light;
  --ink: #1e2b1f;
  --muted: #5b6b5a;
  --moss: #3c7a52;
  --moss-deep: #2a5c3c;
  --sage: #c7dfc0;
  --sage-soft: rgba(124, 173, 116, 0.16);
  --blush: #f2a38e;
  --blush-deep: #de7c61;
  --honey: #e8b84b;
  --paper: #f6f4ea;
  --card: #fffef8;
  --line: rgba(30, 43, 31, 0.13);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(30, 43, 31, 0.05) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(circle at 92% 5%, var(--moss) 0, var(--moss) 19vmin, transparent 19vmin),
    radial-gradient(circle at 3% 90%, transparent 0, transparent 14vmin, var(--honey) 14vmin, var(--honey) 14.9vmin, transparent 14.9vmin),
    radial-gradient(circle at 97% 58%, var(--blush) 0, var(--blush) 6vmin, transparent 6vmin),
    var(--paper);
  background-attachment: fixed;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--moss-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  text-align: center;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.1rem;
  margin: 0 0 1.3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss-deep);
  background: rgba(255, 254, 248, 0.8);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow-heart {
  width: 0.85rem;
  height: 0.78rem;
  fill: var(--blush-deep);
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.6rem 0 0;
}

.counter span {
  font-family: Unbounded, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--moss);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.counter small {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.message {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.reveal-button,
.hug-button {
  min-height: 3.1rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.reveal-button {
  border: 1px solid transparent;
  color: var(--card);
  background: var(--moss);
  box-shadow: 0 0.85rem 1.8rem rgba(60, 122, 82, 0.26);
}

.reveal-button:hover {
  transform: translateY(-2px);
  background: var(--moss-deep);
  box-shadow: 0 1rem 2.1rem rgba(60, 122, 82, 0.32);
}

.hug-button {
  border: 1px solid rgba(222, 124, 97, 0.4);
  color: var(--blush-deep);
  background: rgba(255, 254, 248, 0.85);
  box-shadow: 0 0.8rem 1.7rem rgba(222, 124, 97, 0.14);
}

.hug-button:hover {
  transform: translateY(-2px);
  background: #fffdf6;
  box-shadow: 0 1rem 2rem rgba(222, 124, 97, 0.2);
}

.hug-button.is-sending {
  color: var(--card);
  background: var(--blush-deep);
}

.secret {
  max-width: 30rem;
  margin: 1.3rem 0 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1rem 2.2rem rgba(30, 43, 31, 0.08);
  color: var(--moss-deep);
  font-family: Caveat, cursive;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.2rem, 4vh, 2.5rem);
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue-heart {
  display: block;
  width: 1.15rem;
  height: 1.05rem;
  background: var(--blush-deep);
  clip-path: path("M11.8,0c-1.7,0-3.15,1.35-3.8,2.8C7.35,1.35,5.9,0,4.2,0C1.9,0,0,1.9,0,4.2c0,4.7,7.8,9.3,8,9.45 c0.2-0.15,8-4.7,8-9.45C16,1.9,14.1,0,11.8,0z");
  animation: cue-bob 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--moss-deep);
}

@keyframes cue-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.4rem);
  }
}

.keepsake-section {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5rem);
  scroll-margin-top: 1.5rem;
}

.js .keepsake-section {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .keepsake-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.keepsake-intro {
  max-width: 34rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

.keepsake-intro .eyebrow {
  margin-bottom: 1rem;
}

.keepsake-intro h2 {
  margin: 0;
  color: var(--ink);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.map-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 70vh;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #eef6e9 0%, #f9fbf6 100%);
}

.map-full {
  position: absolute;
  inset: 0;
}

.map-full .leaflet-tile-pane {
  filter: saturate(0.85) brightness(1.02);
}

.map-full .leaflet-control-attribution {
  border-radius: 6px 0 0 0;
  background: rgba(255, 254, 248, 0.82);
  color: var(--muted);
  font-size: 0.66rem;
}

.map-full .leaflet-control-zoom {
  border: none;
  box-shadow: 0 0.5rem 1.2rem rgba(30, 43, 31, 0.14);
}

.map-full .leaflet-control-zoom a {
  color: var(--moss-deep);
}

.map-note {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1001;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: var(--honey);
  box-shadow: 0 1.2rem 2.4rem rgba(30, 43, 31, 0.18);
  transform: rotate(-2deg);
}

.map-note span {
  display: block;
  color: rgba(30, 43, 31, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.map-note strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink);
  font-family: Caveat, cursive;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 800px) {
  h1 {
    max-width: 11ch;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .reveal-button,
  .hug-button {
    width: 100%;
  }

  .map-wrap {
    min-height: 60vh;
  }
}

@media (max-width: 420px) {
  .map-note {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue-heart {
    animation: none;
  }

  .js .keepsake-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }
}
