/* Nikki RS — static site styles */

:root {
  --paper: #f4f0e6;
  --paper-deep: #ebe4d6;
  --paper-card: #fbf8f1;
  --ink: #171511;
  --ink-2: #211e18;
  --ink-3: #2b2720;
  --muted: #665f53;
  --muted-2: #746b5d;
  --line: #d4ccbd;
  --line-dark: #3a342b;
  --rust: #c94b26;
  --rust-deep: #9e3217;
  --signal: #d9f56b;
  --white: #fffdf7;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --shadow: 7px 7px 0 rgba(23, 21, 17, 0.1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--rust); color: var(--white); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* Top strip */
.topbar {
  background: var(--ink);
  color: #d9d2c5;
  border-bottom: 1px solid #000;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .01em;
}
.topbar-inner {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-state { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dot {
  width: 7px; height: 7px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(217, 245, 107, .13);
}
.topbar b { color: var(--white); font-weight: 600; }
.topbar-sep { color: #625c51; }
.topbar-link {
  color: var(--signal);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.topbar-link:hover { color: var(--white); }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 240, 230, .94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: saturate(120%) blur(12px);
}
.head-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 43px; height: 43px;
  display: grid; place-items: center;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--rust);
}
.brand-mark img { width: 30px; height: 30px; }
.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
}
.brand-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.nav-rank) {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.nav-rank):hover,
.nav a[aria-current="page"]:not(.nav-rank) { border-bottom-color: var(--rust); }
.nav-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: var(--rust);
  color: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nav-rank:hover {
  background: var(--rust-deep);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.nav-rank .tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.55);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--rust);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rust);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--paper-deep); }
.btn-rust {
  background: var(--rust);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-rust:hover {
  background: var(--rust-deep);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover { background: var(--signal); border-color: var(--signal); }
.btn-sm { min-height: 39px; padding: 0 15px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(rgba(23,21,17,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,21,17,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px, 54px 54px, auto;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  width: 210px; height: 210px;
  right: 7%; top: -105px;
  border: 1px solid rgba(201, 75, 38, .4);
  border-radius: 50%;
}
.hero::after {
  width: 380px; height: 380px;
  left: -260px; bottom: -190px;
  border: 1px solid rgba(23, 21, 17, .18);
  transform: rotate(18deg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 92px) clamp(60px, 8vw, 100px);
}
.hero-copy h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 6.1vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-copy h1 .mark {
  display: inline-block;
  padding: 0 .08em;
  margin-inline: .03em;
  background: var(--rust);
  color: var(--white);
  transform: rotate(-1.4deg);
}
.hero-copy h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
}
.hero-lede {
  max-width: 600px;
  margin-bottom: 0;
  color: #4c463c;
  font-size: 17px;
  line-height: 1.9;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 17px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i {
  width: 5px; height: 5px;
  background: var(--rust);
  display: inline-block;
}

/* Console board */
.board-wrap { position: relative; padding: 8px 0 20px 10px; }
.board {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #ece7dc;
  border: 1.5px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(201, 75, 38, .22);
  transform: rotate(.55deg);
}
.board-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 0 13px;
  border-bottom: 1px solid #3b352c;
  font-family: var(--mono);
  font-size: 10px;
  color: #a49b8c;
  letter-spacing: .02em;
}
.board-dots { display: flex; gap: 4px; }
.board-dots i { width: 6px; height: 6px; border-radius: 50%; background: #554e43; }
.board-dots i:first-child { background: var(--rust); }
.board-url { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal);
  white-space: nowrap;
}
.board-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(217,245,107,.12);
}
.board-body { padding: 21px 21px 18px; }
.board-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3b352c;
}
.board-title strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  color: var(--white);
}
.board-title small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #8f8678;
  letter-spacing: .04em;
}
.board-version {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink);
  background: var(--signal);
  padding: 3px 6px;
  white-space: nowrap;
}
.board-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #3b352c;
}
.metric small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: #91887a;
  letter-spacing: .06em;
}
.metric b {
  display: block;
  margin-top: 4px;
  font-size: 35px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--white);
}
.metric b em {
  margin-left: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: #a69c8d;
}
.metric-bar {
  height: 4px;
  margin-top: 9px;
  background: #3b352c;
  overflow: hidden;
}
.metric-bar i { display: block; height: 100%; background: var(--rust); }
.metric:nth-child(2) .metric-bar i { background: var(--signal); width: 34%; }
.board-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0 7px;
  font-family: var(--mono);
  font-size: 9px;
  color: #8f8678;
  letter-spacing: .05em;
}
.nodes { display: grid; gap: 3px; }
.node-row {
  display: grid;
  grid-template-columns: 1fr 52px 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #302b24;
  font-size: 11.5px;
}
.node-row:last-child { border-bottom: 0; }
.node-name { display: flex; align-items: center; gap: 7px; color: #ddd6c9; }
.node-flag { font-size: 11px; filter: grayscale(.15); }
.node-track { height: 3px; background: #373128; }
.node-track i { display: block; height: 100%; background: #78b68b; }
.node-row:nth-child(2) .node-track i { background: #d7c75a; }
.node-row:nth-child(3) .node-track i { background: #c98561; }
.node-ms {
  text-align: right;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #a49a8a;
}
.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid #3b352c;
  font-family: var(--mono);
  font-size: 9px;
  color: #8f8678;
}
.board-foot strong { color: #cec5b6; font-weight: 500; }
.float-note {
  position: absolute;
  z-index: 2;
  right: -13px;
  bottom: -7px;
  padding: 10px 13px;
  background: var(--signal);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  transform: rotate(-2deg);
}
.float-note b { display: block; font-size: 11px; }
.float-note-top {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: -15px;
  padding: 7px 10px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  transform: rotate(-3deg);
}

/* Capability strip */
.cap-strip {
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cap-cell {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 17px 20px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.cap-cell:first-child { border-left: 0; padding-left: 0; }
.cap-cell b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.cap-cell span { letter-spacing: .01em; }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 106px); border-bottom: 1px solid var(--ink); }
.section-soft { background: var(--paper-deep); }
.section-head {
  max-width: 880px;
  margin-bottom: clamp(34px, 4vw, 52px);
}
.section-head h2,
.page-title {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.9vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}
.section-head .lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}
.section-head h2 em { font-style: normal; color: var(--rust); }
.section-index {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-2);
  vertical-align: middle;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}
.why-copy p {
  margin-bottom: 19px;
  color: #484237;
  font-size: 16.5px;
  line-height: 1.9;
}
.why-copy p strong { color: var(--ink); }
.pull-quote {
  margin: 30px 0 0;
  padding: 20px 0 0 22px;
  border-top: 1px solid var(--ink);
  border-left: 4px solid var(--rust);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -.02em;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: .06em;
  color: var(--muted);
}
.why-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.why-fact {
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, .45);
}
.why-fact b {
  display: block;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 800;
}
.why-fact b span { font-size: 15px; letter-spacing: 0; color: var(--rust); }
.why-fact small {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Dark architecture */
.arch {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #e9e3d7;
  border-bottom: 1px solid var(--ink);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.arch .wrap { position: relative; z-index: 1; }
.arch-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.arch h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(36px, 4.9vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}
.arch h2 em { font-style: normal; color: var(--signal); }
.arch p { color: #b8b0a2; font-size: 16px; line-height: 1.9; }
.arch p strong { color: #f2ede2; }
.arch-specs {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.arch-specs li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13px;
  line-height: 1.6;
}
.arch-specs span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: #8d8476;
}
.arch-specs b { color: #e9e3d7; font-weight: 500; }
.flow {
  padding: 24px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 247, .035);
}
.flow-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .07em;
  color: #8d8476;
}
.flow-title b { color: var(--signal); font-weight: 400; }
.flow-row {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: center;
  gap: 6px;
}
.flow-node {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid #4a4338;
  background: #1d1a15;
}
.flow-node small {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  color: #8d8476;
}
.flow-node strong { display: block; font-size: 13px; line-height: 1.35; color: #f2ede2; }
.flow-node em { display: block; margin-top: 4px; font-family: var(--mono); font-size: 8.5px; font-style: normal; color: #9e9586; }
.flow-node.core { border-color: var(--rust); background: #2a1a13; }
.flow-node.core strong { color: var(--signal); }
.flow-arrow {
  height: 1px;
  background: #554d41;
  position: relative;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -2.5px;
  width: 5px; height: 5px;
  border-top: 1px solid #8d8476;
  border-right: 1px solid #8d8476;
  transform: rotate(45deg);
}
.flow-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.flow-foot span {
  padding: 4px 7px;
  border: 1px solid #4a4338;
  font-family: var(--mono);
  font-size: 9px;
  color: #b7ae9f;
}
.flow-foot span:nth-child(2n) { border-color: rgba(217,245,107,.38); color: var(--signal); }

/* Feature cards */
.cap-grid-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  padding: 26px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
}
.feature-card.wide { grid-column: span 7; }
.feature-card.narrow { grid-column: span 5; }
.feature-card.half { grid-column: span 6; }
.feature-card .num {
  position: absolute;
  top: 15px;
  right: 17px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}
.feature-card h3 {
  max-width: 88%;
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}
.feature-card p code {
  padding: 1px 5px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.feature-list li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.feature-list li.hot { border-color: rgba(201,75,38,.5); color: var(--rust-deep); }

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(30px, 5vw, 62px);
  align-items: start;
}
.install-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 15px 0 15px 45px;
  border-bottom: 1px solid var(--line);
  color: #494338;
  font-size: 14.5px;
  line-height: 1.75;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 17px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--rust);
}
.steps strong { color: var(--ink); }
.terminal {
  background: #14120f;
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(201, 75, 38, .18);
  color: #ddd6c8;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-bottom: 1px solid #363027;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #918778;
}
.terminal-bar .dots { display: flex; gap: 4px; }
.terminal-bar .dots i { width: 6px; height: 6px; border-radius: 50%; background: #474035; }
.terminal-bar .dots i:first-child { background: var(--rust); }
.terminal-bar .file { margin-left: 4px; }
.copy-btn {
  margin-left: auto;
  padding: 3px 8px;
  background: transparent;
  color: #b7ad9e;
  border: 1px solid #4a4236;
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--signal); border-color: var(--signal); }
.terminal pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: #e7e0d3;
  tab-size: 2;
}
.terminal pre .comment { color: #8f8577; }
.terminal pre .accent { color: var(--signal); }
.terminal pre .rust { color: #f08a69; }
.term-note {
  margin-top: 15px;
  padding-left: 12px;
  border-left: 2px solid var(--rust);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.term-note code { font-family: var(--mono); font-size: 11px; }

/* Rank promo on home */
.rank-promo {
  background: var(--rust);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
}
.rank-promo .wrap { padding-block: clamp(54px, 7vw, 82px); }
.rank-promo-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.rank-promo h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 800;
  color: var(--white);
}
.rank-promo h2 em { font-style: normal; color: #2c211a; }
.rank-promo p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.85;
}
.promo-panel {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.promo-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
}
.promo-panel-head b { font-weight: 700; color: var(--rust-deep); }
.promo-list { margin: 0; padding: 0; list-style: none; }
.promo-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.promo-row:last-child { border-bottom: 0; }
.promo-row .no { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.promo-row strong { display: block; font-size: 14px; }
.promo-row small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.promo-row .score {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--rust-deep);
}
.promo-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--ink);
  background: var(--paper-deep);
}
.promo-panel-foot span { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.promo-link {
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.promo-link:hover { color: var(--rust-deep); }
.rank-promo .btn { margin-top: 25px; }

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.article-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.article-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: .02em;
}
.article-card .meta span + span::before { content: "/"; margin-right: 9px; color: var(--line); }
.article-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.article-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.article-card .read {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.article-card::after {
  content: "";
  position: absolute;
  right: 22px; bottom: 24px;
  width: 20px; height: 1px;
  background: var(--rust);
}
.section-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}
.text-link {
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--rust-deep); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}
.faq-aside p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.faq-aside .btn { margin-top: 8px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 19px 42px 19px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.55;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 17px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--rust);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  max-width: 700px;
  margin: -2px 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}
.faq-list details p code { font-family: var(--mono); font-size: 11.5px; }

/* CTA band */
.cta-band {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
}
.cta-band .wrap { padding-block: clamp(52px, 7vw, 78px); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(33px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.cta-inner p { margin-bottom: 0; color: var(--muted); font-size: 14.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 11px; flex: 0 0 auto; }

/* Footer */
.site-foot {
  background: var(--ink);
  color: #cfc7b9;
}
.foot-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-block: 38px 28px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.foot-brand .brand-mark { border-color: #5a5346; box-shadow: 3px 3px 0 var(--rust); background: #fff; }
.foot-brand b { display: block; font-size: 18px; line-height: 1.1; }
.foot-brand small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: #9b9283; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 5px; font-size: 13px; }
.foot-nav a { text-decoration: none; color: #d4ccbe; }
.foot-nav a:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 15px 20px;
  border-top: 1px solid #39332b;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #8f8678;
}
.foot-bottom a { color: #b9b0a1; text-underline-offset: 3px; }

/* Generic page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 82px) clamp(46px, 6vw, 68px);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(rgba(23,21,17,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,21,17,.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px, 48px 48px, auto;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 42px;
  align-items: end;
}
.page-kicker-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.page-kicker-line .chip {
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: rgba(251,248,241,.6);
  color: var(--rust-deep);
}
.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(39px, 5.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 800;
}
.page-hero h1 em { font-style: normal; color: var(--rust); }
.page-hero .lead {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
}
.page-hero .lead strong { color: var(--ink); }
.page-hero-side {
  padding: 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper-card);
  box-shadow: 6px 6px 0 rgba(23,21,17,.1);
}
.page-hero-side .mini-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
}
.page-hero-side .mini-title b { color: var(--rust-deep); }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.side-list li:last-child { border-bottom: 0; }
.side-list span { color: var(--muted); }
.side-list b { font-family: var(--mono); font-weight: 600; text-align: right; }
.side-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted-2); }
.breadcrumbs {
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span { margin-inline: 6px; color: var(--line); }

/* Download */
.download-top {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.release-card {
  background: var(--ink);
  color: #e9e3d7;
  border: 1.5px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(201,75,38,.2);
}
.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9.5px;
  color: #9b9182;
}
.release-head b { color: var(--signal); font-weight: 500; }
.release-body { padding: 22px 20px 20px; }
.release-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.release-version strong {
  font-size: 49px;
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--white);
}
.release-version span { font-family: var(--mono); font-size: 10px; color: var(--signal); }
.release-body p { margin-bottom: 18px; color: #aba294; font-size: 12.5px; line-height: 1.75; }
.release-facts { display: grid; gap: 0; margin-bottom: 20px; border-top: 1px solid var(--line-dark); }
.release-facts div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px;
}
.release-facts span { color: #8f8678; font-family: var(--mono); font-size: 9.5px; }
.release-facts b { font-weight: 500; text-align: right; }
.release-card .btn { box-shadow: 3px 3px 0 var(--rust); }
.download-intro p {
  margin-bottom: 18px;
  color: #4b453a;
  font-size: 16.5px;
  line-height: 1.9;
}
.req-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 28px; padding: 0; list-style: none; }
.req-list li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}
.req-list li b { color: var(--ink); font-weight: 600; }
.download-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.install-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.install-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.5vw, 43px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.install-panel p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.pkg-tabs { display: flex; gap: 0; margin-bottom: 12px; border: 1px solid var(--line); width: fit-content; }
.pkg-tab {
  padding: 7px 13px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}
.pkg-tab:last-child { border-right: 0; }
.pkg-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.code-pane[hidden] { display: none; }
.arch-section { background: var(--paper-deep); }
.arch-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.arch-card {
  display: flex;
  flex-direction: column;
  padding: 19px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.arch-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 rgba(23,21,17,.08); }
.arch-card .arch-label { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; color: var(--rust-deep); }
.arch-card h3 { margin: 7px 0 7px; font-size: 17px; line-height: 1.35; }
.arch-card p { margin-bottom: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.arch-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.arch-links a {
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  text-decoration: none;
  background: var(--paper);
}
.arch-links a:hover { border-color: var(--rust); color: var(--rust-deep); }
.arch-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.checksum {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--paper-card);
}
.checksum summary {
  padding: 11px 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.checksum div { padding: 0 14px 14px; }
.checksum code {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  word-break: break-all;
  color: #4b453a;
}

/* Ranking */
.rank-hero { padding-bottom: 44px; }
.rank-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}
.rank-meta-row b { color: var(--ink); }
.rank-meta-row .updated { color: var(--rust-deep); }
.rank-note {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--rust);
  background: rgba(251,248,241,.72);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}
.rank-note strong { color: var(--ink); }
.rank-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}
.rank-intro p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.rank-intro p b { color: var(--ink); }
.rank-section { padding-block: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--ink); }
.rank-section.dark {
  background: var(--ink);
  color: var(--paper);
}
.rank-section.dark .rank-section-head p { color: #aaa194; }
.rank-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.rank-section-head h2 {
  margin: 0;
  font-size: clamp(29px, 3.5vw, 41px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.rank-section-head p { max-width: 500px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; text-align: right; }
.rank-section.dark .rank-section-head h2 { color: var(--white); }
.airport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.airport-grid.two { grid-template-columns: repeat(2, 1fr); }
.airport-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.dark .airport-card { box-shadow: 5px 5px 0 rgba(217,245,107,.17); }
.airport-card.featured { border-color: var(--rust); }
.airport-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.airport-rank {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--rust-deep);
}
.airport-badge {
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
}
.airport-head { display: flex; align-items: flex-start; gap: 12px; padding: 17px 16px 0; }
.monogram {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  font-size: 17px;
  font-weight: 800;
  background: var(--paper-deep);
}
.airport-card:nth-child(3n+2) .monogram { background: #e7d9c8; }
.airport-card:nth-child(3n) .monogram { background: #e9e3cd; }
.airport-name { min-width: 0; flex: 1; }
.airport-name h3 { margin: 1px 0 2px; font-size: 21px; line-height: 1.25; }
.airport-name p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.airport-score {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  color: var(--rust-deep);
}
.airport-score small { display: block; margin-top: 3px; font-size: 8px; font-weight: 400; color: var(--muted-2); }
.airport-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.airport-data div { padding: 8px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.airport-data dt { font-family: var(--mono); font-size: 8px; letter-spacing: .04em; color: var(--muted-2); }
.airport-data dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.airport-note {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  flex: 1;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 16px 16px; }
.tag-row span {
  padding: 2px 5px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}
.airport-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: 43px;
  margin: auto 16px 16px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.airport-cta:hover { background: var(--rust); border-color: var(--rust); color: var(--white); }
.featured .airport-cta { background: var(--rust); border-color: var(--rust); }
.featured .airport-cta:hover { background: var(--rust-deep); }
.dark .airport-cta { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.dark .airport-cta:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.dark .featured .airport-cta { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.filter-btn {
  padding: 7px 11px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.airport-card[hidden] { display: none; }
.rank-method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.method-col { padding-top: 16px; border-top: 2px solid var(--rust); }
.method-col h3 { margin-bottom: 9px; font-size: 18px; line-height: 1.4; }
.method-col p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.rank-disclosure {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.75;
}
.rank-bottom-cta {
  background: var(--rust);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
}
.rank-bottom-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 36px;
}
.rank-bottom-cta h2 { margin: 0 0 5px; font-size: clamp(27px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.rank-bottom-cta p { margin: 0; color: var(--white); font-size: 12.5px; }
.rank-bottom-cta .btn { flex: 0 0 auto; }

/* Article list */
.articles-index-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: start;
}
.article-index-list { border-top: 1px solid var(--ink); }
.article-index-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.article-index-item:hover h2 { color: var(--rust-deep); }
.article-index-item .date { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.article-index-item h2 { margin: 0 0 7px; font-size: 22px; line-height: 1.45; transition: color .16s ease; }
.article-index-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article-index-item .read { font-family: var(--mono); font-size: 9px; color: var(--rust-deep); white-space: nowrap; }
.side-stack { display: grid; gap: 18px; position: sticky; top: 105px; }
.side-card { padding: 22px; border: 1.5px solid var(--ink); background: var(--paper-card); box-shadow: 5px 5px 0 rgba(23,21,17,.08); }
.side-card h2 { margin-bottom: 10px; font-size: 22px; line-height: 1.35; letter-spacing: -.025em; }
.side-card p { margin-bottom: 17px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.side-card .btn { width: 100%; }

/* Article page */
.article-hero {
  padding-block: 42px 38px;
  border-bottom: 1px solid var(--line);
}
.article-hero-inner { max-width: 880px; }
.article-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.16;
  letter-spacing: -.045em;
  font-weight: 800;
}
.article-dek {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}
.article-meta b { color: var(--ink); font-weight: 500; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: clamp(38px, 6vw, 82px);
  align-items: start;
  padding-block: 48px 68px;
}
.article-body { min-width: 0; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 8px 9px 0 0;
  font-family: var(--serif);
  font-size: 55px;
  line-height: .82;
  font-weight: 700;
  color: var(--rust);
}
.article-body p {
  margin-bottom: 22px;
  color: #3f3a31;
  font-size: 16.5px;
  line-height: 1.95;
}
.article-body h2 {
  margin: 42px 0 15px;
  font-size: clamp(26px, 3vw, 33px);
  line-height: 1.3;
  letter-spacing: -.03em;
}
.article-body h3 { margin: 30px 0 12px; font-size: 21px; line-height: 1.45; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 1.3em; }
.article-body li { margin-bottom: 9px; color: #3f3a31; font-size: 15.5px; line-height: 1.85; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--rust-deep); text-underline-offset: 3px; }
.article-body code {
  padding: 2px 5px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.article-body pre {
  margin: 0 0 25px;
  padding: 17px 18px;
  overflow-x: auto;
  background: var(--ink);
  color: #e8e1d5;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
}
.article-body pre code { padding: 0; background: transparent; border: 0; color: inherit; font-size: inherit; }
.article-body blockquote {
  margin: 30px 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--rust);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
}
.article-body blockquote p { margin: 0; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; }
.article-callout {
  margin: 32px 0;
  padding: 19px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
}
.article-callout p { margin: 0 0 13px; font-size: 14px; line-height: 1.8; }
.article-callout .text-link { font-size: 12px; }
.article-end {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.8;
}
.article-aside { position: sticky; top: 105px; display: grid; gap: 16px; }
.aside-card {
  padding: 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper-card);
  box-shadow: 5px 5px 0 rgba(23,21,17,.08);
}
.aside-card h2 { margin-bottom: 9px; font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
.aside-card p { margin-bottom: 15px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.aside-card .btn { width: 100%; }
.aside-card.dark { background: var(--ink); color: var(--paper); }
.aside-card.dark h2 { color: var(--white); }
.aside-card.dark p { color: #aca395; }
.aside-card.dark .btn { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.aside-card.dark .btn:hover { background: var(--white); border-color: var(--white); }
.article-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-next a { padding: 15px; border: 1px solid var(--line); text-decoration: none; background: var(--paper-card); }
.article-next a:hover { border-color: var(--ink); }
.article-next small { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); }
.article-next b { display: block; font-size: 13px; line-height: 1.5; }

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.sitemap-block { border-top: 1px solid var(--ink); padding-top: 17px; }
.sitemap-block h2 { margin-bottom: 13px; font-size: 22px; }
.sitemap-block ul { margin: 0; padding: 0; list-style: none; }
.sitemap-block li { border-bottom: 1px solid var(--line); }
.sitemap-block a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 12.5px; text-decoration: none; }
.sitemap-block a:hover { color: var(--rust-deep); }
.sitemap-block a small { font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); }
.xml-note { margin-top: 32px; padding: 15px; background: var(--paper-deep); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.xml-note code { font-family: var(--mono); font-size: 10.5px; }

/* 404 */
.notfound {
  min-height: 58vh;
  display: grid;
  align-items: center;
  padding-block: 70px;
}
.notfound-inner { max-width: 690px; }
.notfound .code-big {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 70px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.08em;
  color: var(--rust);
}
.notfound h1 { margin-bottom: 15px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.05em; }
.notfound p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.notfound .hero-actions { margin-top: 25px; }

/* Utilities */
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 38px; }
  .nav { gap: 18px; font-size: 13px; }
  .nav-rank { padding: 10px 12px; }
  .airport-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-download-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 38px; }
}

@media (max-width: 920px) {
  .head-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 12px; }
  .brand { margin-right: auto; padding-bottom: 11px; }
  .head-inner > .btn { margin-bottom: 11px; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 11px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
    font-size: 13px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:not(.nav-rank) { padding: 4px 0; }
  .nav-rank { margin-left: auto; padding: 7px 10px; box-shadow: 2px 2px 0 var(--ink); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1 { max-width: 760px; }
  .board-wrap { max-width: 570px; padding-bottom: 28px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .cap-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .why-grid, .arch-grid, .install-grid, .rank-promo-grid, .faq-grid, .articles-index-grid, .page-hero-grid, .download-top, .install-panel, .rank-intro { grid-template-columns: 1fr; }
  .why-grid, .arch-grid, .install-grid, .faq-grid, .rank-promo-grid { gap: 34px; }
  .why-facts { max-width: 620px; }
  .arch-specs { max-width: 620px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside, .side-stack { position: static; grid-template-columns: 1fr 1fr; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .article-hero-inner { max-width: 100%; }
  .airport-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-section-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .rank-section-head p { text-align: left; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .foot-main { flex-direction: column; gap: 24px; }
  .page-hero-side { max-width: 580px; }
}

@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 36px), var(--wrap)); }
  .topbar-inner { min-height: 32px; font-size: 9.5px; gap: 8px; }
  .topbar-state { gap: 6px; overflow: hidden; }
  .topbar-state .topbar-sep { display: none; }
  .topbar-state .hide-sm { display: none; }
  .topbar-link { font-size: 9px; }
  .head-inner { padding-top: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark img { width: 27px; height: 27px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 8px; }
  .nav { gap: 17px; font-size: 12px; padding: 9px 0 10px; }
  .nav-rank { font-size: 10.5px; padding: 6px 8px; }
  .nav-rank .tag { display: none; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lede { font-size: 15.5px; line-height: 1.85; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { font-size: 9.5px; gap: 8px 12px; }
  .board-body { padding: 17px 15px 15px; }
  .board-metrics { padding: 15px 0; }
  .metric b { font-size: 30px; }
  .float-note { right: -5px; bottom: -18px; font-size: 9px; }
  .float-note-top { left: -8px; }
  .cap-cell { padding: 13px 12px; font-size: 11px; }
  .cap-cell b { font-size: 11px; }
  .section-head h2, .arch h2 { font-size: clamp(32px, 9vw, 43px); }
  .section-head .lead { font-size: 15px; }
  .why-fact b { font-size: 35px; }
  .pull-quote { font-size: 21px; }
  .flow-row { grid-template-columns: 1fr; gap: 7px; }
  .flow-arrow { width: 1px; height: 15px; margin-left: 50%; }
  .flow-arrow::after { right: -2.5px; top: auto; bottom: 0; transform: rotate(135deg); }
  .cap-grid-cards { grid-template-columns: 1fr; }
  .feature-card.wide, .feature-card.narrow, .feature-card.half { grid-column: span 1; }
  .feature-card { padding: 22px; }
  .feature-card h3 { font-size: 21px; }
  .terminal pre { font-size: 10.5px; padding: 15px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; padding: 22px; }
  .article-card h3 { font-size: 21px; }
  .article-card::after { display: none; }
  .rank-promo h2 { font-size: clamp(34px, 9.5vw, 46px); }
  .promo-panel { box-shadow: 5px 5px 0 var(--ink); }
  .cta-inner h2 { font-size: clamp(31px, 9vw, 43px); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .page-hero h1 { font-size: clamp(36px, 10.5vw, 50px); }
  .page-hero .lead { font-size: 15px; }
  .page-hero-side { padding: 16px; }
  .download-top { gap: 28px; }
  .release-version strong { font-size: 43px; }
  .install-panel { gap: 20px; }
  .arch-download-grid, .airport-grid, .airport-grid.two, .rank-method, .sitemap-grid { grid-template-columns: 1fr; }
  .airport-card { width: 100%; }
  .airport-cta { width: calc(100% - 32px); min-height: 46px; font-size: 13px; }
  .rank-intro { padding-block: 26px; }
  .rank-bottom-cta .wrap { flex-direction: column; align-items: flex-start; }
  .rank-bottom-cta .btn { width: 100%; }
  .article-aside, .side-stack { grid-template-columns: 1fr; }
  .article-layout { padding-top: 34px; }
  .article-body > p:first-of-type::first-letter { font-size: 46px; }
  .article-body p { font-size: 15.5px; }
  .article-body pre, .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .article-hero { padding-top: 30px; }
  .article-next { grid-template-columns: 1fr; }
  .article-index-item { grid-template-columns: 1fr; gap: 5px; padding: 19px 0; }
  .article-index-item .read { margin-top: 5px; }
  .foot-main { padding-top: 30px; }
  .foot-nav { gap: 8px 16px; }
  .foot-bottom { font-size: 8.5px; }
  .notfound .code-big { font-size: 54px; }
}

@media (max-width: 430px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .topbar-link { display: none; }
  .topbar-inner { justify-content: flex-start; }
  .nav { gap: 14px; }
  .nav-rank { margin-left: 2px; }
  .hero-copy h1 { font-size: 42px; }
  .metric b { font-size: 27px; }
  .why-facts { grid-template-columns: 1fr; }
  .why-fact { min-height: 0; }
  .section { padding-block: 54px; }
  .article-hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Additions kept at the end for article tables and four-column methodology */
.article-table {
  width: 100%;
  margin: 6px 0 26px;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 13.5px;
}
.article-table th {
  padding: 10px 9px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.article-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  color: #3f3a31;
  line-height: 1.55;
  vertical-align: top;
}
.article-table tr:last-child td { border-bottom: 0; }
.article-table td:nth-child(3),
.article-table td:nth-child(4) { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }

.rank-method.four { grid-template-columns: repeat(4, 1fr); }
.side-card.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.side-card.dark h2 { color: var(--white); }
.side-card.dark p { color: #aca395; }
.side-card.dark .btn-light:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

@media (max-width: 920px) {
  .rank-method.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .rank-method.four { grid-template-columns: 1fr; }
  .article-table { font-size: 12.5px; display: block; overflow-x: auto; }
  .article-table th, .article-table td { min-width: 82px; }
  .article-table td:nth-child(3), .article-table td:nth-child(4) { font-size: 10.5px; }
}

/* Grid children must be allowed to shrink around long commands and code */
.hero-inner > *,
.why-grid > *,
.arch-grid > *,
.install-grid > *,
.rank-promo-grid > *,
.faq-grid > *,
.page-hero-grid > *,
.download-top > *,
.install-panel > *,
.article-layout > *,
.articles-index-grid > *,
.rank-intro > *,
.cta-inner > *,
.airport-card,
.article-card,
.feature-card { min-width: 0; }
.terminal,
.terminal pre,
.article-body pre { min-width: 0; max-width: 100%; }

.metric-bar { display: block; }
