/* ==========================================================================
   Section 14 landing page  (used by page-section14.hbs)
   All rules are scoped to .s14 so they don't affect the rest of the theme.
   ========================================================================== */

/* PT Serif for body copy, Jost as a free stand-in if Futura PT isn't loaded.
   If your theme already loads Futura PT (Adobe Fonts or self-hosted), it is used first. */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,500;0,700;1,700;1,800&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap");

/* ---------- Page shell: full width + black header (this page only) ----------
   The theme wraps every page in .site-content.rounded-tile-margin, which insets it.
   These rules undo that inset and turn the header black on the Section 14 page.
   body.page-section14 is added by Ghost; body:has(.s14) is a fallback. */

body.page-section14 .site-content,
body:has(.s14) .site-content {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: none !important;
    box-shadow: none !important;
}

body.page-section14 #gh-head,
body:has(.s14) #gh-head {
    background-color: #111111;
    color: #FFFFFF;
}

body.page-section14 #gh-head a,
body.page-section14 #gh-head .gh-head-link,
body.page-section14 #gh-head .gh-search,
body:has(.s14) #gh-head a,
body:has(.s14) #gh-head .gh-head-link,
body:has(.s14) #gh-head .gh-search { color: #FFFFFF; }

/* Black logo file shown white on the black header */
body.page-section14 #gh-head .gh-head-logo img,
body:has(.s14) #gh-head .gh-head-logo img { filter: invert(1); }

/* Current page in the menu */
body.page-section14 #gh-head .gh-head-menu .nav-current a,
body:has(.s14) #gh-head .gh-head-menu .nav-current a { color: #F8E000; }

/* Join / Account button: yellow with black text */
body.page-section14 #gh-head .gh-head-button,
body:has(.s14) #gh-head .gh-head-button {
    background: #F8E000;
    color: #111111;
}

body.page-section14 #gh-head .gh-burger::before,
body.page-section14 #gh-head .gh-burger::after,
body:has(.s14) #gh-head .gh-burger::before,
body:has(.s14) #gh-head .gh-burger::after { background-color: #FFFFFF; }

/* Open mobile menu */
@media (max-width: 767px) {
    body.page-section14.gh-head-open #gh-head,
    body.page-section14.gh-head-open #gh-head .gh-head-actions,
    body.gh-head-open:has(.s14) #gh-head,
    body.gh-head-open:has(.s14) #gh-head .gh-head-actions { background-color: #111111; }
}

.s14 {
    /* Sections run full width. Set --s14-radius / --s14-gap above 0 to switch back to inset tiles. */
    --s14-radius: 0px;
    --s14-radius-sm: 6px;        /* cards and images inside sections */
    --s14-gap: 0px;

    /* Donation form height: raise it if the Mazlo form scrolls inside its box */
    --s14-form-height: 560px;

    --s14-accent: #F8E000;
    --s14-ink: #111111;
    --s14-ink-2: #333333;
    --s14-muted: #55534E;
    --s14-paper: #FFFFFF;
    --s14-stone: #F4F3EF;
    --s14-line-dark: #2A2A2A;
    --s14-on-dark: #F1EFEA;
    --s14-on-dark-muted: #D6D3CC;
    --s14-sans: "futura-pt", Futura, "Jost", "Helvetica Neue", Arial, sans-serif;
    --s14-serif: "PT Serif", Georgia, serif;
    --s14-wrap: 1200px;
    --s14-pad: clamp(20px, 4vw, 56px);  /* inner padding of tiles */

    display: flex;
    flex-direction: column;
    gap: var(--s14-gap);
    color: var(--s14-ink);
    font-family: var(--s14-serif);
    -webkit-font-smoothing: antialiased;
}

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

.s14 p,
.s14 h1,
.s14 h2,
.s14 h3,
.s14 figure { margin: 0; }

.s14 img { max-width: 100%; display: block; }

html:has(.s14) { scroll-behavior: smooth; }

/* ---------- Tiles ---------- */

.s14-tile {
    position: relative;
    border-radius: var(--s14-radius);
    overflow: hidden;
}

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

.s14-dark {
    background: var(--s14-ink);
    color: #FFFFFF;
}

.s14-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Type ---------- */

.s14-eyebrow {
    font: 500 13px/1 var(--s14-sans);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.s14-oblique {
    font-family: var(--s14-sans);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.04;
}

.s14-h2 { font-size: clamp(30px, 4vw, 48px); }

.s14-bar {
    display: block;
    width: 48px;
    height: 6px;
    margin-bottom: 22px;
    background: var(--s14-accent);
}

.s14-accent-text { color: var(--s14-accent); }
.s14-muted { color: var(--s14-muted); }

.s14 .s14-link {
    font: 700 12px/1 var(--s14-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--s14-ink);
    text-decoration: none;
    white-space: nowrap;
}

.s14 .s14-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.s14-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.s14 .s14-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 0;
    font: 700 14px/1 var(--s14-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.s14 .s14-btn:hover { transform: translateY(-1px); opacity: 0.92; }

.s14 .s14-btn--accent,
.s14 .s14-btn--accent:hover { background: var(--s14-accent); color: var(--s14-ink); }

.s14 .s14-btn--dark,
.s14 .s14-btn--dark:hover { background: var(--s14-ink); color: #FFFFFF; }

.s14 .s14-btn--outline,
.s14 .s14-btn--outline:hover { border: 2px solid #FFFFFF; color: #FFFFFF; background: transparent; }

/* ---------- Hero + facts ---------- */

.s14-hero {
    background: var(--s14-ink);
    color: #FFFFFF;
}

.s14-hero__media { position: relative; }

.s14-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.s14-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,17,17,0.15) 0%, rgba(17,17,17,0.25) 40%, rgba(17,17,17,0.92) 100%);
}

.s14-hero--noimage .s14-hero__shade { display: none; }

.s14-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: clamp(110px, 15vw, 190px);
    padding-bottom: clamp(56px, 7vw, 88px);
    text-align: center;
}

.s14 .s14-hero__title {
    margin: 0;
    font: 700 clamp(52px, 9vw, 128px)/1 var(--s14-sans);
    letter-spacing: 0.16em;
    padding-left: 0.16em; /* balances trailing letter-spacing so the title centers */
    text-transform: uppercase;
    color: var(--s14-accent);
}

.s14-hero__eyebrow { color: var(--s14-accent); }

.s14 .s14-hero__dek {
    max-width: 680px;
    margin-top: 24px;
    font: 400 clamp(18px, 1.6vw, 21px)/1.6 var(--s14-serif);
    color: var(--s14-on-dark);
}

.s14-hero .s14-actions { padding-top: 10px; }

.s14 .s14-hero__note {
    margin-top: 6px;
    font: 300 14px/1.5 var(--s14-sans);
    letter-spacing: 0.04em;
    color: #CFCCC4;
}

.s14-facts {
    position: relative;
    background: var(--s14-ink);
    border-top: 1px solid var(--s14-line-dark);
}

.s14-facts__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s14-fact {
    padding: 36px 24px;
    border-right: 1px solid var(--s14-line-dark);
}

.s14-fact:first-child { padding-left: 0; }
.s14-fact:last-child { border-right: 0; padding-right: 0; }

.s14 .s14-fact__num {
    margin-bottom: 12px;
    font: 700 clamp(28px, 3vw, 38px)/1 var(--s14-sans);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--s14-accent);
}

.s14-fact__label {
    font: 300 15px/1.5 var(--s14-sans);
    color: var(--s14-on-dark-muted);
}

/* ---------- Story (Ghost editor content) ---------- */

.s14-story {
    --s14-measure: 720px;
    padding: clamp(64px, 9vw, 112px) var(--s14-pad);
}

.s14-story__head {
    max-width: var(--s14-measure);
    margin: 0 auto 36px;
}

.s14 .s14-story .s14-content {
    display: block;
    max-width: var(--s14-measure);
    margin: 0 auto;
    font: 400 19px/1.7 var(--s14-serif);
    color: #222222;
}

/* Reset whatever the theme applies to content, then space blocks evenly */
.s14 .s14-story .s14-content > * { margin: 0; max-width: 100%; }
.s14 .s14-story .s14-content > * + * { margin-top: 26px; }

.s14 .s14-story .s14-content a {
    color: var(--s14-ink);
    text-decoration-thickness: 2px;
    text-decoration-color: var(--s14-accent);
    text-underline-offset: 3px;
}

.s14 .s14-story .s14-content h2,
.s14 .s14-story .s14-content h3 {
    margin-top: 44px;
    font-family: var(--s14-sans);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.s14 .s14-story .s14-content h2 { font-size: 26px; }
.s14 .s14-story .s14-content h3 { font-size: 21px; }

/* Wide and full-width cards break out of the text column */
.s14 .s14-story .s14-content > .kg-width-wide {
    width: min(1100px, calc(100vw - 4 * var(--s14-pad)));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.s14 .s14-story .s14-content > .kg-width-full {
    width: calc(100vw - 2 * var(--s14-pad));
    max-width: min(1200px, calc(100vw - 2 * var(--s14-pad)));
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Pull quote: a quote block in the Ghost editor (either style).
   "all: unset" clears the theme's own quote styling first. */
.s14 .s14-story .s14-content blockquote,
.s14 .s14-story .s14-content .kg-blockquote-alt {
    all: unset;
    display: block;
    margin: 56px 0;
    padding: 44px 0;
    border-top: 2px solid var(--s14-ink);
    border-bottom: 2px solid var(--s14-ink);
    font-family: var(--s14-sans);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: var(--s14-ink);
}

.s14 .s14-story .s14-content blockquote::before,
.s14 .s14-story .s14-content blockquote::after,
.s14 .s14-story .s14-content .kg-blockquote-alt::before,
.s14 .s14-story .s14-content .kg-blockquote-alt::after { content: none; display: none; }

.s14 .s14-story .s14-content blockquote p,
.s14 .s14-story .s14-content .kg-blockquote-alt p { all: inherit; display: block; margin: 0; padding: 0; border: 0; }

/* Credit line: Shift+Enter after the quote, then italic text */
.s14 .s14-story .s14-content blockquote em,
.s14 .s14-story .s14-content blockquote i,
.s14 .s14-story .s14-content .kg-blockquote-alt em,
.s14 .s14-story .s14-content .kg-blockquote-alt i {
    display: block;
    margin-top: 18px;
    font: 500 13px/1.4 var(--s14-sans);
    font-style: normal;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--s14-muted);
}

.s14 .s14-story .s14-content blockquote br,
.s14 .s14-story .s14-content .kg-blockquote-alt br { display: none; }

/* Images, galleries and video cards from the editor */
.s14 .s14-story .s14-content .kg-image-card img,
.s14 .s14-story .s14-content .kg-gallery-image img { border-radius: var(--s14-radius-sm); }

.s14 .s14-story .s14-content .kg-gallery-container { display: flex; flex-direction: column; gap: 12px; }
.s14 .s14-story .s14-content .kg-gallery-row { display: flex; gap: 12px; }
.s14 .s14-story .s14-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.s14 .s14-story .s14-content figcaption {
    margin-top: 12px;
    font: 300 14px/1.5 var(--s14-sans);
    color: var(--s14-muted);
    text-align: center;
}

/* ---------- Trailer ---------- */

.s14-trailer { padding: clamp(32px, 5vw, 56px) 0; }

.s14 .s14-trailer__label { margin: 0 0 24px; }

.s14-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1D1D1D;
    border-radius: var(--s14-radius-sm);
    overflow: hidden;
}

.s14 .s14-video__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.s14-video__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04); /* crops the thin black bars baked into YouTube's thumbnail */
}

/* Small, quiet play control so it doesn't fight the poster's own title */
.s14-video__pill {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font: 700 12px/1 var(--s14-sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.s14-video__play:hover .s14-video__pill,
.s14-video__play:focus-visible .s14-video__pill { background: rgba(17, 17, 17, 0.9); }

.s14-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Where your gift goes ---------- */

.s14-uses {
    background: var(--s14-stone);
    padding: clamp(56px, 7vw, 88px) 0;
}

.s14-intro {
    max-width: 720px;
    margin-bottom: 40px;
}

.s14 .s14-intro p {
    margin-top: 18px;
    font: 400 18px/1.6 var(--s14-serif);
    color: var(--s14-ink-2);
}

.s14-uses__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.s14-use {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--s14-radius-sm);
    background: var(--s14-paper);
}

.s14-use__num {
    font: 700 13px/1 var(--s14-sans);
    letter-spacing: 0.2em;
    color: var(--s14-muted);
}

.s14 .s14-use__title {
    margin: 0;
    font: 700 19px/1.2 var(--s14-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.s14-use p:last-child {
    font: 400 16px/1.55 var(--s14-serif);
    color: var(--s14-ink-2);
}

/* ---------- Donate ---------- */

.s14-donate {
    background: var(--s14-accent);
    color: var(--s14-ink);
    padding: clamp(56px, 7vw, 88px) 0;
}

.s14-donate__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.s14 .s14-donate__title {
    margin: 0;
    font: 700 clamp(32px, 4.5vw, 56px)/1 var(--s14-sans);
    letter-spacing: 0.12em;
    padding-left: 0.12em;
    text-transform: uppercase;
}

/* IDA card: info on the left, form on the right */
.s14-ida {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: var(--s14-radius-sm);
    background: var(--s14-ink);
    color: #FFFFFF;
}

.s14 .s14-give__title {
    margin: 12px 0 14px;
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1.1;
}

.s14-ida__text {
    font: 400 16px/1.6 var(--s14-serif);
    color: var(--s14-on-dark-muted);
}

.s14-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.s14-qr img {
    flex: none;
    width: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 8px;
    background: #FFFFFF;
}

.s14-qr__label {
    font: 500 12px/1.4 var(--s14-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.s14 .s14-qr__link {
    display: inline-block;
    margin-top: 8px;
    font: 400 14px/1.4 var(--s14-sans);
    color: var(--s14-on-dark-muted);
}

.s14-ida__form iframe {
    display: block;
    width: 100%;
    height: var(--s14-form-height);
    border: 0;
    border-radius: var(--s14-radius-sm);
    background: transparent;
}

/* Direct giving: one compact row under the IDA card */
.s14-direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 16px;
    padding: 24px clamp(24px, 3.5vw, 40px);
    border-radius: var(--s14-radius-sm);
    background: var(--s14-paper);
}

.s14-direct__text {
    flex: 1 1 420px;
    min-width: 0;
}

.s14 .s14-direct__copy {
    margin-top: 10px;
    font: 400 16px/1.55 var(--s14-serif);
    color: var(--s14-ink-2);
}

.s14-direct__copy strong { color: var(--s14-ink); }

/* ---------- Production updates ---------- */

.s14-updates { padding: clamp(56px, 7vw, 88px) 0; }

.s14-updates__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--s14-ink);
}

.s14 .s14-updates__title {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
}

.s14-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.s14 .s14-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--s14-ink);
    text-decoration: none;
}

.s14-post__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--s14-radius-sm);
    background: var(--s14-stone);
}

.s14-post__img--empty { display: block; }

.s14-post__meta {
    margin-top: 4px;
    font: 500 11px/1 var(--s14-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--s14-muted);
}

.s14 .s14-post__title {
    margin: 0;
    font: 700 16px/1.35 var(--s14-serif);
}

.s14 .s14-post:hover .s14-post__title {
    text-decoration: underline;
    text-decoration-color: var(--s14-accent);
    text-decoration-thickness: 3px;
}

/* ---------- Newsletter signup ---------- */

.s14-signup {
    background: var(--s14-stone);
    padding: clamp(48px, 6vw, 72px) 0;
}

.s14-signup__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px 40px;
}

.s14-signup__text { flex: 1 1 360px; min-width: 0; }

.s14 .s14-signup__text h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; }

.s14 .s14-signup__text p {
    margin-top: 10px;
    font: 400 16px/1.6 var(--s14-serif);
    color: var(--s14-ink-2);
}

.s14-signup__form {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.s14 .s14-signup__form input {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 2px solid var(--s14-ink);
    border-radius: 0;
    background: #FFFFFF;
    font: 400 16px/1 var(--s14-serif);
    color: var(--s14-ink);
}

.s14-signup__form .s14-btn { min-height: 52px; }

/* Ghost adds .loading / .success / .error to the form */
.s14-signup__loading,
.s14-signup__success,
.s14-signup__error { display: none; }

.s14-signup__form.loading .s14-signup__default { display: none; }
.s14-signup__form.loading .s14-signup__loading { display: inline; }

.s14-signup__form.success input,
.s14-signup__form.success .s14-btn { display: none; }

.s14-signup__form.success .s14-signup__success,
.s14-signup__form.error .s14-signup__error {
    display: block;
    flex-basis: 100%;
    font: 500 15px/1.5 var(--s14-sans);
}

.s14-signup__form.error .s14-signup__error { color: #A3260B; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .s14-facts__row,
    .s14-uses__grid,
    .s14-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .s14-fact:nth-child(2) { border-right: 0; padding-right: 0; }
    .s14-fact:nth-child(3) { padding-left: 0; }
    .s14-fact:nth-child(-n+2) { border-bottom: 1px solid var(--s14-line-dark); }

    .s14-ida { grid-template-columns: minmax(0, 1fr); }
    .s14-ida__form { max-width: 520px; }
}

@media (max-width: 560px) {
    .s14 .s14-hero__title { letter-spacing: 0.1em; padding-left: 0.1em; }

    .s14-facts__row,
    .s14-uses__grid { grid-template-columns: minmax(0, 1fr); }

    .s14-posts { gap: 20px 14px; }
    .s14 .s14-post__title { font-size: 14px; }

    .s14-fact,
    .s14-fact:nth-child(3) { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--s14-line-dark); }
    .s14-fact:last-child { border-bottom: 0; }

    .s14-video__pill { left: 12px; bottom: 12px; }

    .s14-direct .s14-btn { width: 100%; }

    .s14 .s14-story .s14-content .kg-gallery-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.s14) { scroll-behavior: auto; }
    .s14 * { transition: none !important; }
}
