/* Literature Paradise visual master — M5
   Presentation-only layer. No domain state or service credentials belong here. */

:root {
    --lp-shadow-soft: 0 18px 54px rgba(25, 31, 28, .10);
    --lp-shadow-card: 0 12px 34px rgba(25, 31, 28, .075);
    --lp-shadow-hover: 0 22px 58px rgba(25, 31, 28, .14);
    --lp-paper-highlight: rgba(255,255,255,.72);
    --lp-pointer-x: 0px;
    --lp-pointer-y: 0px;
}

body.lp-page {
    background:
        radial-gradient(circle at 12% 2%, rgba(255,255,255,.72), transparent 24rem),
        radial-gradient(circle at 86% 38%, rgba(113,52,70,.05), transparent 28rem),
        linear-gradient(180deg, #f3efe7 0%, var(--lp-canvas) 38%, #ece6dc 100%);
    background-attachment: fixed;
}

body.lp-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37,42,38,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,42,38,.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 84%);
    content: "";
}

/* ---------- shell / navigation ---------- */
.lp-site-header {
    transition: box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}
.lp-site-header.is-scrolled {
    background: color-mix(in srgb, var(--lp-canvas) 91%, white);
    box-shadow: 0 8px 26px rgba(26,31,28,.08);
}
.lp-brand__mark {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 5px rgba(113,52,70,.045);
}
.lp-brand__mark::after {
    position: absolute;
    inset: 7px;
    border: 1px solid color-mix(in srgb, var(--lp-gold) 72%, transparent);
    border-radius: 50%;
    content: "";
}
.lp-primary-nav__link { letter-spacing: .005em; }
.lp-primary-nav__link:hover { transform: translateY(-1px); }
.lp-header-search { transition: width 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.lp-header-search:focus-within { width: 340px; }

/* ---------- home hero ---------- */
.lp-home-hero { padding-top: 34px; }
.lp-hero-frame {
    isolation: isolate;
    min-height: 540px;
    border: 1px solid rgba(229,209,181,.15);
    background:
        radial-gradient(circle at 16% 20%, rgba(113,52,70,.28), transparent 31%),
        radial-gradient(circle at 80% 72%, rgba(182,139,76,.13), transparent 34%),
        linear-gradient(135deg, #131d1b 0%, #1b2925 54%, #263530 100%);
    box-shadow: 0 26px 76px rgba(24,31,28,.18);
}
.lp-hero-frame::before {
    opacity: .7;
    background-size: 64px 64px;
}
.lp-hero-frame::after {
    position: absolute;
    z-index: 0;
    top: -52px;
    right: -54px;
    width: min(64%, 810px);
    aspect-ratio: 1.28;
    background: url('assets/literary-atlas.svg') center / contain no-repeat;
    opacity: .9;
    transform: translate3d(calc(var(--lp-pointer-x) * .16), calc(var(--lp-pointer-y) * .16), 0);
    transition: transform 180ms ease-out;
    content: "";
    pointer-events: none;
}
.lp-hero-copy {
    z-index: 2;
    max-width: 870px;
    padding-top: 46px;
    text-shadow: 0 2px 30px rgba(0,0,0,.16);
}
.lp-hero-kicker {
    width: max-content;
    padding: 7px 11px 7px 9px;
    border: 1px solid rgba(226,195,145,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(8px);
}
.lp-home-hero__title {
    max-width: 790px;
    font-size: clamp(50px, 5.35vw, 78px);
    text-wrap: balance;
}
.lp-home-hero__lead {
    max-width: 690px;
    color: #ddd7ce;
}
.lp-home-hero__actions .lp-button { backdrop-filter: blur(10px); }
.lp-button {
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}
.lp-button:hover { box-shadow: 0 10px 28px rgba(20,25,23,.16); }
.lp-button--light { box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.lp-natalie-card {
    z-index: 3;
    align-self: stretch;
    border: 1px solid rgba(239,215,180,.22);
    background:
        radial-gradient(circle at 76% 8%, rgba(199,158,100,.24), transparent 30%),
        linear-gradient(160deg, rgba(91,49,63,.86), rgba(27,41,37,.86));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.18);
    backdrop-filter: blur(15px);
}
.lp-natalie-card__mark {
    position: relative;
    box-shadow: 0 12px 36px rgba(0,0,0,.21), inset 0 0 0 7px rgba(255,255,255,.035);
}
.lp-natalie-card__mark::before,
.lp-natalie-card__mark::after {
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(231,198,145,.26);
    border-radius: 50%;
    content: "";
    animation: lp-orbit 26s linear infinite;
}
.lp-natalie-card__mark::after { inset: -18px; animation-direction: reverse; animation-duration: 36s; }
.lp-natalie-card__link { display: inline-flex; align-items: center; gap: 9px; }
.lp-natalie-card__link span { transition: transform 160ms ease; }
.lp-natalie-card__link:hover span { transform: translateX(4px); }

.lp-hero-search {
    z-index: 4;
    border: 1px solid rgba(255,255,255,.72);
    background: color-mix(in srgb, #fbf7ef 94%, transparent);
    box-shadow: 0 18px 46px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(18px);
}
.lp-hero-search__input {
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.lp-hero-search__input:focus {
    border-color: var(--lp-accent);
    background: #fffefa;
    box-shadow: 0 0 0 4px rgba(113,52,70,.08);
}
.lp-hero-index { z-index: 2; opacity: .76; }

/* ---------- section rhythm ---------- */
.lp-home-section { position: relative; }
.lp-home-section + .lp-home-section::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - (var(--lp-gutter) * 2)), var(--lp-shell));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--lp-line) 14%, var(--lp-line) 86%, transparent);
    content: "";
}
.lp-section-title { text-wrap: balance; }
.lp-section-heading { position: relative; }
.lp-section-heading::after {
    width: 54px;
    height: 2px;
    flex: 0 0 auto;
    margin-bottom: 8px;
    background: var(--lp-accent);
    content: "";
}

.lp-personal-card,
.lp-route,
.lp-publication-feed,
.lp-community-card,
.lp-work-feature,
.lp-entity-section,
.lp-entity-rail {
    position: relative;
    transform: translateZ(0);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
.lp-personal-card::after,
.lp-route::after,
.lp-publication-feed::after,
.lp-community-card::after,
.lp-entity-section::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(420px circle at var(--lp-card-x, 50%) var(--lp-card-y, 50%), rgba(255,255,255,.62), transparent 42%);
    transition: opacity 180ms ease;
    content: "";
    pointer-events: none;
}
.lp-personal-card:hover,
.lp-route:hover,
.lp-publication-feed:hover,
.lp-community-card:hover,
.lp-work-feature:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--lp-accent) 26%, var(--lp-line));
    box-shadow: var(--lp-shadow-hover);
}
.lp-personal-card:hover::after,
.lp-route:hover::after,
.lp-publication-feed:hover::after,
.lp-community-card:hover::after,
.lp-entity-section:hover::after { opacity: .3; }
.lp-personal-card > *, .lp-route > *, .lp-publication-feed > *, .lp-community-card > *, .lp-entity-section > * { position: relative; z-index: 1; }

.lp-personal-card { box-shadow: var(--lp-shadow-card); }
.lp-personal-card--reading {
    background: linear-gradient(145deg, #fffdf9 0%, #f5eee4 100%);
}
.lp-personal-card--dna {
    background:
        radial-gradient(circle at 88% 28%, rgba(113,52,70,.12), transparent 28%),
        linear-gradient(145deg, #fbf5f1, #eee2e4);
}
.lp-dna-mark { box-shadow: inset 0 0 0 12px rgba(113,52,70,.035); }
.lp-dna-mark span { animation: lp-dna-breathe 5.4s ease-in-out infinite; }
.lp-dna-mark span:nth-child(2) { animation-delay: -1.2s; }
.lp-dna-mark span:nth-child(3) { animation-delay: -2.4s; }

.lp-route {
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31,35,32,.045);
}
.lp-route::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    border-radius: 0 0 0 100%;
    background: color-mix(in srgb, var(--lp-accent-soft) 48%, transparent);
    transform: translate(26px,-26px);
    transition: transform 220ms ease;
    content: "";
}
.lp-route:hover::before { transform: translate(8px,-8px); }
.lp-route__mark { position: relative; z-index: 1; }

.lp-work-feature {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--lp-gold) 18%, var(--lp-line));
    box-shadow: var(--lp-shadow-card);
}
.lp-work-feature__visual {
    position: relative;
    background:
        radial-gradient(circle at 48% 42%, rgba(182,139,76,.17), transparent 33%),
        linear-gradient(150deg, #17211f, #273630);
}
.lp-work-feature__visual::after {
    position: absolute;
    inset: 7%;
    background: url('assets/work-orbit.svg') center / contain no-repeat;
    opacity: .86;
    content: "";
}
.lp-work-feature__visual > * { position: relative; z-index: 1; }

.lp-publication-feed { box-shadow: var(--lp-shadow-card); }
.lp-publication-feed__cover {
    position: relative;
    overflow: hidden;
    box-shadow: 9px 12px 0 rgba(83,67,55,.10), 0 12px 28px rgba(31,28,25,.16);
}
.lp-publication-feed__cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.20) 48%, transparent 64%);
    transform: translateX(-120%);
    transition: transform 700ms ease;
    content: "";
}
.lp-publication-feed:hover .lp-publication-feed__cover::after { transform: translateX(120%); }

.lp-community-card {
    overflow: hidden;
    box-shadow: var(--lp-shadow-card);
}
.lp-community-card::before {
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border: 1px dashed rgba(182,139,76,.22);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(182,139,76,.045), 0 0 0 76px rgba(113,52,70,.035);
    content: "";
}

/* ---------- canonical entity pages ---------- */
.lp-entity-page { padding-top: 34px; }
.lp-entity-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(229,209,181,.14);
    background:
        radial-gradient(circle at 76% 24%, rgba(182,139,76,.14), transparent 29%),
        radial-gradient(circle at 16% 82%, rgba(113,52,70,.22), transparent 35%),
        linear-gradient(135deg, #151f1d 0%, #1d2c28 55%, #293934 100%);
    box-shadow: 0 24px 68px rgba(25,31,28,.17);
}
.lp-entity-hero::before {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image: linear-gradient(rgba(255,255,255,.027) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.027) 1px,transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg,#000,transparent 72%);
    content: "";
}
.lp-entity-hero__visual {
    position: relative;
    z-index: 1;
    min-height: 370px;
    border: 0;
    background-color: transparent;
    background-position: center;
    background-size: min(96%, 450px);
    background-repeat: no-repeat;
    transform: translate3d(calc(var(--lp-pointer-x) * .08), calc(var(--lp-pointer-y) * .08), 0);
    transition: transform 190ms ease-out;
}
.lp-entity-page--work .lp-entity-hero__visual { background-image: url('assets/work-orbit.svg'); }
.lp-entity-page--author .lp-entity-hero__visual { background-image: url('assets/author-orbit.svg'); }
.lp-entity-hero__visual > span {
    opacity: 0;
    pointer-events: none;
}
.lp-entity-hero__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    color: #f6efe5;
}
.lp-entity-hero__copy .lp-eyebrow { color: #d9b579; }
.lp-entity-title {
    color: #fffaf2;
    font-size: clamp(44px, 5vw, 74px);
    line-height: .98;
    text-wrap: balance;
    text-shadow: 0 3px 30px rgba(0,0,0,.18);
}
.lp-entity-chips span {
    border-color: rgba(236,215,185,.28);
    background: rgba(255,255,255,.055);
    color: #e2dbd2;
    backdrop-filter: blur(7px);
}
.lp-entity-actions .lp-button--secondary {
    border-color: rgba(255,255,255,.27);
    background: rgba(255,255,255,.075);
    color: #fff;
}
.lp-entity-actions .lp-text-link { color: #e2c38d; }

.lp-entity-layout { align-items: start; }
.lp-entity-section {
    overflow: hidden;
    box-shadow: var(--lp-shadow-card);
}
.lp-entity-section--accent {
    border-color: color-mix(in srgb, var(--lp-accent) 30%, var(--lp-line));
    background:
        radial-gradient(circle at 90% 16%, rgba(113,52,70,.11), transparent 25%),
        linear-gradient(145deg, #fbf6ef, #efe6dd);
}
.lp-entity-section--accent::before {
    position: absolute;
    right: -20px;
    bottom: -50px;
    width: 190px;
    height: 190px;
    border: 1px dashed rgba(113,52,70,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(113,52,70,.035), 0 0 0 64px rgba(182,139,76,.025);
    content: "";
}
.lp-entity-facts > div { transition: background 150ms ease, transform 150ms ease; }
.lp-entity-facts > div:hover { background: rgba(255,255,255,.64); transform: translateX(3px); }
.lp-entity-slot-stat strong { color: var(--lp-accent); font-family: var(--lp-serif); }
.lp-entity-rail {
    box-shadow: var(--lp-shadow-card);
    backdrop-filter: blur(8px);
}
.lp-entity-rail__group { position: relative; }
.lp-entity-rail__group + .lp-entity-rail__group::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 1px;
    background: var(--lp-accent);
    opacity: .35;
    content: "";
}
.lp-state-panel { box-shadow: var(--lp-shadow-soft); }

/* ---------- viewport reveal / micro motion ---------- */
.lp-reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms cubic-bezier(.2,.7,.2,1), transform 560ms cubic-bezier(.2,.7,.2,1);
}
.lp-reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
.lp-reveal-ready[data-lp-delay="1"] { transition-delay: 70ms; }
.lp-reveal-ready[data-lp-delay="2"] { transition-delay: 140ms; }

@keyframes lp-orbit { to { transform: rotate(360deg); } }
@keyframes lp-dna-breathe { 0%,100% { opacity:.42; transform:scaleX(.92); } 50% { opacity:.82; transform:scaleX(1.08); } }

@media (max-width: 1240px) {
    .lp-hero-frame::after { width: 69%; right: -100px; opacity: .72; }
    .lp-home-hero__title { font-size: clamp(48px, 5.6vw, 70px); }
}

@media (max-width: 1040px) {
    .lp-hero-frame::after { width: 82%; top: 20px; right: -150px; opacity: .46; }
    .lp-natalie-card { background: linear-gradient(145deg, rgba(91,49,63,.93), rgba(27,41,37,.93)); }
    .lp-entity-hero { min-height: 0; }
    .lp-entity-hero__visual { min-height: 310px; background-size: 310px; }
}

@media (max-width: 760px) {
    body.lp-page { background-attachment: scroll; }
    .lp-home-hero { padding-top: 14px; }
    .lp-hero-frame { min-height: 0; }
    .lp-hero-frame::after { width: 500px; top: -35px; right: -235px; opacity: .25; }
    .lp-hero-kicker { padding-right: 9px; }
    .lp-home-hero__title { font-size: clamp(41px, 12vw, 59px); }
    .lp-section-heading::after { display: none; }
    .lp-personal-card:hover,.lp-route:hover,.lp-publication-feed:hover,.lp-community-card:hover,.lp-work-feature:hover { transform:none; box-shadow:var(--lp-shadow-card); }
    .lp-entity-page { padding-top: 16px; }
    .lp-entity-hero { border-radius: 22px; }
    .lp-entity-hero__visual { min-height: 240px; background-size: 245px; }
    .lp-entity-title { font-size: clamp(39px, 11vw, 56px); }
}

@media (max-width: 460px) {
    .lp-hero-frame::after { right: -290px; opacity: .19; }
    .lp-entity-hero__visual { min-height: 200px; background-size: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-natalie-card__mark::before,.lp-natalie-card__mark::after,.lp-dna-mark span { animation: none !important; }
    .lp-reveal-ready { opacity: 1 !important; transform: none !important; transition: none !important; }
    .lp-hero-frame::after,.lp-entity-hero__visual { transform: none !important; transition: none !important; }
}
