/* 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: 1026px;
  --gutter: 38px;
}

*, *::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: 13.3px/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: 15.2px; top: 15.2px; z-index: 50; background: var(--fg); color: var(--bg); padding: 5.7px 9.5px; }

.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: 30.4px;
  padding: 26.6px 15.2px 20.9px;
  font-size: 12.35px; 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: 133px var(--gutter) max(60.8px, 11vh);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.quote { font-size: 11.4px; line-height: 1.5; 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 kept tight: the name, role and lead read as one block. */
.intro-body { max-width: min(39.9rem, 47vw); }
.intro-body h1 {
  font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--fg); margin-bottom: 13.3px;
}
.intro-body h1:has(+ .role) { margin-bottom: 4px; }
.role { font-size: 12.5px; font-weight: 400; color: var(--lilac); letter-spacing: 0.04em; margin-bottom: 16px; }
.lead { font-size: 14.25px; line-height: 1.6; color: var(--fg); max-width: 54ch; 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: 5px 2ch; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line2);
  font-size: 12.82px; line-height: 1.45;
}
.facts dt { color: var(--lilac); opacity: 0.75; }
.facts dd { color: var(--fg2); }
.facts dd .ul { color: var(--fg); }

.socials { margin-top: 20px !important; font-size: 12.82px; }
.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: 28.5px; right: 30.4px; z-index: 2;
  font-size: 10.45px; 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: 30.4px; bottom: 26.6px; z-index: 2;
  font-size: 10.45px; 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: 114px var(--gutter) 22.8px;
}
.page-hd h1 { font-size: 20.9px; font-weight: 700; text-transform: lowercase; letter-spacing: 0.01em; }
.page-hd h1::before { content: '~/'; color: var(--fg3); font-weight: 400; }
.lede { margin-top: 9.5px; max-width: 66ch; color: var(--fg2); }

.h2 {
  margin: 53.2px 0 17.1px;
  font-size: 11.4px; 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: 11.4px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

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

/* ---- projects ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(294.5px, 100%), 1fr));
  gap: 17.1px;
}
.proj {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11.4px;
  overflow: hidden;
  scroll-margin-top: 91.2px;
  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: 15.2px 17.1px 17.1px; }
.proj-name { font-size: 13.3px; 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 7.6px; margin-top: 3px; color: var(--fg2); font-size: 11.4px; }
.proj-meta .dot { color: var(--fg3); }
.oss {
  margin-left: auto; padding: 0 7.6px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px;
  color: var(--accent); font-size: 10.45px; line-height: 17.1px;
}
.proj-desc { flex: 1; margin-top: 11.4px; color: var(--fg2); font-size: 12.35px; line-height: 1.65; }
.proj-tech { margin-top: 13.3px; color: var(--fg3); font-size: 10.92px; }

/* ---- 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(608px, 100%);
  padding: 43.7px 20.9px 20.9px;
  background: rgba(10, 9, 18, 0.86);
  border: 1px solid var(--line);
  border-radius: 9.5px;
  box-shadow: 0 19px 57px rgba(0, 0, 0, 0.35);
  font-size: 13.3px;
}
.term::before {
  content: ''; position: absolute; top: 14.25px; left: 15.2px; width: 49.4px; height: 9.5px;
  background:
    radial-gradient(circle at 5px 5px, #ff6b5e 4px, transparent 4.5px),
    radial-gradient(circle at 21.85px 5px, #f2c25a 4px, transparent 4.5px),
    radial-gradient(circle at 38.95px 5px, #6fd39a 4px, transparent 4.5px);
  opacity: 0.75;
}
.term::after {
  content: 'perry@prry: ~/blog'; position: absolute; top: 8.55px; left: 0; right: 0;
  text-align: center; font-size: 10.45px; color: var(--fg3);
}
.term p + p { margin-top: 4px; }
.prompt { color: var(--lilac); }
.term-out { color: var(--fg2); }
.t-dir { color: #7f9cf5; font-weight: 600; }
.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: 34.2px; border-top: 1px solid var(--line); max-width: 779px; }
.posts li { border-bottom: 1px solid var(--line); padding: 13.3px 0; }
.posts a { display: grid; grid-template-columns: 104.5px 1fr auto; gap: 15.2px; align-items: baseline; }
.posts time, .posts-min { color: var(--fg3); font-size: 11.4px; }
.posts-title { transition: color 150ms ease; }
.posts a:hover .posts-title { color: var(--accent); }
.posts-sum { margin: 4px 0 0 119.7px; color: var(--fg2); font-size: 12.35px; }

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

.prose { margin-top: 34.2px; font-size: 14.25px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 17.1px; }
.prose h3 { margin-top: 1.8em; font-size: 14.25px; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.6em; font-size: 13.3px; 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 15.2px; 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: 7.6px; 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: 9.5px; }
.code pre { margin: 0; padding: 15.2px 17.1px; overflow-x: auto; font-size: 12.35px; line-height: 1.65; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.code-lang { position: absolute; top: 5.7px; right: 11.4px; font-size: 10.45px; color: var(--fg3); }

/* ---- status ---- */
.st-head { display: flex; align-items: center; gap: 9.5px; flex-wrap: wrap; margin-top: 26.6px; }
.st-dot { width: 8.55px; height: 8.55px; 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: 5.7px 22.8px; padding: 15.2px 17.1px;
}
.metric { display: grid; grid-template-columns: 91.2px minmax(0, 1fr); align-items: baseline; column-gap: 11.4px; }
.metric dt { color: var(--fg2); text-transform: uppercase; font-size: 11.4px; }
.metric dd { min-width: 0; }
.summary[data-stale] dd, .summary[data-stale] .u { color: var(--fg2); }

.net { margin-top: 17.1px; padding: 15.2px 17.1px; }
.net-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 7.6px 15.2px; flex-wrap: wrap; margin-bottom: 13.3px; }
.net-t { font-weight: 700; text-transform: uppercase; font-size: 11.4px; letter-spacing: 0.08em; }
.net-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30.4px; }
.net-stat { min-width: 0; }
.net-stat dt, .net-xfer dt { color: var(--fg2); text-transform: uppercase; font-size: 11.4px; }
.net-stat dd { display: flex; gap: 7.6px; align-items: baseline; min-width: 0; }
.net .v { font-weight: 700; }
.net-xfer { margin-top: 13.3px; }
.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: 13.3px; display: grid; row-gap: 7.6px; }
.graph-row { display: grid; grid-template-columns: 66.5px minmax(0, 1fr); column-gap: 11.4px; align-items: end; }
.graph-label { color: var(--fg2); white-space: nowrap; font-size: 11.4px; }
.graph-track { display: grid; grid-template-columns: repeat(60, 1fr); gap: 2px; align-items: end; height: 28.5px; }
.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 17.1px;
  --st-bar-w: 181.45px; --st-pct-w: 60.8px; --st-ms-w: 47.5px; --st-state-w: 34.2px; --st-col-gap: 15.2px;
}
.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: 8.55px 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: 13.3px; }
.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: 11.4px; }
.st-ms { color: var(--fg3); text-align: right; white-space: nowrap; font-size: 11.4px; }
.st-state { color: var(--fg2); text-align: right; white-space: nowrap; text-transform: uppercase; font-size: 11.4px; }

/* ---- status: mission control ---- */
.mc {
  margin-top: 26.6px; 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: 11.4px; flex-wrap: wrap;
  padding: 8.55px 17.1px; border-bottom: 1px solid var(--line);
  font-size: 10.45px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac);
}
.mc-live { display: inline-flex; align-items: center; gap: 7.6px; color: var(--fg2); }
.pulse { width: 6.65px; height: 6.65px; 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 7.6px transparent; }
}
.mc-main { display: flex; justify-content: space-between; align-items: center; gap: 19px 30.4px; flex-wrap: wrap; padding: 19px 17.1px 20.9px; }
.mc-state { display: flex; align-items: center; gap: 11.4px; }
.mc-title { font-size: 19px; font-weight: 700; letter-spacing: -0.005em; }
.mc-stats { display: flex; flex-wrap: wrap; gap: 13.3px 28.5px; }
.mc-stats dt { font-size: 10.45px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.mc-stats dd { font-size: 17.1px; font-weight: 700; }
.mc-met dd { font-weight: 400; color: var(--fg2); }

.note-top { margin: -5.7px 0 15.2px; }

/* 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: 9.5px; 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(228px, 100%), 1fr)); gap: 13.3px; }
.craft { padding: 13.3px 15.2px 15.2px; display: flex; flex-direction: column; }
.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: 7.6px; }
.craft-hd h3 { font-size: 13.3px; letter-spacing: 0.1em; text-transform: uppercase; }
.craft-state { display: inline-flex; align-items: center; gap: 6.65px; font-size: 10.45px; color: var(--fg2); }
.craft-state .st-dot { width: 6.65px; height: 6.65px; box-shadow: none; }
/* A spec line that wraps pushes nothing: the meters sit at the card's foot,
   so bars line up across a row whatever the text above them does. */
.craft-spec { margin: 4px 0 auto; padding-bottom: 11.4px; font-size: 11.4px; color: var(--fg3); }
.meter { display: grid; grid-template-columns: 28.5px minmax(0, 1fr) 38px; align-items: center; gap: 9.5px; font-size: 11.4px; }
.meter + .meter { margin-top: 6.65px; }
.meter-l { color: var(--fg3); }
.meter-v { text-align: right; color: var(--fg2); }

.traffic { padding: 15.2px 17.1px; }
.traffic-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11.4px 22.8px; padding-bottom: 13.3px; border-bottom: 1px solid var(--line); }
.traffic-sum dt { font-size: 10.45px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.traffic-sum dd { font-size: 17.1px; font-weight: 700; }
.traffic-list { list-style: none; padding: 0; margin-top: 9.5px; }
.traffic-list li {
  display: grid; grid-template-columns: minmax(0, 209px) minmax(0, 1fr) 60.8px 79.8px;
  align-items: center; gap: 13.3px; padding: 5.7px 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: 11.4px; }
.traffic .note { margin-top: 11.4px; }

/* Live: arrivals feed beside a per-minute chart and today's countries. */
.live { padding: 15.2px 17.1px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 19px 34.2px; margin-top: 15.2px; }
.live-h { font-size: 10.45px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); margin-bottom: 7.6px; }
.arrivals, .ctry { list-style: none; padding: 0; }
.arrivals li {
  display: grid; grid-template-columns: 7ch 3ch minmax(0, 1fr) auto; gap: 11.4px; align-items: baseline;
  padding: 5px 4px; border-bottom: 1px dashed var(--line); font-size: 11.88px;
}
.arrivals li.new { animation: arrive 2.4s ease-out; }
@keyframes arrive { from { background: color-mix(in srgb, var(--lilac) 20%, transparent); } to { background: transparent; } }
.ar-t { color: var(--fg3); }
.ar-cc { font-weight: 700; color: var(--lilac); }
.ar-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-dev { color: var(--fg3); font-size: 10.92px; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 53.2px; }
.spark i {
  flex: 1; min-width: 0; height: 3%; border-radius: 1px;
  background: repeating-linear-gradient(to top, #7f9cf5 0 3px, transparent 3px 5px);
}
.spark i:last-child { background: repeating-linear-gradient(to top, var(--accent) 0 3px, transparent 3px 5px); }
.spark .b1 { height: 10%; } .spark .b2 { height: 20%; } .spark .b3 { height: 30%; } .spark .b4 { height: 40%; }
.spark .b5 { height: 50%; } .spark .b6 { height: 60%; } .spark .b7 { height: 70%; } .spark .b8 { height: 80%; }
.spark .b9 { height: 90%; } .spark .b10 { height: 100%; }
.spark-axis { display: flex; justify-content: space-between; margin: 5.7px 0 19px; font-size: 10.45px; color: var(--fg3); }
.ctry li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) 76px 5ch; gap: 9.5px; align-items: center; padding: 4px 0; font-size: 11.88px; }
.ct-cc { font-weight: 700; color: var(--lilac); }
.ct-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.ct-v { text-align: right; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .arrivals li.new { animation: none; } }

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

/* ---- contact ---- */
.contact { max-width: 608px; margin-top: 30.4px; padding: 19px; }
.form { display: flex; flex-direction: column; gap: 13.3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13.3px; }
.fl { display: flex; flex-direction: column; gap: 5.7px; }
.fl > span { color: var(--fg2); font-size: 11.4px; }
.fi {
  width: 100%; padding: 8.55px 10.45px;
  font: 13.3px/1.5 var(--mono); color: var(--fg);
  background: rgba(10, 9, 18, 0.8);
  border: 1px solid var(--line); border-radius: 7.6px; outline: none;
  transition: border-color 150ms ease;
}
.fi:focus { border-color: var(--lilac); }
textarea.fi { resize: vertical; min-height: 123.5px; }
.btn {
  align-self: flex-start; padding: 8.55px 19px;
  font: 700 12.35px/1.5 var(--mono); color: var(--bg);
  background: var(--fg); border: 1px solid var(--fg); border-radius: 7.6px; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover { background: transparent; color: var(--fg); }
.msg { padding: 8.55px 11.4px; border: 1px solid var(--line); border-radius: 7.6px; margin-bottom: 13.3px; }
.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: 68.4px auto 0; padding: 20.9px var(--gutter) 38px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 11.4px; flex-wrap: wrap;
  color: var(--fg3); font-size: 11.4px;
}
.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: 13.3px; bottom: 13.3px; z-index: 30; margin: 0;
  padding: 3px 9.5px; font-size: 10.45px; 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: 135.85px; --st-col-gap: 11.4px; }
}
@media (max-width: 700px) {
  :root { --gutter: 19px; }
  .nav { gap: 19px; padding-top: 19px; font-size: 11.4px; }
  .sky-stats { top: 51.3px; right: 19px; }
  .intro { padding-top: 114px; padding-bottom: 53.2px; gap: 18px; }
  .intro-body { max-width: none; }
  .lead { font-size: 13.3px; }
  .role { font-size: 12px; }
  .facts { font-size: 12.35px; gap: 4px 2ch; grid-template-columns: 1fr; }
  .facts dd + dt { margin-top: 6px; }
  .page { padding-top: 83.6px; }
  .h2 { margin-top: 41.8px; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .metric { grid-template-columns: 83.6px minmax(0, 1fr); }
  .net-stats { grid-template-columns: minmax(0, 1fr); row-gap: 7.6px; }
  .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: 5.7px; column-gap: 9.5px; }
  .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: 7.6px 13.3px; }
  .mc-main { padding: 15.2px 13.3px 17.1px; }
  .mc-title { font-size: 16.15px; }
  .mc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .mc-met { grid-column: 1 / -1; }
  .traffic { padding: 13.3px; }
  .traffic-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live { padding: 13.3px; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .arrivals li { grid-template-columns: 7ch 3ch minmax(0, 1fr); row-gap: 1px; }
  .ar-dev { grid-column: 3; }
  .ctry li { grid-template-columns: 3ch minmax(0, 1fr) 60.8px 5ch; }
  .traffic-list li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; column-gap: 11.4px; }
  .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: 12.35px; padding: 41.8px 15.2px 17.1px; }
  .ftr { flex-direction: column; }
  .beta-pill { left: 9.5px; bottom: 9.5px; }
}

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

/* ---- login (private pages) ---- */
body.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-main {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 40px var(--gutter);
}
.term-login { width: min(420px, 100%); }
.term-login::after { content: 'perry@prry: ~/login'; }
.term-err { color: var(--bad); }
.login-form { display: grid; gap: 10px; margin-top: 16px; }
.tl { display: grid; grid-template-columns: 11ch minmax(0, 1fr); align-items: baseline; gap: 1ch; }
.tl input {
  width: 100%; padding: 3px 0; font: inherit; color: var(--fg); caret-color: var(--lilac);
  background: transparent; border: 0; border-bottom: 1px dashed var(--line2); border-radius: 0; outline: none;
  transition: border-color 150ms ease;
}
.tl input:focus { border-bottom: 1px solid var(--lilac); }
.login-form .btn { justify-self: start; margin-top: 8px; }
.login-back { font-size: 12px; color: var(--fg3); }
.login-back:hover, .login-back:focus-visible { color: var(--fg); }
