/* ==========================================================================
   HARDTHINGS THEME — screen.css
   Source of truth: BRAND.md and GUIDE.md.
   Never use ad-hoc hex values in component CSS — reference tokens only.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Source: BRAND.md Section 5 + GUIDE.md Section 3
   ========================================================================== */

:root {

  /* Colors — "Open Water Patriot": patriotic + Clipper Race colors, lit up.
     Light ground dominates; navy is an anchor used sparingly; bright flag red
     is the energetic accent; ocean blue carries water + movement.
     (Supersedes BRAND.md v0.3 muted palette — see BRAND.md v0.4.) */
  --color-glory-blue:   #0A2240; /* Deep navy anchor — nav, footer, occasional band */
  --color-ocean:        #1466B8; /* Bright ocean / Clipper blue — water, energy     */
  --color-steel-blue:   #1466B8; /* Legacy alias → ocean blue (UI, hover, links)    */
  --color-sky:          #E8F0F7; /* Pale sky tint — lightens light sections         */
  --color-patriot-red:  #C8102E; /* Bright flag red — the energetic accent, CTAs    */
  --color-muted-red:    #9E1B32; /* Darker red — red text/links on light            */
  --color-union-white:  #F6F8FB; /* Primary light background — cool, bright, fresh   */
  --color-white:        #FFFFFF; /* Card surfaces, text on dark, max contrast        */
  --color-silver:       #CDD6DE; /* Borders, subtle dividers — cool sea fog          */
  --color-charcoal:     #14202C; /* Body text on light — cool ink                    */

  /* Typography families — Source: BRAND.md v0.4 Section 5
     Libre Franklin = Franklin Gothic lineage (American, modern, conviction). */
  --font-display: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif; /* Headlines */
  --font-body:    'Source Serif 4', Georgia, serif;                      /* Long-form */
  --font-ui:      'Libre Franklin', system-ui, sans-serif;               /* Nav, UI   */

  /* Ghost custom font override vars (required by gscan GS051-CUSTOM-FONTS).
     Ghost admin may override; they default to our brand tokens. */
  --gh-font-heading: var(--font-display);
  --gh-font-body:    var(--font-body);

  /* Motion — Source: BRAND.md v0.4 (dynamism). All gated by prefers-reduced-motion. */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 0.7s;

  /* Type scale — Source: BRAND.md Section 5 (base 16px) */
  --text-display-xl: clamp(48px, 6vw, 72px); /* Playfair Bold / leading 1.1  */
  --text-display-l:  clamp(36px, 4vw, 48px); /* Playfair Bold / leading 1.15 */
  --text-h1:         32px;                   /* Playfair      / leading 1.2  */
  --text-h2:         24px;                   /* Playfair      / leading 1.3  */
  --text-body-lg:    18px;                   /* Source Serif  / leading 1.6  */
  --text-body:       16px;                   /* Source Serif  / leading 1.7  */
  --text-caption:    13px;                   /* Inter / track +0.03em        */
  --text-label:      11px;                   /* Inter / uppercase / track +0.08em */

  /* Spacing — Source: GUIDE.md Section 3
     --space-section is non-negotiable. Do not compress it. */
  --space-section:  96px;
  --space-block:    48px;
  --space-element:  24px;

  /* Layout — Source: GUIDE.md Section 3 (widened in v0.4 — sections run full-width) */
  --max-width:      1480px; /* Global container max-width     */
  --content-width:   720px; /* Long-form reading column width */

  /* Transitions */
  --transition-base: 0.18s ease;
}


/* ==========================================================================
   2. BASE RESET
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-union-white);
  color: var(--color-charcoal);
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* ==========================================================================
   3. TYPOGRAPHY — Full type scale
   Source: BRAND.md Section 5
   ========================================================================== */

/* Display XL — hero headlines only */
.text-display-xl {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Display L — section-level headlines */
.text-display-l {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1, .text-h1 {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.2;
}

h2, .text-h2 {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
}

h3, .text-h3 {
  font-family: var(--gh-font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

/* H4 uses Inter — functional, not literary */
h4, .text-h4 {
  font-family: var(--font-ui);
  font-size: var(--text-body-lg);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.6;
}

.text-caption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.text-label {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Pull quote — Playfair Display Italic, centered
   Centered text is reserved for pull quotes and single emphasis lines only.
   Source: BRAND.md Section 5 — Layout Principles */
.pull-quote {
  font-family: var(--gh-font-body);
  font-style: italic;
  font-size: var(--text-display-l);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.pull-quote::before {
  content: '\201C';
  color: var(--color-patriot-red);
}

.pull-quote::after {
  content: '\201D';
  color: var(--color-patriot-red);
}


/* ==========================================================================
   4. COLOR UTILITIES
   Source: BRAND.md Section 5 — Color Palette
   ========================================================================== */

/* Backgrounds */
.bg-glory-blue  { background-color: var(--color-glory-blue); }
.bg-union-white { background-color: var(--color-union-white); }
.bg-white       { background-color: var(--color-white); }
.bg-steel-blue  { background-color: var(--color-steel-blue); }

/* Text colors */
.text-white       { color: var(--color-white); }
.text-charcoal    { color: var(--color-charcoal); }
.text-glory-blue  { color: var(--color-glory-blue); }
.text-steel-blue  { color: var(--color-steel-blue); }
.text-patriot-red { color: var(--color-patriot-red); }
.text-muted-red   { color: var(--color-muted-red); }
.text-silver      { color: var(--color-silver); }


/* ==========================================================================
   5. LAYOUT CONTAINERS
   Source: GUIDE.md Section 3
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

/* Long-form reading column */
.container--content {
  max-width: var(--content-width);
}

/* Container padding is fluid (clamp) across breakpoints — see .container above. */


/* ==========================================================================
   6. SECTION RHYTHM
   Dark (glory-blue) and light (union-white) sections alternate.
   Never more than two consecutive same-tone sections.
   --space-section is 96px — do not compress.
   Source: BRAND.md Section 5 — Layout Principles
   ========================================================================== */

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--dark {
  background-color: var(--color-glory-blue);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark .text-display-xl,
.section--dark .text-display-l {
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-union-white);
  color: var(--color-charcoal);
}

.section--white {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* Sky — pale blue light section. Adds tonal variety without going dark. */
.section--sky {
  background-color: var(--color-sky);
  color: var(--color-charcoal);
}

/* Ocean — bright blue band for occasional energy/punctuation. */
.section--ocean {
  background-color: var(--color-ocean);
  color: var(--color-white);
}

.section--ocean h1, .section--ocean h2, .section--ocean h3, .section--ocean h4,
.section--ocean .text-display-xl, .section--ocean .text-display-l {
  color: var(--color-white);
}

/* Red rule above a section — Patriot Red used purposefully */
.section--ruled {
  border-top: 3px solid var(--color-patriot-red);
}

/* Eyebrow label above a section headline */
.section__label {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
  display: block;
}

/* On dark sections, labels read as Silver — Patriot Red is reserved for
   the .divider rule that follows, preserving its emphasis role. */
.section--dark .section__label {
  color: var(--color-silver);
}

/* Red rule divider below a label or before content */
.divider {
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
}


/* ==========================================================================
   7. BUTTONS
   Source: BRAND.md — CTAs use Patriot Red sparingly
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

/* Primary — Patriot Red. Use only where content warrants it. */
.btn--primary {
  background-color: var(--color-patriot-red);
  border-color: var(--color-patriot-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-muted-red);
  border-color: var(--color-muted-red);
  color: var(--color-white);
}

/* Secondary — white outline on dark backgrounds */
.btn--secondary {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-white);
  color: var(--color-glory-blue);
}

/* Ghost — charcoal outline on light backgrounds */
.btn--ghost {
  background-color: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--ghost:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}


/* ==========================================================================
   8. GHOST CONTENT — .gh-content
   Prose styles for rendered page/post content from Ghost admin.
   ========================================================================== */

.gh-content {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-charcoal);
}

.gh-content > * + * {
  margin-top: var(--space-element);
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
  margin-top: var(--space-block);
  margin-bottom: 0.5em;
}

.gh-content h1 {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h1);
  line-height: 1.2;
}

.gh-content h2 {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  line-height: 1.3;
}

.gh-content h3 {
  font-family: var(--gh-font-heading);
  font-size: 20px;
  line-height: 1.35;
}

.gh-content h4 {
  font-family: var(--font-ui);
  font-size: var(--text-body-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gh-content a {
  color: var(--color-muted-red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gh-content a:hover {
  color: var(--color-patriot-red);
}

.gh-content strong { font-weight: 700; }
.gh-content em     { font-style: italic; }

.gh-content ul,
.gh-content ol {
  padding-left: 1.5em;
  margin-top: var(--space-element);
}

.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: 0.4em; }

.gh-content blockquote {
  border-left: 3px solid var(--color-patriot-red);
  padding: var(--space-element) var(--space-element) var(--space-element) calc(var(--space-element) + 3px);
  margin-top: var(--space-block);
  margin-bottom: var(--space-block);
  font-family: var(--gh-font-heading);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--color-glory-blue);
  background-color: rgba(10, 34, 64, 0.04);
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--color-silver);
  margin-top: var(--space-block);
  margin-bottom: var(--space-block);
}

.gh-content figure {
  margin-top: var(--space-block);
  margin-bottom: var(--space-block);
}

.gh-content figcaption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  color: var(--color-silver);
  margin-top: 0.75em;
  letter-spacing: 0.03em;
}

.gh-content img {
  width: 100%;
  height: auto;
}

/* Callout card (Ghost Koenig callout card) */
.gh-content .kg-callout-card {
  border-left: 3px solid var(--color-patriot-red);
  padding: var(--space-element);
  background-color: rgba(10, 34, 64, 0.04);
  display: flex;
  gap: var(--space-element);
}


/* ==========================================================================
   9. GHOST KOENIG CARDS — Required width classes
   ========================================================================== */

.kg-width-wide {
  max-width: calc(var(--content-width) + 240px);
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* ==========================================================================
   10. ACCESSIBILITY
   Focus: Patriot Red, 2px outline, 2px offset — Source: GUIDE.md Section 9
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-patriot-red);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Skip to main content — first focusable element in DOM */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-element);
  z-index: 9999;
  background-color: var(--color-patriot-red);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  transition: top 0.15s ease;
}

.skip-to-content:focus {
  top: var(--space-element);
}


/* ==========================================================================
   11. SITE HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--color-glory-blue);
  z-index: 100;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* Home: transparent overlay on the hero, solid once scrolled past it.
   A faint top gradient keeps the white nav legible over bright sky. */
.home-template .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgba(8,22,38,0.55), rgba(8,22,38,0));
}
.home-template .site-header.is-scrolled {
  background-color: var(--color-glory-blue);
  background-image: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand lockup — globe mark + wordmark */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.site-header__logo:hover .site-header__logo-mark {
  transform: rotate(-8deg);
}
.site-header__logo-text {
  font-family: var(--gh-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1.05;
  transition: color var(--transition-base);
}
.site-header__logo:hover .site-header__logo-text {
  color: var(--color-silver);
}

/* Desktop navigation */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color var(--transition-base);
}

/* Underline reveal on hover / active — Patriot Red */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-patriot-red);
  transition: width var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link--current {
  color: var(--color-white);
}

.site-nav__link:hover::after,
.site-nav__link--current::after {
  width: 100%;
}

/* Hamburger toggle — visible on mobile only */
.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-white);
}

/* Three-line icon via ::before, middle, and ::after */
.site-header__menu-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.site-header__menu-toggle span::before,
.site-header__menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition-base), top var(--transition-base);
}

.site-header__menu-toggle span::before { top: -7px; }
.site-header__menu-toggle span::after  { top:  7px; }

/* X state when open */
.site-header__menu-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.site-header__menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav — hidden until toggled */
@media (max-width: 767px) {
  .site-header__menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-glory-blue);
    border-top: 1px solid var(--color-steel-blue);
    padding: 8px 0 var(--space-element);
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--space-element);
  }

  .site-nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(192, 192, 192, 0.12);
  }

  .site-nav__link {
    display: block;
    padding: 16px 0;
  }

  .site-nav__link::after {
    display: none;
  }
}


/* ==========================================================================
   12. SITE FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-glory-blue);
  color: var(--color-silver);
  border-top: 1px solid var(--color-steel-blue);
}

.site-footer__upper {
  padding-top: var(--space-block);
  padding-bottom: var(--space-block);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-block);
}

.site-footer__brand {
  font-family: var(--gh-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  transition: color var(--transition-base);
}
.site-footer__brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-footer__brand:hover {
  color: var(--color-silver);
}

/* The brand's founding line — origin statement */
.site-footer__tagline {
  font-family: var(--gh-font-body);
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--color-silver);
  max-width: 360px;
  line-height: 1.6;
  opacity: 0.75;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.site-footer__link {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer__link:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  padding-top: var(--space-element);
  padding-bottom: var(--space-element);
  border-top: 1px solid rgba(192, 192, 192, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-element);
}

.site-footer__copy {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  color: var(--color-silver);
  opacity: 0.5;
}

@media (max-width: 767px) {
  .site-footer__upper {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }

  .site-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   13. CTA BLOCK — .cta-block
   Reusable call-to-action section. Supports dark and light variants.
   ========================================================================== */

.cta-block {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.cta-block--dark {
  background-color: var(--color-glory-blue);
  color: var(--color-white);
}

.cta-block--light {
  background-color: var(--color-union-white);
  color: var(--color-charcoal);
}

.cta-block__inner {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-element);
  padding-right: var(--space-element);
  text-align: center;
}

.cta-block__label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
}

.cta-block__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-element);
}

.cta-block--dark .cta-block__headline  { color: var(--color-white); }
.cta-block--light .cta-block__headline { color: var(--color-glory-blue); }

.cta-block__subtext {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  margin-bottom: calc(var(--space-element) * 1.5);
  opacity: 0.85;
}

.cta-block__actions {
  display: flex;
  gap: var(--space-element);
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   14. HOME PAGE — home.hbs
   ========================================================================== */

/* Hero — full-width, typography-led, origin statement
   Min-height keeps the section tall on large viewports without
   being viewport-locked on short screens or mobile. */
.home-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-section) * 1.5);
  padding-bottom: calc(var(--space-section) * 1.5);
}

.home-hero .container {
  width: 100%;
}

.home-hero__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  max-width: 900px;
  margin-top: var(--space-element);
  margin-bottom: var(--space-block);
}

.home-hero__sub {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  color: var(--color-silver);
  max-width: 560px;
  line-height: 1.6;
}

/* Solid color block — fills image slots per design rules.
   Real photography replaces these when assets are available. */
.media-block {
  aspect-ratio: 4 / 5;
}

.media-block--dark  { background-color: var(--color-glory-blue); }
.media-block--light { background-color: var(--color-union-white); border: 1px solid var(--color-silver); }
.media-block--steel { background-color: var(--color-steel-blue); }

/* Two-column layout: equal halves or weighted variants */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
  align-items: center;
}

.two-col--wide-left  { grid-template-columns: 3fr 2fr; }
.two-col--wide-right { grid-template-columns: 2fr 3fr; }

/* Layered identity — credential list */
.identity-credentials {
  margin-top: var(--space-block);
  list-style: none;
  border-top: 1px solid var(--color-silver);
}

.identity-credential {
  display: flex;
  align-items: baseline;
  gap: var(--space-element);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-silver);
}

.identity-credential__role {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-glory-blue);
  flex-shrink: 0;
  min-width: 200px;
}

.identity-credential__note {
  font-family: var(--gh-font-body);
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--color-charcoal);
  opacity: 0.65;
  line-height: 1.5;
}

/* Stat block — campaign numbers placeholder */
.stat-block {
  margin-top: var(--space-block);
  display: flex;
  gap: var(--space-block);
}

.stat {
  border-left: 2px solid var(--color-patriot-red);
  padding-left: var(--space-element);
}

.stat__number {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.stat__label {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  margin-top: 6px;
}

/* Section body copy helpers (used to space paragraphs without inline style) */
.section-body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  max-width: 560px;
}

.section-body + .section-body {
  margin-top: var(--space-element);
}

.section-body--white { color: var(--color-white); }
.section-body--silver { color: var(--color-silver); }
.section-body--charcoal { color: var(--color-charcoal); }

/* Entry points — three-column audience grid */
.entry-points__header {
  max-width: 560px;
}

.entry-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--space-element) * 1.5);
  margin-top: var(--space-block);
}

.entry-card {
  padding-top: var(--space-element);
  border-top: 3px solid var(--color-patriot-red);
}

.entry-card__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-glory-blue);
  margin-top: 12px;
  margin-bottom: var(--space-element);
}

.entry-card__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-charcoal);
  margin-bottom: var(--space-element);
}

.entry-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted-red);
  text-decoration: none;
  transition: color var(--transition-base);
}

.entry-card__link::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-base);
}

.entry-card__link:hover { color: var(--color-patriot-red); }
.entry-card__link:hover::after { transform: translateX(4px); }


/* ==========================================================================
   HOME PAGE — responsive
   ========================================================================== */

@media (max-width: 767px) {
  .home-hero {
    min-height: unset;
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .two-col,
  .two-col--wide-left,
  .two-col--wide-right {
    grid-template-columns: 1fr;
  }

  /* Media blocks stack after content on mobile */
  .two-col .media-block {
    aspect-ratio: 16 / 9;
  }

  .identity-credential {
    flex-direction: column;
    gap: 4px;
  }

  .identity-credential__role {
    min-width: unset;
  }

  .entry-points__grid {
    grid-template-columns: 1fr;
  }

  .stat-block {
    flex-direction: column;
    gap: var(--space-element);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .entry-points__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Third card spans full width at tablet */
  .entry-card:nth-child(3) {
    grid-column: span 2;
    max-width: 50%;
  }
}


/* ==========================================================================
   15. STORY PAGE — page-story.hbs
   Long-form reading layout. Readability above everything else.
   720px column. No sidebars. No distractions.
   ========================================================================== */

/* Dark editorial header — title and orientation, then step aside */
.story-header {
  background-color: var(--color-glory-blue);
  padding-top: calc(var(--space-section) * 1.25);
  padding-bottom: calc(var(--space-section) * 1.25);
  border-bottom: 3px solid var(--color-patriot-red);
}

.story-header__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 640px;
  margin-top: var(--space-element);
}

.story-header__sub {
  font-family: var(--gh-font-body);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--color-silver);
  margin-top: var(--space-element);
  opacity: 0.8;
}

/* Reading body — light, generous, nothing competes with the text */
.story-body {
  background-color: var(--color-union-white);
  padding-top: calc(var(--space-section) * 1.25);
  padding-bottom: calc(var(--space-section) * 1.5);
}

/* The reading column. Everything lives inside here.
   max-width: 720px keeps line length comfortable at 18px body text. */
.story-reading-col {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-element);
  padding-right: var(--space-element);
}

/* Body paragraphs — Source Serif 4, 18px, 1.8 leading for long-form */
.story-p {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.85;
  color: var(--color-charcoal);
  margin-top: calc(var(--space-element) * 1.25);
}

/* Opening paragraph — dropcap signals "this is the long read" */
.story-intro {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.85;
  color: var(--color-charcoal);
}

.story-intro::first-letter {
  font-family: var(--gh-font-heading);
  font-size: 5em;
  font-weight: 700;
  color: var(--color-patriot-red);
  float: left;
  line-height: 0.80;
  margin-right: 0.06em;
  margin-top: 0.05em;
}

/* Chapter markers — typographic, not decorative */
.story-chapter {
  margin-top: calc(var(--space-section) * 1.1);
  padding-top: var(--space-block);
  border-top: 1px solid var(--color-silver);
}

.story-chapter__number {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-patriot-red);
}

.story-chapter__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-glory-blue);
  margin-top: var(--space-element);
}

/* Pull quote — breaks wider than the reading column to create visual rhythm.
   The negative margin technique requires the parent to have overflow: visible
   (the default). 80px break on each side = 160px total beyond 720px column. */
.story-pull-quote {
  position: relative;
  width: calc(100% + 160px);
  margin-left:  -80px;
  margin-right: -80px;
  margin-top:    var(--space-block);
  margin-bottom: var(--space-block);
  padding: var(--space-block) 80px;
  border-top: 1px solid var(--color-silver);
  border-bottom: 1px solid var(--color-silver);
  text-align: center;
  font-family: var(--gh-font-heading);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-glory-blue);
}

/* Large opening quotation mark — editorial weight, Patriot Red */
.story-pull-quote::before {
  content: '\201C';
  display: block;
  font-size: 3.5em;
  line-height: 1;
  color: var(--color-patriot-red);
  margin-bottom: -0.15em;
  font-style: normal;
}

/* Attribution line below a pull quote — if needed */
.story-pull-quote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  margin-top: var(--space-element);
}

/* Closing line — opens outward to the reader */
.story-closing {
  margin-top: calc(var(--space-section) * 0.75);
  padding-top: var(--space-block);
  border-top: 3px solid var(--color-patriot-red);
  font-family: var(--gh-font-heading);
  font-style: italic;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-glory-blue);
}

/* ==========================================================================
   STORY PAGE — responsive
   ========================================================================== */

@media (max-width: 900px) {
  /* Pull quotes stop bleeding out once viewport narrows enough
     that 80px overhang causes layout issues */
  .story-pull-quote {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--space-element);
    padding-right: var(--space-element);
  }
}

@media (max-width: 767px) {
  .story-intro::first-letter {
    font-size: 3.5em;
  }

  .story-chapter__title {
    font-size: var(--text-h2);
  }
}


/* ==========================================================================
   16. PARTNERS PAGE — page-partners.hbs
   Audience 3 only (GUIDE.md Section 6). Executive register.
   One job: move a decision-maker from curiosity to inquiry.
   ========================================================================== */

/* Hero — dark, weighty opening. Not "sponsor us." */
.partners-hero {
  padding-top: calc(var(--space-section) * 1.4);
  padding-bottom: calc(var(--space-section) * 1.4);
}

.partners-hero__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  max-width: 880px;
  margin-top: var(--space-element);
  margin-bottom: var(--space-block);
}

.partners-hero__sub {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-silver);
  max-width: 600px;
}

/* The case for partnership — three executive points */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-block);
  margin-top: var(--space-block);
  counter-reset: case-counter;
}

.case-point {
  counter-increment: case-counter;
  padding-top: var(--space-element);
  border-top: 1px solid var(--color-silver);
}

.case-point__number {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-patriot-red);
  line-height: 1;
}

.case-point__number::before {
  content: counter(case-counter, decimal-leading-zero);
}

.case-point__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-glory-blue);
  margin-top: var(--space-element);
  margin-bottom: 12px;
}

.case-point__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-charcoal);
}

/* Expedition Partner Program — featured, distinct from tiers.
   Framed as a leadership delivery mechanism. */
.epp__lead {
  max-width: 600px;
}

.epp__deliverables {
  margin-top: var(--space-block);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-block) var(--space-block);
}

.epp__item {
  border-left: 2px solid var(--color-patriot-red);
  padding-left: var(--space-element);
}

.epp__item-title {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 10px;
}

.epp__item-body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-silver);
}

/* Sponsorship tiers — outcomes, not deliverable lists */
.tier-stack {
  margin-top: var(--space-block);
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}

.tier {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-block);
  align-items: start;
  background-color: var(--color-white);
  border: 1px solid var(--color-silver);
  border-left: 4px solid var(--color-steel-blue);
  padding: var(--space-block);
  transition: border-left-color var(--transition-base), transform var(--transition-base);
}

.tier:hover {
  border-left-color: var(--color-patriot-red);
  transform: translateX(4px);
}

/* Platinum carries the most weight — Patriot Red rule by default */
.tier--platinum {
  border-left-color: var(--color-patriot-red);
}

.tier__name {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-patriot-red);
}

.tier__frame {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-glory-blue);
  margin-top: 8px;
}

.tier__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* Proof — logo / quote placeholder grid */
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-element);
  margin-top: var(--space-block);
}

/* Solid color block standing in for partner logos.
   Replace with real logo marks when available. */
.proof__logo {
  aspect-ratio: 3 / 2;
  background-color: var(--color-steel-blue);
  opacity: 0.35;
  border: 1px solid var(--color-silver);
}

.proof__note {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
  color: var(--color-silver);
  margin-top: var(--space-element);
}

/* ==========================================================================
   PARTNERS PAGE — responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }

  .proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .partners-hero {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .epp__deliverables {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }

  .tier {
    grid-template-columns: 1fr;
    gap: var(--space-element);
    padding: var(--space-element);
  }
}


/* ==========================================================================
   17. DEFAULT PAGE TEMPLATE — page.hbs
   Serves Mission and any simple static page without a custom template.
   ========================================================================== */

/* Dark header — title, optional excerpt, optional feature image */
.page-header {
  background-color: var(--color-glory-blue);
  padding-top: calc(var(--space-section) * 1.1);
  padding-bottom: calc(var(--space-section) * 1.1);
  border-bottom: 3px solid var(--color-patriot-red);
}

.page-header__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 720px;
  margin-top: var(--space-element);
}

.page-header__excerpt {
  font-family: var(--gh-font-body);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--color-silver);
  max-width: 600px;
  margin-top: var(--space-element);
  line-height: 1.6;
  opacity: 0.8;
}

.page-header__feature-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-bottom: var(--space-block);
}

/* Page content — unconstrained wrapper so Ghost HTML card sections
   can use full-width .section--dark / .section--light layouts.
   Prose elements (p, h2, blockquote, etc.) emitted directly by Ghost
   are constrained individually so they remain readable without sections. */
.page-content {
  background-color: var(--color-union-white);
}

/* Auto-reading-width for naked prose — applies when there are no
   HTML card section wrappers (simple page body). */
.page-content > p,
.page-content > ul,
.page-content > ol,
.page-content > blockquote,
.page-content > hr,
.page-content > figure {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-element);
  padding-right: var(--space-element);
  margin-top: var(--space-element);
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-charcoal);
}

.page-content > h1,
.page-content > h2,
.page-content > h3,
.page-content > h4 {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-element);
  padding-right: var(--space-element);
  margin-top: var(--space-block);
  font-family: var(--gh-font-heading);
  color: var(--color-glory-blue);
}

/* Ghost HTML card — full-width breakout for structured section layouts */
.page-content > .kg-html-card {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Koenig card base padding for prose-adjacent cards */
.page-content > .kg-card:not(.kg-html-card) {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-element);
  padding-right: var(--space-element);
  margin-top: var(--space-block);
}


/* ==========================================================================
   18. CAMPAIGN PAGE — page-campaign.hbs
   Two jobs: status/action above the fold, content feed below.
   Audience 1 (general public). Mission 1 (public donation campaign).
   Never bleed into Partners / Mission 2 language or aesthetics.
   ========================================================================== */

/* Hero — commanding, dark, campaign status above the fold */
.campaign-hero__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  max-width: 800px;
  margin-top: var(--space-element);
  margin-bottom: var(--space-block);
}

.campaign-hero__sub {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  color: var(--color-silver);
  max-width: 560px;
  line-height: 1.6;
}

/* Extra vertical separation in the hero context — stat block gets more room */
.campaign-stat-block {
  margin-top: calc(var(--space-block) * 1.5);
}

.campaign-hero__actions {
  display: flex;
  gap: var(--space-element);
  flex-wrap: wrap;
  margin-top: var(--space-block);
}

/* Support section — two columns, vertical rule between */
.campaign-support__header {
  max-width: 560px;
}

.campaign-support__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
  margin-top: var(--space-block);
  align-items: start;
}

.support-col__method {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
}

.support-col__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-charcoal);
  margin-bottom: var(--space-element);
}

/* Vertical divider on the follow/subscribe column */
.support-col--divide {
  padding-left: var(--space-block);
  border-left: 1px solid var(--color-silver);
}

/* Ghost native members subscribe form — data-members-form="subscribe"
   Ghost's Portal JavaScript handles the submission; no custom JS needed. */
.subscribe-form__row {
  display: flex;
  gap: 8px;
  margin-top: var(--space-element);
  max-width: 420px;
}

.subscribe-form__input {
  flex: 1;
  min-width: 0; /* prevents flex overflow on narrow containers */
  font-family: var(--font-ui);
  font-size: var(--text-body);
  padding: 13px 16px;
  border: 1px solid var(--color-silver);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.subscribe-form__input::placeholder {
  color: var(--color-silver);
}

.subscribe-form__input:focus {
  outline: 2px solid var(--color-patriot-red);
  outline-offset: 0;
  border-color: transparent;
}

/* Success and error states — Ghost sets display:none by default,
   shows them via its front-end script on form submission */
.subscribe-form__feedback {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
}

.subscribe-form__feedback--error   { color: var(--color-patriot-red); }
.subscribe-form__feedback--success { color: var(--color-glory-blue); }

/* Dispatch feed section */
.campaign-feed__header {
  max-width: 560px;
  margin-bottom: var(--space-block);
}

.campaign-feed__footer {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--color-silver);
  display: flex;
  justify-content: center;
}

.feed-all-link {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-red);
  text-decoration: none;
  transition: color var(--transition-base);
}

.feed-all-link:hover {
  color: var(--color-patriot-red);
}

/* Empty state — shown when no campaign posts have been published yet */
.feed-empty {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  color: var(--color-charcoal);
  opacity: 0.6;
  max-width: 480px;
  line-height: 1.6;
  margin-top: var(--space-block);
}

/* .section--white shares .feed-empty context when on campaign page */
.section--white .feed-empty {
  opacity: 0.55;
}

/* Events placeholder — italic announcement, replaced with real listings */
.events-announce {
  font-family: var(--gh-font-body);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--color-silver);
  margin-top: var(--space-block);
  opacity: 0.7;
}

/* Screen-reader-only utility — for visually hidden but accessible labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   CAMPAIGN PAGE — responsive
   ========================================================================== */

@media (max-width: 767px) {
  .campaign-hero__headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  /* Support columns stack on mobile */
  .campaign-support__cols {
    grid-template-columns: 1fr;
  }

  /* Divider swaps from vertical rule to horizontal rule on mobile */
  .support-col--divide {
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-block);
    border-top: 1px solid var(--color-silver);
  }

  /* Subscribe form: stack input above button on mobile */
  .subscribe-form__row {
    flex-direction: column;
    max-width: none;
  }

  .subscribe-form__btn {
    width: 100%;
  }
}


/* ==========================================================================
   19. POST CARD + TAG FEED
   post-card.hbs partial — used on campaign page feed and tag archives.
   tag.hbs — archive header + feed grid + pagination.
   ========================================================================== */

/* Tag archive header — dark, brand voice description as headline */
.feed-header {
  padding-top: calc(var(--space-section) * 1.25);
  padding-bottom: calc(var(--space-section) * 1.25);
  border-bottom: 3px solid var(--color-patriot-red);
}

.feed-header__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 640px;
  margin-top: var(--space-element);
}

/* Three-column post grid — responsive down to one column */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-block);
}

/* Post card — white surface, clean border, no clutter */
.post-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-silver);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
  border-color: var(--color-steel-blue);
  box-shadow: 0 4px 20px rgba(10, 34, 64, 0.08);
}

/* Image link — removed from tab order and AT; title link is the entry point */
.post-card__image-link {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.post-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.025);
}

/* Solid color placeholder — stands in for feature image when none is set.
   Uses glory-blue at low opacity — matches dark brand tone. */
.post-card__image-placeholder {
  aspect-ratio: 16 / 9;
  background-color: var(--color-glory-blue);
  opacity: 0.12;
}

.post-card__body {
  padding: var(--space-element);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Tag label — Patriot Red eyebrow above the title */
.post-card__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-patriot-red);
  margin-bottom: 10px;
}

.post-card__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.post-card__title-link {
  color: var(--color-glory-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

.post-card__title-link:hover {
  color: var(--color-muted-red);
}

/* Excerpt — clamped to 3 lines; flex: 1 pushes meta to bottom of card */
.post-card__excerpt {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-charcoal);
  opacity: 0.7;
  flex: 1;
  margin-bottom: var(--space-element);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row — date · read time, always at card bottom */
.post-card__meta {
  display: flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
  color: var(--color-silver);
  margin-top: auto;
}

.post-card__sep {
  opacity: 0.5;
}

/* Pagination — Ghost's {{pagination}} outputs .newer-posts, .older-posts, .page-number */
.feed-pagination {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--color-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-block);
}

.feed-pagination .newer-posts,
.feed-pagination .older-posts {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-red);
  text-decoration: none;
  transition: color var(--transition-base);
}

.feed-pagination .newer-posts:hover,
.feed-pagination .older-posts:hover {
  color: var(--color-patriot-red);
}

.feed-pagination .page-number {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  color: var(--color-silver);
  letter-spacing: 0.03em;
}


/* ==========================================================================
   POST CARD + TAG FEED — responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-element);
  }
}

@media (max-width: 767px) {
  .feed-header {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }

  .feed-pagination {
    flex-direction: column;
    gap: var(--space-element);
  }
}


/* ==========================================================================
   20. CONTACT PAGE — page-contact.hbs
   One job: route three inquiry types cleanly.
   No decoration beyond what the structure requires.
   ========================================================================== */

/* Hero — dark, restrained. Label, headline, subtitle. Nothing else. */
.contact-hero {
  padding-top: calc(var(--space-section) * 1.1);
  padding-bottom: calc(var(--space-section) * 1.1);
  border-bottom: 3px solid var(--color-patriot-red);
}

.contact-hero__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-display-l);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-white);
  max-width: 720px;
  margin-top: var(--space-element);
}

.contact-hero__sub {
  font-family: var(--gh-font-body);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-silver);
  max-width: 560px;
  margin-top: var(--space-element);
}

/* Three-column inquiry grid — collapses to single column at 1023px */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-block);
  align-items: start;
}

/* Each inquiry column — top border separates from section background */
.contact-inquiry {
  padding-top: var(--space-element);
  border-top: 3px solid var(--color-patriot-red);
}

/* Patriot Red uppercase type label */
.contact-inquiry__label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
}

.contact-inquiry__headline {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-glory-blue);
  margin-bottom: 12px;
}

.contact-inquiry__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-charcoal);
  margin-bottom: var(--space-element);
}

.contact-inquiry__body a {
  color: var(--color-muted-red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition-base);
}

.contact-inquiry__body a:hover {
  color: var(--color-patriot-red);
}

/* Embed container — Tally iframe or script lands here.
   min-height reserves visible space before the embed loads. */
.contact-inquiry__embed {
  min-height: 40px;
}


/* ==========================================================================
   CONTACT PAGE — responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-block);
  }
}

@media (max-width: 767px) {
  .contact-hero {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }
}


/* ==========================================================================
   21. DYNAMISM LAYER — Motion · Photography · Course Line   (BRAND.md v0.4)
   Photo-led, patriotic-bright, in motion. Every animation is opt-out under
   prefers-reduced-motion. The course rail + plotted hero route are the
   brand signature: a circumnavigation, plotted and underway.
   ========================================================================== */

/* --- 21.1  Scroll reveal -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--reveal-duration) var(--ease-out),
              transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- 21.2  Photography frames (supersede the solid .media-block) ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background-color: var(--color-glory-blue);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}
.photo--portrait  { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--wide      { aspect-ratio: 16 / 9; }

/* Patriot-red base bar — a small, earned accent on framed photos */
.photo--accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 5px;
  background-color: var(--color-patriot-red);
  z-index: 1;
}
/* Subtle zoom on hover for interactive photo links */
@media (prefers-reduced-motion: no-preference) {
  a.photo:hover img,
  .photo--hover:hover img { transform: scale(1.04); }
}

.photo__caption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
  color: var(--color-ocean);
  margin-top: 12px;
}

/* --- 21.3  HERO — photo-led ---------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  background-color: var(--color-glory-blue);
}
.home-hero__media { position: absolute; inset: 0; z-index: 0; }
.home-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__media img { animation: kenburns 24s ease-out both; }
}
@keyframes kenburns {
  from { transform: scale(1.09); }
  to   { transform: scale(1.0); }
}
/* Lighter, open scrim — bright sky/horizon reads through (invitation, not war
   doc). Dark only where the text sits, low in the frame. */
.home-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,
      rgba(8,22,38,0.85) 0%,
      rgba(8,22,38,0.48) 24%,
      rgba(8,22,38,0.10) 52%,
      rgba(8,22,38,0.00) 80%);
}
.home-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-section);
  padding-bottom: var(--space-block);
}
.home-hero__headline {
  font-size: var(--text-display-xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.home-hero__tagline {
  font-family: var(--font-ui);
  font-size: var(--text-body-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-white);
  margin-top: var(--space-block);
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-hero__tagline::before {
  content: "";
  width: 34px; height: 3px;
  background-color: var(--color-patriot-red);
  flex-shrink: 0;
}

/* Staggered entrance for hero text on load */
@media (prefers-reduced-motion: no-preference) {
  .home-hero__load > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 0.85s var(--ease-out) forwards;
  }
  .home-hero__load > *:nth-child(1) { animation-delay: 0.15s; }
  .home-hero__load > *:nth-child(2) { animation-delay: 0.30s; }
  .home-hero__load > *:nth-child(3) { animation-delay: 0.45s; }
  .home-hero__load > *:nth-child(4) { animation-delay: 0.60s; }
  .home-hero__load > *:nth-child(5) { animation-delay: 0.75s; }
}

/* Hero actions — the invitation to act (support / follow) */
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-element);
  margin-top: var(--space-block);
}
.home-hero__tagline { margin-top: var(--space-element); }
@keyframes heroRise {
  to { opacity: 1; transform: none; }
}

/* Hero eyebrow with a plotted-route micro graphic */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
}
.hero-eyebrow__route { width: 64px; height: 14px; flex-shrink: 0; overflow: visible; }
.hero-eyebrow__route path {
  fill: none;
  stroke: var(--color-patriot-red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow__route path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: plot 1.6s var(--ease-out) 0.4s forwards;
  }
}
@keyframes plot { to { stroke-dashoffset: 0; } }
.hero-eyebrow__route circle {
  fill: var(--color-patriot-red);
  opacity: 0;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow__route circle { animation: ping 0.5s ease-out 1.9s forwards; }
}
@keyframes ping { to { opacity: 1; } }

/* Scroll cue */
.home-hero__cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__cue { animation: bob 2.4s ease-in-out infinite; }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* --- 21.4  COURSE LINE — the signature: a route plotted across the page ---
   A dashed red chart-course that zig-zags down the site, hugging the edges and
   crossing at section seams, drawing in as you scroll. Built + sized by JS
   (.course-svg appended to <main> on the home page). Overlay, never blocks
   clicks. Legibility halo via paint-order so it reads over any background. */
.course-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 60;
  pointer-events: none;
  overflow: visible;
}
.course-svg__track {
  fill: none;
  stroke: rgba(20,32,44,0.14);
  stroke-width: 2;
  stroke-dasharray: 7 6;
}
.course-svg__plot {
  fill: none;
  stroke: var(--color-patriot-red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.30));
}
.course-svg__dot {
  fill: var(--color-patriot-red);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.course-svg__dot--active {
  stroke: rgba(200,16,46,0.30);
  stroke-width: 6;
}
/* The moving "vessel" marker that rides the leading edge of the plot */
.course-svg__vessel {
  fill: var(--color-white);
  stroke: var(--color-patriot-red);
  stroke-width: 2;
}
@media (max-width: 767px) { .course-svg { display: none; } }

/* --- 21.5  VALUES TRIAD — Conviction · Compassion · Courage -------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-block);
  margin-top: var(--space-block);
}
.value-card { position: relative; padding-top: var(--space-element); }
.value-card__num {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-ocean);
}
.value-card__title {
  font-family: var(--gh-font-heading);
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-glory-blue);
  margin: 6px 0 12px;
}
.section--dark .value-card__title,
.section--ocean .value-card__title { color: var(--color-white); }
.value-card__body {
  font-family: var(--gh-font-body);
  font-size: var(--text-body);
  line-height: 1.65;
}
.value-card__rule {
  width: 40px; height: 3px;
  background-color: var(--color-patriot-red);
  margin-bottom: var(--space-element);
}

/* --- 21.6  Count-up stat hook (uses existing .stat) ---------------------- */
.stat__number[data-count] { font-variant-numeric: tabular-nums; }

/* --- 21.7  Hero responsive ----------------------------------------------- */
@media (max-width: 767px) {
  .home-hero { min-height: 82vh; }
  .home-hero__media img { object-position: center 38%; }
  .values-grid { grid-template-columns: 1fr; gap: var(--space-element); }
  .home-hero__cue { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .values-grid { grid-template-columns: 1fr; }
}


/* Spacing utility — top margin of one block (used after stat blocks, etc.) */
.mt-block { margin-top: var(--space-block); }


/* Home main is the positioning context for the course-line overlay */
.home-template main { position: relative; }


/* Logo lockup fits narrow screens */
@media (max-width: 480px) {
  .site-header__logo-mark { width: 34px; height: 34px; }
  .site-header__logo-text { font-size: 16px; }
}
