:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --fg: #141416;
  --muted: #6b6b70;
  --faint: #a3a3a8;
  --rule: #d9d8d3;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --fg: #ededeb;
    --muted: #9a9aa0;
    --faint: #5f5f66;
    --rule: #2a2a2e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

p {
  margin: 0;
}

.wordmark {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 9.5rem);
  font-weight: 700;
  line-height: 0.9;
  /* Negative tracking pulls the last glyph past the box edge; pad it back so the ink stays centered. */
  letter-spacing: -0.04em;
  padding-right: 0.04em;
}

.wordmark--small {
  font-size: clamp(2.5rem, 10vw, 4rem);
}

.tagline {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.24em;
}

.tagline::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin: 0 auto 1.75rem;
  background: var(--rule);
}

.contact {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
}

.contact a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15em;
  transition: border-color 0.2s ease;
}

.contact a:hover {
  border-bottom-color: currentColor;
}

.contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.code {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--faint);
  padding-left: 0.24em;
}

footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}
