/* MASCA Legacy page */

.masca-legacy-page {
    --legacy-ink: #202727;
    --legacy-muted: #5f6968;
    --legacy-accent: #0f7773;
    --legacy-surface: #f3f6f5;
    --legacy-paper: #faf9f5;
    --legacy-line: rgba(32, 39, 39, 0.14);
    color: var(--legacy-ink);
    background: #fff;
}

.legacy-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.legacy-eyebrow {
    margin: 0 0 18px;
    color: var(--legacy-accent);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legacy-hero {
    padding: clamp(88px, 11vw, 150px) 0 clamp(72px, 9vw, 120px);
    background: var(--legacy-paper);
}

.legacy-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: clamp(48px, 9vw, 120px);
}

.legacy-kicker,
.legacy-years,
.legacy-record-header > p,
.legacy-gallery-header > p,
.legacy-download p {
    font-family: "Manrope", Arial, sans-serif;
}

.legacy-kicker {
    margin: 0 0 16px;
    color: var(--legacy-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
}

.legacy-hero h1,
.legacy-section h2,
.legacy-download h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.legacy-hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 7vw, 7.2rem);
    line-height: 0.9;
}

.legacy-subtitle {
    margin: 20px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 2.7vw, 2.8rem);
    font-style: italic;
}

.legacy-years {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--legacy-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.legacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.legacy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--legacy-accent);
    border-radius: 999px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.legacy-button--primary {
    color: #fff;
    background: var(--legacy-accent);
}

.legacy-button--secondary {
    color: var(--legacy-accent);
    background: transparent;
}

.legacy-button:hover {
    color: #fff;
    background: #0b5f5c;
    border-color: #0b5f5c;
}

.legacy-hero__mark {
    margin: 0;
    padding: clamp(28px, 4vw, 52px);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 22px 70px rgba(32, 39, 39, 0.08);
}

.legacy-hero__mark img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.02);
}

.legacy-chapter-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    overflow-x: auto;
    border-top: 1px solid var(--legacy-line);
    border-bottom: 1px solid var(--legacy-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.legacy-chapter-nav__inner {
    display: flex;
    gap: clamp(20px, 4vw, 46px);
    min-width: max-content;
    padding-block: 15px;
}

.legacy-chapter-nav a {
    color: var(--legacy-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.legacy-chapter-nav a:hover {
    color: var(--legacy-accent);
}

.legacy-section {
    padding: clamp(88px, 11vw, 154px) 0;
}

.legacy-reading-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(46px, 9vw, 120px);
    align-items: start;
}

.legacy-section-heading {
    position: sticky;
    top: 92px;
}

.legacy-section h2,
.legacy-download h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.96;
}

.legacy-prose {
    max-width: 760px;
    color: var(--legacy-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    line-height: 1.9;
}

.legacy-prose p {
    margin: 0 0 1.35em;
}

.legacy-signature {
    padding-top: 12px;
    color: var(--legacy-ink);
}

.legacy-feature-image,
.legacy-archive-figure {
    margin-top: clamp(60px, 8vw, 100px);
}

.legacy-feature-image img {
    display: block;
    width: min(100%, 930px);
    height: auto;
    margin-inline: auto;
}

.legacy-quote {
    max-width: 900px;
    margin: clamp(64px, 8vw, 104px) auto 0;
    padding: clamp(34px, 5vw, 62px);
    border-left: 3px solid var(--legacy-accent);
    background: var(--legacy-surface);
}

.legacy-quote p {
    margin: 0 0 1em;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.55rem, 2.7vw, 2.7rem);
    line-height: 1.25;
}

.legacy-quote cite {
    color: var(--legacy-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legacy-section--story {
    background: var(--legacy-paper);
}

.legacy-archive-figure {
    margin-bottom: 0;
}

.legacy-archive-figure img {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin-inline: auto;
}

.legacy-archive-figure figcaption {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--legacy-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.65;
}

.legacy-section--continuing {
    border-bottom: 1px solid var(--legacy-line);
}

.legacy-statement {
    margin-top: 48px !important;
    color: var(--legacy-accent);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-style: italic;
    line-height: 1;
}

.legacy-section--leaders {
    background: var(--legacy-surface);
}

.legacy-record-header,
.legacy-gallery-header {
    max-width: 820px;
    margin-bottom: clamp(54px, 7vw, 88px);
}

.legacy-record-header > p:last-child,
.legacy-gallery-header > p:last-child {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--legacy-muted);
    line-height: 1.8;
}

.legacy-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
}

.legacy-record-card {
    padding: clamp(28px, 4vw, 46px);
    background: #fff;
}

.legacy-record-card h3 {
    margin: 0 0 30px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    font-weight: 500;
    line-height: 1.05;
}

.legacy-name-list {
    columns: 2;
    column-gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legacy-name;
}

.legacy-name-list li {
    break-inside: avoid;
    padding: 9px 0;
    border-bottom: 1px solid var(--legacy-line);
    color: var(--legacy-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
}

.legacy-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.legacy-gallery figure {
    margin: 0;
    padding: clamp(16px, 2.5vw, 30px);
    background: var(--legacy-paper);
}

.legacy-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.legacy-download {
    padding: clamp(70px, 9vw, 110px) 0;
    color: #fff;
    background: var(--legacy-accent);
}

.legacy-download__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
    align-items: end;
}

.legacy-download .legacy-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.legacy-download p:last-child {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
}

.legacy-button--light {
    color: var(--legacy-accent);
    background: #fff;
    border-color: #fff;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .legacy-hero__inner,
    .legacy-reading-grid,
    .legacy-download__inner {
        grid-template-columns: 1fr;
    }

    .legacy-hero__mark {
        max-width: 420px;
    }

    .legacy-section-heading {
        position: static;
    }

    .legacy-record-grid {
        grid-template-columns: 1fr;
    }

    .legacy-download__inner {
        align-items: start;
    }

    .legacy-button--light {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .legacy-container {
        width: min(100% - 28px, 1180px);
    }

    .legacy-hero {
        padding-top: 72px;
    }

    .legacy-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .legacy-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .legacy-button {
        width: 100%;
    }

    .legacy-chapter-nav__inner {
        padding-inline: 14px;
    }

    .legacy-prose {
        font-size: 0.88rem;
        line-height: 1.8;
    }

    .legacy-name-list {
        columns: 1;
    }

    .legacy-gallery {
        grid-template-columns: 1fr;
    }
}

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

    .legacy-button {
        transition: none;
    }
}
