/* hcpoe.tools hub look: "Field Manual" (picked by Ben on 2026-12-05) with the purple accent. Dark by default,
   light on request. Condensed headings, plain technical body, one accent. The hub theme thread owns these tokens.
   Shared by every hub page; a page adds its own stylesheet for its parts. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #121211;
  --band: #0b0b0a;
  --panel: #191917;
  --ink: #ece9df;
  --mute: #a9a59a;
  --line: #34332f;
  --line2: #3a3934;      /* stronger rule: panel edges, dashed placeholders */
  --hazard: #a78bfa;      /* accent fill */
  --accent: #c4b5fd;      /* accent as text */
  --on-hazard: #121211;
  --up: #7cb6ff;
  --cold: #7cb6ff;
  --light: #e6c84a;
  --fire: #ffa36b;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ea;
  --band: #e8e5db;
  --panel: #fbfaf6;
  --ink: #141414;
  --mute: #55524a;
  --line: #cfcabd;
  --line2: #b9b5aa;
  --hazard: #a78bfa;
  --accent: #6d28d9;
  --on-hazard: #121211;
  --up: #1d5fae;
  --cold: #1d5fae;
  --light: #8a6d00;
  --fire: #b8380a;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text); overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--hazard); color: var(--on-hazard); padding: 8px 12px; z-index: 9; }
.skip:focus { top: 8px; }

.band { padding-block: clamp(20px, 3vw, 40px); padding-inline: max(5vw, 16px); }
.wrap { max-width: 1080px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: 30px; }

/* Header */
.top { padding-block: 14px; border-bottom: 1px solid var(--line); background: var(--band); }
.bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
/* Wordmark: "HCPOE" on an ink block, ".TOOLS" in an outlined box beside it. */
.word { display: inline-flex; align-items: center; font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; background: var(--ink); color: var(--bg); padding-left: 8px; border: 2px solid var(--ink); }
.word span { display: inline-flex; align-items: center; margin-left: 8px; padding: 6px 7px 4px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 19px; }
.lives { font: 500 12px/1 var(--mono); letter-spacing: .06em; border: 1.5px solid var(--hazard); color: var(--accent); padding: 4px 6px; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.top nav a { color: var(--mute); text-decoration: none; font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 10px 0; border-bottom: 3px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--hazard); }

/* Controls */
button { font: inherit; }
.btn { background: var(--hazard); color: var(--on-hazard); border: 0; padding: 10px 16px; font: 600 15px var(--text); cursor: pointer; min-height: 44px; }
.btn:hover { filter: brightness(1.08); }
.link, .theme { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.theme { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--line); color: var(--mute); padding: 8px 10px; }
.theme:hover { color: var(--ink); border-color: var(--mute); }

/* Sign in / Account (static/account.js). Sits with the theme toggle at the end of the header. */
.acts { display: flex; align-items: center; gap: 8px; }
.acct { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: none; border: 1px solid var(--hazard); color: var(--accent); padding: 8px 10px; min-height: 44px; cursor: pointer; }
.acct:hover { color: var(--ink); }
.acct.signed-in::before { content: "●"; color: var(--hazard); margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.acct-dlg { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); }
.acct-dlg::backdrop { background: rgb(0 0 0 / .6); }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.acct-head h2 { font-size: 26px; }
.acct-x { background: none; border: 0; color: var(--mute); font-size: 26px; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
.acct-x:hover { color: var(--ink); }
.acct-body { padding: 16px 20px 20px; }
.acct-body p { margin: 0 0 14px; }
.acct-note { color: var(--mute); }
.acct-small { font-size: 14px; color: var(--mute); margin-top: 14px !important; }
.acct-err { color: var(--fire); }
.acct-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.acct-methods { flex-direction: column; align-items: stretch; gap: 10px; }
.acct-acts .btn { text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.acct-acts .btn.alt { background: none; color: var(--ink); border: 1px solid var(--line2); }
.acct-acts .btn.alt:hover { border-color: var(--mute); }
input, select { font: 16px var(--text); padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); min-height: 44px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--band); color: var(--mute); font-size: 14px; }
.foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
