/* ==========================================================================
   Kalliste — design tokens
   Warm, feminine, expensive. Espresso and champagne over blush and ivory.
   ========================================================================== */

:root {
    /* Surfaces */
    --ivory: #FBF6F1;
    --shell: #F3E7DF;
    --sand: #E8D6C8;
    --white: #FFFFFF;
    --cocoa: #2E2320;
    --cocoa-deep: #221A17;

    /* Ink */
    --ink: #2E2320;
    --ink-soft: #6E5C53;
    --ink-faint: #A08D82;
    --on-dark: #F6EDE6;
    --on-dark-soft: #D3BFB3;

    /* Accents */
    --gold: #B4894E;
    --gold-light: #D9B67E;
    --gold-wash: #F6E9D6;
    --blush: #E7C4B8;
    --rose: #B0705F;

    --accent: var(--gold);

    /* Structure */
    --content-width: 700px;
    --container-width: 1240px;
    --gutter: 26px;
    --rule: 1px solid rgba(180, 137, 78, 0.35);
    --rule-faint: 1px solid rgba(46, 35, 32, 0.10);
    --radius: 4px;
    --radius-soft: 14px;

    /* Type */
    --font-display: var(--gh-font-heading, "Bodoni Moda", "Didot", "Times New Roman", serif);
    --font-body: var(--gh-font-body, "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);

    --tracked: 0.22em;

    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
    --step-1: clamp(1.18rem, 1.11rem + 0.32vw, 1.38rem);
    --step-2: clamp(1.5rem, 1.34rem + 0.75vw, 2.1rem);
    --step-3: clamp(2rem, 1.66rem + 1.6vw, 3.1rem);
    --step-4: clamp(2.6rem, 1.95rem + 3vw, 4.6rem);
    --step-5: clamp(3.2rem, 2rem + 5.6vw, 7rem);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1rem;
}

p { margin: 0 0 1.4em; }

/* Small tracked label — the genre's signature device, used sparingly */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1.2rem;
}

a {
    color: inherit;
    text-decoration-color: rgba(180, 137, 78, 0.5);
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
    transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

a:hover { color: var(--rose); text-decoration-color: var(--rose); }

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

blockquote {
    margin: 2.4em 0;
    padding: 0;
    border: 0;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.4;
    color: var(--ink);
}

blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: var(--rule); margin: 3.5rem 0; }

code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; }

pre {
    background: var(--cocoa-deep);
    color: var(--on-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

figure { margin: 2.6rem 0; }

figcaption {
    font-size: var(--step--1);
    color: var(--ink-faint);
    margin-top: 0.8rem;
    letter-spacing: 0.02em;
}

::selection { background: var(--blush); color: var(--cocoa-deep); }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cocoa); color: var(--on-dark); padding: 0.8rem 1.2rem; z-index: 999; }
.skip-link:focus { left: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ==========================================================================
   Layout shell
   ========================================================================== */

.wrap { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--content-width) + var(--gutter) * 2); }
.wrap--mid { max-width: 960px; }

.band { padding: clamp(4rem, 8vw, 8rem) 0; }
.band--tight { padding: clamp(3rem, 5vw, 5rem) 0; }
.band--shell { background: var(--shell); }
.band--sand { background: var(--sand); }
.band--cocoa { background: var(--cocoa); color: var(--on-dark); }
.band--cocoa h1, .band--cocoa h2, .band--cocoa h3 { color: var(--on-dark); }

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 246, 241, 0.9);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: var(--rule-faint);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 82px;
}

/* The <nav> wrapper shouldn't be a grid item — let the list be one */
.site-header nav { display: contents; }

.site-brand {
    grid-column: 2;
    justify-self: center;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand img { max-height: 38px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.1rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-primary { grid-column: 1; justify-self: start; }
.nav-cta-li { display: none; }

.nav a {
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    color: var(--ink-soft);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav li.nav-current a::after { transform: scaleX(1); }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 1rem; }

.icon-btn { background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--ink); display: inline-flex; line-height: 0; }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; grid-column: 1; justify-self: start; }

@media (max-width: 1120px) {
    .header-inner { grid-template-columns: 1fr auto 1fr; min-height: 70px; gap: 0.8rem; }
    .nav-toggle { display: inline-flex; grid-column: 1; justify-self: start; }
    .site-brand { grid-column: 2; justify-self: center; }
    .header-actions { grid-column: 3; }
    .header-actions .header-cta { display: none; }

    /* Full-screen overlay menu — covers the whole viewport, escapes the grid */
    .site-header nav[aria-label="Primary"] { display: contents; }
    .nav-primary {
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        z-index: 70;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;      /* links sit at the top, in view */
        gap: 0;
        background: var(--ivory);
        padding: 2.4rem var(--gutter) 3rem;
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0s linear 0.32s;
        overflow-y: auto;
    }
    body.nav-open .nav-primary { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    body.nav-open { overflow: hidden; }

    .nav-primary li { flex: 0 0 auto; width: 100%; max-width: 300px; border: 0; text-align: center; }
    .nav-primary li + li:not(.nav-cta-li) { border-top: 1px solid rgba(180,137,78,0.18); }
    .nav-primary a {
        display: block;
        padding: 1.15rem 0;
        font-size: 1rem;
        letter-spacing: var(--tracked);
        color: var(--ink);
    }
    .nav-primary a::after { display: none; }

    /* Join-the-letter CTA at the bottom of the open menu */
    .nav-cta-li { display: block; border: 0 !important; margin-top: 2rem; }
    .nav-cta-li a.nav-cta { padding: 1rem 2.4rem; }

    /* Keep the toggle + close above the overlay */
    .nav-toggle { position: relative; z-index: 80; }
}

/* ---- Footer ---- */

.site-footer {
    background: var(--cocoa-deep);
    border-top: 1px solid rgba(180, 137, 78, 0.28);
    color: var(--on-dark-soft);
    padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.8fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.footer-brandcol .footer-brand { margin-bottom: 1rem; }
.footer-brandcol .footer-blurb { max-width: 42ch; }
.footer-brandcol .footer-verse { margin-top: 1.4rem; max-width: 38ch; }

.footer-nav, .footer-social-col { display: flex; flex-direction: column; }
.footer-nav a {
    font-size: 0.74rem;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark-soft);
    margin-bottom: 0.75rem;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-social-col .footer-social { margin-top: 0; }

@media (max-width: 760px) {
    .footer-top { grid-template-columns: 1fr; gap: 2.4rem; text-align: left; }
    .footer-brandcol .footer-blurb, .footer-brandcol .footer-verse { max-width: none; }
}

/* legacy grid kept harmless/* legacy grid kept harmless in case referenced */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.footer-verse {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gold-light);
    max-width: 32ch;
    margin-top: 1.6rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.75rem; }

.footer-list a {
    font-size: 0.74rem;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark-soft);
}

.footer-list a:hover { color: var(--gold-light); }

.footer-heading {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--on-dark);
    margin: 0 0 1.4rem;
}

.footer-social { display: flex; gap: 1.1rem; margin-top: 1.8rem; }
.footer-social a { color: var(--on-dark-soft); line-height: 0; }
.footer-social a:hover { color: var(--gold-light); }
.footer-social svg { width: 19px; height: 19px; }

.footer-base {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding-top: 1.8rem;
    border-top: 1px solid rgba(246, 237, 230, 0.14);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(211, 191, 179, 0.7);
}

.footer-base a { text-decoration: none; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Slim footer base row */
.footer-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    align-items: center;
}
.footer-mini a {
    font-size: 0.72rem;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark-soft);
}
.footer-mini a:hover { color: var(--gold-light); }

@media (max-width: 620px) {
    .footer-base { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-mini { justify-content: center; }
}
/* ==========================================================================
   Components
   ========================================================================== */

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.05rem 2.4rem;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.btn:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.btn--onDark { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.btn--onDark:hover { background: var(--on-dark); color: var(--cocoa); border-color: var(--on-dark); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--white); }

.link-quiet {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    color: var(--ink);
}

.link-quiet:hover { color: var(--rose); border-color: var(--rose); }

/* ---- Section headings: centred, with a short gold rule beneath ---- */

.section-head {
    text-align: center;
    margin-bottom: clamp(2.4rem, 4vw, 3.6rem);
}

.section-head h2 { margin: 0 0 1.1rem; }

.section-head::after {
    content: "";
    display: block;
    width: 58px;
    height: 1px;
    margin: 0 auto;
    background: var(--gold);
}

.section-head .link-quiet { display: inline-block; margin-top: 1.5rem; }
.section-head--left { text-align: left; }
.section-head--left::after { margin-left: 0; }

.band--cocoa .section-head::after { background: var(--gold-light); }

/* ---- Imagery: soft, generous, feminine ---- */

.figure-soft { border-radius: var(--radius-soft); overflow: hidden; background: var(--sand); }
.figure-soft img { width: 100%; height: 100%; object-fit: cover; }

.figure-arch { border-radius: 999px 999px var(--radius-soft) var(--radius-soft); overflow: hidden; background: var(--sand); }
.figure-arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Post cards ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: clamp(2rem, 4vw, 3.6rem);
}

.card { display: flex; flex-direction: column; text-decoration: none; text-align: center; }

.card-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-soft);
    background: var(--sand);
    margin-bottom: 1.4rem;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-image img { transform: scale(1.05); }

.card-meta {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--step-1);
    line-height: 1.25;
    margin: 0 0 0.6rem;
    color: var(--ink);
}

.card:hover .card-title { color: var(--rose); }

.card-excerpt { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.band--cocoa .card-title { color: var(--on-dark); }
.band--cocoa .card-excerpt { color: var(--on-dark-soft); }
.band--cocoa .card-meta { color: var(--gold-light); }

/* ---- Episode rows ---- */

.episode {
    display: grid;
    grid-template-columns: 108px 1fr auto;
    gap: 1.8rem;
    align-items: center;
    padding: 1.9rem 0;
    border-bottom: var(--rule-faint);
    text-decoration: none;
}

.episode:first-of-type { border-top: var(--rule-faint); }

.episode-art { aspect-ratio: 1; border-radius: var(--radius-soft); overflow: hidden; background: var(--sand); }
.episode-art img { width: 100%; height: 100%; object-fit: cover; }

.episode-num {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.episode h3 { font-size: var(--step-1); margin: 0 0 0.35rem; line-height: 1.3; }
.episode p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 62ch; }
.episode-time { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

@media (max-width: 700px) {
    .episode { grid-template-columns: 76px 1fr; gap: 1.2rem; }
    .episode-time { display: none; }
}

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

.subscribe { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.subscribe-form { display: flex; gap: 0.7rem; margin-top: 1.8rem; flex-wrap: wrap; }

.subscribe-form input[type="email"] {
    flex: 1 1 240px;
    align-self: center;
    padding: 1.05rem 1.2rem;
    border: 1px solid rgba(246, 237, 230, 0.4);
    border-radius: 2px;
    background: transparent;
    color: var(--on-dark);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.subscribe-form input::placeholder { color: rgba(211, 191, 179, 0.75); }
.subscribe-form input:focus { border-color: var(--gold-light); outline: none; }

.subscribe-note { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(211, 191, 179, 0.75); margin-top: 1.2rem; }
.subscribe-msg { font-size: 0.9rem; margin-top: 0.8rem; color: var(--gold-light); min-height: 1.2em; }

@media (max-width: 860px) { .subscribe { grid-template-columns: 1fr; text-align: center; } .subscribe .section-head, .subscribe p { margin-inline: auto; } }

/* ---- Praise ---- */

.praise { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(2.4rem, 5vw, 4rem); text-align: center; }

.praise blockquote { margin: 0 0 1.2rem; font-size: var(--step-1); line-height: 1.55; }

.praise cite {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink-faint);
}

.band--cocoa .praise cite { color: var(--gold-light); }
.band--cocoa .praise blockquote { color: var(--on-dark); }

/* ---- Pagination ---- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: clamp(3.5rem, 6vw, 5rem);
    padding-top: 2rem;
    border-top: var(--rule-faint);
    font-size: 0.72rem;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
}

.pagination a { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.page-number { color: var(--ink-faint); }
/* ==========================================================================
   Templates
   ========================================================================== */

/* ---- Hero: full-bleed photograph, name set large over it ---- */

.hero {
    position: relative;
    min-height: clamp(560px, 86vh, 880px);
    display: flex;
    align-items: flex-end;
    background: var(--sand);
    overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(34, 26, 23, 0.72) 0%, rgba(34, 26, 23, 0.28) 42%, rgba(34, 26, 23, 0.06) 72%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); color: var(--on-dark); }

.hero-body { max-width: min(640px, 100%); }

.hero .eyebrow { color: var(--gold-light); }

.hero h1 {
    font-size: var(--step-5);
    line-height: 0.96;
    letter-spacing: -0.015em;
    color: var(--white);
    margin: 0 0 1.3rem;
    max-width: 11ch;
}

.hero h1 em { font-style: italic; }

.hero-lede {
    font-size: var(--step-1);
    line-height: 1.6;
    color: rgba(246, 237, 230, 0.92);
    max-width: 42ch;
    margin: 0 0 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.hero .link-quiet { color: var(--on-dark); border-color: var(--gold-light); }
.hero .link-quiet:hover { color: var(--gold-light); }

/* Name-only hero variant when there is no lede */
.hero--tall { min-height: clamp(620px, 92vh, 940px); }

@media (max-width: 700px) {
    .hero { min-height: 82vh; }
    .hero-body { max-width: none; }
}

/* ---- Lead magnet ribbon, sits directly under the hero ---- */

.offer-ribbon { background: var(--cocoa); color: var(--on-dark); padding: clamp(2.2rem, 4vw, 3.2rem) 0; }

.offer-ribbon-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.offer-ribbon h2 { font-size: var(--step-2); margin: 0 0 0.4rem; color: var(--on-dark); }
.offer-ribbon p { margin: 0; color: var(--on-dark-soft); max-width: 52ch; font-size: 0.98rem; }
.offer-ribbon .subscribe-form { margin-top: 0; min-width: min(420px, 100%); }

@media (max-width: 860px) { .offer-ribbon-inner { grid-template-columns: 1fr; } }

/* ---- Pillars ---- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); text-align: center; }

.pillar-media { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-soft) var(--radius-soft); overflow: hidden; background: var(--sand); margin-bottom: 1.6rem; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; }
.pillar h3 { font-size: var(--step-2); margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.3rem; }

@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ---- Split ---- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: center; }
.split--flip .split-media { order: 2; }
.split-media { aspect-ratio: 4 / 5; border-radius: var(--radius-soft); overflow: hidden; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body p { color: var(--ink-soft); }
.split-body .btn { margin-top: 0.6rem; }
.band--cocoa .split-body p { color: var(--on-dark-soft); }

@media (max-width: 880px) {
    .split { grid-template-columns: 1fr; }
    .split--flip .split-media { order: 0; }
    .split-media { max-width: 420px; margin-inline: auto; }
}

/* ---- Offers ---- */

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: clamp(1.8rem, 3vw, 2.6rem); }

.offer {
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: clamp(2rem, 3vw, 2.8rem);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(180, 137, 78, 0.22);
}

.offer-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.offer h3 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.offer p { color: var(--ink-soft); font-size: 0.96rem; }
.offer .btn { margin-top: auto; align-self: center; }

/* ---- Post ---- */

.post-header { padding: clamp(3rem, 6vw, 5rem) 0 1.8rem; text-align: center; }
.post-header .wrap { max-width: calc(var(--content-width) + var(--gutter) * 2); }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1.6rem;
}

.post-meta a { color: var(--gold); text-decoration: none; }
.post-header h1 { font-size: var(--step-4); margin-bottom: 0.9rem; }
.post-lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 48ch; margin-inline: auto; }

.post-feature { margin: 2.4rem auto clamp(2.8rem, 5vw, 4.5rem); max-width: var(--container-width); padding: 0 var(--gutter); }
.post-feature img { width: 100%; border-radius: var(--radius-soft); }

.post-content { max-width: var(--content-width); margin: 0 auto; font-size: 1.08rem; line-height: 1.9; }
.post-content h2 { font-size: var(--step-2); margin-top: 2.4em; }
.post-content h3 { font-size: var(--step-1); margin-top: 2em; }
.post-content > figure, .post-content > .kg-card { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.post-content > figure img { margin: 0 auto; border-radius: var(--radius-soft); }
.post-content ul, .post-content ol { padding-left: 1.3em; margin-bottom: 1.6em; }
.post-content li { margin-bottom: 0.6em; }

.post-footer { max-width: var(--content-width); margin: clamp(3rem, 5vw, 4.5rem) auto 0; padding-top: 2.2rem; border-top: var(--rule); }

.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 2.4rem; }

.tag-list a {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(180, 137, 78, 0.45);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
}

.tag-list a:hover { background: var(--gold-wash); color: var(--cocoa); }

.author-box { display: flex; gap: 1.6rem; align-items: center; }
.author-box img { width: 92px; height: 92px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.author-box h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.author-box p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(180,137,78,.25); border-top: 1px solid rgba(180,137,78,.25); border-bottom: 1px solid rgba(180,137,78,.25); margin-top: clamp(3.5rem,6vw,5rem); }
.post-nav a { background: var(--ivory); padding: 2.4rem var(--gutter); text-decoration: none; }
.post-nav span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.post-nav strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.3; }
.post-nav .is-next { text-align: right; }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr; } .post-nav .is-next { text-align: left; } }

/* ---- Member gate ---- */

.gate {
    max-width: var(--content-width);
    margin: 2.5rem auto 0;
    padding: 3rem 2.6rem;
    border-radius: var(--radius-soft);
    text-align: center;
    background: var(--shell);
}

.gate h2 { font-size: var(--step-2); }
.gate p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }

/* ---- Archive header ---- */

.archive-header { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 3vw, 3rem); text-align: center; }
.archive-header h1 { font-size: var(--step-4); margin-bottom: 0.9rem; }
.archive-header p { color: var(--ink-soft); font-size: var(--step-1); max-width: 54ch; margin: 0 auto; }
.archive-header .hero-actions { justify-content: center; }

/* ---- Error ---- */

.error-page { text-align: center; padding: clamp(5rem, 14vw, 10rem) 0; }
.error-page .code { font-family: var(--font-display); font-size: var(--step-5); color: var(--gold); line-height: 1; margin-bottom: 0.8rem; }
.error-page p { color: var(--ink-soft); margin-bottom: 2.4rem; }
.error-page .hero-actions { justify-content: center; }


/* ---- Light hero: dark type over a pale photograph, soft ivory fade ---- */

.hero--light::after {
    background: linear-gradient(to top, rgba(251, 246, 241, 0.92) 0%, rgba(251, 246, 241, 0.55) 30%, rgba(251, 246, 241, 0) 62%);
}

.hero--light .hero-inner { color: var(--ink); }
.hero--light h1 { color: var(--ink); }
.hero--light .hero-lede { color: var(--ink-soft); }
.hero--light .eyebrow { color: var(--gold); }
.hero--light .link-quiet { color: var(--ink); border-color: var(--gold); }
.hero--light .link-quiet:hover { color: var(--rose); }

@media (max-width: 1300px) { .hero-media img { object-position: 68% 30%; } }

@media (max-width: 700px) {
    .hero { min-height: 92vh; }
    .hero-media img { object-position: 64% 0%; }
    .hero h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); }
    .hero-lede { font-size: 1rem; margin-bottom: 1.8rem; }
    .hero-inner { padding-bottom: 2.4rem; }
    .hero--light::after { background: linear-gradient(to top, rgba(251, 246, 241, 0.97) 0%, rgba(251, 246, 241, 0.86) 40%, rgba(251, 246, 241, 0.35) 62%, rgba(251, 246, 241, 0) 80%); }
}

/* ---- Hero inline capture (conversion) ---- */
.hero-capture {
    display: flex;
    gap: 0.6rem;
    max-width: 460px;
    margin-top: 0.5rem;
}
.hero-capture input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(46, 35, 32, 0.25);
    border-radius: 2px;
    background: rgba(255,255,255,0.9);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
}
.hero-capture input:focus { outline: none; border-color: var(--gold); }
.hero-capture .btn { flex: 0 0 auto; white-space: nowrap; }
.hero-capture-note {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.hero-capture-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
/* On a light hero the note reads dark; on dark hero it flips */
.hero:not(.hero--light) .hero-capture-note { color: var(--on-dark-soft); }
.hero:not(.hero--light) .hero-capture-note a { color: var(--on-dark); }

@media (max-width: 600px) {
    .hero-capture { flex-direction: column; }
    .hero-capture input[type="email"], .hero-capture .btn { width: 100%; }
}


/* ---- Split hero: text panel left, portrait right ---- */
.hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: clamp(560px, 82vh, 820px);
    background: var(--ivory);
    overflow: hidden;
}
.hero--split .hero-panel,
.hero--split .hero-portrait { min-height: clamp(560px, 82vh, 820px); }
.hero--split::after { display: none; }          /* no overlay scrim in split mode */
.hero--split .hero-panel {
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
}
.hero--split .hero-body { max-width: 34rem; color: var(--ink); }
.hero--split h1 { color: var(--ink); font-size: clamp(2.6rem, 4.5vw, 4.4rem); line-height: 0.98; margin-bottom: 1.4rem; max-width: 12ch; }
.hero--split .hero-lede { color: var(--ink-soft); }
.hero--split .hero-capture-note { color: var(--ink-soft); }
.hero--split .hero-capture-note a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.hero--split .hero-portrait {
    overflow: hidden;
    background: var(--sand);
}
.hero--split .hero-portrait img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

@media (max-width: 860px) {
    .hero--split { grid-template-columns: 1fr; min-height: 0; }
    .hero--split .hero-panel, .hero--split .hero-portrait { min-height: 0; }
    .hero--split .hero-portrait { order: -1; aspect-ratio: 4 / 3; min-height: 340px; }
    .hero--split .hero-portrait img { position: static; }
    .hero--split .hero-panel { padding: clamp(2rem, 8vw, 3rem) var(--gutter) clamp(2.5rem, 8vw, 3.5rem); }
    .hero--split h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ---- Right-aligned hero: subject on the left of photo, text on the right ---- */
.hero--right .hero-inner { display: flex; justify-content: flex-end; }
.hero--right .hero-body { max-width: 40rem; text-align: left; }
.hero--right::after {
    /* warm fade from the right so text-side stays legible over the backdrop */
    background: linear-gradient(to left, rgba(46,35,32,0.55) 0%, rgba(46,35,32,0.25) 38%, rgba(46,35,32,0) 65%);
}
.hero--right .hero-body,
.hero--right h1 { color: #fff; }
.hero--right .hero-lede { color: rgba(246,237,230,0.92); }
.hero--right .hero-capture-note { color: rgba(246,237,230,0.85); }
.hero--right .hero-capture-note a { color: #fff; border-bottom: 1px solid var(--gold-light); }

@media (max-width: 860px) {
    /* On mobile, photo is behind; darken more so text is always readable */
    .hero--right .hero-inner { justify-content: flex-start; }
    .hero--right::after {
        background: linear-gradient(to top, rgba(46,35,32,0.82) 0%, rgba(46,35,32,0.5) 45%, rgba(46,35,32,0.2) 80%);
    }
    .hero--right .hero-media img { object-position: 30% 20%; }
}
/* ==========================================================================
   Ghost editor cards
   ========================================================================== */

.kg-width-wide { max-width: 1040px; margin-inline: auto; }
.kg-width-full { max-width: 100%; }
.kg-card { margin-bottom: 2.2rem; }
.kg-image-card img, .kg-gallery-image img { border-radius: var(--radius-soft); }

.kg-callout-card { border-radius: var(--radius-soft); border: 0; background: var(--shell); padding: 1.7rem 1.9rem; }

.kg-bookmark-card a.kg-bookmark-container { border: 1px solid rgba(180, 137, 78, 0.32); border-radius: var(--radius-soft); box-shadow: none; text-decoration: none; }
.kg-bookmark-title { font-family: var(--font-display); font-weight: 400; }
.kg-bookmark-description { color: var(--ink-soft); }

.kg-button-card .kg-btn { border-radius: 2px; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: var(--tracked); text-transform: uppercase; }

.kg-toggle-card .kg-toggle-heading-text { font-family: var(--font-display); font-weight: 400; }

blockquote.kg-blockquote-alt { font-family: var(--font-display); border: 0; text-align: center; padding: 0; }

.kg-header-card h2.kg-header-card-header { font-family: var(--font-display); }
/* ==========================================================================
   Homepage modules
   ========================================================================== */

/* ---- Press strip ---- */

.press { padding: clamp(2.2rem, 4vw, 3.4rem) 0; background: var(--shell); }

.press-intro {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1.8rem;
}

.press-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 5vw, 4rem); }
.press-row img { height: clamp(18px, 2.4vw, 27px); width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity 0.3s var(--ease); }
.press-row img:hover { opacity: 0.85; }

/* ---- Books ---- */

.book { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center; padding: clamp(2.6rem, 5vw, 4.5rem) 0; }
.book + .book { border-top: var(--rule-faint); }
.book--flip .book-cover { order: 2; }
.book-body { text-align: left; }

.book-cover img {
    width: 100%;
    max-width: 330px;
    border-radius: 3px;
    box-shadow: 0 26px 50px -22px rgba(46, 35, 32, 0.45);
}

.book--flip .book-cover img { margin-left: auto; }

.book-body h3 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.book-body p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.8rem; }

@media (max-width: 820px) {
    .book { grid-template-columns: 1fr; text-align: center; }
    .book--flip .book-cover { order: 0; }
    .book-cover img { max-width: 230px; margin-inline: auto; }
    .book--flip .book-cover img { margin-inline: auto; }
    .book-body { text-align: center; }
    .book-body p { margin-inline: auto; }
}

/* ---- Podcast showcase ---- */

.showcase-inner { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2.4rem, 6vw, 5rem); align-items: center; }
.showcase-art img { width: 100%; max-width: 360px; border-radius: var(--radius-soft); }
.showcase-lede { font-size: var(--step-1); line-height: 1.6; color: var(--on-dark-soft); max-width: 46ch; }

.stats-line {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(217, 182, 126, 0.35);
    border-bottom: 1px solid rgba(217, 182, 126, 0.35);
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.3;
    color: var(--gold-light);
}

.guest-label { font-size: 0.68rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--on-dark-soft); margin: 2.2rem 0 0.6rem; }
.guest-list { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.6; color: var(--on-dark); margin: 0; }

@media (max-width: 860px) {
    .showcase-inner { grid-template-columns: 1fr; text-align: center; }
    .showcase-art img { max-width: 240px; margin-inline: auto; }
    .showcase-lede, .guest-list { margin-inline: auto; }
    .showcase .hero-actions { justify-content: center; }
}

/* ---- Search block ---- */

.learn { text-align: center; }
.learn h2 { font-size: var(--step-3); margin-bottom: 2rem; }

.learn-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(580px, 100%);
    margin: 0 auto;
    padding: 1.15rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(217, 182, 126, 0.5);
    border-radius: 999px;
    color: var(--on-dark-soft);
    font-family: var(--font-body);
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.learn-field:hover { border-color: var(--gold-light); color: var(--on-dark); }
.learn-field svg { width: 18px; height: 18px; flex: 0 0 auto; }

.learn-tags-label { font-size: 0.68rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--on-dark-soft); margin: 2.2rem 0 1rem; }

.learn-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

.learn-tags a {
    padding: 0.45rem 1.15rem;
    border: 1px solid rgba(246, 237, 230, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark-soft);
}

.learn-tags a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---- Video ---- */

.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--cocoa-deep); border-radius: var(--radius-soft); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-size: var(--step-2); margin: 1.5rem 0 0; text-align: center; }

/* ---- Instagram ---- */

.insta { background: var(--shell); padding: clamp(4rem, 7vw, 6.5rem) 0; text-align: center; }
.insta-count { font-size: 0.68rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }

.insta-handle {
    font-size: clamp(2rem, 7vw, 5rem);
    letter-spacing: 0.02em;
    margin-bottom: 2.6rem;
    color: var(--ink);
}

.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.8rem); margin-bottom: 2.4rem; }
.insta-tile { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-soft); background: var(--sand); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.insta-tile:hover img { transform: scale(1.05); }
.insta-text { max-width: 50ch; margin: 0 auto 2rem; color: var(--ink-soft); }

/* ==========================================================================
   Polish
   ========================================================================== */

/* Hero: one orchestrated moment on load — a slow settle, nothing else */
@keyframes heroSettle {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
}

@keyframes heroRise {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.hero-media img { animation: heroSettle 1.6s var(--ease) both; }
.hero-body > * { animation: heroRise 0.9s var(--ease) both; }
.hero-body > *:nth-child(1) { animation-delay: 0.18s; }
.hero-body > *:nth-child(2) { animation-delay: 0.28s; }
.hero-body > *:nth-child(3) { animation-delay: 0.38s; }
.hero-body > *:nth-child(4) { animation-delay: 0.48s; }

/* Header shrinks slightly once you start reading */
.site-header { transition: min-height 0.3s var(--ease), box-shadow 0.3s var(--ease); }
body.scrolled .site-header { box-shadow: 0 1px 24px -12px rgba(46, 35, 32, 0.35); }
body.scrolled .header-inner { min-height: 68px; }
@media (max-width: 1120px) { body.scrolled .header-inner { min-height: 62px; } body.scrolled .nav-primary { top: 62px; height: calc(100dvh - 62px); } }
.header-inner { transition: min-height 0.35s var(--ease); }

/* Mobile menu icon swap */
.nav-toggle-close { display: none; }
body.nav-open .nav-toggle-open { display: none; }
body.nav-open .nav-toggle-close { display: inline-flex; }
.nav-toggle span { line-height: 0; }

/* Footer typography */
.footer-blurb { max-width: 34ch; font-size: 0.97rem; color: var(--on-dark-soft); }

/* Newsletter lede */
.subscribe-lede { color: var(--on-dark-soft); max-width: 44ch; font-size: 1.02rem; }
.subscribe .eyebrow { color: var(--gold-light); }

/* Pillars: a hairline between them on desktop reads more considered */
@media (min-width: 801px) {
    .pillars { gap: 0; }
    .pillar { padding: 0 clamp(1.4rem, 3vw, 2.8rem); }
    .pillar + .pillar { border-left: 1px solid rgba(180, 137, 78, 0.28); }
}

/* Offers lift very slightly — the only hover translate on the site */
.offer { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.offer:hover { transform: translateY(-4px); box-shadow: 0 28px 44px -30px rgba(46, 35, 32, 0.5); }

/* Episode rows warm on hover */
.episode { transition: background 0.3s var(--ease); border-radius: var(--radius-soft); }
.episode:hover { background: var(--shell); box-shadow: 0 0 0 18px var(--shell); }
.episode:hover h3 { color: var(--rose); }
.episode h3 { transition: color 0.25s var(--ease); }

/* Buttons: a slower, softer press */
.btn:active { transform: translateY(1px); }

/* Long-form links inside posts get the gold underline treatment */
.post-content a { text-decoration-color: var(--gold); }

/* Selection and scrollbar warmth */
html { scrollbar-color: var(--sand) var(--ivory); }

/* Print */
@media print {
    .site-header, .site-footer, .band--cocoa, .insta, .press, .offer-ribbon { display: none !important; }
    body { background: #fff; }
}

/* Quiet links on dark bands */
.band--cocoa .link-quiet, .showcase .link-quiet { color: var(--on-dark); border-color: var(--gold-light); }
.band--cocoa .link-quiet:hover, .showcase .link-quiet:hover { color: var(--gold-light); }

/* Press placeholders */
.press-row img { opacity: 0.45; }

/* Dark newsletter/CTA sitting directly on the footer looked like one slab.
   The footer is now cocoa-deep with a gold hairline, and any cocoa section
   that ends the page gets a matching hairline so the seam always reads. */
.band--cocoa + .site-footer { border-top-color: rgba(180, 137, 78, 0.45); }
/* ==========================================================================
   Page templates — shared blocks for the hardcoded pages
   ========================================================================== */

/* Page hero: photo or plain */
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.page-hero h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.page-hero .lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.page-hero .hero-actions { justify-content: center; margin-top: 2.2rem; }
.page-hero--shell { background: var(--shell); }

/* Prose block */
.prose { max-width: var(--content-width); margin: 0 auto; font-size: 1.08rem; line-height: 1.9; }
.prose p { color: var(--ink); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose--center { text-align: center; }

/* Feature rows: image + text, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.feature + .feature { border-top: var(--rule-faint); }
.feature--flip .feature-media { order: 2; }
.feature-media { aspect-ratio: 4 / 5; border-radius: var(--radius-soft); overflow: hidden; background: var(--sand); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h2 { font-size: var(--step-3); margin-bottom: 0.8rem; }
.feature-body p { color: var(--ink-soft); }
.feature-body .btn { margin-top: 0.6rem; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature-media { order: 0; } .feature-media { max-width: 420px; margin-inline: auto; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 10px; border-radius: 999px; background: var(--gold); }

/* Numbered programme: weeks, steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(180,137,78,.25); border: 1px solid rgba(180,137,78,.25); border-radius: var(--radius-soft); overflow: hidden; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--ivory); padding: clamp(1.8rem, 3vw, 2.6rem); }
.step-num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--gold); margin-bottom: 0.9rem; }
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.6rem, 3vw, 2.4rem); max-width: 960px; margin: 0 auto; }
.price { background: var(--white); border: 1px solid rgba(180,137,78,.25); border-radius: var(--radius-soft); padding: clamp(2rem, 3vw, 2.8rem); text-align: center; display: flex; flex-direction: column; }
.price--featured { background: var(--cocoa); color: var(--on-dark); border-color: var(--cocoa); }
.price--featured h3, .price--featured .price-amount { color: var(--on-dark); }
.price--featured .checks li { color: var(--on-dark-soft); }
.price--featured .checks li::before { background: var(--gold-light); }
.price h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.price-amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; margin: 0.8rem 0 0.2rem; }
.price-amount small { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.price--featured .price-amount small { color: var(--on-dark-soft); }
.price .checks { text-align: left; margin: 1.6rem 0 2rem; }
.price .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: var(--rule-faint); }
.faq details:last-child { border-bottom: var(--rule-faint); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 2.6rem 1.4rem 0; font-family: var(--font-display); font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 62ch; }

/* Topics (speaking) */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); }
.topic { padding: clamp(1.8rem, 3vw, 2.4rem); background: var(--white); border-radius: var(--radius-soft); border: 1px solid rgba(180,137,78,.22); }
.topic h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.topic p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.topic .eyebrow { margin-bottom: 0.8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.4rem 0; border-bottom: var(--rule-faint); }
.contact-list strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); margin-bottom: 0.3rem; }
.contact-list span { color: var(--ink-soft); font-size: 0.96rem; display: block; }
.contact-list a { color: var(--gold); text-decoration: none; }

.form { display: grid; gap: 1rem; }
.form label { font-size: 0.7rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.4rem; }
.form input, .form textarea, .form select {
    width: 100%; padding: 0.95rem 1.1rem; border: 1px solid rgba(46,35,32,.18); border-radius: 2px;
    background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin: 0.4rem 0 0; }

/* Start here: numbered reading list */
.reading { list-style: none; padding: 0; margin: 0; counter-reset: read; max-width: 820px; margin-inline: auto; }
.reading li { counter-increment: read; display: grid; grid-template-columns: 60px 1fr; gap: 1.4rem; padding: 1.8rem 0; border-bottom: var(--rule-faint); }
.reading li::before { content: counter(read, decimal-leading-zero); font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--gold); }
.reading h3 { font-size: var(--step-1); margin: 0 0 0.3rem; }
.reading h3 a { text-decoration: none; }
.reading h3 a:hover { color: var(--rose); }
.reading p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Book detail extras */
.retailers { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.awards { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.awards li { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }

/* Values grid (about) */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(2rem, 4vw, 3.4rem); text-align: center; }
.values h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.values p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* Horizontal-scroll variant — cleaner than a 5-across grid on desktop.
   Cards sit in a row you can swipe/scroll; a subtle fade hints there's more. */
/* Belief cards: a clean centered grid on desktop (no mid-word cutoff),
   horizontal swipe only on tablet/mobile where they don't all fit. */
.values--scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.4rem, 2vw, 1.8rem);
    grid-template-columns: none;
}
.values--scroll > div {
    flex: 0 1 clamp(240px, 30%, 300px);
    background: var(--ivory);
    border: 1px solid rgba(180, 137, 78, 0.22);
    border-radius: var(--radius-soft);
    padding: clamp(1.6rem, 2.5vw, 2.2rem);
    text-align: left;
}

/* Tablet & mobile: switch to a swipeable row so cards don't get too narrow */
@media (max-width: 900px) {
    .values--scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1.2rem;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
    }
    .values--scroll > div { flex: 0 0 78%; scroll-snap-align: start; }
    .values--scroll::-webkit-scrollbar { height: 6px; }
    .values--scroll::-webkit-scrollbar-thumb { background: rgba(180,137,78,.5); border-radius: 999px; }
    .values--scroll::-webkit-scrollbar-track { background: transparent; }
}

}

/* Bottom CTA band */
.cta { text-align: center; }
.cta h2 { font-size: var(--step-3); }
.cta p { color: var(--on-dark-soft); max-width: 48ch; margin: 0 auto 2rem; }

/* Editor content appended under a designed page */
.page-extra { padding-top: 0; }
.page-extra .post-content:empty { display: none; }

@media (max-width: 700px) { .topics { grid-template-columns: 1fr; } }

/* ==========================================================================
   Newsletter archive — dated letter list
   ========================================================================== */

.letter-list { list-style: none; margin: 0; padding: 0; }

.letter { border-top: var(--rule-faint); }
.letter:last-child { border-bottom: var(--rule-faint); }

.letter a {
    display: block;
    padding: clamp(1.8rem, 3vw, 2.6rem) 0;
    text-decoration: none;
    transition: padding-left 0.3s var(--ease);
}
.letter a:hover { padding-left: 0.6rem; }

.letter-date {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
}

.letter-title { font-size: var(--step-2); margin: 0 0 0.6rem; line-height: 1.15; color: var(--ink); }
.letter a:hover .letter-title { color: var(--rose); }

.letter-excerpt { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 0 0 0.9rem; max-width: 62ch; }

.letter-more {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* ==========================================================================
   Placeholders — video + press
   ========================================================================== */

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--sand), var(--cocoa) 320%);
    border: 1px solid rgba(180,137,78,.3);
}
.video-placeholder-inner { text-align: center; color: var(--ink-soft); }
.video-play { display: inline-flex; color: var(--gold); }
.video-play svg { width: 54px; height: 54px; }
.video-placeholder-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: var(--tracked);
    text-transform: uppercase;
    color: var(--ink-faint);
}

.press-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 30px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
}
.press-slot.is-placeholder {
    border: 1px dashed rgba(180,137,78,.5);
    border-radius: 3px;
    padding: 0 1.4rem;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.7;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.prose.legal { max-width: 720px; font-size: 1.02rem; line-height: 1.8; }
.prose.legal h2 { font-size: var(--step-1); margin-top: 2.4em; margin-bottom: 0.6em; }
.prose.legal ul { padding-left: 1.3em; margin-bottom: 1.5em; }
.prose.legal li { margin-bottom: 0.6em; color: var(--ink-soft); }
.prose.legal p { color: var(--ink); }
.legal-note {
    margin-top: 3rem;
    padding: 1.4rem 1.6rem;
    background: var(--shell);
    border-radius: var(--radius-soft);
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* ==========================================================================
   Build-time placeholder highlighter (see main.js). Hidden with ?final
   ========================================================================== */
.kk-placeholder {
    background: rgba(180, 137, 78, 0.14);
    color: var(--gold);
    border-bottom: 1px dashed rgba(180, 137, 78, 0.7);
    padding: 0 0.15em;
    border-radius: 2px;
    font-style: normal;
}

/* ==========================================================================
   Post-content conversion block — the reader is warmest right after reading
   ========================================================================== */
.post-convert {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--shell);
    text-align: center;
}
.post-convert-inner { max-width: 560px; margin: 0 auto; }
.post-convert .eyebrow { color: var(--gold); }
.post-convert h2 { font-size: var(--step-2); margin: 0 0 0.8rem; }
.post-convert > .wrap > .post-convert-inner > p { color: var(--ink-soft); margin: 0 0 1.6rem; }
.post-convert .hero-capture { margin: 0 auto; }
.post-convert .hero-capture-note { text-align: center; }

/* ==========================================================================
   About page: full-bleed photo + pull-quote break (mid-story visual rest)
   ========================================================================== */
.about-break {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: var(--cocoa);
    color: var(--on-dark);
}
.about-break-media { min-height: 420px; overflow: hidden; }
.about-break-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-break-quote {
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5rem);
}
.about-break-quote blockquote {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.35;
    color: var(--on-dark);
    margin: 0;
    max-width: 22ch;
}
@media (max-width: 800px) {
    .about-break { grid-template-columns: 1fr; }
    .about-break-media { min-height: 300px; }
    .about-break-quote { padding: clamp(2rem, 8vw, 3rem); }
}

/* Beliefs connective intro */
.believe-intro {
    text-align: center;
    max-width: 52ch;
    margin: -0.6rem auto clamp(2rem, 3vw, 2.6rem);
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.6;
}
/* ==========================================================================
   Responsive polish — final mobile pass for all screen sizes.
   Additive only. Loaded last so it wins where it needs to.
   ========================================================================== */

/* Prevent any accidental horizontal scroll on small screens */
html, body { max-width: 100%; overflow-x: hidden; }
img, iframe, video, svg { max-width: 100%; }

/* Tablets and small laptops */
@media (max-width: 1024px) {
    :root { --gutter: 24px; }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
    :root { --gutter: 20px; }

    .band { padding: clamp(2.8rem, 9vw, 4rem) 0; }
    .band--tight { padding: clamp(2.2rem, 6vw, 3rem) 0; }

    /* Section heads sit closer on mobile */
    .section-head { margin-bottom: 1.8rem; }

    /* Buttons go comfortably tappable and full-width when stacked */
    .btn { padding: 0.95rem 1.6rem; min-height: 48px; }
    .hero-actions .btn,
    .page-hero .btn { min-height: 48px; }

    /* Forms: 16px inputs stop iOS from zooming on focus */
    .form input, .form textarea, .form select,
    .subscribe-form input[type="email"] { font-size: 16px; }

    /* Newsletter + gift: input and button stack full width.
       flex:0 0 auto stops the input from growing to fill the column
       (the bug that made the email box hundreds of px tall on mobile). */
    .subscribe-form { flex-direction: column; }
    .subscribe-form input[type="email"] {
        width: 100%;
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
    }
    .subscribe-form .btn { width: 100%; flex: 0 0 auto; }

    /* Podcast platform buttons wrap cleanly */
    .showcase .hero-actions,
    .archive-header .hero-actions { gap: 0.7rem; }
    .showcase .hero-actions .btn { flex: 1 1 auto; text-align: center; }

    /* Feature rows: image never dwarfs the text */
    .feature-media, .split-media { max-width: 380px; }

    /* Pricing + steps: single column, comfortable */
    .pricing { grid-template-columns: 1fr; }

    /* Legal + prose: a touch smaller, tighter leading */
    .prose, .prose.legal { font-size: 1rem; line-height: 1.75; }

    /* Post body pulls its full-bleed figures back to edge cleanly */
    .post-content { font-size: 1.02rem; }

    /* Tables inside posts scroll instead of breaking layout */
    .post-content table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Footer: brand block breathes */
    .footer-brand { font-size: 1.7rem; }
}

/* Standard phones */
@media (max-width: 600px) {
    h1 { line-height: 1.05; }

    /* Episode rows: art + text only, comfortable */
    .episode { grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.4rem 0; }
    .episode h3 { font-size: 1.15rem; }
    .episode p { font-size: 0.9rem; }

    /* Card grid: single column, image not too tall */
    .card-grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .card-image { aspect-ratio: 4 / 3; }

    /* Instagram: keep 3-up but tighten gap */
    .insta-grid { gap: 0.5rem; }

    /* Praise quotes stack with breathing room */
    .praise { gap: 2.4rem; }
    .praise blockquote { font-size: 1.15rem; }

    /* Letter archive tighter */
    .letter a { padding: 1.5rem 0; }
    .letter-title { font-size: 1.4rem; }

    /* Steps single column already; tighten padding */
    .step { padding: 1.6rem; }

    /* FAQ summary easier to tap */
    .faq summary { padding: 1.2rem 2.4rem 1.2rem 0; font-size: 1.15rem; min-height: 44px; }

    /* Header: keep the wordmark from crowding the icons */
    .site-brand { font-size: 1.05rem; letter-spacing: 0.12em; }
    .header-actions { gap: 0.5rem; }

    /* Contact list + book retailer buttons wrap */
    .retailers { gap: 0.6rem; }
    .retailers .btn { flex: 1 1 44%; }

    /* Book covers centred and not oversized */
    .book-cover img { max-width: 200px; }

    /* Pull the big display type in a touch so it never clips */
    .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.4rem); }
    .insta-handle { font-size: clamp(1.8rem, 9vw, 2.6rem); }
    .error-page .code { font-size: clamp(3.5rem, 22vw, 5rem); }
}

/* Small phones */
@media (max-width: 380px) {
    :root { --gutter: 16px; }
    .hero h1 { font-size: clamp(2.3rem, 12vw, 2.8rem); }
    .btn { letter-spacing: 0.16em; padding: 0.9rem 1.2rem; }
    .nav-primary a { font-size: 0.9rem; }
    .stats-line { font-size: 1.2rem; }
    .footer-base { flex-direction: column; gap: 0.4rem; }
}

/* Landscape phones: don't force the hero to fill an entire short viewport */
@media (max-height: 520px) and (orientation: landscape) {
    .hero, .hero--tall { min-height: 620px; }
}

/* Respect users who zoom text up: keep containers fluid */
@media (max-width: 900px) {
    .wrap, .wrap--mid, .wrap--narrow { padding-left: var(--gutter); padding-right: var(--gutter); }
}
/* ==========================================================================
   Scroll popup — image left, signup right. Fashion-editorial, not a coupon.
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(34, 26, 23, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.modal-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    width: min(860px, 100%);
    max-height: calc(100vh - var(--gutter) * 2);
    background: var(--ivory);
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(34, 26, 23, 0.6);
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { transform: none; opacity: 1; }

.modal-media { background: var(--sand); overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; min-height: 100%; }

.modal-body {
    padding: clamp(1.8rem, 3.5vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-body .eyebrow { color: var(--gold); margin-bottom: 0.9rem; }
.modal-body h2 { font-size: var(--step-3); line-height: 1.02; margin: 0 0 0.8rem; }
.modal-lede { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 1.6rem; }

.modal-form { display: flex; flex-direction: column; gap: 0.7rem; }
.modal-form input[type="email"] {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(46, 35, 32, 0.2);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
}
.modal-form input:focus { outline: none; border-color: var(--gold); }
.modal-form .btn { width: 100%; }

.modal-msg { font-size: 0.9rem; color: var(--rose); min-height: 1.1em; margin: 0.6rem 0 0; }

.modal-decline {
    margin-top: 1.1rem;
    background: none;
    border: 0;
    padding: 0.4rem 0;
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    align-self: center;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(160, 141, 130, 0.5);
}
.modal-decline:hover { color: var(--ink); }

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 246, 241, 0.85);
    border: 0;
    border-radius: 999px;
    color: var(--cocoa);
    cursor: pointer;
    line-height: 0;
    transition: background 0.2s var(--ease);
}
.modal-close:hover { background: var(--white); }
.modal-close svg { width: 18px; height: 18px; }

/* Mobile: stack, image on top, capped so the form is always reachable */
@media (max-width: 620px) {
    .modal { padding: 14px; align-items: flex-end; }
    .modal-card {
        grid-template-columns: 1fr;
        max-height: 92vh;
        transform: translateY(40px);
    }
    .modal-media { max-height: 34vh; }
    .modal-media img { object-position: center 22%; }
    .modal-body { padding: 1.6rem 1.4rem 1.8rem; }
    .modal-body h2 { font-size: var(--step-2); }
}

@media (max-width: 380px) {
    .modal-media { max-height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
    .modal-card { transform: none; }
}
/* ==========================================================================
   Link-in-bio hub (/start) — a single-screen branded landing for social bios
   ========================================================================== */
.linkhub {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ivory);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 3rem;
}
.linkhub-inner { width: 100%; max-width: 560px; text-align: center; }

.linkhub-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.linkhub-logo { max-height: 48px; width: auto; margin: 0 auto 1rem; }
.linkhub-brand {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
}
.linkhub-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 30ch;
    margin: 0 auto;
}

.linkhub-primary {
    background: var(--shell);
    border-radius: var(--radius-soft);
    padding: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: clamp(1.6rem, 4vw, 2.2rem);
}
.linkhub-primary .eyebrow { color: var(--gold); margin-bottom: 0.9rem; }
.linkhub-primary h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.12; margin: 0 0 0.7rem; }
.linkhub-sub { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin: 0 0 1.4rem; }
.linkhub-form { max-width: none; margin: 0 auto; }
.linkhub-form input[type="email"] { background: var(--white); }
.linkhub .hero-capture-note { text-align: center; }

.linkhub-links { display: flex; flex-direction: column; gap: 0.8rem; }
.linkhub-links a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.05rem 1.4rem;
    background: var(--white);
    border: 1px solid rgba(180, 137, 78, 0.28);
    border-radius: var(--radius-soft);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.linkhub-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
.linkhub-links span { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.linkhub-links em { font-style: normal; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-faint); }

.linkhub-social { display: flex; justify-content: center; gap: 1.2rem; margin-top: clamp(1.8rem, 4vw, 2.4rem); }
.linkhub-social a { color: var(--ink-faint); line-height: 0; }
.linkhub-social a:hover { color: var(--gold); }
.linkhub-social svg { width: 22px; height: 22px; }

/* ==========================================================================
   Welcome page (/welcome) — post-signup landing
   ========================================================================== */
.welcome { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.welcome-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.welcome-inner .eyebrow { color: var(--gold); }
.welcome h1 { font-size: var(--step-3); margin: 1rem 0 1rem; }
.welcome-lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 44ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }

.welcome-gift {
    background: var(--cocoa);
    color: var(--on-dark);
    border-radius: var(--radius-soft);
    padding: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.welcome-gift-label { font-size: 0.7rem; font-weight: 600; letter-spacing: var(--tracked); text-transform: uppercase; color: var(--gold-light); margin: 0 0 0.8rem; }
.welcome-gift h2 { font-size: var(--step-2); color: #fff; margin: 0 0 0.7rem; }
.welcome-gift > p { color: var(--on-dark-soft); line-height: 1.55; max-width: 42ch; margin: 0 auto 1.6rem; }
.welcome-gift .btn { margin-bottom: 0.9rem; }
.welcome-gift-note { font-size: 0.85rem; color: var(--on-dark-soft); margin: 0; }

.welcome-next { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.welcome-next > p { color: var(--ink-soft); line-height: 1.7; max-width: 48ch; margin: 0.9rem auto 0; }
.welcome-next-ps { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-top: 1.4rem !important; }

.welcome-links { margin-bottom: clamp(2rem, 4vw, 2.6rem); }
.welcome-links-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1rem; }
.welcome-links-row a {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 1.1rem 0.9rem;
    background: var(--white);
    border: 1px solid rgba(180, 137, 78, 0.28);
    border-radius: var(--radius-soft);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.welcome-links-row a:hover { border-color: var(--gold); transform: translateY(-2px); }
.welcome-links-row span { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.welcome-links-row em { font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }

.welcome-sign { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-top: 1.5rem; }

@media (max-width: 600px) {
    .welcome-links-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Casual image-save deterrence (pairs with the JS in main.js).
   Speed bump only — stops drag/select/callout, not screenshots or dev tools.
   ========================================================================== */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;   /* iOS long-press "Save Image" menu */
}
