:root {
    --journal-ink: #17201c;
    --journal-muted: #68716c;
    --journal-line: #e5e2dc;
    --journal-paper: #fff;
    --journal-warm: #f5f2eb;
    --journal-gold: #c89c3c;
    --journal-maroon: #7d1f28;
}

.journal-page {
    color: var(--journal-ink);
    background: var(--journal-paper);
}

.journal-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: 3px;
    pointer-events: none;
}

.journal-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--journal-gold);
    transition: width .08s linear;
}

.journal-hero {
    position: relative;
    display: flex;
    min-height: min(82svh, 880px);
    align-items: flex-end;
    overflow: hidden;
    background: #111714;
}

.journal-hero-media,
.journal-hero-media::after,
.journal-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.journal-hero-media img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.journal-hero-media::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(9, 14, 12, .78) 0%, rgba(9, 14, 12, .34) 58%, rgba(9, 14, 12, .16) 100%),
        linear-gradient(0deg, rgba(9, 14, 12, .92) 0%, rgba(9, 14, 12, .08) 72%);
}

.journal-hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1380px);
    margin: 0 auto;
    padding: 170px 0 66px;
}

.journal-hero-copy {
    max-width: 980px;
}

.journal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    color: #f4c760;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.journal-kicker::before {
    width: 42px;
    height: 1px;
    background: currentColor;
    content: "";
}

.journal-title {
    max-width: 1050px;
    margin: 0;
    color: #fff;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(48px, 6.2vw, 88px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.journal-deck {
    max-width: 760px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 400;
    line-height: 1.65;
}

.journal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 22px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
}

.journal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.journal-meta svg {
    width: 14px;
    height: 14px;
    color: #f4c760;
}

.journal-meta-dot {
    width: 3px !important;
    height: 3px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.journal-reader {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    padding: 92px 0 112px;
}

.journal-reader-grid {
    display: grid;
    grid-template-columns: 60px minmax(0, 760px) minmax(230px, 290px);
    justify-content: center;
    gap: clamp(34px, 5vw, 78px);
}

.journal-share-rail,
.journal-contents-card {
    position: sticky;
    top: 125px;
    align-self: start;
}

.journal-share-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.journal-share-label {
    margin-bottom: 7px;
    color: #969d99;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.journal-share-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--journal-line);
    border-radius: 50%;
    color: #56605a;
    background: #fff;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.journal-share-button:hover,
.journal-share-button:focus-visible {
    border-color: var(--journal-ink);
    color: #fff;
    background: var(--journal-ink);
    transform: translateY(-2px);
}

.journal-share-button svg {
    width: 16px;
    height: 16px;
}

.journal-share-button i { font-size: 15px; }

.journal-mobile-tools {
    display: none;
}

.journal-mobile-contents {
    display: none;
    margin: 0 0 24px;
    border: 1px solid var(--journal-line);
    background: #faf9f6;
}

.journal-mobile-contents summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    color: var(--journal-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    list-style: none;
    text-transform: uppercase;
    cursor: pointer;
}

.journal-mobile-contents summary::-webkit-details-marker { display: none; }
.journal-mobile-contents summary svg { width: 15px; transition: transform .2s; }
.journal-mobile-contents[open] summary svg { transform: rotate(180deg); }
.journal-mobile-contents .journal-toc { padding: 3px 18px 20px; }
.journal-mobile-contents .journal-toc a { font-size: 13px; }
.journal-mobile-contents .journal-toc a::before { display: none; }

.journal-body {
    min-width: 0;
    color: #3f4843;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 19px;
    line-height: 1.86;
}

.journal-body > p:first-of-type {
    color: #25302a;
    font-size: 22px;
    line-height: 1.72;
}

.journal-body > p:first-of-type::first-letter {
    float: left;
    margin: .11em .14em 0 0;
    color: var(--journal-maroon);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 4.8em;
    font-weight: 600;
    line-height: .72;
}

.journal-body p {
    margin: 0 0 1.55em;
}

.journal-body h2,
.journal-body h3 {
    scroll-margin-top: 125px;
    color: var(--journal-ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.journal-body h2 {
    margin: 2.1em 0 .65em;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
}

.journal-body h3 {
    margin: 1.9em 0 .6em;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
}

.journal-body a {
    color: var(--journal-maroon);
    text-decoration: underline;
    text-decoration-color: rgba(125, 31, 40, .35);
    text-underline-offset: 4px;
}

.journal-body blockquote {
    position: relative;
    margin: 2.5em 0;
    padding: 35px 38px 35px 48px;
    border: 0;
    border-left: 3px solid var(--journal-gold);
    color: var(--journal-ink);
    background: var(--journal-warm);
    font-size: clamp(24px, 3vw, 32px);
    font-style: italic;
    line-height: 1.45;
}

.journal-body ul,
.journal-body ol {
    margin: 0 0 1.75em;
    padding-left: 1.35em;
}

.journal-body li {
    margin-bottom: .65em;
    padding-left: .35em;
}

.journal-body ul li { list-style: disc; }
.journal-body ol li { list-style: decimal; }

.journal-body img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    margin: 2.3em 0 .7em;
    border-radius: 2px;
    object-fit: cover;
    cursor: zoom-in;
}

.journal-body figure {
    margin: 2.4em 0;
}

.journal-body figure img { margin: 0; }

.journal-body figcaption {
    margin-top: 10px;
    color: #838b86;
    font-family: Inter, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.journal-anchor {
    display: block;
    position: relative;
    top: -125px;
    visibility: hidden;
}

.journal-article-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--journal-line);
}

.journal-author {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    align-items: center;
}

.journal-author-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--journal-maroon);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 24px;
}

.journal-author-label {
    display: block;
    margin-bottom: 3px;
    color: #8a928e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.journal-author strong {
    display: block;
    color: var(--journal-ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
}

.journal-author p {
    margin: 4px 0 0;
    color: #727b76;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.journal-contents-card {
    padding: 25px 0 0 25px;
    border-left: 1px solid var(--journal-line);
}

.journal-contents-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--journal-maroon);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.journal-contents-card h2 {
    margin: 0 0 23px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 25px;
    font-weight: 600;
}

.journal-toc {
    display: grid;
    gap: 15px;
}

.journal-toc a {
    display: block;
    position: relative;
    color: #7b837f;
    font-size: 12px;
    line-height: 1.5;
    transition: color .2s, transform .2s;
}

.journal-toc a[data-level="3"] { padding-left: 14px; }

.journal-toc a::before {
    position: absolute;
    top: .65em;
    left: -26px;
    width: 2px;
    height: 0;
    background: var(--journal-maroon);
    content: "";
    transition: height .2s, top .2s;
}

.journal-toc a.is-active {
    color: var(--journal-ink);
    transform: translateX(3px);
}

.journal-toc a.is-active::before {
    top: 0;
    height: 100%;
}

.journal-plan-card {
    margin-top: 34px;
    padding: 24px;
    color: #fff;
    background: var(--journal-ink);
}

.journal-plan-card span {
    color: #f4c760;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.journal-plan-card h3 {
    margin: 10px 0 18px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
}

.journal-plan-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.journal-plan-card a svg { width: 14px; }

.journal-related {
    padding: 100px 24px 120px;
    border-top: 1px solid var(--journal-line);
    background: #f8f7f4;
}

.journal-related-inner {
    width: min(100%, 1250px);
    margin: 0 auto;
}

.journal-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 42px;
}

.journal-related-head span {
    color: var(--journal-maroon);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.journal-related-head h2 {
    margin: 9px 0 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.journal-related-head > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #a8ada9;
    color: var(--journal-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.journal-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.journal-related-card {
    display: block;
    color: var(--journal-ink);
}

.journal-related-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ddd;
}

.journal-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.journal-related-card:hover .journal-related-image img { transform: scale(1.05); }

.journal-related-copy { padding: 21px 6px 0 0; }

.journal-related-copy span {
    color: var(--journal-maroon);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.journal-related-copy h3 {
    margin: 9px 0 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.18;
}

.journal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    padding: 34px;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 10, .94);
}

.journal-lightbox.is-open { display: flex; }

.journal-lightbox img {
    max-width: min(95vw, 1440px);
    max-height: 88vh;
    object-fit: contain;
}

.journal-lightbox button {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
}

.journal-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--journal-ink);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s;
}

.journal-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.journal-toast {
    position: fixed;
    right: 22px;
    bottom: 80px;
    z-index: 130;
    padding: 11px 16px;
    border-radius: 999px;
    color: #fff;
    background: var(--journal-ink);
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(7px);
    transition: opacity .2s, transform .2s;
}

.journal-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
    .journal-reader-grid {
        grid-template-columns: minmax(0, 760px) minmax(220px, 270px);
        gap: 52px;
    }
    .journal-share-rail { display: none; }
    .journal-mobile-tools {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 42px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--journal-line);
    }
    .journal-mobile-tools > span {
        color: #8a928e;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .18em;
        text-transform: uppercase;
    }
    .journal-mobile-share { display: flex; gap: 8px; }
    .journal-mobile-share .journal-share-button { width: 38px; height: 38px; }
}

@media (max-width: 780px) {
    .journal-hero { min-height: 76svh; }
    .journal-hero-inner {
        width: min(100% - 32px, 1380px);
        padding: 145px 0 44px;
    }
    .journal-title { font-size: clamp(38px, 11vw, 58px); line-height: 1; }
    .journal-deck { margin-top: 20px; font-size: 15px; line-height: 1.6; }
    .journal-meta { gap: 10px 15px; margin-top: 22px; font-size: 11px; }
    .journal-meta-dot { display: none !important; }
    .journal-reader { width: min(100% - 32px, 760px); padding: 58px 0 82px; }
    .journal-reader-grid { display: block; }
    .journal-contents-card { display: none; }
    .journal-mobile-contents { display: block; }
    .journal-body { font-size: 17px; line-height: 1.8; }
    .journal-body > p:first-of-type { font-size: 19px; }
    .journal-body blockquote { margin: 2em -8px; padding: 28px 25px 28px 28px; }
    .journal-mobile-tools { align-items: flex-start; }
    .journal-mobile-tools > span { padding-top: 13px; }
    .journal-mobile-share { flex-wrap: wrap; justify-content: flex-end; }
    .journal-related { padding: 72px 16px 90px; }
    .journal-related-head { align-items: flex-start; }
    .journal-related-head > a { display: none; }
    .journal-related-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(275px, 84vw);
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .journal-related-grid::-webkit-scrollbar { display: none; }
    .journal-related-card { scroll-snap-align: start; }
    .journal-related-copy h3 { font-size: 22px; }
    .journal-lightbox { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .journal-progress span,
    .journal-related-image img,
    .journal-share-button,
    .journal-back-top { transition: none; }
    html { scroll-behavior: auto !important; }
}
