/* Atlanta Survival Guide · gone.offgrid "field manual" look.
   Tokens use the --og- prefix so browser extensions that inject generic
   variables (like --accent) cannot recolor the app.
   Text colors meet WCAG 2.2 AAA (7:1) in both themes. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap; src: url(fonts/archivo-900.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --og-scale: 1;
  --og-bg: #F2EEE5;
  --og-surface: #FFFFFF;
  --og-ink: #111315;
  --og-muted: #3B4045;
  --og-line: #D6CFC1;
  --og-edge: #6B6458;          /* 3:1+ borders for controls */
  --og-signal: #FF5B14;        /* fills and stripes only */
  --og-signal-ink: #8F2E00;    /* orange text */
  --og-caution: #FFC21A;
  --og-danger-ink: #8B0E16;
  --og-911: #A0101A;
  --og-yes-bg: #EAF5EE;
  --og-yes-ink: #155A2B;
  --og-head-bg: #111315;
  --og-head-ink: #F2EEE5;
  --og-er: #A0101A;
  --og-safe: #16572A;
  --og-marta: #0A4A91;
  --og-warm: #8A3A00;
  --og-office: #55287D;
  --og-radius: 14px;
  --og-gap: 16px;
  --og-pad: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --og-bg: #111315;
    --og-surface: #1B1F22;
    --og-ink: #F2EEE5;
    --og-muted: #C9C3B6;
    --og-line: #3A4045;
    --og-edge: #8E887C;
    --og-signal-ink: #FF9A6B;
    --og-danger-ink: #FF9C9C;
    --og-yes-bg: #173A24;
    --og-yes-ink: #CDEBD6;
    --og-head-bg: #0A0B0C;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: calc(106.25% * var(--og-scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--og-bg); color: var(--og-ink);
  font: 400 1rem/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word; hyphens: manual;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; overflow-wrap: normal; word-break: normal; }
h1 { font: 900 clamp(1.7rem, 5vw, 2.4rem)/1.1 "Archivo", "Inter", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
h2 { font: 900 1.3rem/1.2 "Archivo", "Inter", sans-serif; text-transform: uppercase; letter-spacing: .02em; margin-top: 1.4em; }
h3 { font-weight: 600; font-size: 1.1rem; }
h4 { font-weight: 600; font-size: 1rem; }
.h-plain { font: 600 1.1rem/1.25 "Inter", sans-serif; text-transform: none; letter-spacing: 0; margin: 0 0 .25em; }
.h-caps { font: 900 1.15rem/1.2 "Archivo", "Inter", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
a:not([class]) { text-decoration-thickness: 2px; text-underline-offset: 3px; }
svg { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 3px solid var(--og-signal); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--og-ink); color: var(--og-bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.kicker, .mono { font: 500 .85rem/1.3 "Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.kicker { color: var(--og-signal-ink); margin-bottom: .4em; }
.muted { color: var(--og-muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ header */
/* only the logo, text size and 911 row stays pinned; the menu scrolls away so phones keep most of the screen */
.top { position: sticky; top: 0; z-index: 20; background: var(--og-head-bg); color: var(--og-head-ink); padding: 8px var(--og-pad); }
.top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-badge { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 900 1.15rem/1 "Archivo", sans-serif; letter-spacing: .01em; }
.brand-city { font: 500 .78rem/1.2 "Plex Mono", monospace; letter-spacing: .18em; color: #F2EEE5; }
.net { font: 500 .8rem/1 "Plex Mono", monospace; background: var(--og-caution); color: #111315; padding: 6px 8px; border-radius: 6px; }
.textsize { display: flex; align-items: center; gap: 4px; }
.textsize button { min-width: 44px; min-height: 40px; border-radius: 8px; border: 2px solid #8E887C; background: transparent; color: var(--og-head-ink); font: 600 1rem "Inter", sans-serif; cursor: pointer; }
.textsize span { font: 500 .8rem "Plex Mono", monospace; min-width: 3.2em; text-align: center; }
.btn-911 { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--og-911); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; background: var(--og-head-bg); padding: 2px var(--og-pad) 12px; border-bottom: 5px solid var(--og-signal); }
.nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid #5A5F64; color: var(--og-head-ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a[aria-current="page"] { background: var(--og-head-ink); color: #111315; border-color: var(--og-head-ink); }
.nav a:hover { border-color: var(--og-signal); }

main { padding: 20px var(--og-pad) 40px; outline: none; }
.foot { padding: 20px var(--og-pad) 40px; border-top: 1px solid var(--og-line); color: var(--og-muted); font-size: .92rem; }

/* ------------------------------------------------------------ building blocks */
.card { background: var(--og-surface); border: 1px solid var(--og-line); border-radius: var(--og-radius); padding: 18px; }
.grid { display: grid; gap: var(--og-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.stack > * + * { margin-top: var(--og-gap); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--og-ink); background: var(--og-ink); color: var(--og-bg); font: 600 1rem "Inter", sans-serif; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--og-ink); }
.btn.danger { background: var(--og-911); border-color: var(--og-911); color: #fff; }
.btn:disabled { cursor: default; border-style: dashed; background: transparent; color: var(--og-ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--og-edge); font-size: .85rem; word-break: keep-all; white-space: nowrap; }
.pill.yes { background: var(--og-yes-bg); color: var(--og-yes-ink); border-color: transparent; }
.label { font: 500 .8rem/1.3 "Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--og-muted); display: block; margin-bottom: 2px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.note { border-left: 5px solid var(--og-caution); padding: 10px 14px; background: var(--og-surface); border-radius: 0 10px 10px 0; }
.stripe { height: 10px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--og-caution) 0 14px, #111315 14px 28px); margin-bottom: 18px; }

/* ------------------------------------------------------------ home */
.hero p { font-size: 1.1rem; }
.status { display: grid; gap: 12px; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-line .pill { font-size: .9rem; }
.progress { width: 100%; height: 14px; border-radius: 7px; background: var(--og-line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--og-signal); width: 0; transition: width .2s; }
.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: var(--og-gap) 0; }
.quick a { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-weight: 600; background: var(--og-surface); border: 2px solid var(--og-ink); }
.quick a.q911 { background: var(--og-911); border-color: var(--og-911); color: #fff; }
.quick svg { width: 1.6em; height: 1.6em; }
.tile { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.tile svg { width: 2.4em; height: 2.4em; color: var(--og-signal-ink); margin-top: 2px; }
.tile h3 { margin-bottom: .25em; }
.tile p { margin: 0; color: var(--og-muted); }
.tile:hover { border-color: var(--og-ink); }

/* ------------------------------------------------------------ chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--og-edge); background: var(--og-surface); color: var(--og-ink); font: 600 .95rem "Inter", sans-serif; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--og-ink); color: var(--og-bg); border-color: var(--og-ink); }
.chip .count { font: 500 .8rem "Plex Mono", monospace; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--og-edge); flex: none; display: inline-block; }
.cat-er { background: var(--og-er); } .cat-safe { background: var(--og-safe); } .cat-marta { background: var(--og-marta); }
.cat-warm { background: var(--og-warm); } .cat-office { background: var(--og-office); }

/* ------------------------------------------------------------ map */
.mapwrap { position: relative; }
.map { height: min(62vh, 640px); min-height: 320px; border-radius: var(--og-radius); border: 1px solid var(--og-line); overflow: hidden; background: var(--og-surface); }
.map-empty { display: grid; place-items: center; text-align: center; padding: 24px; }
.map-empty .inner { max-width: none; }
.maptools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.maplibregl-popup-content { font: 400 15px/1.4 "Inter", sans-serif; color: #111315; border-radius: 10px; padding: 12px 14px; }
.maplibregl-popup-content h4 { margin: 0 0 4px; font-size: 16px; }
.maplibregl-popup-content button { margin-top: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 2px solid #111315; background: #111315; color: #F2EEE5; font: 600 14px "Inter", sans-serif; cursor: pointer; }
.maplibregl-ctrl-attrib { font-size: 12px; }

/* ------------------------------------------------------------ place cards */
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.place { display: flex; flex-direction: column; gap: 6px; }
.place.flash { outline: 4px solid var(--og-signal); }
.place-head { display: flex; gap: 10px; align-items: flex-start; }
.place-head .dot { margin-top: 5px; }
.place h3 { margin: 0; font-size: 1.05rem; }
.place .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.place .dist { font: 500 .9rem "Plex Mono", monospace; color: var(--og-signal-ink); margin: 0; }
.place .why, .place .caveat, .place .addr { margin: 0; }
.place .caveat { color: var(--og-muted); font-size: .93rem; }
.place .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.place .actions .btn { min-height: 42px; font-size: .93rem; padding: 0 12px; }

/* ------------------------------------------------------------ kit checklist */
.kitbar { position: sticky; top: var(--og-headh, 120px); z-index: 5; background: var(--og-bg); padding: 10px 0; }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.kit-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 6px; border-radius: 10px; }
.kit-item + .kit-item { border-top: 1px solid var(--og-line); }
.kit-item input { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--og-yes-ink); cursor: pointer; }
.kit-item label { cursor: pointer; font-weight: 400; }
.kit-item .sub { display: block; color: var(--og-muted); font-size: .93rem; margin-top: 2px; }
.kit-item.done label > span:first-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.kit-item .gearlink { display: inline-flex; margin-top: 6px; font-size: .9rem; font-weight: 600; }
.opt { font-size: .85rem; color: var(--og-muted); }

/* ------------------------------------------------------------ gear */
.gear-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gear-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; }
.gear-item + .gear-item { border-top: 1px solid var(--og-line); }
.gear-item > svg { width: 2.4em; height: 2.4em; color: var(--og-signal-ink); }
.gear-item h4 { margin: 0 0 2px; }
.gear-item p { margin: 0 0 8px; color: var(--og-muted); }
.paid { font: 500 .8rem "Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--og-muted); }

/* ------------------------------------------------------------ 72h + hazards */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--og-gap); }
.phase h2 { margin-top: 0; }
.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin: 0 0 .55em; padding-left: .2em; }
.steps li::marker { font: 500 .95rem "Plex Mono", monospace; color: var(--og-signal-ink); }
.plan-form { display: grid; gap: 14px; }
.plan-form label { font-weight: 600; display: block; margin-bottom: 4px; }
.plan-form .hint { display: block; font-weight: 400; color: var(--og-muted); font-size: .9rem; }
.plan-form textarea { width: 100%; min-height: 3.2em; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--og-edge); background: var(--og-surface); color: var(--og-ink); font: 400 1rem/1.4 "Inter", sans-serif; resize: vertical; }
.hz-tile { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 76px; }
.hz-tile svg { width: 2.4em; height: 2.4em; color: var(--og-signal-ink); }
.hz-tile h3 { margin: 0; }
.sect { margin-top: var(--og-gap); }
.sect h2 { margin-top: 0; }
.dont h2 { color: var(--og-danger-ink); }
.dont ul { margin: 0; padding-left: 1.2em; }
.signs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sources { font-size: .93rem; color: var(--og-muted); }
.sources ul { padding-left: 1.2em; margin: .3em 0 0; }

/* ------------------------------------------------------------ numbers */
.num-rows { list-style: none; padding: 0; margin: 0; }
.num-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 0; }
.num-row + .num-row { border-top: 1px solid var(--og-line); }
.num-row h3 { margin: 0; font-size: 1.02rem; }
.num-row p { margin: 2px 0 0; color: var(--og-muted); font-size: .93rem; grid-column: 1 / -1; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 10px; background: var(--og-ink); color: var(--og-bg); text-decoration: none; font: 500 1rem "Plex Mono", monospace; white-space: nowrap; }
.same { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px 14px; list-style: none; padding: 0; margin: 0; }
.same li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--og-line); padding: 4px 0; }
.same code { font: 500 1rem "Plex Mono", monospace; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--og-ink); color: var(--og-bg); padding: 12px 18px; border-radius: 10px; z-index: 60; font-weight: 600; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.noscript { padding: 20px; }

@media (max-width: 560px) {
  .textsize span { display: none; }
  .brand-badge { width: 34px; height: 34px; }
  .btn-911 { padding: 0 12px; }
  .nav a { padding: 0 11px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------ print: white pages, no color fills */
@media print {
  :root { --og-bg: #fff; --og-surface: #fff; --og-ink: #000; --og-muted: #222; --og-line: #999; --og-signal-ink: #000; color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .nav, .foot, .noprint, .btn, .chips, .maptools, .map, .kitbar .row, .toast, .skip { display: none !important; }
  .card { border: 1px solid #999; break-inside: avoid; }
  .kitbar { position: static; }
  .stripe { display: none; }
  a { text-decoration: none; }
  .tel { background: none; color: #000; padding: 0; min-height: 0; }
  .kit-item input { width: 14pt; height: 14pt; }
  main { padding: 0; }
}
