:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #191613;
  --surface: #ffffff;
  --muted: #6f6761;
  --line: rgba(25, 22, 19, 0.1);
  --line-strong: rgba(25, 22, 19, 0.18);
  --accent: #6d4b3e;
  --blue: #315d9c;
  --green: #277a3e;
  --purple: #6845a0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11100f;
    --fg: #f2ece5;
    --surface: #171513;
    --muted: #b9afa4;
    --line: rgba(242, 236, 229, 0.12);
    --line-strong: rgba(242, 236, 229, 0.22);
    --accent: #ddb39c;
    --blue: #8eb6f4;
    --green: #75c69b;
    --purple: #bca6ef;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  gap: var(--page-gap);
  margin: 0 auto;
  max-width: var(--wide-max);
  min-height: 100vh;
  padding: var(--page-pad-y) var(--page-pad-x);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.brand,
.site-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 18px;
  font-weight: 600;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.site-nav nav a {
  color: var(--muted);
}

.site-nav nav a:hover {
  color: var(--accent);
}

.intro {
  display: grid;
  gap: 18px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(54px, 11vw, 128px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}

.summary {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  max-width: 50ch;
}

.board {
  border-block: 1px solid var(--line);
  overflow-x: auto;
  padding: 18px 0;
}

.network-graph {
  display: block;
  height: auto;
  min-width: 860px;
  width: 100%;
}

.network-graph text {
  fill: var(--fg);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 650;
}

.network-graph .detail,
.edge text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.edge line {
  stroke: var(--muted);
  stroke-width: 2.4;
}

.edge.dashed line {
  stroke-dasharray: 8 7;
}

.node rect {
  fill: var(--surface);
  stroke-width: 1.8;
}

.core rect {
  stroke: var(--blue);
}

.tunnel rect {
  stroke: var(--purple);
}

.private rect {
  stroke: var(--green);
}

.service rect,
.device rect {
  stroke: var(--line-strong);
}

.inventory {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.metric strong {
  font-size: 22px;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
}
