/* JOURNAL V17 — READER */

.reading-progress {
    position: fixed;
    top: var(--brand-header-h);
    left: 0;
    z-index: 1900;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.reading-progress__bar {
    width: 0;
    height: 100%;
    background: var(--brand-text);
    transform-origin: left center;
}

.article-cover {
    position: relative;
    isolation: isolate;
    background: #08090a;
}

.article-cover__media,
.article-cover__veil {
    position: absolute;
    inset: 0;
}

.article-cover__media {
    z-index: -3;
    overflow: hidden;
}

.article-cover__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.86) brightness(.62) contrast(1.06);
    --brand-media-base-scale: 1;
    transform: scale(calc(var(--brand-media-base-scale) + var(--brand-media-drift, 0)));
}

.article-cover__veil {
    z-index: -2;
    background: linear-gradient(180deg, rgba(8,9,10,.16), rgba(8,9,10,.26) 30%, rgba(8,9,10,.7) 69%, #08090a 100%);
}

.article-cover__frame {
    width: min(100% - 32px, 1560px);
    height: 100%;
    margin-inline: auto;
    padding: 18px 0 22px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
}

.article-cover__topline,
.article-cover__label,
.article-cover__meta,
.article-cover__scroll {
    font-family: var(--brand-mono);
    text-transform: uppercase;
}

.article-cover__topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(238,233,225,.68);
    font-size: .58rem;
}

.article-cover__topline a { color: inherit; }

.article-cover__copy {
    align-self: end;
    max-width: 980px;
    padding-bottom: clamp(12px, 2.5svh, 30px);
}

.article-cover__label {
    margin: 0 0 10px;
    color: var(--brand-text-soft);
    font-size: .61rem;
}

.article-cover h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(2.5rem, 11vw, 4.8rem);
    line-height: .9;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.article-cover__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    color: rgba(238,233,225,.66);
    font-size: .57rem;
}

.article-cover__scroll {
    justify-self: end;
    color: rgba(238,233,225,.66);
    font-size: .58rem;
}

.article-reader {
    background: #0d0e10;
    border-top: 1px solid var(--brand-line);
}

.article-reader__grid {
    width: min(100% - 32px, 1160px);
    margin-inline: auto;
    padding: 58px 0 84px;
    display: grid;
    gap: 32px;
}

.article-reader__rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font: 500 .58rem/1.4 var(--brand-mono);
    text-transform: uppercase;
}

.article-reader__rail strong {
    color: var(--brand-text-soft);
    font-weight: 500;
}

.article-reader__body {
    min-width: 0;
    max-width: 720px;
    margin-inline: auto;
}

.article-reader__body p {
    margin: 0 0 1.45em;
    color: #d7d1c9;
    font-size: clamp(1.03rem, 4.3vw, 1.16rem);
    line-height: 1.82;
    letter-spacing: -.012em;
}

.article-reader__body p:first-child {
    color: var(--brand-text);
    font-size: clamp(1.25rem, 5.3vw, 1.55rem);
    line-height: 1.58;
    letter-spacing: -.025em;
}

.article-reader__body a {
    color: var(--brand-text);
    text-decoration: underline;
    text-decoration-color: var(--brand-line-strong);
    text-underline-offset: .18em;
}

.article-reader__body blockquote {
    margin: 2.2em 0;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--brand-line-strong);
    color: var(--brand-text);
    font-size: clamp(1.3rem, 5vw, 2rem);
    line-height: 1.35;
    letter-spacing: -.03em;
}

.article-next {
    display: grid;
    background: #090a0b;
    border-top: 1px solid var(--brand-line);
}

.article-next__item {
    min-height: 170px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 28px 18px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-text);
}

.article-next__item span {
    color: var(--brand-muted);
    font: 500 .58rem/1.3 var(--brand-mono);
    text-transform: uppercase;
}

.article-next__item strong {
    max-width: 16ch;
    align-self: end;
    font-size: clamp(1.7rem, 7vw, 3rem);
    line-height: .96;
    letter-spacing: -.05em;
}

.article-next__item i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-style: normal;
    font-size: 1.2rem;
}

@media (hover: hover) and (pointer: fine) {
    .article-next__item:hover { background: #111315; }
}

@media (min-width: 760px) {
    .article-reader__grid {
        grid-template-columns: 130px minmax(0, 720px);
        justify-content: center;
        gap: clamp(36px, 6vw, 92px);
        padding: 88px 0 120px;
    }

    .article-reader__rail {
        align-self: start;
        position: sticky;
        top: calc(var(--brand-header-h) + 38px);
        flex-direction: column;
        padding: 0;
        border: 0;
    }

    .article-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-next__item { min-height: 230px; padding: 42px clamp(28px, 5vw, 80px); border-right: 1px solid var(--brand-line); }
}

@media (min-width: 980px) {
    .article-cover__frame {
        width: min(90vw, 1720px);
        padding: 30px 0 34px;
    }

    .article-cover__media { left: 46%; }
    .article-cover__veil {
        background:
            linear-gradient(90deg, #08090a 0 38%, rgba(8,9,10,.9) 47%, rgba(8,9,10,.16) 75%, rgba(8,9,10,.38) 100%),
            linear-gradient(180deg, rgba(8,9,10,.02), rgba(8,9,10,.18) 72%, #08090a 100%);
    }

    .article-cover__copy {
        align-self: center;
        width: 55%;
        padding-bottom: 0;
    }

    .article-cover h1 {
        max-width: 11ch;
        font-size: clamp(4.3rem, 6.8vw, 8.5rem);
    }
}

@media (min-width: 1800px) and (min-height: 900px) {
    .article-cover__frame { width: min(88vw, 2000px); }
    .article-cover h1 { font-size: clamp(6rem, 6.2vw, 9.8rem); }
}

@media (max-width: 979px) {
    html.brand-mobile-h660 .article-cover__frame { padding-top: 12px; padding-bottom: 14px; }
    html.brand-mobile-h660 .article-cover h1 { font-size: clamp(2.2rem, 10vw, 4.5rem); }
    html.brand-mobile-h660 .article-cover__meta { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
