/* ====================================================================
   Brian Baruch — editorial design system
   Bone paper / Ink type / Indigo dark / Ember accent
   Type: Spectral (free fallback for GT Sectra) + Inter (free fallback for Söhne)
   ==================================================================== */

:root {
    /* Color tokens.
       Mist and Ember are tuned for WCAG 2.2 AA: Mist #6B635A reads 5.2:1 on
       Bone and 4.6:1 on Vellum (it is used at small sizes, so it needs the
       full 4.5:1). Ember #B02040 reads 5.9:1 on Bone and 5.2:1 on Vellum,
       so small links and CTAs pass on both light backgrounds. */
    --ink: #16130F;
    --bone: #F5F0E8;
    --vellum: #EAE2D2;
    --indigo: #1A1F3A;
    --ember: #B02040;
    --halo: #D9B26E;
    --mist: #6B635A;

    /* Derived */
    --ink-on-bone: var(--ink);
    --bone-on-indigo: var(--bone);
    --rule: rgba(22, 19, 15, 0.12);
    --rule-on-dark: rgba(245, 240, 232, 0.16);

    /* Typography */
    --serif: 'Spectral', 'GT Sectra', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Type scale (fluid clamp) */
    --display-xl: clamp(3.5rem, 8vw, 7.5rem);
    --display-l: clamp(2.75rem, 6vw, 5rem);
    --display-m: clamp(2rem, 4vw, 3.5rem);
    --display-s: clamp(1.5rem, 3vw, 2.25rem);
    --body-l: clamp(1.125rem, 1.3vw, 1.5rem);
    --body: 1.0625rem;
    --small: 0.875rem;
    --eyebrow: 0.6875rem;

    /* Layout */
    --container: 78rem;
    --container-narrow: 44rem;
    --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--body);
    line-height: 1.55;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 200ms ease, border-color 200ms ease;
}
a:hover { color: var(--ember); border-color: var(--ember); }

::selection { background: var(--ember); color: var(--bone); }

.skip-link {
    position: absolute; left: -1000px; top: -1000px;
    background: var(--ink); color: var(--bone);
    padding: 0.5rem 1rem; border: 0;
    z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* ------------------------------------------------------------ Header */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(22, 19, 15, 0.08);
}
/* Thin ember accent at the bottom of the sticky header — the only flash of color
   in the chrome itself. Just enough to signal brand. */
.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ember) 50%, transparent 100%);
    opacity: 0.55;
    pointer-events: none;
}
.site-header__row {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding-block: 0.875rem;
    position: relative;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    border-bottom: none;
    margin-right: auto;          /* push everything else to the right */
    transition: opacity 200ms ease;
}
.site-logo:hover { opacity: 0.72; }
.site-logo__img {
    height: 44px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .site-logo__img { height: 36px; }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}
.site-nav__list a {
    border-bottom: none;
    padding: 0.25rem 0;
    position: relative;
}
.site-nav__list a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
}
.site-nav__list a:hover { color: var(--ember); }
.site-nav__list a:hover::after { transform: scaleX(1); }

/* The CTA: properly accented pill, the only filled button in the chrome.
   Subtle ember glow on hover. Tiny bone dot before the text adds character. */
.site-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem 0.625rem 1.125rem;
    background: var(--ember);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 0;
    border-bottom: none;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px -8px rgba(201, 48, 79, 0.55);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.site-nav__cta::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bone);
    opacity: 0.9;
}
.site-nav__cta:hover {
    background: #B0263F;
    color: var(--bone);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.04), 0 12px 24px -8px rgba(201, 48, 79, 0.65);
}

/* Mobile menu toggle — hidden by default, visible only when the desktop nav
   gets cramped. Animated hamburger that becomes an X on open. */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: 0.5rem;
}
.nav-toggle__line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 220ms ease, opacity 220ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bone);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.25rem var(--gutter) 2rem;
        box-shadow: 0 24px 32px -24px rgba(0,0,0,0.16);
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .site-nav__list li {
        border-bottom: 1px solid var(--rule);
    }
    .site-nav__list a {
        display: block;
        padding: 1rem 0;
        font-size: 0.875rem;
    }
    .site-nav__list a::after { display: none; }
    .site-nav__cta {
        margin-top: 1.25rem;
        align-self: flex-start;
    }
}

/* ------------------------------------------------------------ Typography primitives */

.eyebrow {
    font-family: var(--sans);
    font-size: var(--eyebrow);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
    margin: 0 0 1rem;
}

.display-xl, .display-l, .display-m, .display-s {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0;
}
.display-xl { font-size: var(--display-xl); }
.display-l  { font-size: var(--display-l); }
.display-m  { font-size: var(--display-m); }
.display-s  { font-size: var(--display-s); line-height: 1.15; }

.lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--body-l);
    line-height: 1.55;
    color: var(--ink);
    max-width: 38rem;
}

/* ------------------------------------------------------------ Section themes */

.section { padding-block: clamp(4rem, 10vh, 8rem); }
.section--bone   { background: var(--bone);   color: var(--ink); }
.section--vellum { background: var(--vellum); color: var(--ink); }
.section--indigo { background: var(--indigo); color: var(--bone); }
.section--indigo .eyebrow { color: rgba(245, 240, 232, 0.7); }
.section--indigo a:hover { color: var(--halo); border-color: var(--halo); }

/* ------------------------------------------------------------ Homepage hero */

.home-hero {
    min-height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
    background: var(--indigo);
    color: var(--bone);
    padding: 8rem var(--gutter);
    position: relative;
}
/* Indigo radial scrim over the paper-grain parallax layer.
   Sits between the layer (z 0) and the copy (z 2). Tuned to keep the verse
   legible while letting the gold-particle motion show through. */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(26,31,58,0.35) 0%, rgba(26,31,58,0.68) 100%);
    pointer-events: none;
}
.home-hero .parallax__layer { opacity: 1; }
.home-hero .eyebrow { color: rgba(245, 240, 232, 0.65); margin-bottom: 2rem; }
.home-hero__quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.18;
    max-width: 30ch;
    margin: 0 auto;
}
.home-hero__wordmark {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin-top: 3rem;
}
.home-hero__rule {
    position: absolute;
    bottom: 3rem; left: 50%;
    width: 1px; height: 4rem;
    background: var(--ember);
    transform: translateX(-50%);
}
.home-hero__begin {
    position: absolute;
    bottom: 1.25rem; left: 50%;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.65);
    transform: translateX(-50%);
}

/* ------------------------------------------------------------ Featured poem module */

.featured-poem {
    text-align: center;
    padding-block: clamp(5rem, 12vh, 9rem);
}
.featured-poem__title {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.05;
    margin: 0.5rem 0 2rem;
}
.featured-poem__stanza {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.6vw, 1.625rem);
    line-height: 1.65;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
    white-space: pre-line;
}
.featured-poem__more {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ember);
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.25rem;
}

/* ------------------------------------------------------------ Collections shelf */

.collections {
    display: grid;
    gap: 1px;
    background: var(--rule);
    grid-template-columns: 1fr;
    border-block: 1px solid var(--rule);
}
@media (min-width: 768px) {
    .collections { grid-template-columns: repeat(5, 1fr); }
}
.collection-card {
    background: var(--bone);
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-bottom: none;
    transition: background 240ms ease;
}
.collection-card:hover { background: var(--vellum); color: var(--ink); }
.collection-card__count {
    font-family: var(--sans);
    font-size: var(--eyebrow);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
}
.collection-card__title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}
.collection-card__tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--body);
    color: var(--mist);
    margin: 0;
}

/* ------------------------------------------------------------ Pull-quote */

.pullquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.4;
    max-width: 38rem;
    margin: 3rem auto;
    text-align: center;
}
.pullquote__attribution {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
}

/* ------------------------------------------------------------ Long-read poem page */

.poem-title-card {
    min-height: 100vh;
    display: grid; place-content: center;
    text-align: center;
    background: var(--indigo);
    color: var(--bone);
    padding: var(--gutter);
}
.poem-title-card__eyebrow { color: rgba(245, 240, 232, 0.6); margin-bottom: 2.5rem; }
.poem-title-card__title {
    font-family: var(--serif);
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
}
.poem-title-card__meta {
    margin-top: 3rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
}

/* The split sticky reading view */
.longread {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bone);
}
@media (min-width: 900px) {
    .longread { grid-template-columns: 1fr 1fr; gap: 0; }
}
.longread__media {
    position: sticky; top: 0;
    height: 100vh;
    overflow: clip;
    background: var(--indigo);
    display: grid; place-content: center;
    color: var(--bone);
}
.longread__media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.longread__media-placeholder {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    color: rgba(245, 240, 232, 0.5);
    padding: 2rem;
    text-align: center;
}
.longread__body {
    padding: clamp(4rem, 12vh, 12rem) clamp(1.5rem, 5vw, 5rem);
    color: var(--ink);
}
.longread__body .stanza {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.5vw, 1.625rem);
    line-height: 1.7;
    margin-block: 0 2.5rem;
    white-space: pre-line;
    color: var(--ink);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.longread__body .stanza.is-in {
    opacity: 1;
    transform: none;
}
.longread__meta {
    margin-top: 4rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
}
.longread__meta a { color: inherit; }

@media (max-width: 899px) {
    .longread__media {
        position: relative;
        height: 60vh;
    }
}

/* ------------------------------------------------------------ Poem nav (continue reading) */

.poem-nav {
    background: var(--bone);
    border-top: 1px solid var(--rule);
    padding-block: clamp(3rem, 6vh, 5rem);
}
.poem-nav__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .poem-nav__grid { grid-template-columns: repeat(3, 1fr); }
}
.poem-nav__card {
    padding: 1.5rem 0;
    border-bottom: none;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.poem-nav__label {
    font-family: var(--sans);
    font-size: var(--eyebrow);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
}
.poem-nav__title {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

/* ------------------------------------------------------------ Universal hero band
   Used for collection landings, tour, healing, sessions, gallery, faq, etc.
   Supports both static (background-image) and parallax (with parallax-layer) variants.
   The .collection-hero name stays for backwards compatibility; .hero-band is the alias.
*/

.collection-hero,
.hero-band {
    position: relative;
    min-height: 70vh;
    display: grid;
    align-content: end;
    padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem);
    background: var(--indigo);
    background-size: cover;
    background-position: center;
    overflow: clip;
    isolation: isolate;
    contain: layout paint;
    color: var(--bone);
}
.collection-hero--short,
.hero-band--short {
    min-height: 50vh;
    align-content: center;
    text-align: center;
    padding-block: clamp(3rem, 8vh, 6rem);
}
.collection-hero__scrim,
.hero-band__scrim {
    position: absolute; inset: 0;
    /* Dual gradient: warm ink + cool indigo, weighted to the bottom-left so the
       overlaid eyebrow + title stay legible against any underlying photo. */
    background:
        linear-gradient(180deg, rgba(22, 19, 15, 0.05) 0%, rgba(22, 19, 15, 0.55) 100%),
        linear-gradient(135deg, rgba(26, 31, 58, 0.05) 0%, rgba(26, 31, 58, 0.22) 100%);
    pointer-events: none;
    z-index: 1;
}
.collection-hero__copy,
.hero-band__copy {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------------------------ Collection index page */

.page-hero {
    min-height: 60vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: clamp(4rem, 10vh, 8rem) var(--gutter);
    position: relative;
}
.page-hero h1 { margin: 0.5rem 0 1.5rem; }

.poetry-index {
    list-style: none;
    margin: 0; padding: 0;
}
.poetry-index__row {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
    .poetry-index__row {
        grid-template-columns: 3rem minmax(0, 18rem) 1fr;
        gap: 2rem;
    }
}
.poetry-index__number {
    font-family: var(--sans);
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    color: var(--mist);
    letter-spacing: 0.04em;
}
.poetry-index__title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    line-height: 1.2;
    margin: 0;
}
.poetry-index__title a { border-bottom: none; }
.poetry-index__title a:hover { color: var(--ember); }
.poetry-index__subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--mist);
    margin: 0;
}

/* ------------------------------------------------------------ Disclaimer */

.disclaimer {
    margin: 3rem auto 0;
    max-width: var(--container-narrow);
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
    border-left: 3px solid var(--mist);
    background: var(--vellum);
}
.disclaimer p {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}
.section--indigo .disclaimer,
.section--bone .disclaimer { background: var(--vellum); }

/* ------------------------------------------------------------ Legal prose */

.prose-legal h2 {
    margin: 2.5rem 0 1rem;
}
.prose-legal p,
.prose-legal li {
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
}
.prose-legal ul {
    padding-left: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

/* ------------------------------------------------------------ Footer */

.site-footer {
    background: var(--ink);
    color: var(--bone);
    padding-block: clamp(4rem, 8vh, 6rem) 3rem;
    margin-top: 6rem;
}
.site-footer a { color: var(--bone); border-bottom: 1px solid rgba(245,240,232,0.25); }
.site-footer a:hover { color: var(--halo); border-color: var(--halo); }
.site-footer__grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__heading {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.6);
    margin: 0 0 1rem;
}
.site-footer__brand p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.5;
    max-width: 30rem;
    margin: 0;
    color: rgba(245,240,232,0.85);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.site-footer__benediction {
    margin-top: 4rem;
    padding: 3rem 0 0;
    border-top: 1px solid rgba(245, 240, 232, 0.12);
    text-align: center;
}
.site-footer__quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    line-height: 1.4;
    color: rgba(245, 240, 232, 0.92);
    margin: 0 auto 1rem;
    max-width: 36rem;
    /* Subtle ember opening + closing quote glyphs */
    position: relative;
}
.site-footer__quote::before {
    content: '\201C';
    position: absolute;
    color: var(--ember);
    font-style: normal;
    font-size: 2.25rem;
    line-height: 1;
    margin-left: -1.5rem;
    margin-top: -0.25rem;
    opacity: 0.9;
}
.site-footer__quote::after {
    content: '\201D';
    color: var(--ember);
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    vertical-align: -0.05em;
    margin-left: 0.1rem;
    opacity: 0.9;
}
.site-footer__attribution {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.55);
    margin: 0;
}

.site-footer__legal {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245,240,232,0.08);
    display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap;
    font-size: 0.75rem;
    color: rgba(245,240,232,0.5);
}
.site-footer__motion-toggle {
    background: none;
    border: 1px solid rgba(245,240,232,0.3);
    color: rgba(245,240,232,0.8);
    padding: 0.5rem 1rem;
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}
.site-footer__motion-toggle:hover { background: var(--bone); color: var(--ink); }
.site-footer__motion-toggle[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--bone); }

/* ------------------------------------------------------------ Intro split
   Two-column band with a portrait on one side and a copy block on the other.
   Used on the homepage (Brian intro) and twice on /about (top intro + endorsements).
   .intro-split--reverse swaps the order so copy can lead on alternating sections. */

.intro-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--bone);
}
.intro-split__media {
    position: relative;
    background: var(--indigo);
    overflow: clip;
    min-height: 50vh;
}
.intro-split__media > img {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.intro-split__copy {
    padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 900px) {
    .intro-split {
        grid-template-columns: 5fr 7fr;
        min-height: 80vh;
    }
    .intro-split--reverse {
        grid-template-columns: 7fr 5fr;
    }
    /* When reversed, the copy comes first in the DOM so on mobile it stacks
       copy-above-image. The reverse rule on desktop swaps the columns visually
       so the image moves to the right. */
    .intro-split--reverse .intro-split__copy { grid-column: 1; }
    .intro-split--reverse .intro-split__media { grid-column: 2; }
    .intro-split__media > img { min-height: 80vh; }
}

/* ------------------------------------------------------------ Journal essays */

.essay {
    padding-block: 2.5rem;
    border-top: 1px solid var(--rule);
}
.essay__title { margin: 0.5rem 0 1.5rem; }
.essay p:not(.eyebrow) {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

/* ------------------------------------------------------------ Listening lessons */

.lesson {
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--rule);
}
.lesson__title { margin: 0.5rem 0 1rem; }
.lesson__caption {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1.5rem;
    max-width: 38rem;
}
.lesson__player {
    display: block;
    width: 100%;
    max-width: 38rem;
    margin-top: 1.25rem;
}
.lesson__text { margin-top: 1.5rem; max-width: 38rem; }
.lesson__text summary {
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ember);
    padding-block: 0.5rem;
}
.lesson__text .prose p {
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 1.25rem 0 0;
}

/* Short ember rule used as a list marker on the healing pages. */
.rule-bullet {
    display: inline-block;
    width: 0.9em;
    height: 2px;
    background: var(--ember);
    vertical-align: 0.32em;
    margin-right: 0.7em;
}
.rule-bullet--grid {
    display: block;
    margin: 0.8em 0 0;
}

/* ------------------------------------------------------------ Inset window
   A small framed photo set into the corner of a larger image. It carries
   data-parallax-layer with a negative depth, so it drifts slightly faster
   than the page and reads as sitting in front of the image behind it.
   Offsets stay larger than the peak drift (~51px at depth -0.08) so the
   frame never clips against the edge of its container. */

.inset-window {
    position: absolute;
    z-index: 2;
    margin: 0;
    width: clamp(7.5rem, 30%, 13rem);
    aspect-ratio: 1;
    border: 6px solid var(--bone);
    box-shadow: 0 1.25rem 2.75rem rgba(22, 19, 15, 0.38);
    background: var(--vellum);
    overflow: clip;
    will-change: transform;
}
.inset-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.inset-window--wide {
    aspect-ratio: 4 / 3;
    width: clamp(9.5rem, 40%, 17rem);
}
.inset-window--bl { left: clamp(1rem, 4%, 2.5rem); bottom: clamp(4.5rem, 9%, 6rem); }
.inset-window--br { right: clamp(1rem, 4%, 2.5rem); bottom: clamp(4.5rem, 9%, 6rem); }

/* Inside a hero band the window sits top-right, clear of the bottom-aligned
   copy. On narrow screens it joins the grid flow above the copy instead, so
   a long headline can never slide underneath it. */
.hero-band .inset-window {
    top: clamp(5rem, 14vh, 8rem);
    right: clamp(1.5rem, 5vw, 5rem);
    width: clamp(7rem, 16vw, 12.5rem);
}
@media (max-width: 699px) {
    .hero-band .inset-window {
        position: relative;
        top: auto;
        right: auto;
        justify-self: end;
        margin: 0 1rem 2rem 0;
    }
}
