/*
 * Patinas by RustySockets — product site.
 *
 * Deliberately separate from the documentation stylesheet: the product pages
 * need a marketing rhythm, the docs need a reading layout. Both share the same
 * forest/ink palette and system font stack so they remain one experience.
 */

:root {
  color-scheme: light;
  --ink: #14181b;
  --ink-2: #2b3438;
  --muted: #5d686c;
  --subtle: #5f6b6e;
  --bg: #f7f6f2;
  --bg-2: #efeee8;
  --panel: #ffffff;
  --panel-2: #f3f2ec;
  --line: #d9d8d0;
  --line-strong: #b9b9ae;
  --forest: #0f4d33;
  --forest-2: #166b46;
  --forest-3: #1f8557;
  --lime: #d7f7a8;
  --lime-ink: #17320d;
  --rust: #b85f32;
  --danger: #a33a2b;
  --warning: #8a5a12;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 14px;
  --radius-sm: 8px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

.skip {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 200;
  transform: translateY(-200%);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--max), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-2);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu {
  display: none;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }
.btn-secondary { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--panel-2); color: var(--ink); }
.btn-quiet { min-height: 40px; padding: 0.5rem 0.7rem; background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--forest);
  color: #f6fbf7;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 360px at 82% 8%, rgba(215, 247, 168, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}
.hero-small { padding: clamp(3.2rem, 6vw, 5rem) 0 clamp(2.8rem, 5vw, 4rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--forest-3);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.hero .kicker { color: var(--lime); }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 5.4vw, 4.2rem);
  letter-spacing: -0.045em;
}
.hero-small h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.lede {
  max-width: 58ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
}
.hero .lede { color: rgba(246, 251, 247, 0.78); }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.8rem; }
.hero-actions { margin-top: 1.8rem; }
.hero .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero .btn-quiet { color: rgba(246, 251, 247, 0.75); }
.hero .btn-quiet:hover { color: #fff; }
.hero-note { margin-top: 1rem; color: rgba(246, 251, 247, 0.74); font-size: 0.8rem; }
.hero .muted { color: rgba(246, 251, 247, 0.78); }

/* ---------------------------------------------------------------- diagram */

.hero-visual { min-width: 0; }
.diagram-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 30, 21, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.diagram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.diagram-badge {
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.56rem;
}
.topology { width: 100%; height: auto; margin-top: 0.7rem; color: rgba(255, 255, 255, 0.55); }
.topology .node rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.2); }
.topology .node-accent rect { fill: rgba(215, 247, 168, 0.12); stroke: rgba(215, 247, 168, 0.5); }
.topology .node-dark rect { fill: rgba(0, 0, 0, 0.22); stroke: rgba(255, 255, 255, 0.26); }
.topology text { fill: #f6fbf7; font-family: var(--display); font-size: 13px; font-weight: 600; }
.topology text.sub { fill: rgba(246, 251, 247, 0.58); font-size: 10px; font-weight: 400; }
.topology text.mono { fill: rgba(215, 247, 168, 0.85); font-family: var(--mono); font-size: 9px; }
.topology text.edge-label { fill: var(--lime); font-size: 8px; letter-spacing: 0.08em; }
.topology .edge { stroke: rgba(246, 251, 247, 0.45); stroke-width: 1.4; }
.topology .edge-strong { stroke: var(--lime); stroke-width: 2; }
.diagram-note {
  margin-top: 0.7rem;
  color: rgba(246, 251, 247, 0.72);
  font-size: 0.72rem;
  line-height: 1.5;
}
.diagram-note code { color: var(--lime); }

/* ----------------------------------------------------------------- section */

.section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-tint { background: var(--bg-2); }
.section-dark { background: var(--forest); color: #f6fbf7; }
.section-dark .kicker { color: var(--lime); }
.section-dark .lede, .section-dark p { color: rgba(246, 251, 247, 0.76); }
.section-dark .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.section-head { max-width: 70ch; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head h2 { margin-top: 0.55rem; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { margin-top: 0.8rem; color: var(--muted); }
.section-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.section-dark .section-note { color: rgba(246, 251, 247, 0.7); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .case {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.card h3, .case h2 { margin-bottom: 0.45rem; font-size: 1.08rem; }
.card p, .case p { color: var(--muted); font-size: 0.92rem; }
.card-index, .case-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--forest-3);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-evidence {
  margin-top: 0.8rem;
  color: var(--subtle) !important;
  font-family: var(--mono);
  font-size: 0.66rem !important;
}
.list-check { list-style: none; display: grid; gap: 0.45rem; }
.list-check li { position: relative; padding-left: 1.35rem; color: var(--muted); font-size: 0.92rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest-3);
}
.number-list { padding-left: 1.2rem; color: var(--muted); }
.number-list li + li { margin-top: 0.5rem; }
.plain-list { list-style: none; display: grid; gap: 0.7rem; }
.plain-list li { padding-left: 1.2rem; position: relative; color: rgba(246, 251, 247, 0.78); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-top: 0.5rem; }
.split p { color: var(--muted); margin-top: 0.8rem; }
.section-dark .split p { color: rgba(246, 251, 247, 0.76); }

.claim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.claim {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest-3);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.claim-id { color: var(--forest-3); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; }
.claim-value { margin-top: 0.35rem; font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.claim p:last-child { margin-top: 0.35rem; color: var(--muted); font-size: 0.82rem; }

.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.chain-step { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.chain-index { display: block; margin-bottom: 0.5rem; color: var(--forest-3); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; }
.chain-step h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.chain-step p { color: var(--muted); font-size: 0.86rem; }

.note {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--forest-3);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.9rem;
}
.section-dark .note { background: rgba(255, 255, 255, 0.06); color: rgba(246, 251, 247, 0.78); }
.note strong { color: var(--ink); }
.section-dark .note strong { color: #fff; }
.muted { color: var(--muted); }
.text-link { color: var(--forest-2); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-dark .text-link { color: var(--lime); }

/* --------------------------------------------------------------- explorer */

.explorer {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.explorer-controls fieldset { margin: 0; padding: 0; border: 0; }

.explorer-controls legend {
  padding: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.explorer-controls label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.explorer-controls label:hover { background: var(--panel); }
.explorer-controls label:has(input:checked) { border-color: var(--line-strong); background: var(--panel); font-weight: 600; }
.explorer-controls input { width: 1.05rem; height: 1.05rem; accent-color: var(--forest-2); }
.explorer-hint { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.78rem; }

.explorer-stage {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.explorer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}

.explorer-stage .diagram-badge { border-color: var(--line-strong); color: var(--forest-2); }

.packet-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.packet {
  display: block;
  height: 26px;
  border-radius: 5px;
  background: var(--forest-3);
  transition: background 160ms ease, outline-color 160ms ease;
}

.packet--parity { background: var(--forest-3); outline: 2px solid var(--lime); outline-offset: 1px; }
.packet--retransmitted { background: var(--forest-3); outline: 2px dashed var(--warning); outline-offset: 1px; }
.packet--unrecoverable { background: transparent; border: 1px dashed var(--danger); }

.explorer-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.6rem;
  margin: 0.85rem 0;
}

.explorer-counts div { padding: 0.5rem 0.55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.explorer-counts dt { color: var(--muted); font-size: 0.68rem; }
.explorer-counts dd { margin: 0.15rem 0 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 600; }

.explorer-status { margin: 0.85rem 0 0; }
.explorer-compare { margin: 0.5rem 0 0; color: var(--muted); }

.explorer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.75rem;
}

.explorer-legend li { display: flex; align-items: center; }

.key { display: inline-block; width: 10px; height: 10px; margin-right: 0.35rem; border-radius: 3px; }
.key-ok { background: var(--forest-3); }
.key-parity { background: var(--forest-3); outline: 2px solid var(--lime); }
.key-retransmitted { background: var(--forest-3); outline: 2px dashed var(--warning); }
.key-unrecoverable { border: 1px dashed var(--danger); }

.explorer-note {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .packet-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
caption { padding: 0.8rem 0.9rem; color: var(--muted); text-align: left; font-size: 0.78rem; }
th, td { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--muted); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td code, p code, li code { padding: 0.08rem 0.28rem; border-radius: 4px; background: var(--bg-2); font-family: var(--mono); font-size: 0.86em; }
.level { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.level-prod { background: #d9f2dd; color: #15552b; }
.level-preview { background: #fff0c9; color: #6b4a00; }
.level-exp { background: #f3ded8; color: #7a2f1e; }
.card .level { margin-bottom: 0.6rem; }
.code-block { margin: 1rem 0; padding: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #0e1714; color: #e8f3ec; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; }
.code-block code { background: none; padding: 0; color: inherit; }

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

.site-footer { padding: 2.8rem 0 2rem; background: #0b2419; color: rgba(246, 251, 247, 0.76); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand { max-width: 38ch; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: var(--lime); color: var(--forest); }
.footer-brand .brand-text small { color: rgba(246, 251, 247, 0.55); }
.footer-brand p { margin-top: 0.8rem; color: rgba(246, 251, 247, 0.66); font-size: 0.86rem; }
.footer-note { color: rgba(246, 251, 247, 0.64) !important; font-size: 0.75rem !important; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.footer-col h2 { margin-bottom: 0.6rem; color: rgba(246, 251, 247, 0.64); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col a { display: block; padding: 0.16rem 0; color: rgba(246, 251, 247, 0.72); font-size: 0.83rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-top: 1.2rem; color: rgba(246, 251, 247, 0.64); font-size: 0.74rem; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .claim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.7rem 0.5rem; font-size: 0.95rem; }
  .menu { display: inline-flex; }
  .header-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-text small { display: none; }
  .actions .btn { width: 100%; }
  .claim-grid, .chain { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .packet { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .actions, .menu { display: none !important; }
  body { background: #fff; color: #111; }
  .hero { background: #fff; color: #111; }
  .hero .lede, .hero .kicker, .hero-note { color: #333; }
  .diagram-card { background: #fff; border-color: #ccc; }
  .topology text { fill: #111; }
}
