/* Shared look for the Porthole landing page and app. */
:root {
  --bg: #fffcfb;
  --surface: #ffffff;
  --surface-2: #e3e8ec;
  --text: #161b22;
  --muted: #5b6470;
  --border: #cfd6dc;
  --accent: #0c6b7a;
  --accent-hover: #095865;
  --accent-ink: #ffffff;
  --accent-soft: #dcecee;
  --brass: #a9772a;
  --brass-soft: #e9d9b8;
  --glass: #123a4a;
  --ok: #1f8a4c;
  --warn: #a86400;
  --bad: #b8372b;
  --shadow: 0 1px 2px rgba(22, 27, 34, .06), 0 8px 24px rgba(22, 27, 34, .06);
  --radius: 12px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c121b;
    --surface: #131b27;
    --surface-2: #1a2433;
    --text: #e9eef5;
    --muted: #95a1b2;
    --border: #263244;
    --accent: #62cfd6;
    --accent-hover: #86dde2;
    --accent-ink: #06272b;
    --accent-soft: #123239;
    --brass: #e2b56a;
    --brass-soft: #4a3b1f;
    --glass: #0a2530;
    --ok: #4fc67f;
    --warn: #e0a040;
    --bad: #ef6b5b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
}
[hidden] { display: none !important; }
a { color: var(--accent); }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none;
  font: 600 19px/1 var(--serif); letter-spacing: .01em;
}
.brand svg { width: 26px; height: 26px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  transition: background .12s, border-color .12s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.large { font-size: 17px; padding: 13px 22px; border-radius: 11px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
