/* Bandwidth Meter website. Brand tokens: navy leads in light, gold leads in dark (the portfolio's inversion rule).
   One layout that adapts: grids shrink with min(), nothing scrolls sideways, touch targets grow on coarse pointers. */
:root {
  color-scheme: light;
  --navy: #1C3557; --gold: #C8A96E;
  --paper: #F8F9FA; --panel: #FFFFFF; --ink: #07090D; --muted: #5d6878; --rule: #DDDBD5;
  --accent: #1C3557; --accent-ink: #FFFFFF;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #07090D; --panel: #11151C; --ink: #E8E9EB; --muted: #8E9AAC; --rule: #22262E;
          --accent: #C8A96E; --accent-ink: #07090D; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav.site a { color: var(--muted); text-decoration: none; padding: 4px 0; }
nav.site a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 18px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.muted { color: var(--muted); }
.shot { margin: 18px 0 6px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--panel); }
.shot img { display: block; width: 100%; height: auto; }
.caption { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
section { padding: 22px 0; border-top: 1px solid var(--rule); }
section h2 { font-size: 24px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }
.note { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 16px; }
.note p { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.version h3 { margin-bottom: 4px; }
.version .date { color: var(--muted); font-size: 14px; }
footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
@media (pointer: coarse) { nav.site a { padding: 8px 0; } .button { padding: 12px 20px; } }
