/* trespies.dev — "Madrugada": the lab's network map, drawn at night.
   Ground = the navy ring of the TresPies medallion. The Rainbow brights
   appear only as line colors (categorical data, the palette's sanctioned
   use). Three voices: signage (condensed grotesque), the person (serif),
   the machine (mono). Every face is already on the reader's device. */

:root {
  --night: #0B0B21;
  --night-2: #12143A;
  --night-3: #1A1D4A;
  --paper: #FAF7EF;
  --paper-2: rgba(250, 247, 239, 0.80);
  --paper-3: rgba(250, 247, 239, 0.64);
  --rule: rgba(250, 247, 239, 0.13);
  --rule-2: rgba(250, 247, 239, 0.26);

  --cyan: #0FA6E6;
  --emerald: #37BB8F;
  --sun: #FBCE0B;
  --red: #E73B1F;
  --lime: #84BB2C;
  --orange: #F98A0B;
  --dawn: #FEDC82;

  --f-sign: "Avenir Next Condensed", "Bahnschrift Condensed", "Bahnschrift SemiCondensed", Bahnschrift,
    "Roboto Condensed", "DejaVu Sans Condensed", "Liberation Sans Narrow", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-label: "Avenir Next Condensed", "Bahnschrift SemiCondensed", Bahnschrift, "Roboto Condensed",
    "DejaVu Sans Condensed", "Liberation Sans Narrow", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

.c-cyan { --c: var(--cyan); }
.c-emerald { --c: var(--emerald); }
.c-sun { --c: var(--sun); }
.c-red { --c: var(--red); }
.c-lime { --c: var(--lime); }
.c-paper { --c: var(--paper); }

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

html {
  background: var(--night);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--f-serif);
  background: var(--night);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sun); color: var(--night); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gut); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 8px;
  background: var(--sun); color: var(--night);
  font: 700 1rem var(--f-label); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ tiles */

.tile { width: 28px; height: 28px; flex: none; display: block; }
.tile-bg { fill: var(--c); }
.tile use { color: var(--night); }

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

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 33, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-in { display: flex; align-items: center; gap: 20px clamp(16px, 2.4vw, 32px); min-height: 64px; }
.top-in .nav { margin-left: auto; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand img { display: block; }
.brand-word { font: 700 1.4rem/1 var(--f-sign); letter-spacing: 0.005em; }
.brand-word span { color: var(--paper-3); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav a { color: var(--paper-2); text-decoration: none; font: 600 0.98rem/1 var(--f-label); white-space: nowrap; }
.nav a:hover { color: var(--paper); }
.lang { display: flex; align-items: center; gap: 6px; margin: 0; font: 500 0.8125rem/1 var(--f-mono); color: var(--paper-3); white-space: nowrap; }
.lang strong { color: var(--paper); font-weight: 600; }
.lang a { color: var(--paper-3); text-decoration: none; padding: 6px 2px; }
.lang a:hover { color: var(--paper); text-decoration: underline; }

@media (max-width: 820px) {
  .top-in { flex-wrap: wrap; gap: 2px 16px; padding-block: 10px 4px; }
  .top-in .lang { margin-left: auto; }
  .top-in .nav {
    order: 3; width: calc(100% + 2 * var(--gut)); margin: 0 calc(-1 * var(--gut));
    padding-inline: var(--gut); overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { padding-block: 8px 6px; width: max-content; }
}

main > section { scroll-margin-top: 72px; }

/* ----------------------------------------------------------- common */

.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 500 0.8125rem/1.3 var(--f-mono); letter-spacing: 0.03em;
  color: var(--paper-2);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--sun); flex: none; }

h2 {
  margin: 0 0 16px;
  font: 700 clamp(2.3rem, 1.3rem + 3.4vw, 4.2rem)/0.94 var(--f-sign);
  letter-spacing: -0.008em;
  max-width: 22ch;
  text-wrap: balance;
}
.section-intro {
  margin: 0 0 clamp(36px, 5vw, 56px);
  max-width: 58ch;
  color: var(--paper-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.bullet {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c); color: var(--night);
  font: 700 0.875rem/1 var(--f-sign);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--sun); color: var(--night);
  font: 700 1.05rem/1 var(--f-label); text-decoration: none;
}
.btn:hover { background: var(--dawn); }
.btn-quiet { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--rule-2); }
.btn-quiet:hover { background: var(--night-3); }

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

.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(12px, 2vw, 28px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero .kicker { grid-column: 1 / -1; }
.hero h1 {
  margin: 0;
  font: 700 clamp(3.2rem, 1.3rem + 6.6vw, 7.4rem)/0.88 var(--f-sign);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede {
  margin: 0 0 0.35em;
  color: var(--paper-2);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.55;
  max-width: 44ch;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .lede { margin-top: 24px; }
}

/* -------------------------------------------------------------- map */

.netmap { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); }
.netmap .wrap { position: relative; }

.skip-map {
  position: absolute; left: var(--gut); top: 0; z-index: 2;
  padding: 8px 14px; border-radius: 8px;
  background: var(--sun); color: var(--night);
  font: 700 0.9rem var(--f-label); text-decoration: none;
  transform: translateY(-140%); opacity: 0;
}
.skip-map:focus { transform: none; opacity: 1; }

.map-frame {
  margin-inline: calc(-1 * var(--gut));
  padding-inline: var(--gut);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}
/* Two drawings of one network: landscape on wide screens, portrait (pictograms
   only, sized for a thumb) on phones and tablets. Only one is ever displayed,
   so assistive tech and the keyboard only ever meet one set of stops. */
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map-l { display: none; }
.map-p { max-width: 540px; }
@media (min-width: 1024px) {
  .map-l { display: block; }
  .map-p { display: none; }
}
.map .hit { fill: transparent; }

.map .ln path { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.map .ln-private path { stroke-width: 6; stroke-dasharray: 0.1 13; opacity: 0.6; }

.map .punch { fill: var(--night); }
.map .stop .tile-bg { fill: var(--c); }
.map .stop use { color: var(--night); }
.map .is-private .tile-bg { fill: var(--paper); opacity: 0.78; }
.map .away circle { fill: var(--paper); stroke: var(--night); stroke-width: 2.4; }
.map .away path { fill: none; stroke: var(--night); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.map .lbl {
  font: 600 15px/1 var(--f-label);
  font-stretch: 87.5%;
  fill: var(--paper);
  letter-spacing: 0.01em;
}
.map a.stop { cursor: pointer; }
.map a.stop:hover .lbl { fill: var(--c); }
.map a.stop:hover .tile-bg { filter: brightness(1.14); }
.map a.stop:focus { outline: none; }
.map a.stop:focus-visible .punch { fill: var(--sun); }
.map a.stop:focus-visible .lbl { fill: var(--sun); text-decoration: underline; }

.map .bul { fill: var(--c); }
.map .bul-n { font: 700 17px/1 var(--f-sign); fill: var(--night); text-anchor: middle; }
.map .bul-n-sm { font-size: 15px; }
.map .bul-n-xs { font-size: 13px; }
.map .lg-line { font: 600 14px/1 var(--f-label); fill: var(--paper-2); }
.map .lg-t-sm { font-size: 12px; }
.map .ln-name { font: 700 18px/1 var(--f-sign); fill: var(--c); }
.map .c-paper .ln-name { fill: var(--paper-2); }
.map .ln-count { font: 500 13px/1 var(--f-mono); fill: var(--paper-3); }

.map .hub-ring { fill: var(--night); stroke: var(--paper); stroke-width: 6; }
.map .hub-pulse { fill: none; stroke: var(--sun); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map .hub-pulse { animation: hub-pulse 3.4s ease-out infinite; }
}
@keyframes hub-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  70%, 100% { transform: scale(1.85); opacity: 0; }
}
/* No text-anchor here: each drawing sets its own (centered under the hub on
   the landscape map, beside it on the portrait one), and CSS would win. */
.map .hub-name { font: 700 23px/1 var(--f-sign); fill: var(--paper); }
.map .hub-here { font: 600 11.5px/1 var(--f-mono); fill: var(--sun); letter-spacing: 0.1em; text-transform: uppercase; }

.map .pt-name { font: 700 31px/1 var(--f-sign); fill: var(--paper); }
.map .pt-sub { font: 600 15px/1 var(--f-label); fill: var(--paper-2); letter-spacing: 0.04em; text-transform: uppercase; }
.map .pt-date { font: 500 12.5px/1 var(--f-mono); fill: var(--paper-3); }

.map .lg-live { fill: var(--paper); }
.map .lg-priv { fill: var(--paper); opacity: 0.7; }
.map .lg-away { fill: var(--paper); stroke: var(--night); stroke-width: 2; }
.map .lg-away-a { fill: none; stroke: var(--night); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.map .lg-g { color: var(--night); }
.map .lg-t { font: 500 13px/1 var(--f-mono); fill: var(--paper-2); }

.map [data-o] { transition: opacity 0.22s ease; }
.map .is-future { opacity: 0.1; }

.map-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.map-stats { margin: 0; font: 500 0.8125rem/1.4 var(--f-mono); color: var(--paper-3); }

.scrub { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.scrub[hidden] { display: none; }
.scrub label { font: 600 0.95rem var(--f-label); color: var(--paper-2); }
.scrub output { font: 500 0.8125rem var(--f-mono); color: var(--paper); min-width: 22ch; }
.scrub input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: clamp(180px, 26vw, 340px); height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--rule-2); }
.scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule-2); }
.scrub input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px var(--night);
}
.scrub input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--night); }
.scrub .play {
  padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--night-3); color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-2);
  font: 600 0.95rem/1 var(--f-label);
}
.scrub .play:hover { background: var(--sun); color: var(--night); }

/* ---------------------------------------------------- sections, base */

.start, .directory, .built, .hosting {
  padding: clamp(64px, 9vw, 128px) 0;
  border-top: 1px solid var(--rule);
}

/* -------------------------------------------------------- start here */

.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.plate {
  display: flex; flex-direction: column;
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--c);
  border-radius: var(--radius);
  overflow: hidden;
}
.plate-1 { grid-column: 1 / span 7; }
.plate-2 { grid-column: 8 / span 5; }
.plate-3 { grid-column: 1 / span 5; }
.plate-4 { grid-column: 6 / span 7; }
.plate-shot { display: block; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--night-3); }
.plate-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
/* Narrow plates crop taller, so each pair of plates ends level. */
.plate-2 .plate-shot img, .plate-3 .plate-shot img { aspect-ratio: 9 / 8; }
.focus-left .plate-shot img { object-position: top left; }
.plate:hover .plate-shot img { transform: scale(1.015); }
.plate-body { display: grid; gap: 10px; padding: 22px clamp(18px, 2vw, 28px) 26px; flex: 1; align-content: start; }
.plate-line {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font: 600 0.8125rem/1 var(--f-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3);
}
.plate-name { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; font: 700 clamp(1.6rem, 1.2rem + 1vw, 2.1rem)/1 var(--f-sign); }
.plate-name .tile { width: 32px; height: 32px; }
.plate-text { margin: 0; color: var(--paper-2); }
.plate-go { margin: 6px 0 0; }
.plate-go a {
  color: var(--paper); text-decoration: none;
  font: 600 1rem/1.2 var(--f-label);
  border-bottom: 2px solid var(--c); padding-bottom: 2px;
}
.plate-go a:hover { color: var(--c); }

@media (max-width: 960px) {
  .plate-1, .plate-2, .plate-3, .plate-4 { grid-column: 1 / -1; }
  .plate-2 .plate-shot img, .plate-3 .plate-shot img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------- directory */

.lines { columns: 2 470px; column-gap: clamp(32px, 5vw, 72px); }
.line { break-inside: avoid; margin: 0 0 clamp(44px, 5vw, 64px); }
.line-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.line-head .bullet { width: 38px; height: 38px; font-size: 1.3rem; }
.line-head h3 { margin: 0; font: 700 clamp(1.7rem, 1.3rem + 1vw, 2.1rem)/1 var(--f-sign); }
.line-count { margin: 0; font: 500 0.8125rem/1 var(--f-mono); color: var(--paper-3); }
.line-blurb { grid-column: 2 / -1; margin: 8px 0 0; color: var(--paper-2); font-size: 1rem; line-height: 1.5; }

.entries { position: relative; list-style: none; margin: 0; padding: 0; }
.entries::before {
  content: ""; position: absolute; left: 14px; top: 22px; bottom: 30px;
  width: 6px; border-radius: 3px; background: var(--c); opacity: 0.9;
}
.entry { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 16px 0 12px; }
.entry .tile { width: 34px; height: 34px; margin-top: 2px; border-radius: 8px; box-shadow: 0 0 0 4px var(--night); position: relative; }
.entry h4 { margin: 0 0 3px; font: 700 1.35rem/1.1 var(--f-sign); }
.entry h4 a { color: var(--paper); text-decoration: none; }
.entry h4 a:hover { color: var(--c); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.away-mark { font: 500 0.9rem var(--f-mono); color: var(--paper-3); }
.entry-host { margin: 0 0 6px; font: 500 0.8125rem/1.3 var(--f-mono); color: var(--paper-3); overflow-wrap: anywhere; }
.entry-sum { margin: 0 0 9px; color: var(--paper-2); font-size: 1rem; line-height: 1.5; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font: 500 0.75rem/1 var(--f-mono); color: var(--paper-3); }

.health { color: var(--emerald); }

.st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--rule-2); color: var(--paper-2);
  font: 500 0.75rem/1 var(--f-mono);
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); }
.st-live::before { background: var(--emerald); }
.st-gated::before { background: var(--sun); }
.st-progress { border-style: dashed; }
.st-progress::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper-3); }

.coming { list-style: none; margin: 8px 0 0; padding: 0 0 0 50px; color: var(--paper-3); font-size: 0.95rem; line-height: 1.5; }
.coming li { padding: 6px 0; }
.coming strong { color: var(--paper-2); font: 700 1.05rem var(--f-sign); }

.line-private .priv-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.priv-row .tile { width: 30px; height: 30px; }
.line-private .priv-note { margin: 0; color: var(--paper-2); font-size: 1rem; }

/* ------------------------------------------------------ how it's built */

.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.ticket {
  position: relative;
  display: grid; grid-template-columns: minmax(118px, 32%) minmax(0, 1fr);
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: calc(32% - 10px); width: 20px; height: 20px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--rule);
}
.ticket::before { top: -11px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.ticket-fig {
  margin: 0; display: grid; place-items: center; padding: 26px 14px;
  border-right: 2px dashed var(--rule-2);
  font: 600 clamp(1.7rem, 1.1rem + 1.5vw, 2.5rem)/1 var(--f-mono);
  letter-spacing: -0.03em; color: var(--sun); text-align: center;
}
.ticket-body { padding: 24px clamp(18px, 2vw, 28px); }
.ticket-body h3 { margin: 0 0 8px; font: 700 1.4rem/1.1 var(--f-sign); }
.ticket-body p { margin: 0; color: var(--paper-2); font-size: 1rem; line-height: 1.55; }

@media (max-width: 900px) {
  .tickets { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-fig { border-right: 0; border-bottom: 2px dashed var(--rule-2); justify-items: start; padding: 22px 20px 18px; }
  .ticket::before, .ticket::after { display: none; }
}

/* ------------------------------------------------------------ hosting */

.hosting-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hosting-text p { max-width: 56ch; color: var(--paper-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); }
.hosting-text p:last-child { margin-bottom: 0; }
.hosting-cta {
  background: var(--night-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.hosting-cta .priv-row { display: flex; gap: 10px; margin: 0 0 18px; }
.cta-lead { margin: 0 0 16px; font: 700 1.5rem/1.1 var(--f-sign); }
@media (max-width: 860px) {
  .hosting-in { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- footer */

.foot {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0 36px;
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(130% 80% at 50% 118%, rgba(251, 206, 11, 0.22), rgba(249, 138, 11, 0.13) 32%, rgba(231, 59, 31, 0.07) 52%, transparent 72%),
    var(--night);
}
.foot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--sun) 25%, var(--orange) 50%, var(--red) 75%, transparent);
  opacity: 0.8;
}
.foot-top { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.foot-top img { flex: none; }
.foot-tag { margin: 0; max-width: 26ch; font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.2rem)/1.02 var(--f-sign); text-wrap: balance; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.foot-cols p { margin: 0; }
.foot-h { margin-bottom: 8px !important; font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-3); }
.foot a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.foot a:hover { text-decoration-color: var(--sun); }
.foot-note { margin-top: 6px !important; color: var(--paper-3); font-size: 0.95rem; line-height: 1.45; }
.colophon { margin: clamp(36px, 5vw, 56px) 0 22px; max-width: 72ch; color: var(--paper-3); font-size: 0.95rem; line-height: 1.55; }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 18px; border-top: 1px solid var(--rule);
  font: 500 0.8125rem/1.4 var(--f-mono); color: var(--paper-3);
}
.legal p { margin: 0; }

@media (max-width: 860px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: 1fr; }
}

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

.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-in { max-width: 640px; padding-block: 64px; text-align: center; }
.nf-in h1 { margin: 24px 0 12px; font: 700 clamp(2.2rem, 1.4rem + 3vw, 3.6rem)/0.95 var(--f-sign); text-wrap: balance; }
.nf-in h2 { margin: 0 0 10px; font: 700 1.6rem/1 var(--f-sign); }
.nf-in p { color: var(--paper-2); }
.nf-in hr { margin: 40px auto; width: 64px; border: 0; border-top: 3px solid var(--sun); }

/* -------------------------------------------------------------- print */

@media print {
  :root { --night: #fff; --night-2: #fff; --night-3: #fff; --paper: #0C2222; --paper-2: #0C2222; --paper-3: #444; --rule: #ccc; --rule-2: #999; }
  html, body, .foot { background: #fff !important; }
  .top, .scrub, .skip, .skip-map, .plate-shot, .map-p { display: none !important; }
  .map-l { display: block !important; }
  a { text-decoration: underline; }
  .start, .directory, .built, .hosting { break-before: page; }
}
