/* wmux feature tour: dark editorial layout over the terminal's own palette */

/* Self-hosted so the page renders where Google's font CDN is unreachable.
   swap = text paints in the fallback immediately, then upgrades. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Inter-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-400-latin.woff2") format("woff2");
}

:root {
  --bg: #0d1017;
  --panel: #141922;
  --panel-2: #10141c;
  --line: #222835;
  --text: #e6e9ef;
  --dim: #9aa3b2;
  --faint: #6a7383;
  --accent: #98c379; /* the green of the status line */
  --accent-2: #61afef;
  --accent-soft: rgba(152, 195, 121, 0.14);
  --r: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-2);
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(13, 16, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .dot {
  color: var(--accent);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--text);
}

.lang-btn {
  font: inherit;
  font-size: 14px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--faint);
}

.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.star-btn:hover {
  color: var(--text);
  border-color: var(--faint);
}

/* ----------------------------------------------------------------- bits */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  color: #10140c;
}

.btn.primary:hover {
  background: #a8d189;
}

.btn.ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--faint);
}

.btn.small {
  font-size: 14px;
  padding: 6px 14px;
  background: var(--accent);
  color: #10140c;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* ----------------------------------------------------------------- hero */

.hero {
  padding: clamp(48px, 9vw, 96px) 0 24px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede {
  max-width: 720px;
  margin: 0 auto;
  color: var(--dim);
  font-size: clamp(16px, 2.1vw, 19px);
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0 10px;
}

.meta {
  color: var(--faint);
  font-size: 14px;
  margin: 0;
}

.stage {
  margin: 40px 0 0;
}

.stage img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: block;
}

figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 14px;
}

/* ---------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 56px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.stats b {
  display: block;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.02em;
}

.stats span {
  color: var(--faint);
  font-size: 13px;
}

/* ------------------------------------------------------------- chapters */

.chapter {
  padding: clamp(40px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.chapter:first-of-type {
  border-top: none;
}

.chapter-head {
  max-width: 760px;
}

.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.chapter-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.chapter-head p {
  margin: 0;
  color: var(--dim);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.shot {
  margin: 28px 0 0;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.pair .shot {
  margin: 0;
}

.points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.points li {
  padding-left: 18px;
  position: relative;
  color: var(--dim);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.points b {
  color: var(--text);
}

.code {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.code code {
  color: inherit;
  font-size: inherit;
}

.code .c {
  color: var(--faint);
}

.code.mini {
  margin: 14px 0 0;
  padding: 14px 16px;
  font-size: 13px;
}

/* ------------------------------------------------------------- install */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 15px;
}

/* -------------------------------------------------------------- closing */

.closing {
  text-align: center;
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.closing h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px clamp(16px, 5vw, 40px) 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------- narrow */

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .pair,
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-link {
    display: none;
  }
}
