/* EvacPrep — shared styles. Calm, readable, fast. No framework. */
:root {
  --bg: #f7f8f6; --surface: #ffffff; --surface-2: #eef1ee; --text: #1b2228; --muted: #5a6670;
  --line: #d9dfdb; --accent: #1f6f66; --accent-ink: #ffffff; --link: #17635b;
  --warn-bg: #fff4e5; --warn-line: #e8a33d; --safety-bg: #fdecec; --safety-line: #c94a4a;
  --ok-bg: #e9f5f0; --ok-line: #3c9a7c;
  --sev4: #d64545; --sev3: #e8833a; --sev2: #d9b440; --sev1: #6fa1c9;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1418; --surface: #151d22; --surface-2: #1b252b; --text: #e4eaec; --muted: #9aa8ae;
    --line: #2a363d; --accent: #4fb3a6; --accent-ink: #06201c; --link: #7fd1c5;
    --warn-bg: #2b2414; --warn-line: #b88a2e; --safety-bg: #2d1717; --safety-line: #d26a6a;
    --ok-bg: #12261f; --ok-line: #3c9a7c; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1418; --surface: #151d22; --surface-2: #1b252b; --text: #e4eaec; --muted: #9aa8ae;
  --line: #2a363d; --accent: #4fb3a6; --accent-ink: #06201c; --link: #7fd1c5;
  --warn-bg: #2b2414; --warn-line: #b88a2e; --safety-bg: #2d1717; --safety-line: #d26a6a;
  --ok-bg: #12261f; --ok-line: #3c9a7c; --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: #0f1a1f; color: #e8eeee; border-bottom: 1px solid #22323a; }
.site-header .inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #4fb3a6, #1f6f66); display: inline-block; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: #c9d6d8; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #1c2c33; color: #fff; }

/* Layout */
main.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
main.wide { max-width: 1100px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; margin: .2em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.8em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1rem; }
.stamp { font-size: .88rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.4rem; }
article p, article li { max-width: 68ch; }
article sup a { text-decoration: none; font-size: .78em; padding: 0 1px; }

/* Boxes */
.box { border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.box h2, .box h3 { margin-top: 0; font-size: 1.1rem; }
.box.safety { background: var(--safety-bg); border-color: var(--safety-line); border-left-width: 6px; }
.box.rule { background: var(--ok-bg); border-color: var(--ok-line); border-left-width: 6px; }
.box.mistakes { background: var(--warn-bg); border-color: var(--warn-line); border-left-width: 6px; }
.box.weekend { border-left: 6px solid var(--accent); }
.box.context { background: var(--surface-2); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist input { position: absolute; left: 4px; top: 10px; width: 18px; height: 18px; accent-color: var(--accent); }
.sources ol { padding-left: 1.4em; font-size: .95rem; }
.sources li { margin: 4px 0; word-break: break-word; }
.sources .pub { color: var(--muted); }

/* Gear box */
.gear { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 28px 0; }
.gear h2 { margin: 0 0 4px; font-size: 1.1rem; }
.gear .disclose { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.gear ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gear li { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.gear .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gear .name { font-weight: 600; }
.gear .why { font-size: .92rem; color: var(--muted); flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn.secondary { background: transparent; color: var(--link); border: 1px solid var(--line); }
.btn.small { padding: 6px 10px; min-height: 36px; font-size: .9rem; }

/* Cards / grids */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--link); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin-bottom: 8px; }

/* Forms */
label { font-weight: 600; display: block; margin: 12px 0 4px; }
input[type="number"], input[type="email"], input[type="text"], select { font: inherit; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 44px; width: 100%; max-width: 340px; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .gear, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .box { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
