/* Vector Dispatch Inc. — vectordispatch.ca
   Type-led design: Fraunces display + Source Sans 3, deep navy, restrained gold.
   Tokens per council design pass (Dec 1, 2026). */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #0B2239;
  --navy-2: #10304F;
  --gold-on-dark: #C9A227;
  --gold-on-light: #8A6A1F;
  --paper: #F7F5F0;
  --ink: #1C2733;
  --slate: #4A5868;
  --slate-on-navy: #C9D4E0;
  --line: #D9E1E8;
  --line-dark: #1E3D5C;
  --max: 1200px;
  --radius: 10px;
}

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

::selection { background: var(--navy); color: #fff; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 100;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-on-light); }

:focus-visible {
  outline: 2px solid var(--gold-on-light);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible {
  outline-color: var(--gold-on-dark);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding: 1.1rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 40;
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; display: block;
}
.brand-sub {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-on-dark);
}
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.main-nav a {
  color: var(--slate-on-navy); text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 0.6rem 0.85rem; border-radius: 6px; min-height: 44px;
  display: inline-flex; align-items: center;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0.85rem calc(100% - 0.45rem);
  transition: background-size 180ms ease, color 180ms ease;
}
.main-nav a:hover { color: #fff; background-size: calc(100% - 1.7rem) 1px; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold-on-dark); border-radius: 6px 6px 0 0; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #EEF3F8; padding: 6.5rem 0 6rem; }
.hero .rule { width: 64px; height: 1px; background: var(--gold-on-dark); margin-bottom: 1.6rem; }
.hero .eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-on-dark); margin-bottom: 1.4rem;
}
.hero h1 {
  color: #fff;
  font-variation-settings: "opsz" 144;
  font-weight: 450;
  font-size: clamp(2.75rem, 8.5vw, 5.4rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 10ch;
  margin-bottom: 1.6rem;
}
.hero .lede { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--slate-on-navy); max-width: 44ch; margin-bottom: 0.5rem; }
.hero .locale { color: var(--slate-on-navy); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.7rem; border-radius: 8px; border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper); color: var(--navy); }
.btn-ghost { border-color: var(--slate-on-navy); color: #EEF3F8; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
section.alt { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head .eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-on-light); margin-bottom: 0.7rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
section.alt .card { background: #fff; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 1rem; }

.prose { max-width: 64ch; }
.prose p { color: #33424F; }
.prose p + p { margin-top: 1.05rem; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: start; }
.fact-panel { background: var(--navy); color: var(--slate-on-navy); border-radius: var(--radius); padding: 2rem 1.9rem; }
.fact-panel h3 { color: #fff; font-size: 1.18rem; margin-bottom: 1.2rem; }
.fact-panel dl { display: grid; gap: 0.95rem; }
.fact-panel dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-on-dark); font-weight: 700; }
.fact-panel dd { font-size: 1rem; margin-top: 0.15rem; color: #EEF3F8; }

/* ---------- Opportunities ---------- */
.page-hero { background: var(--navy); color: #EEF3F8; padding: 5.5rem 0 5rem; }
.page-hero .rule { width: 64px; height: 1px; background: var(--gold-on-dark); margin-bottom: 1.6rem; }
.page-hero .eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-on-dark); margin-bottom: 1.3rem;
}
.page-hero h1 {
  color: #fff; font-variation-settings: "opsz" 144; font-weight: 450;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.06;
  max-width: 16ch; margin-bottom: 1.3rem;
}
.page-hero p { color: var(--slate-on-navy); max-width: 56ch; font-size: 1.15rem; }

.principles { display: grid; gap: 0; max-width: 56rem; }
.principle {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .num {
  font-family: "Fraunces", Georgia, serif; font-variation-settings: "opsz" 60;
  font-size: 2rem; font-weight: 500; color: var(--gold-on-light); line-height: 1.1;
}
.principle h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.principle p { color: var(--slate); max-width: 58ch; }

.cta-band { background: var(--navy); color: #EEF3F8; border-radius: var(--radius); padding: 2.6rem; }
.cta-band h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.6rem; }
.cta-band p { color: var(--slate-on-navy); max-width: 52ch; margin-bottom: 1.6rem; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.fineprint { color: var(--slate); font-size: 0.95rem; max-width: 62ch; margin-top: 2.2rem; }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.contact-card p, .contact-card a { color: var(--slate); font-size: 1.02rem; }
.contact-card a { font-weight: 600; }

.site-footer { background: var(--navy); color: var(--slate-on-navy); padding: 3rem 0 2.2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.8rem; }
.site-footer .f-brand { color: #fff; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem; }
.site-footer a { color: #EEF3F8; }
.footer-legal {
  border-top: 1px solid var(--line-dark); margin-top: 2.2rem; padding-top: 1.3rem;
  font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}

/* ---------- Motion (progressive, CSS-only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
@view-transition { navigation: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .page-hero { padding: 4rem 0 3.6rem; }
  .grid-3, .contact-grid, .split { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 3.4rem 1fr; gap: 1rem; }
  .hero-actions .btn { width: 100%; }
  .header-inner { padding: 0.95rem 0; }
}
