/* The theme supplies the masthead, Newsreader, Inter and navigation. */
.stellar-revue {
	--paper: #f9f0e5;
	--ink: #101725;
	--muted: #554c43;
	--rule: #cbbdab;
	--copper: #90470e;
	--gutter: clamp(20px, 4.1vw, 64px);
	color: var(--ink);
	background: var(--paper);
}
.stellar-revue .ll-shell { width: min(100%, 1490px); margin-inline: auto; padding-inline: var(--gutter); }
.stellar-revue #ll-articles { scroll-margin-top: 8.5rem; }
.stellar-revue #ll-articles:focus { outline: none; }
.stellar-revue #ll-articles :is(a,button):focus-visible { outline: 3px solid #9a500f; outline-offset: 4px; }
.stellar-revue #ll-articles a { color: inherit; }
.stellar-revue #ll-articles a:hover :is(h2,h3,.revue-read,.featured-story__link) { color: var(--copper); }
.stellar-revue :is(.revue-rule,.featured-story__label,.revue-kicker,.featured-story .eyebrow) {
	font: 650 .75rem/1.4 var(--ll-sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.stellar-revue :is(.revue-rule,.featured-story__label) {
	display: flex; align-items: center; gap: 14px; min-height: 0; margin: 0 0 20px;
}
.stellar-revue :is(.revue-rule,.featured-story__label)::after {
	content: ""; height: 1px; background: var(--rule); flex: 1;
}
.stellar-revue :is(.revue-heading,.featured-story__body h2,.revue-card h3) {
	color: var(--ink); font-family: var(--ll-serif); font-weight: 400; text-wrap: pretty; letter-spacing: -.035em;
}
.stellar-revue .revue-heading,
.stellar-revue .featured-story__body h2 { font-size: clamp(2rem, 3.75vw, 3.65rem); line-height: 1.04; }
.stellar-revue .revue-heading { margin: 0 0 clamp(18px, 2vw, 32px); }
.stellar-revue .featured-story {
	position: relative; color: var(--ink); background: transparent;
	padding-block: clamp(27px,3.2vw,48px) clamp(24px,2.6vw,40px);
}
.stellar-revue .featured-story__label .eyebrow,
.stellar-revue .featured-story__body .eyebrow { color: var(--copper); }
.stellar-revue .featured-story__card {
	display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
	gap: clamp(24px,3.6vw,55px); border: 0; text-decoration: none; align-items: center;
}
.stellar-revue .featured-story__media { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #101725; }
.stellar-revue .featured-story__media img,
.stellar-revue .featured-story__media video { width: 100%; height: 100%; object-fit: cover; }
.stellar-revue .featured-story__body { min-width: 0; padding: 0; }
.stellar-revue .featured-story__body h2 { margin: 10px 0 16px; }
.stellar-revue .featured-story__body p { color: #302e2c; font-size: clamp(1rem,1.25vw,1.16rem); line-height: 1.5; margin: 0 0 1rem; }
.stellar-revue .featured-story__body .ll-post-meta { color: var(--muted); font-size: .83rem; margin-block: 0 1.25rem; }
.stellar-revue .featured-story__link,
.stellar-revue .revue-read,
.stellar-revue .revue-archive-link { color: var(--ink); font: 600 .94rem/1.4 var(--ll-sans); }
.stellar-revue :is(.featured-story__link,.revue-read,.revue-archive-link) span { margin-inline-start: .35em; }
.stellar-revue .featured-story__label button:not([hidden]) {
	position: absolute; z-index: 2; inset-inline-start: calc(var(--gutter) + 10px);
	top: calc(clamp(27px,3.2vw,48px) + 2.3rem + 10px);
	width: 44px; height: 44px; padding: 0; overflow: hidden; font-size: 0;
	border: 1px solid #e8d9c5; color: white; background: #101725;
}
.stellar-revue .featured-story__label button::before {
	content: ""; display: block; box-sizing: border-box; margin: auto;
	width: 13px; height: 15px; border-inline: 4px solid currentColor;
}
.stellar-revue .featured-story__label button[aria-pressed="true"]::before,
.stellar-revue .featured-story:not([data-video-visible="true"]) .featured-story__label button::before {
	width: 0; height: 0; border: 0; border-block: 8px solid transparent;
	border-inline-start: 13px solid currentColor;
}
.stellar-revue .revue-section { padding-block: clamp(24px,3.1vw,48px); }
.stellar-revue .revue-latest, .stellar-revue .revue-about { border-top: 1px solid var(--rule); }
.stellar-revue .revue-latest .revue-rule { margin-bottom: .6rem; }
.stellar-revue .revue-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px,2.5vw,42px); }
.stellar-revue .revue-card > a { display: flex; flex-direction: column; height: 100%; }
.stellar-revue .revue-cover, .stellar-revue .stellar-thumbnail {
	display: grid; width: 100%; aspect-ratio: 16/9; overflow: hidden; object-fit: cover; background-color: #101725;
}
.stellar-revue .stellar-thumbnail > :is(img,video) { grid-area: 1/1; display: block; width: 100%; height: 100%; object-fit: cover; }
.stellar-revue .stellar-thumbnail > video[hidden] { display: none; }
.stellar-revue .revue-kicker { display: block; }
.stellar-revue .revue-card .revue-kicker { margin: 16px 0 6px; }
.stellar-revue .revue-card h3 { font-size: clamp(1.4rem,2.15vw,2.1rem); line-height: 1.1; margin: 0 0 1rem; }
.stellar-revue .revue-read { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--rule); }
.stellar-revue .revue-archive-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; margin-top: 1rem; }
.stellar-revue .revue-explore-panel {
	position: relative; isolation: isolate; display: grid; align-items: center;
	min-height: clamp(310px,33vw,440px); background: #080f1c; color: #fff3e1; overflow: hidden;
}
.stellar-revue .revue-explore-panel img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.stellar-revue .revue-explore-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, #080f1c 0%, #080f1cf2 28%, #080f1c25 76%);
}
.stellar-revue .revue-explore-copy { max-width: 40rem; padding: clamp(22px,5vw,68px); }
.stellar-revue .revue-explore h2 {
	color: inherit; font: 400 clamp(2.2rem,4vw,4rem)/1.02 var(--ll-serif); margin: 0 0 .65rem;
}
.stellar-revue .revue-explore a {
	display: inline-flex; gap: .55em; align-items: center; min-height: 44px;
	font-weight: 650; color: #f7dab0; text-decoration: underline; text-underline-offset: .3em;
}
.stellar-revue #ll-articles .revue-explore a:focus-visible { outline-color: #f7dab0; }
@media (max-width: 600px) {
	.stellar-revue .revue-explore-panel { align-items: end; min-height: 385px; }
	.stellar-revue .revue-explore-panel img { height: 65%; object-position: 76% 32%; }
	.stellar-revue .revue-explore-panel::before { background: linear-gradient(0deg,#080f1c 25%,#080f1cb0 60%,transparent 100%); }
}
.stellar-revue .revue-about { padding-block: clamp(32px,4vw,64px); }
.stellar-revue .revue-about-inner { display: grid; grid-template-columns: minmax(120px,240px) minmax(0,42rem); justify-content: center; gap: clamp(26px,5vw,80px); align-items: center; }
.stellar-revue .revue-about-inner img { width: 100%; height: auto; }
.stellar-revue .revue-about .revue-heading { font-size: clamp(1.8rem,3vw,3rem); margin-bottom: .9rem; }
.stellar-revue .revue-about p { margin-bottom: 0; }
.stellar-revue .revue-about .revue-rule { margin-bottom: 1.15rem; }

/* Keep the original solar controls and scroll-driven opening. The resting spread
   follows the book's landscape proportions, with the archive directly below. */
.stellar-revue #ll-stellaire-root { --serif: var(--ll-serif); --sans: var(--ll-sans); }
.stellar-revue #ll-stellaire-root .hero-copy > .eyebrow,
.stellar-revue #ll-stellaire-root .plate-number,
.stellar-revue #ll-stellaire-root .orbit-mark { display: none; }
.stellar-revue #ll-stellaire-root .asset-credit { margin: 0; padding: 3px 16px 6px; font-size: .65rem; }
.stellar-revue #ll-stellaire-root .static-orbit-links { margin-bottom: 0; }
@media (min-width: 761px) {
	.stellar-revue #ll-stellaire-root { --spread: clamp(380px,37vw,570px); }
	.stellar-revue #ll-stellaire-root .wrap { width: min(calc(100% - 2 * var(--gutter)),calc(1490px - 2 * var(--gutter))); }
	.stellar-revue #ll-stellaire-root .hero { height: var(--spread); min-height: var(--spread); grid-template-columns: 36% 64%; }
	.stellar-revue #ll-stellaire-root .hero-copy { padding: 14px 0; }
	.stellar-revue #ll-stellaire-root .hero h1 { margin: 0; font-size: clamp(2.35rem,4vw,4.35rem); line-height: .99; }
	.stellar-revue #ll-stellaire-root .hero-intro { margin-top: clamp(15px,1.5vw,24px); font-size: clamp(18px,1.95vw,28px); }
	.stellar-revue #ll-stellaire-root .promise { margin-top: clamp(12px,1.3vw,20px); }
	.stellar-revue #ll-stellaire-root .hero-actions { margin-top: 15px; }
	.stellar-revue #ll-stellaire-root .book-stage { height: var(--spread); min-height: 0; }
	.stellar-revue #ll-stellaire-root .scene-caption { min-height: 36px; bottom: 0; }
	.stellar-revue #ll-stellaire-root .scroll-cue { bottom: 2px; }
	.stellar-revue #ll-stellaire-root .scroll-chapter { height: var(--spread); }
	.stellar-revue #ll-stellaire-root > #ll-stellaire-fallback { min-height: var(--spread); }
}
@media (min-width: 761px) and (max-width: 1080px) {
	.stellar-revue .featured-story__card { gap: 24px; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
	.stellar-revue .featured-story__body h2 { font-size: clamp(1.8rem,3.55vw,2.45rem); }
	.stellar-revue .featured-story__body p { margin-bottom: .65rem; }
}
@media (max-width: 760px) {
	.stellar-revue .featured-story__card { grid-template-columns: minmax(0,1fr); gap: 18px; }
	.stellar-revue .revue-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
	.stellar-revue .revue-card h3 { font-size: clamp(1.55rem,4.8vw,2rem); }
	.stellar-revue .revue-card .revue-kicker { margin-top: 12px; }
	.stellar-revue .revue-about-inner { grid-template-columns: minmax(100px,26%) 1fr; align-items: start; gap: 20px; }
	.stellar-revue #ll-articles { scroll-margin-top: 5rem; }
}
@media (max-width: 540px) {
	.stellar-revue .revue-about-inner { grid-template-columns: 1fr; }
	.stellar-revue .revue-about-inner img { width: min(52%,200px); }
}

@media (max-width: 600px) {
	.stellar-revue #ll-stellaire-root .hero-copy > h1,
	.stellar-revue #ll-stellaire-root .hero-copy > .promise { grid-row: 1; }
	.stellar-revue #ll-stellaire-root .hero-actions { grid-row: 2; }
	.stellar-revue #ll-stellaire-root .skip-intro { grid-row: 3; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
	.stellar-revue #ll-stellaire-root { --mobile-spread: max(560px, calc(100svh - 100px)); }
	.stellar-revue #ll-stellaire-root:is([data-mode="loading"],[data-mode="3d"]) .scroll-chapter {
		height: var(--mobile-spread);
	}
	.stellar-revue #ll-stellaire-root:is([data-mode="loading"],[data-mode="3d"]) .hero {
		height: var(--mobile-spread);
		min-height: var(--mobile-spread);
	}
}
@media (max-width: 760px) and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.stellar-revue #ll-stellaire-root > #ll-stellaire-fallback { min-height: var(--mobile-spread); }
}

.stellar-revue #ll-stellaire-root .hero-copy { pointer-events: auto; }
.stellar-revue #ll-stellaire-root .hero-actions .primary { width: fit-content; text-decoration: none; }
.stellar-revue #ll-stellaire-root .popup-tools { display: flex; flex-wrap: nowrap; align-items: start; gap: .35rem 1rem; margin-top: .55rem; min-height: 44px; }
.stellar-revue #ll-stellaire-root .popup-tools :is(summary,button) {
	color: var(--paper); cursor: pointer; font-size: .79rem; min-height: 44px; align-content: center; margin: 0;
}
.stellar-revue #ll-stellaire-root .popup-tools button[hidden] { display: none; }
.stellar-revue #ll-stellaire-root .popup-index { position: relative; }
.stellar-revue #ll-stellaire-root .popup-index ul {
	position: absolute; z-index: 4; width: min(390px,80vw); margin: 0;
	padding: .7rem 1.8rem; background: #192434; border: 1px solid #aa8f69;
}
.stellar-revue #ll-stellaire-root .popup-index a { display: block; padding-block: .45rem; color: var(--paper); }
.stellar-revue #ll-stellaire-root .scene-caption-text { min-height: 1em; }
.stellar-revue #ll-stellaire-root .book-stage .popup-still {
	position: absolute; inset: 0 0 35px; width: 100%; height: calc(100% - 35px); object-fit: contain;
}
.stellar-revue #ll-stellaire-root .popup-still[hidden] { display: none; }
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
	.stellar-revue #ll-stellaire-fallback .hero {
		height: var(--mobile-spread); min-height: var(--mobile-spread);
	}
}
.stellar-revue #ll-stellaire-root .cover-poster[hidden],
.stellar-revue #ll-stellaire-root .scene-host[hidden] { display: none; }
@media (max-width: 600px) {
	.stellar-revue #ll-stellaire-root .hero-copy { display: block; }
	.stellar-revue #ll-stellaire-root .hero h1 { margin-top: 0; font-size: clamp(1.95rem,7.5vw,2.7rem); line-height: 1.04; letter-spacing: -.03em; }
	.stellar-revue #ll-stellaire-root .hero h1 em { display: inline; }
	.stellar-revue #ll-stellaire-root .hero .promise { max-width: none; }
	.stellar-revue #ll-stellaire-root .hero .book-stage { flex: 1 1 0; min-height: 245px; margin-top: 0; }
}

/* Keep the open spread visible below the actual sticky header while scrolling. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
 .stellar-revue #ll-stellaire-root { --popup-plateau: 300px; }
 .stellar-revue #ll-stellaire-root .scroll-chapter { height: calc(var(--popup-height) + var(--popup-plateau)) !important; }
 .stellar-revue #ll-stellaire-root .hero { position: sticky; top: var(--popup-header-height, 0px); height: var(--popup-height) !important; min-height: var(--popup-height) !important; }
}
@media (min-width: 761px) {
 .stellar-revue #ll-stellaire-root { --popup-height: min(var(--spread), calc(100svh - var(--popup-header-height, 118px))); }
 .stellar-revue #ll-stellaire-root .book-stage { height: var(--popup-height); }
}
@media (max-width: 760px) {
 .stellar-revue #ll-stellaire-root { --popup-height: max(360px, calc(100svh - var(--popup-header-height, 69px))); }
}
@media (max-width: 600px) and (max-height: 700px) {
 .stellar-revue #ll-stellaire-root .hero { justify-content: flex-start; padding-top: 8px; padding-bottom: 8px; }
 .stellar-revue #ll-stellaire-root .hero h1 { font-size: clamp(1.55rem, 6vw, 2rem); }
 .stellar-revue #ll-stellaire-root .hero .promise { margin-top: 6px; }
 .stellar-revue #ll-stellaire-root .hero-actions { margin-top: 6px; }
 .stellar-revue #ll-stellaire-root .popup-tools { margin-top: 0; }
 .stellar-revue #ll-stellaire-root .hero .book-stage { min-height: 150px; }
}
.stellar-revue .revue-explore-panel .revue-explore-preview {
	position:absolute; inset:0; width:100%;height:100%;object-fit:cover;z-index:-2;opacity:0;pointer-events:none;
}
.stellar-revue .revue-explore-panel[data-playing] .revue-explore-preview {opacity:1;}
.stellar-revue .revue-explore-panel a::after {content:"";position:absolute;inset:0;}
.stellar-revue .revue-explore-panel:has(a:focus-visible) {outline:2px solid #d5ab78;outline-offset:4px;}
.stellar-revue .revue-explore-pause {position:absolute;right:12px;bottom:12px;z-index:2;background:#09121ddd;color:#fff4db;border:1px solid #ddd7aa66;padding:6px 12px;min-height:44px;}
@media (max-width:600px) {
	.stellar-revue .revue-explore-panel .revue-explore-preview {height:65%;object-position:76% 32%;}
}
