/* Packetium — network weather map.
   Palette is TIA-568 structured cabling pair colours, per design doc §13. */

:root {
  --ground:     #0A0E13;
  --ground-2:   #0D1219;
  --panel:      #111823;
  --panel-2:    #16202D;
  --line:       #1E2A38;
  --line-soft:  #172230;

  --pair1:      #3D8BFD;   /* structure, links */
  --pair2:      #FF8A3D;   /* core, emphasis */
  --pair3:      #46C97E;   /* healthy */
  --pair4:      #A8724A;   /* inert, deferred */
  --pair5:      #7D8FA3;   /* neutral */
  --amber:      #E8B341;
  --red:        #E5484D;

  --ink:        #E4EAF2;
  --ink-2:      #A9B7C7;
  --ink-3:      #7D8FA3;
  --ink-4:      #55657A;

  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pair1); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

code, .mono { font-family: var(--mono); font-size: .92em; }
code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .08em .34em;
  color: var(--ink);
}

.arrow { color: var(--ink-4); font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pair2); color: var(--ground);
  padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- headings */

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.08;
  margin: 0 0 .6rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: .09em; text-transform: uppercase; font-family: var(--body); font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: 1rem;
}
.sec-num {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--pair2);
  letter-spacing: .1em;
  padding-top: .3em;
  flex: none;
}
.section-lede {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 1.06em;
  margin-bottom: 2.5rem;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 19, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 60px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark path { stroke: var(--pair1); stroke-width: 1.35; fill: none; opacity: .8; }
.brand-mark circle { fill: var(--pair1); }
.brand-mark .mark-core { fill: var(--pair2); }
.brand-text {
  font-family: var(--head); font-weight: 700;
  font-size: 1.42rem; letter-spacing: .02em;
}

.topnav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }
.topnav a {
  color: var(--ink-3);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav-cta {
  color: var(--pair2) !important;
  border: 1px solid rgba(255, 138, 61, .35);
  border-radius: var(--radius);
  padding: .38rem .75rem;
}
.topnav-cta:hover { background: rgba(255, 138, 61, .1); border-color: var(--pair2); }

@media (max-width: 860px) {
  .topnav a:not(.topnav-cta) { display: none; }
}

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

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 55% at 22% 8%, rgba(61, 139, 253, .16), transparent 70%),
    radial-gradient(45% 45% at 82% 22%, rgba(255, 138, 61, .09), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 42, 56, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 56, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 60% at 50% 25%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono);
  font-size: .755rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: rgba(17, 24, 35, .6);
  border-radius: 100px;
  padding: .34rem .85rem;
  margin-bottom: 1.6rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pair3);
  box-shadow: 0 0 0 3px rgba(70, 201, 126, .16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { margin-bottom: 1.5rem; }

.lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.lede em { color: var(--ink); font-style: italic; }
.lede-2 { color: var(--ink-3); }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin: 2.2rem 0 3.5rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-size: .95rem; font-weight: 600;
  padding: .78rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--pair2); color: #14100B; border-color: var(--pair2);
}
.btn-primary:hover { background: #ffa163; border-color: #ffa163; }
.btn-ghost {
  background: transparent; color: var(--ink-2); border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-4); background: var(--panel); }

.hero-shot {
  position: relative; z-index: 1;
  margin: 0 auto;
  width: 100%; max-width: 1320px;
  padding-inline: var(--pad);
}
.hero-shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(61, 139, 253, .07);
}
.hero-shot figcaption,
.maps-figs figcaption,
.gallery figcaption {
  font-size: .84rem;
  color: var(--ink-4);
  margin-top: .7rem;
  font-family: var(--mono);
  line-height: 1.5;
}
.hero-shot figcaption { text-align: center; }

/* ------------------------------------------------------------------ bands */

.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line-soft); }
.band-alt { background: var(--ground-2); }
.hero + .band { margin-top: clamp(3rem, 7vw, 5rem); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.claim h3 { margin-bottom: .5rem; }
.claim { border-top: 2px solid var(--pair1); padding-top: 1.1rem; }
.claims .claim:nth-child(2) { border-top-color: var(--pair2); }
.claims .claim:nth-child(3) { border-top-color: var(--pair3); }
.claim p { font-size: .97rem; }
.quote-line {
  display: block;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--ink);
  border-left: 2px solid var(--pair2);
  padding-left: .8rem;
  margin: .7rem 0;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- loop */

.loop {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  counter-reset: phase;
}
.loop li {
  background: var(--panel);
  padding: 1.35rem 1.25rem 1.5rem;
  position: relative;
}
.loop li::before {
  counter-increment: phase;
  content: counter(phase, decimal-leading-zero);
  position: absolute; top: 1.35rem; right: 1.25rem;
  font-family: var(--mono); font-size: .72rem;
  color: var(--ink-4);
}
.loop h3 { margin-bottom: .45rem; }
.step {
  font-family: var(--head);
  font-size: 1.3rem;
  color: var(--pair1);
  letter-spacing: .02em;
}
.loop li:nth-child(7) .step { color: var(--pair2); }
.loop p { font-size: .9rem; line-height: 1.55; color: var(--ink-3); margin: 0; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--pair2);
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  max-width: 78ch;
}
.callout h4 { color: var(--pair2); margin-bottom: .65rem; letter-spacing: .1em; }
.callout p { font-size: .96rem; }
.callout p + p { margin-top: .8rem; }

/* ------------------------------------------------------------------- maps */

.maps-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 3rem;
}
.maps-figs figure { margin: 0; }
.maps-figs img,
.gallery img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
}

.table-scroll { overflow-x: auto; margin-bottom: 3rem; }
.cmp {
  width: 100%; border-collapse: collapse;
  font-size: .93rem;
  min-width: 620px;
}
.cmp caption {
  text-align: left;
  color: var(--ink-3);
  font-size: .93rem;
  padding-bottom: 1rem;
  max-width: 72ch;
}
.cmp th, .cmp td {
  padding: .72rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--head);
  font-size: 1.3rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: .4rem;
}
.cmp thead th:nth-child(2) { color: var(--pair1); }
.cmp thead th:nth-child(3) { color: var(--pair2); }
.cmp tbody th {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-4);
  width: 1%;
  white-space: nowrap;
}
.cmp tbody td { color: var(--ink-2); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(61, 139, 253, .045); }

/* ------------------------------------------------------------- addressing */

.addressing {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .addressing { grid-template-columns: 1fr; } }

.addressing-copy .section-head { margin-bottom: 1.2rem; }
.pull {
  font-family: var(--head);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.28;
  color: var(--ink);
  border-left: 3px solid var(--pair2);
  padding-left: 1.1rem;
  margin: 1.6rem 0;
}
.pull code { font-size: .78em; background: none; border: none; color: var(--pair2); padding: 0; }

.addressing-table {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.blocks-head, .blocks-note {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.blocks-head { margin-bottom: .9rem; }
.blocks { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .9rem; }
.blocks td { padding: .55rem .3rem; border-bottom: 1px solid var(--line-soft); }
.blocks tr:last-child td { border-bottom: none; }
.blocks td:first-child { color: var(--pair1); font-weight: 500; }
.blocks td:nth-child(2) { color: var(--ink-3); }
.blocks .price { text-align: right; color: var(--ink); }
.blocks-note {
  text-transform: none; letter-spacing: 0;
  font-size: .78rem; line-height: 1.55;
  margin-top: 1rem; padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-4);
}
.blocks-note code { background: none; border: none; padding: 0; color: var(--pair1); }

/* --------------------------------------------------------------- fidelity */

.fidelity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.fid { background: var(--panel); padding: 1.5rem 1.4rem 1.75rem; }
.fid h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.05rem;
  letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--body); font-weight: 600;
  margin-bottom: 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line-soft);
}
.tick { font-family: var(--mono); font-size: 1.1em; }
.fid-yes h3, .fid-yes .tick { color: var(--pair3); }
.fid-abs h3, .fid-abs .tick { color: var(--pair4); }
.fid-no  h3, .fid-no  .tick { color: var(--red); }

.fid ul { list-style: none; margin: 0; padding: 0; }
.fid li {
  font-size: .89rem;
  line-height: 1.45;
  padding: .3rem 0 .3rem 1rem;
  position: relative;
  color: var(--ink-2);
}
.fid li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4);
}
.fid-yes li::before { background: var(--pair3); }
.fid-abs li::before { background: var(--pair4); }
.fid-no li { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.fid-no li::before { background: var(--red); opacity: .6; }
.fid-note {
  font-size: .85rem; line-height: 1.55;
  color: var(--ink-4);
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.fid-note em { color: var(--ink-3); }

/* ---------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.gallery figure { margin: 0; }

.palette-strip {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--ink-4);
}
.sw { display: inline-flex; align-items: center; gap: .5rem; }
.sw::before {
  content: ""; width: 11px; height: 11px; border-radius: 2px;
  background: var(--c); flex: none;
}
.sw b { color: var(--ink-3); font-weight: 500; }

/* ----------------------------------------------------------------- status */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.status-item { background: var(--panel); padding: 1.5rem 1.4rem; border-top: 2px solid var(--line); }
.status-item.done { border-top-color: var(--pair3); }
.status-item.wip  { border-top-color: var(--amber); }
.status-item.todo { border-top-color: var(--ink-4); }
.status-item h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.status-item p { font-size: .9rem; line-height: 1.55; color: var(--ink-3); }
.stat {
  font-family: var(--mono);
  font-size: .78rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 1rem !important;
  padding-top: .8rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-4) !important;
}
.stat b { color: var(--pair3); font-weight: 500; }
.status-item.wip .stat { color: var(--amber) !important; }

/* ----------------------------------------------------------------- notify */

.notify { background: var(--ground-2); }
.notify-inner { max-width: 62ch; }
.notify h2 { margin-bottom: 1rem; }
.notify > .wrap > p { color: var(--ink-3); }

.notify-form {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin: 1.9rem 0 .9rem;
}
.notify-input {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .95rem;
  padding: .78rem 1rem;
}
.notify-input::placeholder { color: var(--ink-4); }
.notify-input:focus {
  outline: none;
  border-color: var(--pair1);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, .16);
}
.notify-form .btn { flex: 0 0 auto; }

.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-msg {
  font-family: var(--mono);
  font-size: .87rem;
  padding: .7rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0 0 1rem;
}
.form-msg.is-ok  { color: var(--pair3); border-color: rgba(70, 201, 126, .3); background: rgba(70, 201, 126, .07); }
.form-msg.is-err { color: var(--amber); border-color: rgba(232, 179, 65, .3); background: rgba(232, 179, 65, .07); }
.js-msg { margin-top: 0; }

.fineprint { font-size: .82rem; color: var(--ink-4); }

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

.footer { border-top: 1px solid var(--line-soft); padding: 2.75rem 0 3.5rem; }
.footer-inner { display: grid; gap: .7rem; }
.footer-brand {
  font-family: var(--head); font-weight: 700;
  font-size: 1.35rem; color: var(--ink-3); margin: 0;
}
.footer-note { font-size: .84rem; color: var(--ink-4); max-width: 70ch; margin: 0; }
.footer-meta { font-family: var(--mono); font-size: .76rem; color: var(--ink-4); margin: 0; }

/* ------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 8, 11, .93);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 88vh;
  width: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: .85rem;
  padding: .5rem .85rem; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--ink-4); }
.gallery button.shot-btn {
  display: block; width: 100%; padding: 0;
  background: none; border: none; cursor: zoom-in;
}

/* ---------------------------------------------------------------- devlog */

.topnav a.is-current { color: var(--ink); }
.topnav a.is-current::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--pair2);
}

.page-title { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4rem); margin-bottom: 1rem; }

.devlog-head { padding-bottom: 0; border-top: none; }
.devlog-head .section-lede { margin-bottom: 1.5rem; }

.devlog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  font-family: var(--mono); font-size: .78rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.rss { display: inline-flex; align-items: center; gap: .45rem; color: var(--pair2); }
.rss svg { flex: none; }
.devlog-count { color: var(--ink-4); letter-spacing: .06em; text-transform: uppercase; }

.devlog-body { border-top: 1px solid var(--line-soft); }

.devlog-month + .devlog-month { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.month-label {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: .75rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.devlog-list { list-style: none; margin: 0; padding: 0; }

.devlog-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.devlog-entry:last-child { border-bottom: none; }

.entry-rail { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.entry-date {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.entry-kind {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 2px;
  border: 1px solid;
  white-space: nowrap;
}
.k-added    { color: var(--pair3); border-color: rgba(70, 201, 126, .35);  background: rgba(70, 201, 126, .08); }
.k-fixed    { color: var(--pair2); border-color: rgba(255, 138, 61, .35);  background: rgba(255, 138, 61, .08); }
.k-changed  { color: var(--pair1); border-color: rgba(61, 139, 253, .35);  background: rgba(61, 139, 253, .08); }
.k-internal { color: var(--ink-3); border-color: var(--line);              background: var(--panel); }

.entry-copy h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); margin-bottom: .45rem; }
.entry-copy p { color: var(--ink-2); font-size: .96rem; line-height: 1.6; margin: 0; }

.devlog-empty {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--ink-4);
  padding: 2rem 0;
}

.devlog-cta .notify-inner { max-width: 58ch; }
.devlog-cta h2 { margin-bottom: .8rem; }
.devlog-cta p { color: var(--ink-3); }
.devlog-cta-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

@media (max-width: 620px) {
  .devlog-entry { grid-template-columns: 1fr; gap: .7rem; }
  .entry-rail { flex-direction: row; align-items: center; gap: .75rem; }
}

/* ------------------------------------------------- latest updates, on home */

.updates-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.updates-head .section-head { margin-bottom: 0; }
.updates-all { font-size: .88rem; font-weight: 500; white-space: nowrap; }

.updates {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.updates li { background: var(--panel); padding: 1.4rem 1.35rem 1.5rem; }
.updates .entry-rail { flex-direction: row; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.updates h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.updates p { font-size: .89rem; line-height: 1.55; color: var(--ink-3); margin: 0; }
