:root {
  color-scheme: light dark;
  --background: #fff9e8;
  --foreground: #5c6a72;
  --muted: #708089;
  --accent: #8da101;
  --hand: #dfa000;
  --hand-line: #9b7100;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: grid;
  min-height: 100svh;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.wave {
  display: inline-block;
  width: 0.8em;
  margin-right: 0.08em;
  transform-origin: 65% 75%;
  vertical-align: -0.08em;
}

.wave svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: var(--hand);
  stroke: var(--hand-line);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.wave .palm-line {
  fill: none;
  opacity: 0.5;
  stroke-width: 1.25;
}

h1:hover .wave {
  animation: wave 700ms ease-in-out;
}

.intro {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--muted);
}

a {
  color: var(--foreground);
  font-weight: 650;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

a:hover {
  color: var(--accent);
}

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

@keyframes wave {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(13deg);
  }
  55% {
    transform: rotate(-9deg);
  }
  80% {
    transform: rotate(5deg);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #272e33;
    --foreground: #d3c6aa;
    --muted: #a7b0a4;
    --accent: #a7c080;
    --hand: #dbbc7f;
    --hand-line: #9f854f;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1:hover .wave {
    animation: none;
  }
}
