:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #292923;
  --muted: #68665d;
  --line: #c9c6bb;
  --hand: #e9d5c3;
  --accent: #a85d42;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  padding: clamp(2rem, 7vw, 6rem);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hello {
  position: relative;
  width: min(100%, 52rem);
  margin: auto;
  transform: translateY(-clamp(5rem, 15vh, 9rem));
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font: 400 clamp(1rem, 1.7vw, 1.125rem)/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rule {
  width: 100%;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  margin-top: 0.8rem;
  font: 400 0.875rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.social-links a {
  color: var(--muted);
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wave {
  position: absolute;
  pointer-events: none;
  top: 50%;
  right: clamp(-10rem, -11vw, -3rem);
  width: clamp(9rem, 21vw, 15rem);
  height: auto;
  overflow: visible;
  transform: translateY(-50%) rotate(4deg);
}

.motion,
.hand-line,
.crease {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion {
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.7;
}

.hand-fill {
  fill: var(--hand);
}

.hand-line,
.crease {
  stroke: var(--ink);
  stroke-width: 2.6;
}

.crease {
  stroke-width: 1.8;
  opacity: 0.55;
}

.wave-emoji {
  display: grid;
  position: absolute;
  top: 40%;
  right: 0;
  width: clamp(8rem, 18vw, 13rem);
  aspect-ratio: 1;
  place-items: center end;
  pointer-events: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(4.5rem, 9.5vw, 7.25rem);
  line-height: 1;
  transform: translateY(-50%) rotate(-9deg);
}

@media (max-width: 42rem) {
  .hello {
    transform: translateY(-6vh);
  }

  .wave,
  .wave-emoji {
    top: -5.4rem;
    right: 0;
    width: 6.25rem;
    transform: rotate(5deg);
  }

  .wave-emoji {
    top: -5.8rem;
    width: 4.25rem;
    font-size: 3rem;
  }

  .rule {
    margin-top: 1.75rem;
  }
}
