:root {
  --paper: #f6f1e8;
  --paper-2: #efe7d8;
  --paper-3: #e6dcc9;
  --ink: #1f1b16;
  --ink-2: #4a4339;
  --ink-3: #807767;
  --accent: #c8643c;
  --accent-deep: #8a3e20;
  --focus: #5f7f91;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--paper-3);
  text-underline-offset: 0.18em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px 72px 64px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  font-size: 1.5625rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.wave-mark {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid var(--paper-3);
}

.hero {
  max-width: 920px;
  padding: 94px 0 88px;
}

.kicker {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 em {
  color: var(--accent);
  font-style: italic;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.38em;
  padding: 0.02em 0.2em 0.08em;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper-3));
  border-radius: 0.18em;
  background: linear-gradient(var(--paper), var(--paper-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -0.08em 0 rgba(31, 27, 22, 0.08),
    0 0.04em 0.12em rgba(31, 27, 22, 0.08);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  font-size: 0.58em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: 0.15em;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}

.install-panel {
  max-width: 760px;
  margin-top: 40px;
}

.command-box {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 12px 12px 24px;
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper-2) 88%, white);
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.prompt,
.command-box code,
.command-box button {
  font-family: var(--font-mono);
}

.prompt {
  color: var(--ink-3);
  user-select: none;
}

.command-box code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
}

.command-box button {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 8px 12px;
  border: 1px solid var(--paper-3);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.command-box button:hover,
.command-box button[data-copied="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.copy-status {
  min-height: 1.25rem;
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 0.8125rem;
}

.footnote {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  padding: 32px 0 96px;
  border-top: 1px solid var(--paper-3);
}

.lower-grid h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lower-grid p,
.lower-grid ul {
  max-width: 500px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.lower-grid ul {
  padding-left: 1.1rem;
}

.lower-grid li + li {
  margin-top: 0.25rem;
}

.site-footer {
  padding-top: 24px;
  border-top: 1px solid var(--paper-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 40px 24px 48px;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.8125rem;
  }

  .hero {
    padding: 64px 0 62px;
  }

  .command-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-left: 16px;
  }

  .lower-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 64px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .command-box {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }

  .command-box code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .command-box button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 20px;
  }

  .site-nav {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
