/* ============================================================================
   The Evac Plan — shared design system
   Reuses your existing brand tokens, but FIXES contrast and bumps sizing.
   New pages (landing, login, dashboard, blog) use this directly.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  /* Brand */
  --black:      #0a0a0a;
  --black-mid:  #141414;
  --panel:      #1a1a1a;
  --panel-2:    #202020;
  --gold:       #f5c800;
  --gold-dark:  #c9a200;
  --red:        #cc3300;
  --green:      #2d8a3e;

  /* Text — CONTRAST FIX.
     Old --gray-light:#444 (~1.7:1 on black) was the unreadable culprit.
     These all clear WCAG AA on the near-black background. */
  --white:  #f0ede6;   /* primary text            ~15:1 */
  --muted:  #b6b0a4;   /* secondary / meta text   ~7:1  (was #444) */
  --dim:    #8f8a7e;   /* least-important labels   ~4.6:1 */

  --line:   #333;      /* borders */

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --font-body:    'Barlow Condensed', sans-serif;

  /* Type scale — SIZE FIX. Base was 15px; now 18px, and the small
     stuff is defined in rem so it scales with the display-size control. */
  font-size: 18px;                 /* the base the whole site scales from */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;                 /* = 18px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 1px; line-height: 0.95; color: var(--white); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.gold { color: var(--gold); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Little uppercase overline used above section titles */
.overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;              /* was ~10px → now readable */
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.overline::before { content:''; width:24px; height:2px; background:var(--gold); }

/* Body copy blocks */
.lead { font-size: 1.15rem; font-weight: 600; color: var(--muted); line-height: 1.6; }
p     { color: var(--white); }
.meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
small { font-size: 0.8rem; color: var(--muted); }   /* was tiny + dark */

/* ─────────────────────────── Nav ─────────────────────────── */
.nav {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; padding: 14px 24px; max-width:1200px; margin:0 auto; gap:20px; }
.brand { display:flex; flex-direction:column; line-height:1; }
.brand .top { font-family:var(--font-display); font-size:0.7rem; letter-spacing:4px; color:var(--gold); }
.brand .main{ font-family:var(--font-display); font-size:1.8rem; letter-spacing:2px; color:var(--white); }
.nav-links { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.nav-links a { font-family:var(--font-display); font-size:1.15rem; letter-spacing:1.5px; color:var(--white); text-transform:uppercase; }
.nav-links a:hover { color:var(--gold); text-decoration:none; }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display:inline-block; cursor:pointer; border:none;
  font-family:var(--font-display); letter-spacing:2px; text-transform:uppercase;
  font-size:1.2rem; padding:12px 28px; transition:background .15s, color .15s, border-color .15s;
}
.btn-gold  { background:var(--gold); color:var(--black); }
.btn-gold:hover  { background:var(--gold-dark); text-decoration:none; }
.btn-ghost { background:transparent; color:var(--gold); border:2px solid var(--gold); }
.btn-ghost:hover { background:var(--gold); color:var(--black); text-decoration:none; }
.btn-block { display:block; width:100%; text-align:center; }

/* ─────────────────────────── Cards / panels ─────────────────────────── */
.panel { background:var(--panel); border:1px solid var(--line); padding:24px; }

/* Tool / feature card grid */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--line); border:1px solid var(--line); }
.card { background:var(--black-mid); padding:24px; position:relative; display:flex; flex-direction:column; }
.card::before { content:''; position:absolute; top:0; left:0; width:100%; height:3px; background:var(--gold); opacity:.5; }
.card .icon { font-size:1.8rem; margin-bottom:8px; }
.card h3 { font-size:1.35rem; color:var(--gold); margin-bottom:6px; }
.card p  { font-size:0.95rem; color:var(--muted); line-height:1.5; flex:1; }
.card .tag { font-family:var(--font-mono); font-size:0.7rem; color:var(--dim); letter-spacing:2px; margin-top:12px; text-transform:uppercase; }
@media (max-width:900px){ .card-grid{ grid-template-columns:1fr; } }

/* ─────────────────────────── Forms ─────────────────────────── */
.field { margin-bottom:18px; }
.field label { display:block; font-family:var(--font-mono); font-size:0.78rem; letter-spacing:2px; color:var(--gold); text-transform:uppercase; margin-bottom:6px; }
.field input, .field textarea, .field select {
  width:100%; background:var(--black-mid); border:1px solid var(--line); color:var(--white);
  font-family:var(--font-body); font-size:1.05rem; padding:12px 14px;
}
.field input:focus, .field textarea:focus { outline:none; border-color:var(--gold); }
.form-narrow { max-width:420px; margin:0 auto; }

.alert { padding:12px 16px; margin-bottom:18px; font-size:0.95rem; border-left:3px solid; }
.alert-error { background:rgba(204,51,0,.12); border-color:var(--red); color:#ffb3a0; }
.alert-ok    { background:rgba(45,138,62,.12); border-color:var(--green); color:#a8e0b0; }
.alert-info  { background:rgba(245,200,0,.10); border-color:var(--gold); color:#f5e6a8; }

/* ─────────────────────────── Sections ─────────────────────────── */
.section { padding:64px 0; }
.section-alt { background:var(--black-mid); }

/* ─────────────────────────── Footer ─────────────────────────── */
.site-footer { border-top:1px solid var(--line); padding:32px 24px; text-align:center; }
.site-footer, .site-footer a, .site-footer p { font-family:var(--font-mono); font-size:0.8rem; color:var(--muted); }
.site-footer a { color:var(--gold); }

/* ─────────────────────────── Display-size widget ─────────────────────────── */
.textsize-widget {
  position:fixed; right:16px; bottom:16px; z-index:900;
  display:flex; align-items:center; gap:2px;
  background:var(--panel); border:1px solid var(--gold); padding:6px;
}
.textsize-widget button {
  background:var(--black-mid); color:var(--gold); border:1px solid var(--line);
  font-family:var(--font-display); cursor:pointer; width:34px; height:34px; line-height:1;
}
.textsize-widget button:hover { background:var(--gold); color:var(--black); }
.textsize-widget .ts-a1 { font-size:0.85rem; }
.textsize-widget .ts-a2 { font-size:1.05rem; }
.textsize-widget .ts-a3 { font-size:1.3rem; }
@media print { .textsize-widget { display:none; } }
