:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #30332f;
  background: #faf9f6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(100% - 48px, 640px);
  margin: 0 auto;
  padding: 100px 0 80px;
}

h1 {
  margin: 0 0 32px;
  color: #20251f;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 650;
  letter-spacing: -1.3px;
  line-height: 1.2;
}

p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.75;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 32px;
}

a, button {
  color: #39644b;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a { display: inline-flex; align-items: center; min-height: 44px; }

p a { display: inline; min-height: 0; font: inherit; }

button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a:hover, button:hover { color: #1c3c28; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #39644b;
  outline-offset: 6px;
  border-radius: 2px;
}

::selection { background: #dce7d9; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.welcome-word { display: inline-block; white-space: nowrap; }

.welcome-letter {
  display: inline-block;
  animation: welcome-wave 650ms ease-in-out both;
}

@keyframes welcome-wave {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-3px); }
  70% { transform: translateY(1px); }
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 13px;
  border-radius: 1px;
  animation: confetti-fall linear both;
}

@keyframes confetti-fall {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(var(--drift), calc(100vh + 40px), 0) rotate(var(--spin)); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .confetti-piece, .welcome-letter { animation: none; }
}

@media (max-width: 600px) {
  main { padding-top: 48px; padding-bottom: 48px; }
  p { font-size: 17px; line-height: 1.7; }
}
