/* ═══════════════════════════════════════════════════════════════
   EOHSJ North Central Lieutenancy — Base Styles
   Reset · Typography · Global defaults · Utilities
   Requires: variables.css
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Defensive: prevent accidental horizontal scroll from any descendant
     that briefly exceeds the viewport (e.g., during mobile-drawer open/
     close transitions). The site has no intentional horizontal scroll. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-b);
  font-size: var(--text-body-v2);    /* 19px — v2 bump */
  font-weight: var(--w-regular);
  line-height: var(--leading-body);  /* 1.65 — v2 bump */
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  /* Sticky-footer scaffolding: page is at least viewport-tall, with
     <main> growing to fill any extra space so the dark <footer>
     always reaches the bottom on short pages (notably /404). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main {
  flex: 1 0 auto;
}
body > footer {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-b);
}

input, textarea, select {
  font-family: var(--font-b);
}


/* ── TYPOGRAPHY ──────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  line-height: var(--leading-tight);
  color: var(--c-charcoal);
}

h1 { font-size: 3.5rem;    font-weight: var(--w-semibold); }  /* 56px — v2 */
h2 { font-size: 2.25rem;   font-weight: var(--w-semibold); }  /* 36px — v2 */
h3 { font-size: 1.875rem;  font-weight: var(--w-medium);   }  /* 30px — v2 */
h4 { font-size: var(--text-2xl); font-weight: var(--w-medium); }
h5 { font-size: var(--text-xl);  font-weight: var(--w-medium); }
h6 {
  font-size: var(--text-body-v2);
  font-family: var(--font-b);
  font-weight: var(--w-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: var(--w-semibold); }
em     { font-style: italic; }

a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--tr-f);
}
a:hover { color: var(--c-primary-dark); }
a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

blockquote {
  border-left: 3px solid var(--c-secondary);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-h);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--c-text2);
  line-height: var(--leading-snug);
  background: var(--c-bg2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
blockquote cite,
blockquote footer {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  font-family: var(--font-b);
  color: var(--c-muted);
  font-weight: var(--w-medium);
}


/* ── SKIP NAV ───────────────────────────────────────────────── */
.skip {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: var(--w-semibold);
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: var(--z-toast);
  transition: top var(--tr-f);
  text-decoration: none;
}
.skip:focus { top: 0; }.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;
}/* ── PAGE HEADER (breadcrumb + H1 + lead) ─────────────────── */
/* Transparent, narrow-centered block — matches the hifi mockups.
   Earlier draft had bg2 + border-bottom which read as an unwanted
   "darker bar" stripe at the top of every page (about, news, etc). */
.page-header {
  padding: var(--space-12) var(--space-6) var(--space-10);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-bottom: var(--space-3);
}
.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 var(--space-2); }

.page-header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--w-semibold);
  margin-bottom: var(--space-4);
}

.page-header .lead {
  font-size: var(--text-lg);
  color: var(--c-text2);
  max-width: 680px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}


/* ── QUOTE COMPONENT ──────────────────────────────────────── */
.quote {
  border-left: 3px solid var(--c-secondary);
  padding: var(--space-5) var(--space-8);
  margin: var(--space-10) 0;
  background: var(--c-bg2);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.quote p {
  font-family: var(--font-h);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--c-text2);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}
.quote cite {
  font-size: var(--text-sm);
  color: var(--c-muted);
  font-style: normal;
  font-weight: var(--w-medium);
}


/* ── DATA CALLOUT ─────────────────────────────────────────── */
.data-callout {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--c-primary-bg);
  border-radius: var(--r-xl);
  margin: var(--space-10) 0;
}
.data-callout .big-num {
  font-family: var(--font-h);
  font-size: 5rem;
  font-weight: var(--w-bold);
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.data-callout h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.data-callout p {
  font-size: var(--text-lg);
  color: var(--c-text2);
  max-width: 600px;
  margin: 0 auto;
}
