@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plex-400.woff2") format("woff2");
}

:root {
  --paper: #f3f0e8;
  --ink: #1a1916;
  --muted: #5c574e;
  --line: #d8d2c6;
  --line-strong: #c4bdb0;
  --teal: #0f6e64;
  --teal-bright: #1aa89c;
  --dark: #171816;
  --dark-2: #10110f;
  --dark-text: #e6e2d8;
  --dark-muted: #a39e92;
  --sans: Outfit, "Segoe UI", Cantarell, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
code, kbd { font-family: var(--mono); }
::selection { background: #cfe8e4; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dark);
  color: var(--dark-text);
  border-bottom: 3px solid var(--teal-bright);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 4px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--dark-text); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #3a3c36;
  background: transparent;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--dark-text);
}

.hero { padding: 56px 0 28px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.mark {
  width: 8px;
  height: 8px;
  background: var(--teal-bright);
  display: inline-block;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.6rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.lead {
  max-width: 38rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.lead + .lead { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(26, 25, 22, 0.05); }

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 720px;
  padding: 8px 8px 8px 12px;
  background: var(--dark-2);
  color: var(--dark-text);
  border: 1px solid #2e302b;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--dark-text);
}
.prompt {
  color: var(--teal-bright);
  font-family: var(--mono);
  flex-shrink: 0;
}
.cmd button {
  flex-shrink: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
}
.cmd button:hover { background: #fff; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 8px 0 0; }
.hint[hidden] { display: none; }

.shot {
  margin: 28px auto 0;
  background: #1e1e1e;
  border: 1px solid var(--line-strong);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  margin: 0;
  padding: 8px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.hero + .shot { margin-top: 36px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  padding: 22px 0 0;
  margin: 8px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.facts li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--line-strong);
}

.section { padding: 72px 0 0; }
h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.intro {
  max-width: 40rem;
  margin: 0 0 8px;
  color: var(--muted);
}
.rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.rows > div {
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}
.rows > div:nth-child(odd) {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}
.rows > div:nth-child(even) { padding-left: 36px; }
h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.rows p, .alts dd { margin: 0; color: var(--muted); }
code { font-size: 0.9em; color: var(--teal); }

.shots .shot { margin-top: 18px; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.pair .shot { margin-top: 0; }
.pair img {
  max-height: 420px;
  object-fit: contain;
  margin-inline: auto;
  background: #1e1e1e;
}

.alts {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 14px 28px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.alts dt { font-weight: 600; }

.install {
  margin-top: 72px;
  padding: 64px 0 48px;
  background: var(--dark);
  color: var(--dark-text);
}
.install h2, .install h3 { color: #f6f3ec; }
.install .intro, .install li, .install .hint { color: var(--dark-muted); }
.install code { color: #9edfd4; }
.install .cmd { max-width: none; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 36px 0 8px;
}
.install ul { margin: 0; padding-left: 1.1rem; }
.install li { margin: 8px 0; }
.install h3 { margin-top: 28px; }
.split h3 { margin-top: 0; }
.keys { color: var(--dark-muted); margin: 28px 0 0; }
kbd {
  display: inline-block;
  border: 1px solid #3c3e38;
  border-bottom-width: 2px;
  padding: 0 5px;
  font-size: 0.75rem;
  color: var(--dark-text);
  margin-right: 2px;
}

.foot {
  background: var(--dark);
  color: var(--dark-muted);
  border-top: 1px solid #2c2e28;
  padding: 22px 0 28px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot .brand { color: var(--dark-text); font-size: 0.95rem; }
.foot span, .foot a { color: var(--dark-muted); font-size: 0.88rem; }
.foot a:hover { color: var(--dark-text); }
.foot p { margin: 0; max-width: 28rem; font-size: 0.85rem; }

@media (max-width: 800px) {
  .rows, .pair, .split, .alts { grid-template-columns: 1fr; }
  .rows > div,
  .rows > div:nth-child(odd),
  .rows > div:nth-child(even) {
    border-right: 0;
    padding: 20px 0;
  }
  .alts { gap: 4px; }
  .alts dt { margin-top: 12px; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--dark);
    border-bottom: 1px solid #2c2e28;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .hero { padding-top: 36px; }
  .section { padding-top: 52px; }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
