:root {
  color-scheme: light;
  --paper: #f6fbfa;
  --ink: #102f39;
  --muted: #405d65;
  --panel: #e5f3f0;
  --line: #b6d6d2;
  --accent: #087a74;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071d2b;
  --ink: #eef8f8;
  --muted: #b8d2d7;
  --panel: #102f3d;
  --line: #345561;
  --accent: #83d9ca;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.header, .footer, nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.header, .footer { justify-content: space-between; padding-block: 1rem; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--accent); }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.theme-toggle { font: inherit; color: inherit; border: 1px solid var(--line); background: transparent; padding: .35rem .75rem; border-radius: 2rem; cursor: pointer; }
.theme-toggle[aria-pressed="true"] { background: var(--panel); }
.hero {
  background: linear-gradient(90deg, #071d2bf5 0%, #071d2bd9 38%, #071d2b38 100%) center / cover, url("assets/anchorage.jpg") 67% center / cover #123844;
  color: #fff;
}
.hero-inner { padding-block: clamp(5rem, 12vw, 10rem); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { line-height: 1.04; letter-spacing: -.055em; }
h1 { max-width: 11ch; font-size: clamp(3.2rem, 7.5vw, 6.5rem); }
.hero p { max-width: 45ch; margin-block: 1.5rem; font-size: 1.15rem; }
.button { display: inline-block; background: #a9e8dc; color: #102f39; padding: .75rem 1.15rem; border-radius: .35rem; text-decoration: none; font-weight: 750; }
.button:hover { background: #d4efeb; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.35rem, 5vw, 4rem); }
.intro { max-width: 65ch; margin-top: 1rem; color: var(--muted); }
.diagrams, .cards { display: grid; gap: 1rem; margin-top: 2rem; }
.diagrams { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
figure, article { border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
figure svg { display: block; width: 100%; background: var(--panel); }
figure text { fill: var(--ink); text-anchor: middle; font-weight: 700; font-size: 20px; }
.link { stroke: var(--accent); stroke-width: 4; stroke-dasharray: 8 7; }
figcaption, article { padding: 1.25rem; }
figcaption strong { display: block; color: var(--ink); }
figcaption, article p, .note { color: var(--muted); }
.uses { background: var(--panel); }
article { background: var(--paper); }
article p { margin-top: .4rem; }
.note { margin-top: 1.5rem; max-width: 70ch; }
.footer { font-size: .95rem; }
@media (max-width: 550px) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .75rem; }
}

.fleet-overlay { position: relative; }
.fleet-overlay img { display: block; width: 100%; height: auto; }
.fleet-overlay svg { position: absolute; inset: 0; background: transparent; }
.fleet-links {
  fill: none;
  stroke: #a9f5e7;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 3px #071d2b);
}
.fleet-nodes { fill: #edfffc; stroke: #087a74; stroke-width: 4; }

.fleet-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/stock-mesh.jpg") center / cover;
  mix-blend-mode: screen;
  opacity: .38;
  pointer-events: none;
}
