:root {
  --ink: #171717;
  --muted: #525252;
  --faint: #a3a3a3;
  --line: #e5e5e5;
  --paper: #fafafa;
  --panel: #ffffff;
  --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4.5rem;
}

.mark {
  width: 80px;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.use {
  position: relative;
  width: min(100%, 46rem);
  margin-top: 1.85rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.use pre {
  margin: 0;
  padding: 1.1rem 4.1rem 1.1rem 1.25rem;
  overflow-x: auto;
}

.use code {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre;
}

.copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
}

.copy svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.copy .copy-check {
  display: none;
}

.copy.copied {
  color: var(--ink);
}

.copy.copied .copy-icon {
  display: none;
}

.copy.copied .copy-check {
  display: block;
}

.copy:hover,
.copy:focus-visible {
  color: var(--ink);
  outline: none;
}

.cta {
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.cta a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.08rem;
}

.cta a:hover {
  border-bottom-color: transparent;
}

.cta a.gh {
  display: inline-flex;
  border-bottom: 0;
  padding: 0;
  color: var(--ink);
  opacity: 0.72;
}

.cta a.gh:hover,
.cta a.gh:focus-visible {
  opacity: 1;
  outline: none;
}

.cta a.gh svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.hero-down {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  text-decoration: none;
}

.hero-down svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.hero-down:hover,
.hero-down:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-down svg {
    animation: hero-down-nudge 1.8s ease-in-out infinite;
  }
}

@keyframes hero-down-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  scroll-snap-align: start;
}

.footer-mark {
  width: 22px;
  height: auto;
  display: block;
  opacity: 0.72;
}

.build {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: y proximity;
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 2.5rem 1.15rem 4.25rem;
  }

  .lede {
    font-size: 1.05rem;
  }
}
