/* Entry Exit Stop brand, shared with entryexitstop.com (index.html). Every
   colour is a token, with an RGB channel twin (--x-c) so Tailwind's opacity
   modifiers work (static/js/tw-config.js maps the palette onto these). Dark
   by default; light follows the system unless data-theme says otherwise. */
:root {
  --bg: #0A1120; --bg-c: 10 17 32;
  --surface: #111A2D; --surface-c: 17 26 45;
  --surface-2: #16223A; --surface-2-c: 22 34 58;
  --line: #23314D; --line-c: 35 49 77;
  --fg: #E7ECF5; --fg-c: 231 236 245;
  --muted: #93A1BA; --muted-c: 147 161 186;
  --faint: #5E6C88; --faint-c: 94 108 136;
  --entry: #5B95FF; --entry-c: 91 149 255;
  --exit: #2FBF7A; --exit-c: 47 191 122;
  --stop: #F2564F; --stop-c: 242 86 79;
  --amber: #F2B441; --amber-c: 242 180 65;
  --line-2: #505E79; --line-2-c: 80 94 121;
  --entry-deep: #21365E; --entry-deep-c: 33 54 94;
  --exit-deep: #144239; --exit-deep-c: 20 66 57;
  --stop-deep: #4B242D; --stop-deep-c: 75 36 45;
  --amber-deep: #4B3F29; --amber-deep-c: 75 63 41;
  --glow: rgba(91,149,255,.16);
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #F4F6FA; --bg-c: 244 246 250;
  --surface: #FFFFFF; --surface-c: 255 255 255;
  --surface-2: #EEF2F8; --surface-2-c: 238 242 248;
  --line: #D8DFEB; --line-c: 216 223 235;
  --fg: #0D1526; --fg-c: 13 21 38;
  --muted: #55627A; --muted-c: 85 98 122;
  --faint: #8A96AC; --faint-c: 138 150 172;
  --entry: #1E5FDB; --entry-c: 30 95 219;
  --exit: #13864E; --exit-c: 19 134 78;
  --stop: #CF3430; --stop-c: 207 52 48;
  --amber: #A86E12; --amber-c: 168 110 18;
  --line-2: #A4ADBE; --line-2-c: 164 173 190;
  --entry-deep: #B8CCF1; --entry-deep-c: 184 204 241;
  --exit-deep: #B5D7CA; --exit-deep-c: 181 215 202;
  --stop-deep: #EAC0C1; --stop-deep-c: 234 192 193;
  --amber-deep: #DFD0B9; --amber-deep-c: 223 208 185;
  --glow: rgba(30,95,219,.10); color-scheme: light } }
:root[data-theme="light"] {
  --bg: #F4F6FA; --bg-c: 244 246 250;
  --surface: #FFFFFF; --surface-c: 255 255 255;
  --surface-2: #EEF2F8; --surface-2-c: 238 242 248;
  --line: #D8DFEB; --line-c: 216 223 235;
  --fg: #0D1526; --fg-c: 13 21 38;
  --muted: #55627A; --muted-c: 85 98 122;
  --faint: #8A96AC; --faint-c: 138 150 172;
  --entry: #1E5FDB; --entry-c: 30 95 219;
  --exit: #13864E; --exit-c: 19 134 78;
  --stop: #CF3430; --stop-c: 207 52 48;
  --amber: #A86E12; --amber-c: 168 110 18;
  --line-2: #A4ADBE; --line-2-c: 164 173 190;
  --entry-deep: #B8CCF1; --entry-deep-c: 184 204 241;
  --exit-deep: #B5D7CA; --exit-deep-c: 181 215 202;
  --stop-deep: #EAC0C1; --stop-deep-c: 234 192 193;
  --amber-deep: #DFD0B9; --amber-deep-c: 223 208 185;
  --glow: rgba(30,95,219,.10); color-scheme: light }

body { background: var(--bg); color: var(--fg); font-family: var(--f-body); -webkit-font-smoothing: antialiased }
a { color: inherit }
:focus-visible { outline: 2px solid var(--entry); outline-offset: 2px; border-radius: 4px }
/* Pattern ids are set in mono (font-mono) and must keep their case. */
h1:not(.font-mono), h2:not(.font-mono), h3:not(.font-mono) { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05 }
.mono, table { font-variant-numeric: tabular-nums }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }

/* Headings were white-on-dark; in light mode white text without its own
   background (buttons keep theirs) must follow the foreground. */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .text-white:not([class*="bg-"]) { color: var(--fg) } }
:root[data-theme="light"] .text-white:not([class*="bg-"]) { color: var(--fg) }

/* Header and footer: the same as entryexitstop.com */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(16px, env(safe-area-inset-left, 0px)) }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg) }
.logo-mark { display: grid; gap: 3px; width: 22px }
.logo-mark i { display: block; height: 4px; border-radius: 2px }
.logo-mark i:nth-child(1) { background: var(--exit); width: 100% }
.logo-mark i:nth-child(2) { background: var(--entry); width: 70% }
.logo-mark i:nth-child(3) { background: var(--stop); width: 45% }
.logo b { font: 800 22px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase }
nav.main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--fg); background: var(--surface-2) }
@media (max-width: 560px) { nav.main a.hide-sm { display: none } .logo b { font-size: 19px } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-body); padding: 13px 20px; border-radius: 9px; text-decoration: none; border: 1px solid transparent; cursor: pointer }
.btn-primary { background: var(--entry); color: #fff }
.btn-primary:hover { filter: brightness(1.08) }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent }
.btn-ghost:hover { background: var(--surface-2) }
footer.foot { border-top: 1px solid var(--line); margin-top: 72px }
footer.foot .wrap { max-width: 1120px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 36px; display: grid; gap: 12px; color: var(--faint); font-size: 13px }
footer.foot .legal-links a { color: inherit; margin-left: 16px; text-decoration: underline }
footer.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px }
