/* Design tokens — Fishfax Ops. Starting values from the approved plan (§4);
   contrast is measured by tests/contrast.test.mjs, not assumed. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --page: #041219;
  --page-deep: #020b10;
  --surface: #0b2029;
  --surface-raised: #102c35;
  --text: #eef8f4;
  --text-secondary: #d4e5e0;
  --text-muted: #a9c4bd;
  --accent: #8fd9c2;
  --accent-support: #58baa7;
  --caution: #f1bc7c;
  --error: #e0897d;
  --border: rgba(176, 228, 216, 0.16);
  --border-strong: #5f8a84;
  --focus: #f1bc7c;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --size-body: 1rem;
  --size-small: 0.9375rem;
  --size-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --size-h2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --size-h3: 1.125rem;
  --size-page-title: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --size-display: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  --leading-body: 1.65;
  --leading-tight: 1.12;

  /* Space: 4/8 scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Shape */
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-panel: 28px;
  --shadow-panel: 0 24px 64px rgba(0, 0, 0, 0.32);

  /* Layout */
  --max-width: 1320px;
  --prose-width: 70ch;
  --header-height: 64px;
  --section-links-height: 52px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-emphasis: 450ms;
  --easing: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-emphasis: 0ms;
  }
}

/* Base elements, layout primitives and the shared header/footer. */

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

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(ellipse 60rem 36rem at 8% -4%, rgba(88, 186, 167, 0.14), transparent 70%),
    radial-gradient(ellipse 48rem 32rem at 96% 18%, rgba(241, 188, 124, 0.06), transparent 70%),
    linear-gradient(180deg, #071b23 0, var(--page) 32rem, var(--page-deep) 100%);
  background-color: var(--page);
  font: 400 var(--size-body) / var(--leading-body) var(--font-body);
  font-variant-numeric: tabular-nums;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

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

h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: var(--leading-tight); font-weight: 700; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

ul[role="list"], .site-nav ul, .section-links ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-7));
}

/* Prose keeps the shared left edge; only its line length is limited. */
.prose > * { max-width: var(--prose-width); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: var(--radius-control);
}
.skip-link:focus { top: var(--space-3); }

.muted { color: var(--text-muted); }
.lead { font-size: var(--size-lead); color: var(--text-secondary); max-width: 62ch; }

/* ---- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 18, 25, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-size: 1.0625rem; white-space: nowrap; }

.site-nav ul { display: flex; gap: var(--space-1); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); background: rgba(143, 217, 194, 0.08); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: var(--radius-control) var(--radius-control) 2px 2px;
}

/* ---- footer */
.site-footer {
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
  background: rgba(2, 11, 16, 0.6);
  color: var(--text-muted);
  font-size: var(--size-small);
}
.site-footer__inner {
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: baseline;
  justify-content: space-between;
}
.site-footer__links a { display: inline-block; padding-block: var(--space-2); color: var(--text-secondary); }

@media (max-width: 480px) {
  .site-header__inner { gap: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 0.9375rem; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: var(--space-2); font-size: 0.9375rem; }
}
@media (max-width: 359px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Shared components. Page-specific data components arrive in stages 5–6. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-control);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing);
}
.button--primary { background: var(--accent); color: var(--page-deep); border: 1px solid var(--accent); }
.button--primary:hover { background: #a8e4d2; }
.button--secondary { color: var(--text); border: 1px solid var(--border-strong); background: transparent; }
.button--secondary:hover { background: rgba(143, 217, 194, 0.08); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.text-link { font-weight: 600; display: inline-block; padding-block: var(--space-2); }
.text-link::after { content: " \2192"; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: clamp(var(--space-5), 3vw, var(--space-6));
  box-shadow: var(--shadow-panel);
}
.panel__title { font-size: var(--size-h3); color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card > p { color: var(--text-secondary); }
.card > .text-link { margin-top: auto; }
.card__title { margin-bottom: var(--space-1); }

.card-grid { display: grid; gap: var(--space-4); }
.card-grid--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.section { padding-block: clamp(var(--space-7), 6vw, var(--space-8)) 0; }
.section--quiet .section__title { font-size: var(--size-h3); }
.section__title { font-family: var(--font-body); }
.section__title--small { font-size: var(--size-h3); }
.section__intro { color: var(--text-secondary); max-width: var(--prose-width); margin-bottom: var(--space-5); }

.display, .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display { font-size: var(--size-display); margin-bottom: var(--space-4); }
.page-title { font-size: var(--size-page-title); margin-bottom: var(--space-3); }

/* ---- data summaries (shared by Home and, later, Pulse) */
.status { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); flex: none; }
.status--ok .status__dot { background: var(--accent); }
.status--degraded .status__dot { background: var(--caution); border-radius: 2px; }
.status--down .status__dot { background: var(--error); border-radius: 0; transform: rotate(45deg); }
.status--unknown .status__dot { background: transparent; border: 2px solid var(--text-muted); }

.status-sentence--compact { font-size: var(--size-body); margin-bottom: var(--space-3); }
.result-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; border-top: 1px solid var(--border); }
.result-row { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--border); }
.result-row__name { color: var(--text-secondary); }

.panel__subtitle { font-size: var(--size-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-3); }
.panel__foot { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--size-small); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--space-4); margin: 0 0 var(--space-3); }
.figure dt { font-size: var(--size-small); color: var(--text-secondary); font-weight: 600; }
.figure dd { margin: 0; display: flex; flex-direction: column; }
.figure__value { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.figure__note { font-size: var(--size-small); color: var(--text-muted); }
.source-line { font-size: var(--size-small); color: var(--text-muted); }

.feature-post { max-width: var(--prose-width); padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: var(--space-3); }
.feature-post__meta, .feature-post__source { font-size: var(--size-small); color: var(--text-muted); }
.feature-post__title { font-size: var(--size-h3); overflow-wrap: anywhere; }
.feature-post__title a { color: var(--text); }
.feature-post__excerpt { color: var(--text-secondary); overflow-wrap: anywhere; }

.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); border: 1px solid var(--border-strong); background: var(--surface-raised); }
.notice--draft { border-color: var(--caution); color: var(--text); }

/* Page compositions. */

/* ---- Home */
.home-hero { padding-block: clamp(var(--space-7), 7vw, 96px) var(--space-4); }
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: center;
}
.home-brand { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.home-brand__mark { width: clamp(88px, 10vw, 128px); height: auto; }
.home-brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
}
.home-overview { align-self: center; display: flex; flex-direction: column; gap: var(--space-3); }

@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; }
}

/* ---- Pulse */
.page-intro { padding-block: clamp(var(--space-6), 5vw, var(--space-7)) var(--space-5); }
.status-sentence { font-size: var(--size-lead); font-weight: 600; color: var(--text); max-width: 60ch; }
.update-line { color: var(--text-muted); font-size: var(--size-small); }

.section-links {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: rgba(4, 18, 25, 0.94);
  border-bottom: 1px solid var(--border);
}
.section-links ul {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: thin;
  min-height: var(--section-links-height);
  align-items: center;
}
/* Signal that the row scrolls sideways when it does not fit. */
@media (max-width: 720px) {
  .section-links ul {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    padding-right: 40px;
  }
}
.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--size-small);
  text-decoration: none;
  border-radius: var(--radius-control);
}
.section-links a:hover { color: var(--text); background: rgba(143, 217, 194, 0.08); }

.page-pulse { scroll-padding-top: calc(var(--header-height) + var(--section-links-height) + var(--space-4)); }
.page-pulse .section, .page-pulse .pulse-rail { scroll-margin-top: calc(var(--header-height) + var(--section-links-height) + var(--space-4)); }

.pulse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-7);
  align-items: start;
}
.pulse-main { min-width: 0; }
.pulse-rail {
  position: sticky;
  top: calc(var(--header-height) + var(--section-links-height) + var(--space-5));
  margin-top: clamp(var(--space-7), 6vw, var(--space-8));
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

/* Below ~1200 px the rail joins the normal document flow (plan §6). */
@media (max-width: 1199px) {
  .pulse-layout { grid-template-columns: 1fr; gap: 0; }
  .pulse-rail { position: static; order: -1; margin-top: var(--space-5); }
}

/* ---- Privacy */
.policy { padding-block: clamp(var(--space-6), 5vw, var(--space-7)) 0; }
.policy section { margin-top: var(--space-6); }
.policy h2 { font-size: var(--size-h3); font-family: var(--font-body); }
.policy p, .policy li { color: var(--text-secondary); }
.policy ul { padding-left: 1.2em; }
.policy li + li { margin-top: var(--space-2); }
.policy-summary { margin-top: var(--space-6); }
.policy-date { color: var(--text-muted); font-size: var(--size-small); }
.policy-contents {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.policy-contents__title { font-size: var(--size-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.policy-contents ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: var(--space-6); }
.policy-contents li { break-inside: avoid; }
.policy-contents a { display: inline-block; padding-block: var(--space-1); }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .section-links, .policy-contents { display: none; }
  .policy p, .lead { color: #000; }
  a { color: #000; }
}

/* Pulse data components (stage 5). */

/* ---- status */
.status--large { font-size: 1.375rem; margin: 0; }
.status--large .status__dot { width: 12px; height: 12px; }
.qualifier { color: var(--text-muted); font-size: var(--size-small); margin: 0 0 var(--space-3); }
.qualifier--older { color: var(--caution); }

.notice--caution { border-color: var(--caution); }
.notice--error { border-color: var(--error); }
.notice + * { margin-top: var(--space-4); }
.update-line .notice { display: inline-block; margin-top: var(--space-2); }

/* ---- cards */
.card-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.model-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-3); }
.model-card__facts dt { font-size: var(--size-small); color: var(--text-muted); }
.model-card__facts dd { margin: 0; font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }

.figure-card__title { font-size: var(--size-small); color: var(--text-secondary); font-weight: 600; margin: 0; }
.figure-card__value { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.2; margin: var(--space-1) 0; overflow-wrap: anywhere; }
.figure-card__note { font-size: var(--size-small); color: var(--text-muted); }

.network-card__value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0; }
.network-card__label { color: var(--text-secondary); font-size: var(--size-small); }
.network-card .button { align-self: flex-start; margin-top: auto; }
.button--small { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--size-small); color: var(--text); border: 1px solid var(--border-strong); background: transparent; }
.button--small:hover { background: rgba(143, 217, 194, 0.08); }

/* ---- at a glance */
.glance { margin-bottom: var(--space-5); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); }
.glance__title { font-size: var(--size-h3); }
.glance__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.glance__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-4); padding-block: var(--space-2); border-top: 1px solid var(--border); }
.glance__name { font-weight: 600; }
.glance__value { color: var(--text-secondary); }
.glance__value strong { color: var(--text); }
@media (max-width: 560px) {
  .glance__list li { flex-direction: column; }
}

/* ---- more detail */
.more { margin-top: var(--space-2); border-top: 1px solid var(--border); }
.more summary { cursor: pointer; display: list-item; padding-block: 10px; font-weight: 600; color: var(--accent); }
.more__body { padding-bottom: var(--space-3); font-size: var(--size-small); color: var(--text-secondary); }
.more__body h4 { font-size: var(--size-small); margin-top: var(--space-4); color: var(--text); }
.tech-notes { padding-left: 1.2em; color: var(--text-muted); }

/* ---- tables */
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-control); }
.table-scroll:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: var(--size-small); }
caption { text-align: left; padding: var(--space-2) var(--space-3); color: var(--text-muted); }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text); font-weight: 600; }

/* ---- charts */
.chart { margin: var(--space-2) 0 var(--space-3); }
.chart__caption { font-size: var(--size-small); color: var(--text-secondary); margin-bottom: var(--space-1); }
.chart__caption span { color: var(--text-muted); }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: rgba(176, 228, 216, 0.14); stroke-width: 1; }
.chart__tick { fill: var(--text-muted); font-size: 12px; font-family: var(--font-body); }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__point circle { fill: var(--accent); }
.chart__point .chart__hit { fill: transparent; }
.chart__point:focus { outline: none; }
.chart__point:focus-visible circle:not(.chart__hit), .chart__point.is-selected circle:not(.chart__hit) { fill: var(--caution); stroke: var(--page); stroke-width: 2; }
.chart__point:focus-visible .chart__hit { fill: rgba(241, 188, 124, 0.18); stroke: var(--focus); stroke-width: 2; }
.chart__axis { display: flex; justify-content: space-between; gap: var(--space-2); margin: 2px 0 0; font-size: 0.8125rem; color: var(--text-muted); }
.chart__readout { font-size: var(--size-small); font-weight: 600; margin: var(--space-1) 0 0; min-height: 1.5em; }
.chart__help { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.chart-empty { color: var(--text-muted); font-size: var(--size-small); padding: var(--space-4) 0; }

/* ---- explorer */
.explorer { margin-top: var(--space-6); padding: clamp(var(--space-4), 3vw, var(--space-6)); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.explorer:empty { display: none; }
.explorer__title { font-size: var(--size-h2); }
.explorer__title:focus { outline: none; }
.explorer__title:focus-visible { outline: 3px solid var(--focus); }
.explorer__controls, .writing__controls { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; margin-bottom: var(--space-4); }
.explorer__span { color: var(--text-secondary); font-size: var(--size-small); }

.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field--grow { flex: 1 1 16rem; }
.field__label { font-size: var(--size-small); font-weight: 600; color: var(--text-secondary); }
.field select, .field input {
  min-height: 44px; max-width: 100%;
  padding: var(--space-2) var(--space-3);
  font: inherit; color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color-scheme: dark;
}
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-strong); border-radius: var(--radius-control); overflow: hidden; }
.segmented button { min-height: 44px; padding: var(--space-2) var(--space-4); font: inherit; font-weight: 600; color: var(--text-secondary); background: transparent; border: 0; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--border-strong); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--page-deep); }

/* ---- writing */
.writing__status { color: var(--text-muted); font-size: var(--size-small); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.post { padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.post--featured { padding: var(--space-5) var(--space-6); border-color: var(--border-strong); }
.post--featured .post__title { font-size: var(--size-h2); font-family: var(--font-display); font-weight: 600; }
.post__meta { font-size: var(--size-small); color: var(--text-muted); margin-bottom: var(--space-1); }
.post__title { font-size: var(--size-h3); overflow-wrap: anywhere; margin-bottom: var(--space-2); }
.post__title a { color: var(--text); }
.post__excerpt { color: var(--text-secondary); overflow-wrap: anywhere; max-width: var(--prose-width); }
.writing__more { margin-top: var(--space-4); }

/* ---- recent observations */
.obs-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.obs { padding-block: var(--space-3); border-top: 1px solid var(--border); }
.obs__meta { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 var(--space-1); }
.obs__type { font-weight: 700; color: var(--text-secondary); }
.obs__text { margin: 0; font-size: var(--size-small); overflow-wrap: anywhere; }
.obs__text a { color: var(--text); }
.obs__coverage { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-3); }

@media (max-width: 1199px) {
  .obs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: var(--space-5); }
}

/* ---- updates (stage 6) */
.update-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.update-controls__status { margin: 0; font-size: var(--size-small); color: var(--text-muted); }
.update-controls .button[disabled] { opacity: 0.6; cursor: progress; }
.pending:empty { display: none; }
.pending__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); border: 1px solid var(--caution); border-radius: var(--radius-control); background: var(--surface-raised); font-size: var(--size-small); }
