:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #171612;
  --muted: #625f56;
  --accent: #d9ff57;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Arial, Helvetica, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(calc(100% - 3rem), 78rem);
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 1.5rem;
}

.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.masthead {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.masthead p,
footer p {
  margin: 0;
}

.masthead p {
  color: var(--muted);
}

.site-name {
  font-weight: 700;
  text-decoration: none;
}

.hero {
  align-self: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 12.5vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-wrap: balance;
}

h1 > span {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

h1 > span::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.03em;
  left: -0.02em;
  z-index: -1;
  height: 0.22em;
  background: var(--accent);
  content: "";
}

.intro {
  max-width: 38rem;
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.5;
}

.outbound,
.inline-link {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.outbound {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 700;
}

.outbound:hover,
.inline-link:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.35em;
}

footer {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 2rem);
    padding-block: 1rem;
  }

  .hero {
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .intro {
    margin-top: 2rem;
  }
}
