/* Reading-first history feature, scoped to this page. */
.history-page{--history-ink:#eee5eb;--history-accent:#ffa7d2}
.history-page .page-hero{margin-bottom:0}
.history-page .page-hero h1{font-size:clamp(3rem,6vw,5.75rem);line-height:1.04}
.history-opening{padding:4.5rem 0 5rem}
.history-opening-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.history-photo{margin:0;min-width:0}
.history-photo img{display:block;width:100%;height:auto;aspect-ratio:1.18;object-fit:cover;border-radius:1.25rem;border:1px solid var(--line)}
.history-photo figcaption{font-size:.875rem;color:var(--muted);margin-top:.85rem;line-height:1.6}
.history-opening-copy{min-width:0}
.history-opening-copy .eyebrow{font-size:.875rem;letter-spacing:.09em;line-height:1.7}
.history-opening-copy h2,.history-prose h2,.history-sources h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.035em;line-height:1.15}
.history-opening-copy h2{font-size:clamp(2.1rem,3.8vw,3.4rem);margin:1.1rem 0 1.5rem}
.history-opening-copy p{font-size:1.0625rem;line-height:1.85;color:var(--history-ink)}
.history-page strong{font-weight:700;color:#fff}
.history-place{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:2rem;padding-top:1.4rem;font-size:.875rem;letter-spacing:.1em;color:var(--muted)}
.history-place span{font:3.5rem/1 Georgia,serif;color:var(--history-accent);letter-spacing:-.06em}
.history-story{max-width:1000px;padding-bottom:1rem}
.history-chapter{display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,3fr);gap:clamp(1.5rem,4vw,4rem);padding:3.5rem 0;border-top:1px solid var(--line)}
.history-era{padding-top:.2rem}
.history-era>span{display:block;color:var(--muted);font-size:.875rem;line-height:1.65;margin-bottom:1rem}
.history-era>strong{display:block;color:var(--history-accent);font-family:Georgia,serif;font-weight:400;font-size:clamp(1.6rem,2.5vw,2.2rem);line-height:1.23;overflow-wrap:anywhere}
.history-prose{position:relative;padding-left:2rem;border-left:1px solid #ff4fa340}
.history-prose:before{content:"";position:absolute;top:.5rem;left:-4px;width:7px;height:7px;background:var(--pink);border-radius:50%}
.history-prose h2{margin:0 0 1.35rem;font-size:clamp(1.9rem,3vw,2.65rem);text-wrap:balance}
.history-prose p{font-size:1.0625rem;line-height:1.9;color:var(--history-ink);margin:0 0 1.3rem;max-width:65ch}
.history-prose p:last-child{margin-bottom:0}
.history-prose .history-note{font-size:.875rem;line-height:1.8;color:var(--muted);padding:1rem 1.2rem;background:#ffffff05;border-radius:.5rem}
.history-page sup{font-size:.75rem;margin-left:.22rem;line-height:0}
.history-page sup a{color:var(--history-accent);padding:.2rem;text-decoration:underline;text-underline-offset:3px}
.history-page a:focus-visible{outline:2px solid var(--pink);outline-offset:5px;border-radius:2px}
.history-highlight{margin:2rem 0 0;padding:1.75rem;background:linear-gradient(120deg,#7b1d4938,#23121e44);border-radius:.7rem}
.history-highlight p{font:italic clamp(1.5rem,2.8vw,2rem)/1.45 Georgia,serif;color:#ffb7d8;letter-spacing:-.02em}
.history-today .history-prose h2{color:var(--history-accent)}
.history-sources{display:grid;grid-template-columns:1fr 1.65fr;gap:3rem;padding:3rem 0 4rem;border-top:1px solid var(--line)}
.history-sources h2{font-size:2rem;margin:1rem 0}
.history-source-copy>p{font-size:.9375rem;line-height:1.85;color:var(--muted);margin:0 0 1.5rem}
.history-source-copy ol{padding-left:1.2rem;margin:0}
.history-source-copy li{font-size:.9375rem;line-height:1.65;color:var(--muted);padding-left:.5rem;margin-bottom:1.3rem;scroll-margin-top:130px}
.history-source-copy a{color:var(--history-accent);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#ffa7d24f}
.history-source-copy a:hover{color:#fff;text-decoration-color:currentColor}
.history-source-copy li>span{display:block;margin-top:.3rem;font-size:.875rem}
@media(min-width:981px){.history-photo{animation:history-photo-enter .85s ease both}.history-opening-copy{animation:history-text-enter .85s ease both}}
@keyframes history-photo-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes history-text-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media(max-width:800px){.history-opening-grid{grid-template-columns:1fr;gap:2rem}.history-opening{padding:2.5rem 0 3rem}.history-photo img{max-height:560px;object-position:center 45%}.history-sources{grid-template-columns:1fr;gap:1rem}.history-chapter{grid-template-columns:140px minmax(0,1fr);gap:1.5rem}.history-prose{padding-left:1.5rem}}
@media(max-width:560px){.history-page>.wrap,.history-opening .wrap{width:calc(100% - 2.25rem)}.history-chapter{grid-template-columns:1fr;gap:1.5rem;padding:2.5rem 0}.history-era{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem}.history-era>span{margin:0;max-width:45%}.history-era>strong{font-size:1.6rem;text-align:right}.history-era br{display:none}.history-era br:after{content:" "}.history-prose{padding-left:1.15rem}.history-prose p{font-size:1rem;line-height:1.9}.history-highlight{padding:1.3rem}.history-sources{padding-top:2.5rem}.history-opening-copy h2{font-size:2.2rem}}
@media(prefers-reduced-motion:reduce){.history-photo,.history-opening-copy{animation:none}}
.history-read-source{margin-top:.35rem;text-decoration:none!important;color:#190913!important;font-size:.9375rem;text-align:center}
.history-source-copy>.history-source-hint{font-size:.875rem;margin:.85rem 0 0}
body.history-modal-open{overflow:hidden}
.history-source-dialog{padding:0;border:1px solid #ff87c465;border-radius:1rem;background:#151116;color:#fff9fc;width:min(1180px,calc(100vw - 2rem));max-width:none;height:min(880px,92vh);height:min(880px,92dvh);max-height:92dvh;box-shadow:0 30px 100px #000a;overflow:hidden}
.history-source-dialog::backdrop{background:#050307dc;backdrop-filter:blur(7px)}
.history-dialog-layout{display:flex;flex-direction:column;height:100%;min-height:0}
.history-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.4rem;border-bottom:1px solid var(--line);flex-shrink:0}
.history-dialog-header>div>span{color:var(--pink-2);font-size:.75rem;letter-spacing:.12em}
.history-dialog-header h2{font:1.65rem/1.2 Georgia,serif;margin:.2rem 0 0}
.history-dialog-close{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-width:100px;min-height:44px;border:1px solid #ffffff40;border-radius:2rem;background:#33232d;color:#fff;padding:.45rem 1rem;cursor:pointer;font-size:.9375rem}
.history-dialog-close span{font-size:1.7rem;line-height:1}
.history-dialog-close:hover{background:#65304e}
.history-dialog-close:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
#source-dialog-note{font-size:.875rem;line-height:1.55;padding:.7rem 1.4rem;margin:0;color:var(--muted);flex-shrink:0}
.history-source-dialog iframe{display:block;width:100%;flex:1 1 auto;min-height:0;border:0;background:#fff}
.history-dialog-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;padding:.85rem 1.4rem;font-size:.875rem;line-height:1.6;flex-shrink:0}
.history-dialog-footer>span{color:var(--muted)}
.history-dialog-footer>a{color:var(--pink-2);text-decoration:underline;text-underline-offset:3px;min-height:40px;display:inline-flex;align-items:center}
@media(max-width:560px){.history-source-dialog{width:calc(100vw - 1rem);height:94vh;height:94dvh;max-height:94dvh;border-radius:.65rem}.history-dialog-header{padding:.8rem 1rem}.history-dialog-header h2{font-size:1.35rem}#source-dialog-note{padding:.6rem 1rem}.history-dialog-footer{padding:.65rem 1rem}.history-era>strong{overflow-wrap:normal}}
