/*! GTPL theme · v1.0.7 · Duncan Ogweno · 17-Jan-26 */
@import url("https://fonts.googleapis.com/css2?family=Saira:wght@500;600;700;800&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
/* Tokens: green is the base, orange the splash, black the frame. Surfaces carry a faint green tint. */
:root {
  --bg: #eff3ee; --panel: #ffffff; --panel-2: #f3f6f2; --ink: #0d110e; --muted: #5a665d; --line: #dce4dc; --line-2: #c6d1c7;
  --green: #1f9a3b; --green-l: #3fb43b; --green-d: #08672e; --green-ink: #ffffff;
  --green-soft: color-mix(in srgb, var(--green) 10%, var(--panel));
  --orange: #fe7802; --orange-ink: #1a0d00;
  --black: #0b0d0b; --on-black: #f3f5f2; --on-black-dim: #9aa59c;
  --accent: var(--orange);
  --lcd: #070a08; --lcd-ink: #6ee36a; --lcd-dim: #6f8f70;
  --good: #1f8a35; --warn: #d4500a; --danger: #c23a1a; --amber: #b7720a; --bar: var(--green); --bar-2: #a7d8a5;
  --shadow: 0 1px 2px rgba(8,30,14,.06), 0 8px 24px -14px rgba(8,30,14,.28);
  --f-display: "Saira", "Bahnschrift", "Segoe UI", sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c0a; --panel: #131814; --panel-2: #1a201b; --ink: #ecf1ec; --muted: #94a196; --line: #232b24; --line-2: #2f3930;
    --green: #2fae45; --green-l: #4cc94a; --green-d: #0b7434; --green-ink: #ffffff;
    --orange: #ff8a1f; --orange-ink: #1a0d00;
    --black: #000000; --on-black: #f3f5f2; --on-black-dim: #8e998f;
    --lcd: #040605; --lcd-ink: #74ea70; --lcd-dim: #5e7d5f;
    --good: #5fd36b; --warn: #ff8a3d; --danger: #ff6b4a; --amber: #f0b13d; --bar-2: #1f4a28;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 28px -16px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c0a; --panel: #131814; --panel-2: #1a201b; --ink: #ecf1ec; --muted: #94a196; --line: #232b24; --line-2: #2f3930;
  --green: #2fae45; --green-l: #4cc94a; --green-d: #0b7434; --green-ink: #ffffff;
  --orange: #ff8a1f; --orange-ink: #1a0d00;
  --black: #000000; --on-black: #f3f5f2; --on-black-dim: #8e998f;
  --lcd: #040605; --lcd-ink: #74ea70; --lcd-dim: #5e7d5f;
  --good: #5fd36b; --warn: #ff8a3d; --danger: #ff6b4a; --amber: #f0b13d; --bar-2: #1f4a28;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 28px -16px rgba(0,0,0,.8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: .01em; text-wrap: balance; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; }
/* the orange dash from the logo, in front of section titles */
.dash { display: inline-flex; align-items: center; gap: 10px; }
.dash::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--orange); flex: none; }
p { margin: 0; }
a { color: var(--green); }
code { font-family: var(--f-mono); font-size: .85em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.muted { color: var(--muted); } .small { font-size: .82rem; }
.num { font-variant-numeric: tabular-nums; }
.label { font-family: var(--f-display); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
button { font: inherit; cursor: pointer; color: inherit; }
.btn { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; transition: transform .08s, border-color .15s, filter .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(160deg, var(--green-l), var(--green) 45%, var(--green-d)); border-color: var(--green-d); color: var(--green-ink); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 14px -8px var(--green-d); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 14px -8px var(--orange); }
.btn.primary:hover, .btn.orange:hover { filter: brightness(1.06); }
.btn.black { background: var(--black); border-color: var(--black); color: var(--on-black); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: default; filter: grayscale(.4); }
.btn[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.linkbtn { background: none; border: 0; color: var(--green); padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
label { display: grid; gap: 5px; font-family: var(--f-display); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; min-width: 0; }
input, select, textarea { font-family: var(--f-body); font-size: 16px; text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 11px; width: 100%; min-width: 0; }
input:focus, select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
input.mono { font-family: var(--f-mono); letter-spacing: .05em; }
.msg { font-size: .86rem; } .msg.err { color: var(--danger); } .msg.ok { color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--good); } .pill.low { color: var(--warn); } .pill.check { color: var(--danger); } .pill.stale { color: var(--amber); } .pill.idle { color: var(--muted); }
.lcd { background: var(--lcd); color: var(--lcd-ink); border-radius: 10px; padding: 14px 16px; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05);
  background-image: radial-gradient(120% 80% at 20% 0%, rgba(110,227,106,.08), transparent 60%), repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.018) 2px 3px); }
.lcd .cap { font-family: var(--f-mono); font-size: .7rem; color: var(--lcd-dim); text-transform: uppercase; letter-spacing: .12em; }
.lcd .big { font-family: var(--f-mono); font-weight: 600; line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 14px rgba(110,227,106,.35); }
.brandrow { display: flex; gap: 12px; align-items: center; }
.brandrow img { border-radius: 10px; flex: none; }
.brandrow strong { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .04em; font-weight: 800; }
.wordmark { display: block; width: 100%; max-width: 260px; height: auto; }
.wm-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-light { display: none; } :root:not([data-theme="light"]) .wm-dark { display: block; } }
:root[data-theme="dark"] .wm-light { display: none; } :root[data-theme="dark"] .wm-dark { display: block; }
:root[data-theme="light"] .wm-light { display: block; } :root[data-theme="light"] .wm-dark { display: none; }
/* setup page */
body.setup { display: grid; place-items: start center; }
.narrow { width: 100%; max-width: 560px; margin-top: 4vh; display: grid; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; gap: 3px; padding: 10px 12px 10px 34px; border-radius: 10px; background: var(--panel-2); position: relative; font-size: .9rem; }
.checks li::before { content: ""; position: absolute; left: 12px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.checks li.ok::before { background: var(--good); } .checks li.bad::before { background: var(--danger); } .checks li.warn::before { background: var(--amber); }
.checks .err { color: var(--danger); background: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* site footer: the GAPO black band with an orange dash, on every page */
.sitefoot { background: var(--black); color: var(--on-black); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.sitefoot::before { content: ""; position: absolute; left: 20px; top: 0; width: 44px; height: 4px; border-radius: 0 0 3px 3px; background: var(--orange); }
.sitefoot::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; background: linear-gradient(160deg, var(--green-l), var(--green-d)); clip-path: polygon(50% 0, 100% 86%, 78% 86%, 50% 38%, 22% 86%, 0 86%); opacity: .16; pointer-events: none; }
.sf-top { display: flex; gap: 12px; align-items: center; }
.sf-mark img { border-radius: 8px; display: block; }
.sf-text { display: grid; line-height: 1.25; }
.sf-text strong { font-family: var(--f-display); font-weight: 800; letter-spacing: .06em; font-size: 1rem; }
.sf-tag { color: var(--on-black-dim); font-size: .8rem; letter-spacing: .08em; }
.sf-teaser { color: var(--on-black-dim); font-size: .86rem; max-width: 62ch; }
.sf-teaser a, .sf-links a { color: var(--on-black); font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.sf-links { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .88rem; }
.sf-links a { text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 1px; }
.sf-legal { color: var(--on-black-dim); font-size: .76rem; }

.bootfail { max-width: 560px; margin: 24px auto; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--danger); border-left-width: 4px; color: var(--ink); font-size: .95rem; }
