/* Editorial — indigo + purple on lavender, scoped to body.landing */

:root {
    --landing-bg-1: #EFF6FF;
    --landing-bg-2: #E0E7FF;
    --landing-ink: #312e81;
    --landing-ink-deep: #1e1b4b;
    --landing-ink-soft: #4b5563;
    --landing-ink-dim: #6b7280;
    --landing-accent: #8E54C5;
    --landing-accent-deep: #6d3da3;
    --landing-rule: rgba(49, 46, 129, 0.18);
    --landing-rule-soft: rgba(49, 46, 129, 0.08);
    --landing-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
    --landing-display: "Playfair Display", "Noto Serif SC", Georgia, serif;
    --landing-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --landing-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing {
    background: linear-gradient(135deg, var(--landing-bg-1) 0%, var(--landing-bg-2) 100%);
    color: var(--landing-ink);
    font-family: var(--landing-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt" 1;
    min-height: 100vh;
}

.landing-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5.5rem);
    display: grid;
    gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* ----- masthead ----- */
.landing-masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--landing-ink);
    font-family: var(--landing-display);
    font-size: 0.8125rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: editorialReveal 700ms var(--landing-ease) backwards;
}

.landing-kicker {
    font-weight: 700;
    color: var(--landing-ink);
}

.landing-issue {
    color: var(--landing-ink-soft);
    font-style: italic;
}

/* ----- hero ----- */
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.landing-title {
    font-family: var(--landing-serif);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-size: clamp(5rem, 14vw, 11rem);
    text-align: left;
    color: var(--landing-ink-deep);
    margin: 0;
}

.landing-title-line {
    display: block;
    animation: editorialReveal 900ms var(--landing-ease) backwards;
}

.landing-title-line:nth-child(1) { animation-delay: 80ms; }
.landing-title-line:nth-child(2) {
    animation-delay: 220ms;
    padding-left: clamp(1.5rem, 7vw, 6rem);
    color: var(--landing-accent);
    font-style: italic;
}

.landing-lede {
    max-width: 26rem;
    color: var(--landing-ink-soft);
    font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
    line-height: 1.85;
    animation: editorialReveal 900ms var(--landing-ease) backwards;
    animation-delay: 380ms;
}

.landing-lede p { margin: 0 0 0.75rem; }

.landing-lede p:last-child {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.landing-lede em {
    color: var(--landing-ink-deep);
    font-style: normal;
    font-family: var(--landing-serif);
    font-weight: 700;
    border-bottom: 1px solid var(--landing-accent);
    padding-bottom: 1px;
}

/* ----- alert (token-gate failure) ----- */
.landing-alert {
    padding: 1rem 1.25rem;
    border-left: 3px solid #b91c1c;
    background: rgba(185, 28, 28, 0.06);
    color: #991b1b;
    font-size: 0.9375rem;
    line-height: 1.75;
    font-weight: 500;
    animation: editorialReveal 700ms var(--landing-ease) backwards;
    animation-delay: 460ms;
}

.landing-alert[hidden] { display: none; }

.landing-alert p { margin: 0; }

.landing-alert p + p { margin-top: 0.25rem; }

/* ----- stats ----- */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--landing-ink);
    border-bottom: 1px solid var(--landing-ink);
    animation: editorialReveal 900ms var(--landing-ease) backwards;
    animation-delay: 540ms;
}

.landing-stat {
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid var(--landing-rule);
}

.landing-stat:last-child { border-right: none; }

.landing-stat-num {
    font-family: var(--landing-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    color: var(--landing-ink-deep);
    font-feature-settings: "lnum" 1;
}

.landing-stat:nth-child(2) .landing-stat-num {
    color: var(--landing-accent);
    font-style: italic;
}

.landing-stat-label {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    color: var(--landing-ink-soft);
    line-height: 1.5;
}

/* ----- dimensions ----- */
.landing-dimensions {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
    align-items: start;
    animation: editorialReveal 900ms var(--landing-ease) backwards;
    animation-delay: 700ms;
}

.landing-dimensions-label {
    font-family: var(--landing-display);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--landing-ink-soft);
    padding-top: 0.6rem;
    border-top: 2px solid var(--landing-ink);
}

.landing-dimensions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--landing-serif);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    line-height: 1.25;
    color: var(--landing-ink-deep);
}

.landing-dimensions-list li::after {
    content: "·";
    color: var(--landing-accent);
    margin: 0 0.55rem;
    font-weight: 400;
}

.landing-dimensions-list li:last-child::after {
    content: "";
    margin: 0;
}

/* ----- CTA ----- */
.landing-cta-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    animation: editorialReveal 900ms var(--landing-ease) backwards;
    animation-delay: 860ms;
}

.landing-cta-block[hidden] { display: none; }

.landing-cta {
    display: inline-flex;
    align-items: baseline;
    gap: 1.25rem;
    font-family: var(--landing-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
    color: var(--landing-ink-deep);
    text-decoration: none;
    padding: 0 0.25rem 0.4rem 0;
    border-bottom: 2px solid var(--landing-ink-deep);
    letter-spacing: 0.1em;
    transition: color 280ms ease,
                border-color 280ms ease,
                gap 320ms var(--landing-ease);
}

.landing-cta-arrow {
    display: inline-block;
    color: var(--landing-accent);
    transition: transform 320ms var(--landing-ease);
}

.landing-cta:hover {
    color: var(--landing-accent);
    border-bottom-color: var(--landing-accent);
    gap: 1.7rem;
}

.landing-cta:hover .landing-cta-arrow {
    transform: translateX(0.35rem);
}

.landing-cta:focus-visible {
    outline: 2px solid var(--landing-accent);
    outline-offset: 6px;
}

.landing-cta:active {
    color: var(--landing-accent-deep);
}

.landing-cta-note {
    font-size: 0.8125rem;
    color: var(--landing-ink-soft);
    letter-spacing: 0.08em;
    margin: 0;
}

/* ----- motion ----- */
@keyframes editorialReveal {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-masthead,
    .landing-title-line,
    .landing-lede,
    .landing-alert,
    .landing-stats,
    .landing-dimensions,
    .landing-cta-block {
        animation: none;
    }

    .landing-cta,
    .landing-cta-arrow {
        transition: none;
    }
}

/* ----- responsive ----- */
@media (max-width: 768px) {
    .landing-shell {
        padding: 1.75rem 1.25rem 3rem;
        gap: 2.25rem;
    }

    .landing-masthead {
        font-size: 0.7rem;
        letter-spacing: 0.16em;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .landing-title {
        font-size: clamp(4.25rem, 22vw, 7.5rem);
    }

    .landing-title-line:nth-child(2) {
        padding-left: 1.25rem;
    }

    .landing-lede {
        max-width: 100%;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }

    .landing-stat {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--landing-rule);
        padding: 1rem 0.25rem;
        gap: 1rem;
    }

    .landing-stat:last-child {
        border-bottom: none;
    }

    .landing-stat-num {
        font-size: 3.25rem;
    }

    .landing-stat-label {
        text-align: right;
        max-width: 9rem;
    }

    .landing-dimensions {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .landing-dimensions-list {
        font-size: 1.2rem;
    }

    .landing-cta {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {
    .landing-title {
        font-size: 3.75rem;
    }

    .landing-stat-num {
        font-size: 2.75rem;
    }
}
