/* prry.nl — hand-written, no framework. Dark only: it's space. */

@font-face {
  font-family: 'CommitMono';
  src: url('../fonts/CommitMono-400.woff2?v=2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'CommitMono';
  src: url('../fonts/CommitMono-700.woff2?v=2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0e1a;
  --panel: rgba(20, 19, 34, 0.78);
  --fg: #ebe7f4;
  --fg2: #a7a3bd;
  --fg3: #6c6886;
  --line: #25233b;
  --line2: #3a3757;
  --accent: #f08a44;
  --lilac: #c4bcff;
  --ok: #6fd39a;
  --warn: #f2c25a;
  --bad: #ff6b5e;
  --mono: 'CommitMono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1080px;
  --gutter: 40px;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.7 var(--mono);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  min-height: 100vh;
  min-height: 100svh;
}

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

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* A link inside running text: quiet underline that firms up on hover. */
.ul {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 150ms ease;
}
.ul:hover { text-decoration-color: currentColor; }

.dim { color: var(--fg3); }
.u { color: var(--fg2); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--fg); color: var(--bg); padding: 6px 10px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the sky ---- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .ftr, .sky-stats, .hint { position: relative; z-index: 1; }

.cursor {
  display: inline-block; width: 0.55em; height: 1em; margin-left: 5px;
  background: var(--fg); transform: translateY(0.15em);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- navigation ---- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: center; gap: 32px;
  padding: 28px 16px 22px;
  font-size: 13px; text-transform: lowercase;
}
body:not(.home):not(.blog-empty) .nav {
  background: linear-gradient(to bottom, rgba(15, 14, 26, 0.94) 55%, rgba(15, 14, 26, 0));
}
.nav a { opacity: 0.5; transition: opacity 150ms ease; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { opacity: 1; }

/* ---- home ---- */
body.home { display: flex; flex-direction: column; overflow-x: hidden; }

.intro {
  margin-top: auto;
  padding: 140px var(--gutter) max(64px, 11vh);
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.quote { font-size: 12px; line-height: 1.7; text-transform: lowercase; letter-spacing: 0.02em; opacity: 0.5; }

/* One measure for the whole block, stopping short of the planet on wide
   screens. Spacing is a fixed rhythm: 14 under the name, 28 between groups. */
.intro-body { max-width: min(42rem, 47vw); }
.intro-body h1 {
  font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 14px;
}
.lead { font-size: 15px; line-height: 1.7; color: var(--fg); max-width: 58ch; text-wrap: pretty; }

/* What I do, as a short labelled list: the label column is sized in
   characters so it lines up like terminal output at any font size. */
.facts {
  display: grid; grid-template-columns: 9ch minmax(0, 1fr);
  gap: 9px 2ch; margin-top: 28px;
  font-size: 13.5px; line-height: 1.55;
}
.facts dt { color: var(--lilac); opacity: 0.75; }
.facts dd { color: var(--fg2); }
.facts dd .ul { color: var(--fg); }

.socials { margin-top: 28px !important; font-size: 13.5px; }
.socials a { opacity: 0.6; text-decoration: underline; text-decoration-color: transparent;
             text-underline-offset: 5px; transition: opacity 150ms ease, text-decoration-color 150ms ease; }
.socials a:hover, .socials a:focus-visible { opacity: 1; text-decoration-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.socials .sep { opacity: 0.35; }

.sky-stats {
  position: fixed; top: 30px; right: 32px; z-index: 2;
  font-size: 11px; line-height: 1.7; text-align: right; opacity: 0.34;
}
.sky-stats div.flash { animation: flash 700ms ease-out; }
@keyframes flash { from { opacity: 1; color: var(--accent); } to { opacity: 1; } }

.hint {
  position: fixed; right: 32px; bottom: 28px; z-index: 2;
  font-size: 11px; opacity: 0.28; margin: 0; pointer-events: none;
}
@media (hover: none) { .hint { display: none; } }

/* ---- inner pages ---- */
.page {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 120px var(--gutter) 24px;
}
.page-hd h1 { font-size: 22px; font-weight: 700; text-transform: lowercase; letter-spacing: 0.01em; }
.page-hd h1::before { content: '~/'; color: var(--fg3); font-weight: 400; }
.lede { margin-top: 10px; max-width: 66ch; color: var(--fg2); }

.h2 {
  margin: 56px 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2);
}
.h2::before { content: '## '; color: var(--fg3); font-weight: 400; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.note { margin-top: 16px; max-width: 80ch; color: var(--fg3); font-size: 12px; }

/* ---- projects ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 18px;
}
.proj {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 96px;
  transition: border-color 200ms ease, transform 200ms ease;
}
a.proj:hover, a.proj:focus-visible { border-color: var(--line2); transform: translateY(-2px); }
.proj:target { border-color: var(--accent); }

.proj-shot {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: #0b0a14; border-bottom: 1px solid var(--line);
}
.proj-shot img, .proj-shot canvas {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 400ms ease;
}
a.proj:hover .proj-shot img { transform: scale(1.025); }

.proj-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.proj-name { font-size: 14px; font-weight: 700; }
.arw { color: var(--fg3); transition: color 150ms ease; }
a.proj:hover .arw { color: var(--accent); }
.proj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; color: var(--fg2); font-size: 12px; }
.proj-meta .dot { color: var(--fg3); }
.oss {
  margin-left: auto; padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px;
  color: var(--accent); font-size: 11px; line-height: 18px;
}
.proj-desc { flex: 1; margin-top: 12px; color: var(--fg2); font-size: 13px; line-height: 1.65; }
.proj-tech { margin-top: 14px; color: var(--fg3); font-size: 11.5px; }

/* ---- blog ---- */
body.blog-empty { display: flex; flex-direction: column; }
body.blog-empty main { flex: 1; width: 100%; display: flex; align-items: center; justify-content: flex-start; }

.term {
  position: relative;
  width: min(640px, 100%);
  padding: 46px 22px 22px;
  background: rgba(10, 9, 18, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-size: 14px;
}
.term::before {
  content: ''; position: absolute; top: 15px; left: 16px; width: 52px; height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff6b5e 4px, transparent 4.5px),
    radial-gradient(circle at 23px 5px, #f2c25a 4px, transparent 4.5px),
    radial-gradient(circle at 41px 5px, #6fd39a 4px, transparent 4.5px);
  opacity: 0.75;
}
.term::after {
  content: 'perry@prry: ~/blog'; position: absolute; top: 9px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: var(--fg3);
}
.term p + p { margin-top: 4px; }
.prompt { color: var(--lilac); }
.term-out { color: var(--fg2); }
.term-soon { margin-top: -6vh; }
.term [data-type].typing::after { content: ''; display: inline-block; width: 0.55em; height: 1em; margin-left: 2px;
  background: var(--fg); transform: translateY(0.15em); }
.term .hidden { visibility: hidden; }

.posts { list-style: none; padding: 0; margin-top: 36px; border-top: 1px solid var(--line); max-width: 820px; }
.posts li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.posts a { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; }
.posts time, .posts-min { color: var(--fg3); font-size: 12px; }
.posts-title { transition: color 150ms ease; }
.posts a:hover .posts-title { color: var(--accent); }
.posts-sum { margin: 4px 0 0 126px; color: var(--fg2); font-size: 13px; }

.post { max-width: 72ch; margin: 0 auto; }
.post-hd h1 { margin-top: 10px; font-size: 26px; line-height: 1.3; }
.post-meta { color: var(--fg3); font-size: 12px; }
.post-meta .dot { margin: 0 4px; }

.prose { margin-top: 36px; font-size: 15px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 18px; }
.prose h3 { margin-top: 1.8em; font-size: 15px; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.6em; font-size: 14px; color: var(--fg2); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose blockquote { padding: 2px 0 2px 16px; border-left: 2px solid var(--accent); color: var(--fg2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: #1c1a2e; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose strong { font-weight: 700; }
.code { position: relative; background: #0a0913; border: 1px solid var(--line); border-radius: 10px; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.code-lang { position: absolute; top: 6px; right: 12px; font-size: 11px; color: var(--fg3); }

/* ---- status ---- */
.st-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.st-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.st-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }

.summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 24px; padding: 16px 18px;
}
.metric { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; column-gap: 12px; }
.metric dt { color: var(--fg2); text-transform: uppercase; font-size: 12px; }
.metric dd { min-width: 0; }
.summary[data-stale] dd, .summary[data-stale] .u { color: var(--fg2); }

.net { margin-top: 18px; padding: 16px 18px; }
.net-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.net-t { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
.net-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.net-stat { min-width: 0; }
.net-stat dt, .net-xfer dt { color: var(--fg2); text-transform: uppercase; font-size: 12px; }
.net-stat dd { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.net .v { font-weight: 700; }
.net-xfer { margin-top: 14px; }
.net-xfer dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net[data-offline] { border-style: dashed; }
.net[data-offline] .v { color: var(--fg3); font-weight: 400; }
.net[data-offline] .graph-track i { background: var(--line); }

.graph-list { margin-top: 14px; display: grid; row-gap: 8px; }
.graph-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 12px; align-items: end; }
.graph-label { color: var(--fg2); white-space: nowrap; font-size: 12px; }
.graph-track { display: grid; grid-template-columns: repeat(60, 1fr); gap: 2px; align-items: end; height: 30px; }
.graph-track i { display: block; min-width: 0; background: linear-gradient(to top, #b8481f, var(--accent)); border-radius: 1px; }
.graph-track .l0 { height: 0; }
.graph-track .l1 { height: 12.5%; }
.graph-track .l2 { height: 25%; }
.graph-track .l3 { height: 37.5%; }
.graph-track .l4 { height: 50%; }
.graph-track .l5 { height: 62.5%; }
.graph-track .l6 { height: 75%; }
.graph-track .l7 { height: 87.5%; }
.graph-track .l8 { height: 100%; }

.st-list {
  list-style: none; padding: 0 18px;
  --st-bar-w: 191px; --st-pct-w: 64px; --st-ms-w: 50px; --st-state-w: 36px; --st-col-gap: 16px;
}
.st-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--st-bar-w) var(--st-pct-w) var(--st-ms-w) var(--st-state-w);
  column-gap: var(--st-col-gap); align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.st-list li:last-child { border-bottom: 0; }
.st-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list li[data-down] .st-name, .st-list li[data-down] .st-state { color: var(--bad); }
.st-bar { display: grid; grid-template-columns: repeat(48, 1fr); gap: 1px; width: var(--st-bar-w); height: 14px; }
.st-bar i { display: block; min-width: 0; height: 100%; border-radius: 1px; }
.st-bar .ok   { background: var(--ok); }
.st-bar .warn { background: var(--warn); }
.st-bar .bad  { background: var(--bad); }
.st-bar .none { background: var(--line); }
.st-pct { color: var(--fg2); text-align: right; white-space: nowrap; font-size: 12px; }
.st-ms { color: var(--fg3); text-align: right; white-space: nowrap; font-size: 12px; }
.st-state { color: var(--fg2); text-align: right; white-space: nowrap; text-transform: uppercase; font-size: 12px; }

/* ---- status: mission control ---- */
.mc {
  margin-top: 28px; overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, 0.014) 3px 4px),
    var(--panel);
}
.mc-alert { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.mc-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 9px 18px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac);
}
.mc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--fg2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 8px transparent; }
}
.mc-main { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: 20px 18px 22px; }
.mc-state { display: flex; align-items: center; gap: 12px; }
.mc-title { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; }
.mc-stats { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.mc-stats dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.mc-stats dd { font-size: 18px; font-weight: 700; }
.mc-met dd { font-weight: 400; color: var(--fg2); }

.note-top { margin: -6px 0 16px; }

/* Segmented meters: a row of cells, some lit. Widths come from the cell
   count, never an inline style, because the CSP blocks those. */
.seg { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; height: 10px; align-self: center; }
.seg-wide { grid-template-columns: repeat(40, 1fr); }
.seg i { display: block; min-width: 0; border-radius: 1px; background: var(--line); }
.seg i.cool { background: #7f9cf5; }
.seg i.warm { background: var(--warn); }
.seg i.hot  { background: var(--accent); }

.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.craft { padding: 14px 16px 16px; }
.craft[data-down] { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.craft-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.craft-hd h3 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.craft-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fg2); }
.craft-state .st-dot { width: 7px; height: 7px; box-shadow: none; }
.craft-spec { margin: 4px 0 12px; font-size: 12px; color: var(--fg3); }
.meter { display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 12px; }
.meter + .meter { margin-top: 7px; }
.meter-l { color: var(--fg3); }
.meter-v { text-align: right; color: var(--fg2); }

.traffic { padding: 16px 18px; }
.traffic-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.traffic-sum dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.traffic-sum dd { font-size: 18px; font-weight: 700; }
.traffic-list { list-style: none; padding: 0; margin-top: 10px; }
.traffic-list li {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 64px 84px;
  align-items: center; gap: 14px; padding: 6px 0;
}
.tr-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-n { text-align: right; font-weight: 700; }
.tr-b { text-align: right; color: var(--fg3); font-size: 12px; }
.traffic .note { margin-top: 12px; }

/* ---- uses ---- */
.spec { padding: 0 18px; }
.spec > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--fg2); text-transform: uppercase; font-size: 12px; }

/* ---- contact ---- */
.contact { max-width: 640px; margin-top: 32px; padding: 20px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span { color: var(--fg2); font-size: 12px; }
.fi {
  width: 100%; padding: 9px 11px;
  font: 14px/1.5 var(--mono); color: var(--fg);
  background: rgba(10, 9, 18, 0.8);
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  transition: border-color 150ms ease;
}
.fi:focus { border-color: var(--lilac); }
textarea.fi { resize: vertical; min-height: 130px; }
.btn {
  align-self: flex-start; padding: 9px 20px;
  font: 700 13px/1.5 var(--mono); color: var(--bg);
  background: var(--fg); border: 1px solid var(--fg); border-radius: 8px; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover { background: transparent; color: var(--fg); }
.msg { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.msg-ok { border-color: var(--ok); }
.msg-err { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.ftr {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 72px auto 0; padding: 22px var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  color: var(--fg3); font-size: 12px;
}
.ftr::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.ftr-soc { margin: 0 !important; }

.beta-pill {
  position: fixed; left: 14px; bottom: 14px; z-index: 30; margin: 0;
  padding: 3px 10px; font-size: 11px; color: var(--fg2);
  background: rgba(15, 14, 26, 0.88); border: 1px solid var(--line); border-radius: 999px;
}
.beta-pill b { color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.beta-pill a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- copy hardening ----
   Friction, not protection: text stays in the HTML for crawlers and screen
   readers. Form fields and code stay selectable, or they would be useless. */
body { -webkit-user-select: none; user-select: none; }
.fi, input, textarea, pre, code { -webkit-user-select: text; user-select: text; }

/* ---- small screens ---- */
@media (max-width: 1000px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .st-list { --st-bar-w: 143px; --st-col-gap: 12px; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .nav { gap: 20px; padding-top: 20px; font-size: 12px; }
  .sky-stats { top: 54px; right: 20px; }
  .intro { padding-top: 120px; padding-bottom: 56px; gap: 24px; }
  .intro-body { max-width: none; }
  .lead { font-size: 14px; }
  .facts { font-size: 13px; gap: 4px 2ch; grid-template-columns: 1fr; }
  .facts dd + dt { margin-top: 8px; }
  .page { padding-top: 88px; }
  .h2 { margin-top: 44px; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .metric { grid-template-columns: 88px minmax(0, 1fr); }
  .net-stats { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .graph-track { gap: 1px; }
  /* Phone: name, latency and state on the first line; the 24h bar and its
     percentage share the second, so long names are not cut short. */
  .st-list li { grid-template-columns: minmax(0, 1fr) var(--st-ms-w) var(--st-state-w); row-gap: 6px; column-gap: 10px; }
  .st-name  { grid-area: 1 / 1; }
  .st-ms    { grid-area: 1 / 2; }
  .st-state { grid-area: 1 / 3; }
  .st-bar   { grid-area: 2 / 1; width: 100%; }
  .st-pct   { grid-area: 2 / 2 / 3 / 4; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .mc-bar { padding: 8px 14px; }
  .mc-main { padding: 16px 14px 18px; }
  .mc-title { font-size: 17px; }
  .mc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .mc-met { grid-column: 1 / -1; }
  .traffic { padding: 14px; }
  .traffic-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-list li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; column-gap: 12px; }
  .tr-d { grid-area: 1 / 1; }
  .tr-n { grid-area: 1 / 2; }
  .tr-b { grid-area: 1 / 3; }
  .traffic-list .seg-wide { grid-area: 2 / 1 / 3 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .posts a { grid-template-columns: 1fr auto; }
  .posts time { grid-column: 1 / -1; }
  .posts-sum { margin-left: 0; }
  .term { font-size: 13px; padding: 44px 16px 18px; }
  .ftr { flex-direction: column; }
  .beta-pill { left: 10px; bottom: 10px; }
}

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