/* ==========================================================================
   Clash-Xiaoy 中文站
   Warm paper, ink, acid lime. No framework.
   ========================================================================== */

:root {
  --paper: #f2efe5;
  --paper-deep: #e9e4d6;
  --surface: #fbfaf4;
  --surface-soft: #f7f5ec;
  --ink: #171813;
  --ink-soft: #25271f;
  --muted: #686c5e;
  --muted-light: #8d9183;
  --line: rgba(23, 24, 19, 0.16);
  --line-strong: rgba(23, 24, 19, 0.55);
  --lime: #d9f36b;
  --lime-deep: #c2df4e;
  --orange: #ea5b32;
  --orange-soft: #f8ddce;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Menlo", "Consolas", monospace;
  --max: 1200px;
  --radius: 20px;
  --shadow: 9px 9px 0 var(--ink);
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 24, 19, 0.1) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.34;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  width: 0;
  height: 3px;
  background: var(--orange);
  pointer-events: none;
}

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

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

/* --------------------------------------------------------------------------
   Top bar and header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #f4f1e7;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar p,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 243, 107, 0.14);
}

.topbar-muted {
  color: rgba(244, 241, 231, 0.55);
}

.topbar a {
  color: var(--lime);
  font-weight: 650;
}

.topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-count {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(217, 243, 107, 0.42);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 239, 229, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 11px;
  transition: background 160ms ease;
}

.brand-mark img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.brand:hover .brand-mark {
  background: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 99px;
  color: #42463a;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(23, 24, 19, 0.06);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(23, 24, 19, 0.07);
}

.nav-rank {
  margin-left: 3px;
  border: 1.5px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-weight: 720;
}

.nav-rank:hover {
  background: var(--lime-deep);
  color: var(--ink);
}

.nav-rank[aria-current="page"] {
  background: var(--ink);
  color: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 180ms ease, top 180ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

body.nav-open .menu-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 0 var(--lime);
}

.btn-ink:hover {
  background: var(--ink-soft);
  box-shadow: 0 5px 0 var(--lime);
}

.btn-lime {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--ink);
}

.btn-lime:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-large {
  min-height: 54px;
  padding: 15px 30px;
  font-size: 15px;
}

.btn-small {
  min-height: 38px;
  padding: 9px 17px;
  font-size: 12.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 150ms ease, color 150ms ease;
}

.text-link:hover {
  background: var(--lime);
  color: var(--ink);
}

.text-link-small {
  font-size: 12.5px;
}

.text-link-light {
  color: var(--paper);
}

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

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

.hero {
  position: relative;
  overflow: clip;
  padding-top: 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 64px;
  min-height: 574px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 11.4em;
  font-family: var(--serif);
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h1 .accent {
  display: inline;
  padding: 0 0.08em;
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 94%, transparent 94%);
}

.hero-deck {
  max-width: 610px;
  margin-top: 28px;
  color: #4f5347;
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hero-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--muted-light);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage-grid {
  position: absolute;
  inset: -46px -28px;
  border-radius: 48%;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(23, 24, 19, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 19, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(closest-side, #000 38%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 38%, transparent 100%);
  transform: rotate(-4deg);
}

.connection-card {
  position: relative;
  z-index: 2;
  width: min(100%, 462px);
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.window-dots {
  display: inline-flex;
  gap: 4px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
}

.window-dots i:first-child {
  background: var(--orange);
  border-color: var(--orange);
}

.window-code {
  margin-left: auto;
}

.connection-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 22px 0 18px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.status-line strong {
  color: var(--ink);
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f9a35;
  box-shadow: 0 0 0 4px rgba(95, 154, 53, 0.13);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(95, 154, 53, 0.13);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(95, 154, 53, 0.05);
  }
}

.status-sep {
  color: var(--line-strong);
}

.connection-node {
  margin-top: 18px;
}

.connection-node p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.connection-node h2 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.connection-node > span {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.ping-block {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding-bottom: 2px;
}

.ping-value {
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.ping-unit {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.route {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.route-node {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.route-node i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.route-node.is-active {
  color: var(--ink);
  font-weight: 700;
}

.route-node.is-active i {
  background: var(--lime);
  border-color: var(--ink);
}

.route-dash {
  height: 1px;
  flex: 1 1 auto;
  min-width: 8px;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 6px 1px;
}

.traffic {
  margin-top: 14px;
  padding: 14px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.traffic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.traffic-meta b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.traffic-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-top: 10px;
}

.traffic-bars i {
  flex: 1;
  height: var(--h);
  min-height: 4px;
  border-radius: 2px 2px 1px 1px;
  background: var(--ink);
  opacity: 0.82;
}

.traffic-bars i:nth-child(6),
.traffic-bars i:nth-child(11) {
  background: var(--orange);
  opacity: 1;
}

.connection-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.connection-foot div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connection-foot span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.connection-foot b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}

.stage-note {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  width: 206px;
  margin: -7px 0 0 -24px;
  padding: 16px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3.2deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stage-note:hover {
  transform: rotate(-1.5deg) translateY(-3px);
  box-shadow: 7px 8px 0 var(--ink);
}

.stage-note span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.stage-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.stage-stamp {
  position: absolute;
  z-index: 3;
  top: 2px;
  right: -20px;
  padding: 7px 11px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  transform: rotate(6deg);
}

.rail {
  display: flex;
  align-items: stretch;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rail-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 16px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.rail-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-list::-webkit-scrollbar {
  display: none;
}

.rail-list span {
  display: inline-flex;
  align-items: center;
  flex: 1 0 auto;
  justify-content: center;
  min-height: 43px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.rail-list span + span {
  border-left: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Shared sections
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 44px;
}

.section-head h2,
.manifesto h2,
.download-preview-copy h2,
.ranking-band h2,
.archive-panel h2,
.not-found h1 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-head h2 {
  max-width: 11.5em;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.1;
  text-wrap: balance;
}

.section-head > p {
  max-width: 510px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-action {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */

.manifesto {
  border-top: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 88px;
  align-items: start;
}

.manifesto h2 {
  max-width: 8.2em;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.12;
  text-wrap: balance;
}

.fact-strip {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-strip div {
  flex: 1;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-strip div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.fact-strip b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fact-strip span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.manifesto-copy {
  padding-top: 10px;
}

.manifesto-copy p {
  color: #4a4e42;
  font-size: 16.5px;
  line-height: 1.95;
}

.manifesto-copy p + p {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features-section {
  padding-top: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}

.feature-card {
  min-height: 310px;
  padding: 26px 26px 30px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--lime);
}

.feature-card:first-child {
  background: var(--lime);
}

.feature-card:first-child:hover {
  background: #e6fb8c;
}

.feature-num {
  align-self: flex-start;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.feature-card h3 {
  margin-top: auto;
  padding-top: 72px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-top: 14px;
  color: #55594c;
  font-size: 13.5px;
  line-height: 1.85;
}

.feature-card:first-child p {
  color: #3a3e30;
}

/* --------------------------------------------------------------------------
   Dark steps
   -------------------------------------------------------------------------- */

.dark-band {
  margin: 0 24px;
  padding: 84px 0;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
}

.dark-band .section-head {
  margin-bottom: 46px;
}

.section-head-dark > p {
  color: rgba(242, 239, 229, 0.6);
}

.dark-band h2 {
  color: var(--paper);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(242, 239, 229, 0.2);
}

.step {
  min-height: 290px;
  padding: 22px 24px 24px 0;
  display: flex;
  flex-direction: column;
}

.step + .step {
  padding-left: 24px;
  border-left: 1px solid rgba(242, 239, 229, 0.16);
}

.step-num {
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--lime);
}

.step h3 {
  margin-top: auto;
  padding-top: 64px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}

.step p {
  margin-top: 10px;
  color: rgba(242, 239, 229, 0.6);
  font-size: 12.5px;
  line-height: 1.85;
}

.band-action {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   Download preview
   -------------------------------------------------------------------------- */

.download-preview {
  border-top: 1px solid var(--line);
}

.download-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 80px;
  align-items: start;
}

.download-preview-copy h2 {
  max-width: 7.5em;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.12;
  text-wrap: balance;
}

.download-preview-copy > p {
  max-width: 430px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.download-preview-copy .text-link {
  margin-top: 28px;
}

.os-list {
  border-top: 1.5px solid var(--ink);
}

.os-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 106px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease, padding 150ms ease;
}

.os-row:hover {
  background: var(--lime);
  padding-left: 14px;
  padding-right: 14px;
}

.os-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.os-name {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.os-name small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.os-size {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Ranking band
   -------------------------------------------------------------------------- */

.ranking-band {
  padding: 76px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--lime);
}

.ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.ranking-copy h2 {
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 1.05;
  text-wrap: balance;
}

.ranking-date {
  margin-top: 12px;
  color: #4b5039;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
}

.ranking-copy > p:not(.ranking-date) {
  max-width: 520px;
  margin-top: 18px;
  color: #3f4433;
  font-size: 14.5px;
  line-height: 1.9;
}

.ranking-copy .btn {
  margin-top: 28px;
}

.ranking-summary {
  padding: 22px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--ink);
}

.summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-top span {
  color: var(--muted);
  font-size: 11px;
}

.summary-top b {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-bottom {
  padding-top: 16px;
}

.summary-bottom p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.summary-bottom a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.summary-bottom a:hover {
  background: var(--lime);
}

/* --------------------------------------------------------------------------
   Notes cards
   -------------------------------------------------------------------------- */

.notes-section {
  border-top: 1px solid var(--line);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
}

.note-card-link {
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 26px;
}

.note-index {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.note-card h3 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 650;
  line-height: 1.37;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.note-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.note-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.note-foot span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 80px;
  align-items: start;
}

.faq-intro h2 {
  max-width: 7.5em;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.faq-intro p {
  max-width: 380px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-list {
  border-top: 1.5px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 38px 22px 0;
}

.faq-answer p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 20px;
  padding: 46px 0 26px;
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.footer-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 239, 229, 0.28);
  border-radius: 10px;
  background: rgba(242, 239, 229, 0.06);
}

.footer-mark img {
  width: 22px;
  height: 22px;
  filter: invert(1);
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.footer-brand small {
  color: rgba(242, 239, 229, 0.48);
  font-size: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 12px;
}

.footer-nav a {
  color: rgba(242, 239, 229, 0.7);
  font-size: 12.5px;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 239, 229, 0.14);
  color: rgba(242, 239, 229, 0.38);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 38px 0 62px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin-bottom: 38px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb li[aria-current="page"] {
  color: var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: end;
}

.page-hero h1 {
  max-width: 10em;
  font-family: var(--serif);
  font-size: clamp(44px, 5.3vw, 70px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.page-deck {
  max-width: 680px;
  margin-top: 20px;
  color: #4e5246;
  font-size: 16px;
  line-height: 1.9;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.page-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--muted-light);
  vertical-align: middle;
}

.version-card,
.ranking-side,
.notes-side {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
}

.version-card {
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--lime);
}

.version-label,
.side-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.version-card .version-label {
  color: var(--lime);
}

.version-card > strong {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.version-card p {
  margin-top: 16px;
  color: rgba(242, 239, 229, 0.62);
  font-size: 11.5px;
  line-height: 1.85;
}

.version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 239, 229, 0.16);
}

.version-links a {
  color: var(--lime);
  font-size: 11px;
  font-weight: 650;
  border-bottom: 1px solid rgba(217, 243, 107, 0.45);
}

.version-links a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.ranking-side {
  padding: 22px;
  border-color: var(--line-strong);
  background: var(--lime);
}

.ranking-side .side-label {
  color: #3d422f;
}

.ranking-side p {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.side-rule {
  height: 1px;
  margin: 20px 0 10px;
  background: rgba(23, 24, 19, 0.22);
}

.ranking-side > span:last-child {
  color: #4a4f3a;
  font-size: 10px;
}

.notes-side {
  padding: 22px;
  background: var(--surface);
}

.notes-side .side-label {
  color: var(--orange);
}

.notes-side p {
  margin-top: 12px;
  color: #4b4f42;
  font-size: 13px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */

.download-body {
  padding: 34px 0 90px;
}

.notice {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 3px;
  background: rgba(251, 250, 244, 0.74);
}

.notice strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.notice p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.notice-warm {
  margin-bottom: 66px;
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.notice-warm p,
.notice-warm strong {
  color: #523127;
}


.download-platforms {
  margin-top: 58px;
}

.os-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.os-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.os-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.os-card-head .os-code {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}

.os-card-head h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.os-card-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.file-list {
  flex: 1 1 auto;
  padding: 4px 18px;
}

.os-card-note {
  margin-top: auto;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-label {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

.file-label small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.file-name {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.file-size {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.file-row:hover .file-label {
  color: var(--orange);
}

.file-row:hover .file-name {
  color: var(--ink);
}

.os-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.checks-section,
.after-install {
  margin-top: 80px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.check-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 244, 0.5);
}

.check-num {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.check-card h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.check-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.sha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.sha-row strong {
  font-size: 13px;
}

.sha-row p {
  max-width: 680px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.sha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.sha-links a {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
}

.sha-links a:hover {
  background: var(--lime);
}

.after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.after-card {
  padding: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.after-card:hover {
  transform: translateY(-3px);
  background: var(--lime);
  box-shadow: 4px 5px 0 var(--ink);
}

.after-card span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.after-card h3 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.after-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.archive-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 48px;
  margin-top: 80px;
  padding: 42px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}

.archive-panel h2 {
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.15;
  text-wrap: balance;
}

.archive-panel p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(242, 239, 229, 0.62);
  font-size: 13.5px;
  line-height: 1.95;
}

.archive-panel .text-link {
  margin-top: 22px;
}

.archive-mark {
  justify-self: end;
  color: var(--lime);
  font-family: var(--mono);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  transform: rotate(-4deg);
  opacity: 0.82;
}

.archive-mark span {
  display: block;
  margin-top: 8px;
  color: rgba(242, 239, 229, 0.5);
  font-size: 0.48em;
  letter-spacing: 0.08em;
}

.download-faq {
  margin-top: 80px;
  padding-bottom: 0;
}

.download-faq .faq-list {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   Ranking page
   -------------------------------------------------------------------------- */

.ranking-body {
  padding: 34px 0 90px;
}

.featured-section {
  margin-bottom: 78px;
}

.featured-airport {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.featured-copy {
  padding: 32px;
}

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

.featured-rank {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid rgba(23, 24, 19, 0.28);
  border-radius: 3px;
  color: #4a4f39;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.featured-copy h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.featured-note {
  max-width: 540px;
  margin-top: 12px;
  color: #41462f;
  font-size: 14px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag-row li {
  padding: 4px 9px;
  border: 1px solid rgba(23, 24, 19, 0.25);
  border-radius: 99px;
  color: #43482f;
  font-size: 9.5px;
  line-height: 1.5;
}

.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 24, 19, 0.22);
}

.airport-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.price-caption {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.airport-price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
}

.airport-price small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.airport-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 21px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.airport-buy:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.featured-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.featured-metrics > div {
  padding: 23px 20px;
  border-bottom: 1px solid rgba(242, 239, 229, 0.16);
}

.featured-metrics > div:nth-child(odd) {
  border-right: 1px solid rgba(242, 239, 229, 0.16);
}

.featured-metrics > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.featured-metrics dt,
.airport-metrics dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.featured-metrics dt {
  color: rgba(242, 239, 229, 0.5);
}

.featured-metrics dd {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.featured-metrics dd small {
  margin-left: 2px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.featured-metrics .metric-text,
.airport-metrics .metric-text {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.all-airports {
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.rank-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.filter-chip:hover {
  background: rgba(23, 24, 19, 0.06);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.airport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.airport-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.airport-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 4px 5px 0 var(--ink);
}

.airport-card[hidden] {
  display: none;
}

@media (min-width: 821px) {
  .airport-grid > .airport-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    grid-template-areas:
      "top top"
      "title metrics"
      "note metrics"
      "tags metrics"
      "foot metrics";
    column-gap: 38px;
    padding: 26px 28px;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) .airport-top {
    grid-area: top;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) h3 {
    grid-area: title;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) .airport-note {
    grid-area: note;
    min-height: 0;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) .airport-metrics {
    grid-area: metrics;
    align-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) .tag-row {
    grid-area: tags;
  }

  .airport-grid > .airport-card:last-child:nth-child(odd) .airport-foot {
    grid-area: foot;
    margin-top: 18px;
  }
}

.airport-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.airport-rank {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.airport-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.airport-note {
  min-height: 42px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.airport-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.airport-metrics dd {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.airport-metrics dd small {
  margin-left: 1px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.airport-metrics .metric-text {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.airport-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.airport-foot .airport-price {
  font-size: 24px;
}

.price-overview {
  margin-top: 78px;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
}

.price-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
}

.price-table thead th {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}

.price-table tbody th,
.price-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody th {
  width: 34%;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.table-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.table-price small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.table-muted {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.how-to-read {
  margin-top: 88px;
  padding-top: 74px;
  border-top: 1px solid var(--line);
}

.read-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}

.read-grid article {
  min-height: 250px;
  padding: 22px 20px 24px 0;
  border-bottom: 1px solid var(--line);
}

.read-grid article + article {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.read-grid span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--orange);
}

.read-grid h3 {
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.read-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.ranking-faq {
  padding-bottom: 0;
}

.ranking-faq .faq-list {
  max-width: 880px;
}

/* --------------------------------------------------------------------------
   Notes index
   -------------------------------------------------------------------------- */

.notes-index-section {
  padding-top: 64px;
}

.notes-grid-large .note-card-link {
  min-height: 310px;
}

.notes-index-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.notes-index-foot p {
  max-width: 680px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-page {
  padding-bottom: 20px;
}

.article-header {
  padding: 38px 0 54px;
  border-bottom: 1px solid var(--line);
}

.article-header-inner {
  max-width: var(--max);
}

.article-heading {
  max-width: 900px;
}

.article-heading h1 {
  max-width: 12em;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.article-deck {
  max-width: 760px;
  margin-top: 20px;
  color: #4d5144;
  font-size: 17px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.article-meta span + span::before,
.article-meta time + span::before,
.article-meta span + time::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--muted-light);
  vertical-align: middle;
}

.article-meta > span:first-child {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
}

.article-meta > span:first-child::before {
  display: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  justify-content: space-between;
  gap: 74px;
  padding-top: 52px;
  padding-bottom: 76px;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin-bottom: 20px;
  color: #33372d;
  font-size: 15.8px;
  line-height: 1.98;
}

.article-body .article-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.85;
  letter-spacing: -0.02em;
}

.article-body h2 {
  margin: 48px 0 18px;
  padding-top: 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.04em;
  scroll-margin-top: 110px;
}

.article-body h2 + p {
  margin-top: 0;
}

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--orange);
  font-weight: 600;
}

.article-body a:hover {
  background: var(--lime);
}

.article-callout {
  margin: 32px 0;
  padding: 20px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
}

.article-callout strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.article-callout p {
  margin: 8px 0 0;
  color: #34382b;
  font-size: 14px;
  line-height: 1.85;
}

.article-end {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-end > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.article-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.article-end-links a {
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.article-end-links a:hover {
  background: var(--lime);
}

.article-aside {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 108px;
  padding-top: 8px;
  border-top: 1.5px solid var(--ink);
}

.toc h2 {
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.toc nav a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #4f5347;
  font-size: 11.5px;
  line-height: 1.55;
}

.toc nav a:hover {
  color: var(--ink);
  background: var(--lime);
  padding-left: 7px;
}

.aside-note {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.aside-note span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.aside-note p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.aside-note a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.aside-note a:hover {
  background: var(--lime);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  min-height: 62vh;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.not-found-code {
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 76px);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.not-found h1 {
  margin-top: 16px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.1;
}

.not-found > .wrap > p:not(.not-found-code) {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.not-found-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(44px, 5.4vw, 68px);
  }

  .connection-card {
    width: min(100%, 430px);
  }

  .stage-note {
    left: -18px;
  }

  .section-head,
  .faq-grid {
    gap: 44px;
  }

  .featured-airport {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  }

  .read-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .read-grid article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 46px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    height: 70px;
    gap: 18px;
  }

  .main-nav {
    position: fixed;
    top: 106px;
    left: 18px;
    right: 18px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1.5px solid var(--ink);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 7px 7px 0 var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 15px;
  }

  .nav-rank {
    margin-left: 0;
    margin-top: 4px;
  }

  .menu-toggle {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 52px;
  }

  .hero h1 {
    max-width: 12em;
    font-size: clamp(44px, 7vw, 68px);
  }

  .hero-visual {
    min-height: 480px;
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }

  .connection-card {
    width: min(100%, 470px);
  }

  .stage-note {
    left: 0;
    bottom: -8px;
  }

  .stage-stamp {
    right: 4px;
  }

  .rail {
    margin-top: 44px;
  }

  .section {
    padding: 74px 0;
  }

  .section-head,
  .faq-grid,
  .manifesto-grid,
  .download-preview-grid,
  .ranking-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2 {
    max-width: 11em;
  }

  .section-head > p {
    max-width: 620px;
  }

  .manifesto-grid {
    gap: 44px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 280px;
    padding: 20px;
  }

  .feature-card h3 {
    font-size: 23px;
  }

  .dark-band {
    margin: 0;
    border-radius: 0;
    padding: 68px 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 240px;
    padding: 20px 20px 22px 0;
  }

  .step + .step {
    padding-left: 20px;
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(242, 239, 229, 0.16);
  }

  .step:nth-child(4) {
    border-top: 1px solid rgba(242, 239, 229, 0.16);
  }

  .step h3 {
    padding-top: 48px;
  }

  .download-preview-grid {
    gap: 34px;
  }

  .ranking-grid {
    gap: 34px;
  }

  .ranking-summary {
    max-width: 430px;
  }

  .faq-grid {
    gap: 32px;
  }

  .page-hero {
    padding: 28px 0 48px;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .version-card,
  .ranking-side,
  .notes-side {
    max-width: 430px;
  }

  .os-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-card:last-child {
    grid-column: 1 / -1;
  }

  .featured-airport {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-metrics {
    border-left: 0;
    border-top: 1.5px solid var(--ink);
  }

  .featured-metrics > div {
    padding: 18px;
  }

  .featured-metrics dd {
    font-size: 30px;
  }

  .read-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding-top: 40px;
  }

  .article-aside {
    order: 2;
  }

  .toc {
    position: static;
  }

  .article-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .aside-note {
    margin-top: 0;
  }

  .archive-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 30px;
  }

  .archive-mark {
    justify-self: start;
  }

  .footer-main {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    padding-top: 0;
  }

  .notes-index-foot {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;
    padding: 22px;
  }

  .feature-num {
    grid-row: 1 / span 2;
  }

  .feature-card h3 {
    margin: 0;
    padding: 0;
    font-size: 24px;
  }

  .feature-card p {
    margin-top: 7px;
  }

  .airport-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-grid,
  .after-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .sha-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 36px), var(--max));
  }

  .topbar-inner {
    min-height: 34px;
    gap: 12px;
  }

  .topbar-inner p {
    font-size: 10px;
  }

  .topbar a {
    font-size: 10px;
  }

  .topbar-muted,
  .topbar-count {
    display: none;
  }

  .header-inner {
    height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-mark img {
    width: 21px;
    height: 21px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.7vw, 56px);
    line-height: 1.08;
  }

  .hero-deck {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 18px;
    margin-top: 28px;
  }

  .btn-large {
    min-height: 50px;
    padding: 13px 24px;
  }

  .hero-meta {
    margin-top: 26px;
    font-size: 9px;
  }

  .hero-meta span + span::before {
    margin: 0 8px;
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 54px;
  }

  .connection-card {
    width: 100%;
    padding: 17px;
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--ink);
    transform: rotate(-0.6deg);
  }

  .connection-node h2 {
    font-size: 31px;
  }

  .ping-value {
    font-size: 50px;
  }

  .route {
    gap: 5px;
    padding: 12px 9px;
  }

  .route-node {
    font-size: 8.5px;
  }

  .connection-foot b {
    font-size: 10px;
  }

  .stage-note {
    align-self: flex-end;
    width: 190px;
    margin: 10px 2px 0 0;
    padding: 12px 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .stage-note strong {
    font-size: 16px;
  }

  .stage-stamp {
    top: 2px;
    right: 8px;
    font-size: 8px;
  }

  .rail {
    margin-top: 38px;
  }

  .rail-label {
    padding: 0 11px;
    font-size: 8px;
  }

  .rail-list span {
    min-height: 40px;
    padding: 0 13px;
    font-size: 9px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head h2,
  .manifesto h2,
  .download-preview-copy h2,
  .faq-intro h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .manifesto-grid {
    gap: 34px;
  }

  .fact-strip {
    margin-top: 32px;
  }

  .fact-strip div {
    padding: 13px 0;
  }

  .fact-strip div + div {
    padding-left: 14px;
  }

  .fact-strip b {
    font-size: 13px;
  }

  .fact-strip span {
    font-size: 9px;
  }

  .manifesto-copy p {
    font-size: 15px;
  }

  .features-section {
    padding-top: 16px;
  }

  .feature-card {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 18px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .feature-card p {
    font-size: 12.5px;
  }

  .dark-band {
    padding: 56px 0;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: 0;
    padding: 18px 0 20px;
  }

  .step + .step,
  .step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(242, 239, 229, 0.16);
  }

  .step-num {
    font-size: 48px;
  }

  .step h3 {
    padding-top: 24px;
    font-size: 21px;
  }

  .step p {
    font-size: 12px;
  }

  .os-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 12px;
    min-height: 92px;
    padding: 14px 4px;
  }

  .os-code {
    width: 40px;
    height: 26px;
    font-size: 8px;
  }

  .os-name {
    font-size: 21px;
  }

  .os-size {
    grid-column: 2;
    font-size: 9px;
  }

  .ranking-band {
    padding: 56px 0;
  }

  .ranking-copy h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .ranking-copy > p {
    font-size: 13.5px;
  }

  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-card-link,
  .notes-grid-large .note-card-link {
    min-height: 0;
    padding: 21px;
  }

  .note-card h3 {
    margin-top: 22px;
    font-size: 25px;
  }

  .note-card p {
    font-size: 12.5px;
  }

  .faq-list summary {
    padding: 17px 34px 17px 0;
    font-size: 14px;
  }

  .faq-answer {
    padding-bottom: 18px;
  }

  .site-footer {
    padding: 34px 0 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
    font-size: 8px;
  }

  .page-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .page-deck {
    font-size: 15px;
  }

  .breadcrumb {
    margin-bottom: 26px;
  }

  .download-body,
  .ranking-body {
    padding-top: 24px;
    padding-bottom: 66px;
  }

  .notice {
    padding: 15px 16px;
  }

  .download-platforms {
    margin-top: 42px;
  }

  .os-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .os-card:last-child {
    grid-column: auto;
  }

  .checks-section,
  .after-install {
    margin-top: 56px;
    padding-top: 48px;
  }

  .check-card,
  .after-card {
    padding: 18px;
  }

  .archive-panel {
    margin-top: 56px;
    padding: 24px;
  }

  .archive-panel h2 {
    font-size: 34px;
  }

  .archive-mark {
    font-size: 44px;
  }

  .download-faq {
    margin-top: 56px;
  }

  .featured-copy {
    padding: 22px;
  }

  .featured-rank {
    font-size: 50px;
  }

  .featured-copy h3 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .featured-note {
    font-size: 12.5px;
  }

  .featured-foot {
    margin-top: 22px;
  }

  .featured-metrics dd {
    font-size: 28px;
  }

  .featured-metrics > div {
    padding: 15px;
  }

  .featured-metrics dt {
    font-size: 8px;
  }

  .airport-card {
    padding: 20px;
  }

  .airport-card h3 {
    font-size: 27px;
  }

  .airport-note {
    min-height: 0;
  }

  .airport-metrics dd {
    font-size: 21px;
  }

  .airport-metrics .metric-text {
    font-size: 12px;
  }

  .price-overview {
    margin-top: 58px;
    padding-top: 48px;
  }

  .price-table thead th,
  .price-table tbody th,
  .price-table tbody td {
    padding: 12px 14px;
  }

  .price-table tbody th {
    font-size: 17px;
  }

  .how-to-read {
    margin-top: 62px;
    padding-top: 52px;
  }

  .read-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-grid article {
    min-height: 0;
    padding: 18px 0 20px;
  }

  .read-grid article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .read-grid h3 {
    margin-top: 18px;
  }

  .notes-index-section {
    padding-top: 44px;
  }

  .article-header {
    padding: 28px 0 40px;
  }

  .article-heading h1 {
    font-size: clamp(34px, 9.4vw, 46px);
  }

  .article-deck {
    margin-top: 16px;
    font-size: 15px;
  }

  .article-meta {
    margin-top: 18px;
  }

  .article-layout {
    padding-top: 32px;
    padding-bottom: 58px;
  }

  .article-body p {
    font-size: 15px;
    line-height: 1.95;
  }

  .article-body .article-lead {
    font-size: 19px;
  }

  .article-body h2 {
    margin-top: 38px;
    font-size: 26px;
  }

  .article-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .not-found {
    padding: 60px 0;
  }

  .not-found-code {
    font-size: 64px;
  }
}

@media (max-width: 520px) {
  .header-download {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    gap: 6px 0;
  }

  .connection-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .ping-block {
    justify-content: flex-start;
    padding-top: 6px;
  }

  .ping-value {
    font-size: 42px;
  }

  .route {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .route::-webkit-scrollbar {
    display: none;
  }

  .traffic-bars {
    gap: 4px;
  }

  .connection-foot {
    gap: 6px;
  }

  .stage-note {
    width: 172px;
  }

  .filter-chips {
    gap: 5px;
  }

  .filter-chip {
    min-height: 31px;
    padding: 5px 11px;
    font-size: 10px;
  }

  .airport-foot,
  .featured-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .airport-buy {
    width: 100%;
  }

  .airport-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airport-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .airport-metrics > div {
    padding: 7px 0;
  }

  .featured-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sha-row {
    padding: 18px;
  }

  .os-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-panel {
    padding: 20px;
  }

  .article-meta > span:first-child {
    margin-bottom: 4px;
  }

  .toc nav a {
    font-size: 11px;
  }

  .not-found-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .not-found-links .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
