/* ============================================================
   OurBombers.com — independent Blue Bombers heritage archive
   Theme: "Prairie Blue & Gold" — navy + gold editorial heritage
   Custom CSS only. Content is ALWAYS visible without JavaScript.
   ============================================================ */

:root {
  --navy-900: #12283f;
  --navy-800: #17324f;
  --navy-700: #1b3a5e;   /* primary */
  --navy-600: #24436f;   /* original site navy */
  --navy-100: #e1e8f4;   /* original light tint */
  --gold-600: #b8892f;
  --gold-500: #c8a04a;   /* accent */
  --gold-300: #e2c98a;
  --cream:    #f7f5f0;
  --paper:    #ffffff;
  --ink:      #1a1a1a;
  --ink-soft: #4a5568;
  --line:     #e4e0d6;
  --shadow:   0 10px 30px rgba(18, 40, 63, .12);
  --shadow-sm: 0 4px 14px rgba(18, 40, 63, .08);
  --radius:   10px;
  --maxw:     1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.06rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-color: var(--gold-300); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

/* Safeguard: content must never be stuck hidden waiting on JS.
   (No scroll-reveal library is used, but this neutralizes any if added.) */
[data-aos] { opacity: 1 !important; transform: none !important; }

h1, h2, h3, h4, .display {
  font-family: "Oswald", "Source Sans 3", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--navy-800);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-top: 1.6em; }
h3 { font-size: 1.28rem; margin-top: 1.4em; color: var(--navy-700); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--navy-800); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none; flex: 0 0 auto;
}
.brand:hover { color: #fff; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900); display: grid; place-items: center;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.35rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.18rem; text-transform: uppercase; letter-spacing: .03em; }
.brand-sub { font-size: .68rem; color: var(--gold-300); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .2rem;
  margin: 0; padding: 0; justify-content: flex-end;
}
.main-nav a {
  display: block; padding: .4rem .6rem; color: #d7e0ee; text-decoration: none;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em; border-radius: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--gold-500); background: rgba(255,255,255,.06);
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy-800); color: #fff; overflow: hidden;
  border-bottom: 4px solid var(--gold-500);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,40,63,.55) 0%, rgba(18,40,63,.82) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}
.hero.hero-lg .hero-inner { padding: clamp(4rem, 11vw, 8rem) 1.25rem; }
.eyebrow {
  display: inline-block; font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--gold-300);
  border-left: 3px solid var(--gold-500); padding-left: .6rem; margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede { font-size: 1.2rem; max-width: 60ch; color: #e6ecf5; margin-top: .6rem; }
.hero-cta { margin-top: 1.6rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: "Oswald", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
  padding: .7rem 1.4rem; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 16px rgba(184,137,47,.35); }
.btn-gold:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(184,137,47,.45); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { color: var(--navy-900); background: #fff; border-color: #fff; }

/* ---------- Main / article ---------- */
main { display: block; }
.section { padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
.article {
  background: var(--paper); margin: -3.5rem auto 0; position: relative; z-index: 3;
  max-width: 900px; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--gold-500);
}
.article h1 { margin-top: 0; }
.article > p:first-of-type { font-size: 1.14rem; color: var(--ink); }
.page-hero-img {
  width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius);
  margin: 0 0 1.6rem; box-shadow: var(--shadow-sm);
}

/* inline figure image inside article */
.inline-fig { margin: 1.8rem 0; }
.inline-fig img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.inline-fig figcaption { font-size: .86rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

/* ---------- Cards grid (home) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500); transition: transform .14s ease, box-shadow .14s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 .4rem; color: var(--navy-700); }
.card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .98rem; }
.card a.card-link {
  margin-top: auto; font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .04em; font-size: .82rem; font-weight: 600; text-decoration: none;
  color: var(--navy-700);
}
.card a.card-link:hover { color: var(--gold-600); }
.card-icon { color: var(--gold-600); font-size: 1.5rem; margin-bottom: .6rem; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { border-left: none; padding-left: 0; color: var(--gold-600); }
.section-head h2 { margin-top: .2rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Band (alt background) ---------- */
.band { background: var(--navy-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy-800); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: #d7e0ee; }

/* ---------- Stat / banner strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; text-align: center; }
.stat { padding: 1rem; }
.stat .num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--gold-500); line-height: 1; }
.stat .label { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: #cdd7e6; margin-top: .4rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--cream); color: var(--ink);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold-500); border-color: var(--gold-500); }

/* ---------- Disclaimer note ---------- */
.disclaimer {
  background: rgba(200,160,74,.12); border: 1px solid var(--gold-300);
  border-left: 4px solid var(--gold-500); border-radius: 8px;
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); margin: 1.6rem 0;
}
.disclaimer strong { color: var(--navy-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c6d2e2; margin-top: 3rem; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 2.6rem 1.25rem 1.6rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-top h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #c6d2e2; text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-brand .brand-name { color: #fff; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #97a7bc;
  padding: 1rem 0 .4rem; margin-top: 1rem; line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.25rem; text-align: center; font-size: .84rem; color: #8496ad;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-bottom a { color: var(--gold-300); }

/* ---------- Breadcrumb-ish page tag ---------- */
.kicker { color: var(--gold-600); font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: clamp(3rem,10vw,7rem) 1.25rem; }
.error-wrap .code { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(4rem,18vw,9rem); color: var(--gold-500); line-height: .9; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.4);
    color: #fff; border-radius: 6px; padding: .35rem .6rem; cursor: pointer; font-size: 1.1rem;
  }
  .main-nav { flex-basis: 100%; margin-left: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .main-nav.open { max-height: 640px; }
  .main-nav ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: .5rem 0; }
  .main-nav a { padding: .7rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.08); border-left: 3px solid var(--gold-500); }
  .footer-top { grid-template-columns: 1fr; gap: 1.4rem; }
  .article { margin-top: -2rem; }
}

/* When JS is unavailable, the nav must still be reachable.
   The toggle only collapses the menu on small screens as an enhancement;
   :target fallback keeps it openable without JS. */
.main-nav:target { max-height: 640px; }
@media (min-width: 861px) { .main-nav { max-height: none !important; } }
