/* ============================================================
   Source Canada — Ghost theme stylesheet
   v0.3.10 settings-persistence test build
   ============================================================ */


/* ----------------------------------------
   0. Web fonts (self-hosted, OFL licensed)
   Variable fonts so one file covers all weights per family.
   ---------------------------------------- */

@font-face {
    font-family: 'Stack Sans Headline';
    src: url('../fonts/StackSansHeadline-VariableFont_wght.woff2') format('woff2-variations'),
         url('../fonts/StackSansHeadline-VariableFont_wght.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2-variations'),
         url('../fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2') format('woff2-variations'),
         url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}


/* ----------------------------------------
   1. Design tokens
   ---------------------------------------- */

:root {
    /* Colors (sampled from final design PNG) */
    --cream:     #FAF8F4;  /* page background */
    --white:     #FFFFFF;
    --ink:       #19201F;  /* primary text */
    --black:     #000000;
    --line:      rgba(25, 32, 31, 0.12);

    /* Type families. Now using the actual designer-supplied fonts.
       --gh-font-heading and --gh-font-body are Ghost admin overrides
       that let publishers swap fonts from Settings → Design without
       editing CSS. We defer to them when set, otherwise use our defaults. */
    --gh-font-heading: 'Stack Sans Headline', system-ui, -apple-system, sans-serif;
    --gh-font-body:    'Space Grotesk', system-ui, -apple-system, sans-serif;

    --font-sans:    var(--gh-font-body);
    --font-display: var(--gh-font-heading);
    --font-italic:  'Playfair Display', Georgia, serif;

    /* Type sizes (retuned 2026-05-01 against the latest designer pass).
       --fs-body-lg shrunk from 22 → 18 to make all secondary copy lighter.
       --fs-heading shrunk ~20% (36 → 29).
       --fs-display-xl shrunk ~30% (88 → 62). */
    --fs-eyebrow:    14px;
    --fs-body:       17px;
    --fs-body-lg:    18px;   /* secondary lead/body text across all sections */
    --fs-heading:    29px;   /* section headings (Context/Mission scale) */
    --fs-display:    72px;   /* Hero headline */
    --fs-display-xl: 62px;   /* Section display headlines (ACTIONS SPEAK, JOIN, READY) */

    /* Spacing scale.
       Tightened in second pass: the design uses less breathing room
       between sections than the original Adobe XD canvas height suggested. */
    --sp-1:  8px;
    --sp-2:  16px;
    --sp-3:  24px;
    --sp-4:  32px;
    --sp-5:  48px;
    --sp-6:  64px;
    --sp-7:  80px;
    --sp-8:  96px;
    --sp-9:  140px;

    /* Layout */
    --container-max: 1600px;
    --content-max:   1200px;
    --side-pad:      48px;

    /* Blog/article image treatment (added 2026-05-03). The designer bakes
       saturation into exported image files; CSS handles the consistent
       darkness multiplier and outline so they apply uniformly across
       feature images, content images, and card thumbnails. */
    --img-darken:  brightness(0.85);
    --img-border:  1px solid var(--ink);
}


/* ----------------------------------------
   2. Reset + base
   ---------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream); /* warm cream from the design */
    overflow-x: hidden; /* contain any full-bleed photos within viewport */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em 0;
}


/* ----------------------------------------
   3. Layout helpers
   ---------------------------------------- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--side-pad);
}

.container-narrow {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--side-pad);
}

/* Italic emphasis — applied via .italic class OR via plain <i> tag.
   The <i> approach lets editable text fields contain inline italic markup
   without users having to write a class attribute. */
.italic,
.hero__headline i,
.section-heading i,
.display-headline i,
.lead i,
.pull-quote i,
.newsletter-bar__title i,
.post-card__title i {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
}


/* ----------------------------------------
   4. Reusable building blocks
   ---------------------------------------- */

/* Section eyebrow label (left column): no brackets, matches design.
   Brackets stay on .sub-eyebrow (the [ TAG ] markers in body content). */
.eyebrow {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-block;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
    white-space: nowrap;
}

.btn--filled-light {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}
.btn--filled-light:hover {
    background: transparent;
    color: var(--white);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn--outline-light:hover {
    background: var(--white);
    color: var(--ink);
}

.btn--filled-dark {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn--filled-dark:hover {
    background: transparent;
    color: var(--ink);
}


/* ----------------------------------------
   5. Site header (used on post/page templates,
      and overlaid on hero on homepage)
   ---------------------------------------- */

.site-header {
    width: 100%;
    padding: 32px 0;
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.site-header > .container,
.hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent;
    color: var(--white);
    border-bottom: none;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.site-logo__img {
    display: block;
    height: 28px;
    width: auto;
}

/* Footer logo: force pure-white silhouette regardless of source colors.
   `brightness(0)` flattens the asset to black, then `invert(1)` flips it to white. */
.site-logo__img--inverted {
    filter: brightness(0) invert(1);
}

/* Ghost's {{navigation}} renders a <ul class="nav">.
   Style it as a clean horizontal row in uppercase. */
.site-nav .nav,
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.site-nav a {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    transition: opacity 180ms ease;
}

.site-nav a:hover {
    opacity: 0.7;
}


/* ----------------------------------------
   6. Section: Hero
   ---------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    height: 993px; /* matches XD viewport */
    max-height: 100vh;
    min-height: 720px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* For the Toronto-from-CN-Tower portrait crop: keep the dense
       skyscraper cluster (mid-band of the image) in frame, not the
       sky/horizon at the top. */
    object-position: center 60%;
    /* Grayscale + extra brightness clamp so high-contrast photos
       (e.g. city-at-night with lots of light points) don't glare
       through the overlay. */
    filter: grayscale(1) brightness(0.75);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--black);
    /* Bumped from 0.57 → 0.65 for a darker hero on bright source photos. */
    opacity: 0.65;
}

.hero__content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    padding-top: 120px; /* breathing room below the nav */
}

.hero__headline {
    /* Hero uses Stack Sans Headline at a Light weight to match the design.
       The italic emphasis words swap to Playfair Display Italic. */
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-display);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 var(--sp-3) 0;
    color: var(--white);
}

/* When the hero headline comes from a Ghost Page's content body, Koenig
   wraps each paragraph in <p>. Style those <p> elements like the headline
   itself: no margin, inherit the display font and size. */
.hero__headline p {
    margin: 0;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.hero__headline em,
.hero__headline i {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
}

.hero__headline .italic {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    /* Match sans optical size 1:1 (no bump) */
    font-size: 1em;
}

.hero__subhead {
    /* Body sans (Space Grotesk) — letterforms in the high-res designer PNG
       read as Space Grotesk, not the display family. Family inherits from
       <body> so we don't set it explicitly here. Weight 400, 18px, tight
       line-height 1.4 to direction-match Raymond's "not bold, smaller,
       less line spacing" pass on 2026-05-01. */
    max-width: 440px;
    font-size: var(--fs-body-lg);
    font-weight: 400;
    line-height: 1.4;
    color: var(--white);
    margin: 0 0 var(--sp-6) 0;
    opacity: 0.92;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}


/* ----------------------------------------
   7. Section primitives (used across sections 2-6)
   ---------------------------------------- */

.section {
    padding: var(--sp-7) 0;
}

/* Hairline divider between consecutive light sections, matching the design.
   Uses a centered line that respects the container width. */
.section + .section:not(.section--newsletter):not(.section--contact)::before,
.section--newsletter + .section::before,
.section--newsletter::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--line);
    max-width: var(--container-max);
    margin: 0 auto var(--sp-7);
    width: calc(100% - var(--side-pad) * 2);
}

.section + .section {
    padding-top: 0;
}

/* Section heading: e.g. "Canadian technology startups are building..."
   Light weight, slim character, matches design. Tightened line-height per
   2026-05-01 design pass. */
.section-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-heading);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 var(--sp-3) 0;
    color: var(--ink);
}

/* Display headline: ACTIONS SPEAK / JOIN THE CONVERSATION / READY TO TAKE ACTION.
   Stack Sans Headline at Medium weight, tight tracking. INAUGURAL SOURCE CANADA
   gets a per-section override below to match section-heading scale. */
.display-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-display-xl);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ink);
}

/* (Inaugural Source Canada now matches Actions Speak — uses the default
   .display-headline scale at 62px. The earlier 29px override was reverted
   2026-05-01 (later pass).) */

/* Secondary text used across sections: section body copy and hero subhead.
   18px / weight 400 / tight 1.4 line-height. */
.lead {
    font-family: var(--font-display);
    font-size: var(--fs-body-lg);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 var(--sp-3) 0;
}

.lead--bold {
    font-weight: 500;
}

.sub-eyebrow {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 var(--sp-3) 0;
    opacity: 0.95;
}

/* Two-column layout. The body sits in the second-half of the page
   (3-column grid: label | empty spacer | body) so the heading aligns
   roughly 50% across, matching the design. */
.two-col {
    display: grid;
    grid-template-columns: 200px 1fr 2fr;
    gap: var(--sp-6);
    align-items: start;
}

.two-col__label {
    padding-top: 6px;
}

.two-col__body {
    grid-column: 3; /* skip the spacer column */
    max-width: 720px;
}

/* Edge-to-edge editorial photos. Lives OUTSIDE .container in the partial
   so it naturally spans the section width with no padding. */
.full-bleed-photo {
    margin: var(--sp-5) 0 0;
    padding: 0;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.full-bleed-photo img {
    width: 100%;
    height: auto;
    filter: grayscale(1);
    display: block;
}

/* Context section banner: crop to a thin 16:5 horizontal band so the
   photo reads as a banner strip rather than a full-height photo. */
.section--context .full-bleed-photo {
    aspect-ratio: 16 / 5;
    overflow: hidden;
}

.section--context .full-bleed-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.full-bleed-photo--inset {
    margin-top: var(--sp-4);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ----------------------------------------
   8. Section: Initiatives
   ---------------------------------------- */

.initiatives-header {
    margin-bottom: var(--sp-5);
}

.initiatives-header .eyebrow {
    margin-bottom: var(--sp-2);
}

/* Initiatives: 4 rows. Each row has a text item on the left and a
   photo on the right. The text bottom-aligns with the image bottom
   so the bracket label sits at the photo baseline. */
.initiatives-rows {
    display: flex;
    flex-direction: column;
    gap: 4px; /* tight stack between rows, matches design photo gap */
}

.initiative-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: end; /* THIS is the key: text aligns to image bottom */
}

.initiative {
    /* Item content sits at the bottom of its row (next to image bottom) */
    max-width: 460px;
}

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

.initiative-row__photo {
    width: 100%;
    /* 16:9 keeps each row short, matches design's vertical rhythm */
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    filter: grayscale(1);
    display: block;
    border: 1px solid var(--ink); /* thin black frame around each photo */
}


/* ----------------------------------------
   9. Section: Inaugural
   ---------------------------------------- */

.inaugural-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: end;
    margin-bottom: var(--sp-5);
}

.inaugural-header__title .eyebrow {
    display: inline-block;
    margin-bottom: var(--sp-3);
}

.inaugural-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    margin: var(--sp-4) 0 var(--sp-5);
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--line);
}

/* Stats spread across ~50% of the container width, matching the design
   rhythm. justify-content: space-between pushes the three stats to fill
   the column. */
.inaugural-stats__group {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    max-width: 100%;
}

.stat__num {
    /* Big numbers (183, 7, 5) — Stack Sans Headline at display weight */
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    color: var(--ink);
}

.stat__label {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: var(--sp-1);
}

.pull-quote {
    margin: var(--sp-6) auto;
    padding: var(--sp-5) var(--sp-5) 0;
    max-width: 760px;
    text-align: center;
    border-top: 1px solid var(--line); /* hairline above the quote */
}

.pull-quote p {
    /* "The most actionable..." quote — match section-heading scale per 2026-05-01 pass. */
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-heading);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 var(--sp-3);
}

.pull-quote cite {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.7;
    font-style: normal;
}

.inaugural-cta {
    text-align: center;
    margin-top: var(--sp-5);
}


/* ----------------------------------------
   10. Section: Publishing
   ---------------------------------------- */

.publishing-header {
    margin-bottom: var(--sp-5);
}

.publishing-header .eyebrow {
    margin-bottom: var(--sp-2);
}

/* Publishing: cards on right, copy block sits at the BOTTOM of the
   left column so it bottom-aligns with the bottom row of cards. */
.publishing-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: var(--sp-6);
    align-items: end;
}

.publishing-grid__copy .btn {
    margin-top: var(--sp-3);
}

/* Hairline under the publishing section to close it visually,
   matching the design. */
.section--publishing {
    border-bottom: 1px solid var(--line);
}

/* Tight 2x2 grid with minimal symmetric whitespace. */
.publishing-grid__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Cards are now image-with-text-overlay rather than image-then-text.
   Darkness + outline applied via --img-darken / --img-border so all blog
   imagery gets the same treatment; saturation lives in the source files. */
.post-card {
    position: relative;
    display: block;
    color: var(--white);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: var(--img-border);
    transition: transform 200ms ease;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--img-darken);
    z-index: 0;
}

/* Dark gradient over the image so overlaid text stays legible regardless of photo. */
.post-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.65) 100%
    );
}

.post-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}

.post-card__tag {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    color: var(--white);
}

.post-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    color: var(--white);
}


/* ----------------------------------------
   11. Section: Newsletter bar
   ---------------------------------------- */

.section--newsletter {
    background: var(--ink);
    color: var(--white);
    /* More black space at the top so the headline doesn't feel cramped */
    padding: var(--sp-8) 0 var(--sp-7);
    margin-top: 0;
}

/* Copy on the left, form right-aligned. Form should not stretch full width. */
.newsletter-bar {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-5);
    align-items: center;
}

.newsletter-bar__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 var(--sp-3);
    color: var(--white);
}

.newsletter-bar__copy p {
    color: var(--white);
    opacity: 0.85;
    margin: 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.55;
}

.newsletter-bar__form {
    display: flex;
    gap: var(--sp-2);
    align-items: stretch;
    justify-self: end;
    width: 100%;
    max-width: 560px;
}

.newsletter-bar__input {
    flex: 1 1 auto;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.newsletter-bar__input::placeholder {
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
}

.newsletter-bar__input:focus {
    outline: none;
    border-color: var(--white);
}

.newsletter-bar__submit {
    flex: 0 0 auto;
}

.newsletter-bar__msg,
.newsletter-bar__success {
    flex: 1 1 100%;
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* Hide the success message until Ghost's portal.min.js toggles it
   visible by removing the data-members-success attribute or via class
   change. The standard Ghost pattern uses a `success` class on the form. */
.newsletter-bar__form .newsletter-bar__success { display: none; }
.newsletter-bar__form.success .newsletter-bar__success { display: block; }
.newsletter-bar__form.success .newsletter-bar__msg { display: none; }


/* ----------------------------------------
   12. Section: Contact form
   ---------------------------------------- */

/* Contact section is enclosed in a thin black frame, with extra breathing
   room above the heading. */
.section--contact {
    padding: var(--sp-7) 0;
}

.section--contact .container {
    border: 1px solid var(--ink);
    padding: var(--sp-6) var(--sp-5);
}

.contact-header {
    margin-bottom: var(--sp-5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--sp-6);
    align-items: start;
}

.contact-grid__hooks {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 360px;
}

.contact-hook p {
    /* Match the .lead secondary-text scale used in Context/Mission. */
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-body-lg);
    font-weight: 400;
    line-height: 1.4;
}

/* Preserve blank-line paragraph breaks in multi-line custom text fields */
.contact-hook__copy,
.site-footer__mission--multiline {
    white-space: pre-line;
}

.contact-hook strong {
    font-weight: 500;
}

/* Contact form — tightened per 2026-05-01 pass.
   Reduced inter-field gaps, smaller field padding/font, smaller label gap. */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

/* Native checkbox kept on .field--checkbox input — exclude it from the
   appearance-stripping rule below so it renders as a real checkbox. */
.field input:not([type="checkbox"]),
.field select,
.field textarea {
    border: none;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    padding: 8px 0;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2319201F' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-width: 2px;
}

.field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-2);
}

/* Restore native checkbox appearance (the generic .field input rule strips it). */
.field--checkbox input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 3px 0 0 0;
    padding: 0;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
}

.field--checkbox label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0;
}

.contact-form__submit {
    align-self: flex-start;
    margin-top: var(--sp-2);
    min-width: 200px;
}

.contact-form__required {
    font-size: 12px;
    color: var(--ink);
    opacity: 0.6;
    margin: 0;
    letter-spacing: 0.05em;
}

.tally-embed {
    width: 100%;
    border: 0;
}


/* ----------------------------------------
   13. Site footer
   ---------------------------------------- */

.site-footer {
    background: var(--ink);
    color: var(--white);
    padding: var(--sp-7) 0 var(--sp-5);
    margin-top: 0;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-7);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-logo--footer {
    color: var(--white);
    margin-bottom: var(--sp-3);
}

.site-footer__mission {
    color: var(--white);
    opacity: 0.7;
    max-width: 480px;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 var(--sp-2);
}

/* Ghost's {{navigation type="secondary"}} renders <ul class="nav">
   with <li class="nav-{slug}"><a>...</a></li>. Style both that and any
   bare <ul> (in case the secondary nav is empty and we want a fallback). */
.site-footer__nav .nav,
.site-footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    align-items: flex-end;
}

.site-footer__nav a {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.site-footer__nav a:hover {
    opacity: 1;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-3);
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.site-footer__copy,
.site-footer__credits {
    font-size: 12px;
    color: var(--white);
    opacity: 0.55;
    margin: 0;
    letter-spacing: 0.05em;
}

.site-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--sp-3);
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.85;
    transition: opacity 180ms ease;
}

.site-footer__social a:hover {
    opacity: 1;
}

.site-footer__social-icon {
    display: block;
    width: 24px;
    height: 24px;
}


/* ============================================================
   PHASE 2 — Blog listing + Article templates (added 2026-05-01)
   ============================================================ */

/* ----------------------------------------
   B1. Blog banner (dark photo + headline overlay)
   Used at the top of the blog listing and tag-archive pages.
   ---------------------------------------- */

.blog-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    /* Banner is shorter than homepage hero — about 480px in the design. */
    min-height: 480px;
}

.blog-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-banner__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.blog-banner__overlay {
    position: absolute;
    inset: 0;
    background: var(--black);
    opacity: 0.62;
}

.blog-banner__inner {
    position: relative;
    z-index: 5;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Use longhand so the .container's left/right padding (var(--side-pad))
       isn't overridden by the shorthand. */
    padding-top: 140px;
    padding-bottom: var(--sp-7);
}

/* Banner headline — Stack Sans Headline + Playfair italic emphasis.
   Same scale family as the homepage hero. */
.blog-banner__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-display);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--white);
    max-width: 1100px;
}

.blog-banner__title i,
.blog-banner__title .italic {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
}

/* On the blog/tag pages the site header is absolute over the banner. */
.blog-banner .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    color: var(--white);
    border-bottom: none;
    padding: 32px 0;
}


/* ----------------------------------------
   B2. Blog toolbar — topic filter pills + search
   ---------------------------------------- */

.blog-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-6) 0 var(--sp-4);
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-pills li {
    margin: 0;
}

/* Pill = rounded rectangle, slightly taller than wide tap target. */
.topic-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
    white-space: nowrap;
}

.topic-pill:hover {
    background: var(--ink);
    color: var(--white);
}

.topic-pill--active,
.topic-pill[aria-current="page"],
.topic-pill.is-active {
    background: var(--ink);
    color: var(--white);
}

/* Search bar: light gray field with magnifier icon prefix. */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(25, 32, 31, 0.06);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 16px;
    min-width: 280px;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.search-form:focus-within {
    border-color: var(--ink);
    background: var(--white);
}

.search-form__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--ink);
    opacity: 0.6;
}

.search-form__input {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.search-form__input::placeholder {
    color: var(--ink);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Hairline divider below the toolbar, before the card grid. */
.blog-toolbar + .blog-grid::before,
.blog-toolbar-divider {
    content: "";
    display: block;
    height: 1px;
    background: var(--line);
    margin: 0 0 var(--sp-5) 0;
    width: 100%;
}


/* ----------------------------------------
   B3. Blog card grid + tall card with overlay
   ---------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-bottom: var(--sp-7);
}

/* Each card is a tall photo with overlaid bracketed tags + title.
   Aspect 3:4 matches the design proportions. */
.blog-card {
    position: relative;
    display: block;
    color: var(--white);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ink);
    border: var(--img-border);
    transition: transform 200ms ease;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--img-darken);
    z-index: 0;
}

.blog-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.20) 0%,
        rgba(0,0,0,0.30) 45%,
        rgba(0,0,0,0.75) 100%
    );
}

.blog-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}

/* Tag row — top-left. */
.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.blog-card__tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

/* Arrow indicator — top-right. SVG arrow, currentColor. */
.blog-card__arrow {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    width: 18px;
    height: 18px;
    color: var(--white);
    z-index: 3;
}

.blog-card__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--white);
    max-width: 90%;
}


/* ----------------------------------------
   B4. Pagination row
   ---------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-6) 0 var(--sp-7);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.pagination a {
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 10px 18px;
    border-radius: 4px;
    transition: background-color 180ms ease, color 180ms ease;
}

.pagination a:hover {
    background: var(--ink);
    color: var(--white);
}

.pagination .pagination__current {
    opacity: 0.6;
}


/* ----------------------------------------
   A1. Article (post) page — two-column header
   ---------------------------------------- */

.post-page {
    padding: var(--sp-6) 0 var(--sp-8);
    background: var(--cream);
}

.post-header {
    /* Longhand so .container's horizontal padding (var(--side-pad)) survives. */
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-7);
}

.post-header__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.post-header__left {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.post-header__right {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding-top: 4px;
}

.post-eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

/* "BLOG TITLE PLACEHOLDER" — large display headline, all caps. */
.post-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-display-xl);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ink);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.post-excerpt {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
    max-width: 480px;
}


/* ----------------------------------------
   A2. Article feature image (contained, not full-bleed)
   ---------------------------------------- */

.post-feature-image {
    margin: 0 0 var(--sp-6) 0;
    padding: 0;
}

.post-feature-image img {
    width: 100%;
    height: auto;
    filter: var(--img-darken);
    border: var(--img-border);
    display: block;
}

.post-feature-image figcaption {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--ink);
    opacity: 0.6;
    text-align: center;
    margin-top: var(--sp-2);
}


/* ----------------------------------------
   A3. Article body (single column, generous reading width)
   ---------------------------------------- */

.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    padding-bottom: var(--sp-6);
}

.post-content h2,
.post-content .post-subtitle {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: var(--sp-6) 0 var(--sp-3);
    color: var(--ink);
}

.post-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    margin: var(--sp-5) 0 var(--sp-2);
    color: var(--ink);
}

.post-content p {
    margin: 0 0 var(--sp-3);
}

.post-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.post-content blockquote {
    margin: var(--sp-5) 0;
    padding-left: var(--sp-4);
    border-left: 2px solid var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 400;
}

.post-content ul,
.post-content ol {
    margin: 0 0 var(--sp-3);
    padding-left: var(--sp-4);
}

.post-content li {
    margin: var(--sp-1) 0;
}

.post-content img {
    border-radius: 0;
    filter: var(--img-darken);
    border: var(--img-border);
}

/* Article footer — Category / Written By / Share, stacked horizontally
   in three columns below the body. */
.post-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
    border-top: 1px solid var(--line);
    /* Longhand so .container's horizontal padding survives. */
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-6);
    margin-top: var(--sp-5);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
}

.post-footer__group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.post-footer__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.post-footer__tags {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-author__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1);
    flex: 0 0 48px;
}

.post-author__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.post-author__role {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink);
    opacity: 0.7;
    margin: 2px 0 0;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: var(--white);
    transition: background-color 180ms ease;
}

.post-share__link:hover {
    background: rgba(25, 32, 31, 0.85);
}

.post-share__link svg {
    width: 14px;
    height: 14px;
}


/* ----------------------------------------
   A4. Phase 2 responsive fallbacks
   ---------------------------------------- */

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-banner {
        min-height: 360px;
    }
    .blog-banner__inner {
        min-height: 360px;
        padding-top: 120px;
        padding-bottom: var(--sp-6);
    }
    .blog-banner__title {
        font-size: 44px;
    }
    .blog-toolbar {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
    }
    .search-form {
        min-width: 0;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-header__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
    .post-title {
        font-size: 44px;
    }
    .post-footer {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .post-title {
        font-size: 36px;
    }
}


/* ----------------------------------------
   14. Ghost editor (Koenig) image alignment classes
       Required by GScan. Apply when editors insert wide/full-width images.
   ---------------------------------------- */

.kg-width-wide img {
    max-width: 85vw;
    width: 85vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img {
    max-width: 100vw;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-image-card,
.kg-embed-card,
.kg-gallery-card,
.kg-video-card,
.kg-audio-card,
.kg-file-card,
.kg-bookmark-card {
    margin: var(--sp-5) 0;
}

.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* Custom font family hooks (Ghost custom-font config) */
:root {
    --ghost-accent-color: var(--ink);
}


/* ----------------------------------------
   15. Responsive overrides for new sections
   ---------------------------------------- */

@media (max-width: 900px) {
    .two-col,
    .initiatives-grid,
    .initiative-row,
    .inaugural-header,
    .inaugural-stats,
    .publishing-grid,
    .newsletter-bar,
    .contact-grid,
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }

    /* Initiative rows: stack image-first, then text. Image fills the
       container width naturally; text sits below. */
    .initiative-row {
        gap: var(--sp-3);
    }
    .initiative-row__photo {
        order: -1;
        aspect-ratio: 16 / 9;
    }
    .initiative {
        max-width: 100%;
    }

    /* Full-bleed section photos: crop to a square on mobile so they don't
       feel disproportionately wide on a narrow viewport. The img inside
       uses object-fit: cover (set in the base .full-bleed-photo img rule). */
    .full-bleed-photo,
    .section--context .full-bleed-photo {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    .full-bleed-photo img,
    .section--context .full-bleed-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .display-headline {
        font-size: 32px;
    }

    .stat__num {
        font-size: 40px;
    }

    .inaugural-stats__group {
        gap: var(--sp-4);
        flex-wrap: wrap;
    }

    .publishing-grid__cards {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-bar__form {
        flex-direction: column;
    }

    .site-footer__nav ul {
        align-items: flex-start;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .publishing-grid__cards {
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------
   8. Responsive
   The XD design is desktop-only. These breakpoints are my interpretation
   of how the design should reflow. Key calls:
   - Headline shrinks but stays the same structure.
   - Nav collapses on narrow viewports (a hamburger comes later if needed).
   ---------------------------------------- */

@media (max-width: 900px) {
    :root {
        --side-pad:   24px;
        --fs-display: 44px;
        --fs-heading: 24px;
        /* --fs-body-lg falls through to desktop's 18px (no mobile bump). */
    }

    .hero {
        min-height: 600px;
        height: auto;
        padding: 140px 0 80px 0;
    }

    .hero__content {
        height: auto;
        padding-top: 0;
    }

    .hero__nav {
        flex-wrap: wrap;
        gap: var(--sp-2);
    }

    .site-nav .nav,
    .site-nav ul {
        gap: var(--sp-3);
        flex-wrap: wrap;
    }

    .site-nav a {
        font-size: 12px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-display: 36px;
    }

    .hero__ctas .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
