:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --chalk: #fff8e8;
  --ink: #1c302c;
  --pine: #173c35;
  --muted: #4b5c53;
  --bronze: #826134;
  --gold: #efcf97;
  --line: #cec3ac;
  --edge: clamp(20px, 5vw, 76px);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans) }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .25em }
::selection { color: #152f2b; background: #e7cd99 }
.wrap { width: min(81rem, calc(100% - var(--edge) - var(--edge))); margin-inline: auto }
:where(a, summary, video, [tabindex="-1"]):focus-visible { outline: 3px solid #98631b; outline-offset: 4px }
.opening :focus-visible, .bottom :focus-visible { outline-color: #ffe0a6 }
.skip { position: absolute; z-index: 3; left: 1rem; top: .6rem; padding: .65rem 1rem; border-radius: .2rem; background: var(--paper); transform: translateY(-180%) }
.skip:focus { transform: none }

.mast { background: #f5eee0; border-top: 3px solid #a5814b; border-bottom: 1px solid #d5c7ac }
.mast-inner, .brand, .languages, .bottom-inner { display: flex; align-items: center }
.mast-inner { min-height: 73px; justify-content: space-between; gap: 1rem }
.brand { min-height: 44px; gap: .75rem; color: var(--pine); text-decoration: none; font: 600 clamp(1.34rem, 2.2vw, 1.65rem)/1.08 var(--display) }
.brand img { width: 38px; height: 38px; border-radius: 50%; flex: none }
.languages { gap: .15rem }
.languages a {
  display: inline-flex; min-width: 44px; min-height: 44px; padding: .28rem .82rem;
  justify-content: center; align-items: center; border-radius: .18rem; color: #344840;
  font: 600 .82rem/1.2 var(--sans); text-decoration: none;
}
.languages a[aria-current="page"] { color: var(--chalk); background: var(--pine) }
.languages a:focus-visible { outline-offset: 2px }

.opening { color: var(--chalk); background: radial-gradient(ellipse at 74% 14%, #294b40, transparent 57%), linear-gradient(118deg, #102d29 8%, #173b34 64%, #1a332e); border-bottom: 3px solid #b3935f }
.hero-grid { display: grid; grid-template-columns: minmax(0,.91fr) minmax(0,1.10fr); gap: clamp(2.4rem,5.5vw,5.5rem); align-items: center; padding-block: clamp(2.3rem,4.2vw,4.25rem) }
.opening-text, .screen { min-width: 0 }
.return, .read, .bottom a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none }
.return { color: #e2d9bd; font: 500 .86rem/1.4 var(--sans) }
.return span { color: var(--gold); font-size: 1.13rem }
h1, h2 { font-family: var(--display); font-weight: 600; text-wrap: balance }
h1 { margin: .22em 0 .4em; font-size: clamp(3rem,4.55vw,4.66rem); line-height: 1.015; letter-spacing: -.032em }
h1 .name { color: var(--gold); font-weight: 500; white-space: nowrap }
.attribution { border-inline-start: 2px solid #ba9966; padding-inline-start: 1rem; margin-block: 1.1rem 1.35rem }
.attribution p { margin: 0 }
.byline { color: #f7efdb; line-height: 1.45 }
.byline b { display: block; font-size: .99rem; font-weight: 700 }
.byline span, .issue { font-size: .82rem; color: #d3ddce }
.issue { padding-top: .35rem; line-height: 1.5 }
.issue cite { font-style: normal }
.read { gap: 1.5rem; border: 1px solid #e8c484; border-radius: .18rem; padding: .62rem 1.1rem; background: var(--gold); color: #17312b; font-size: .88rem; font-weight: 700 }
.read span { font-size: 1.07rem; line-height: 1 }
.film-frame { padding: clamp(4px,.45vw,7px); background: #142a25; border: 1px solid #b2945e; box-shadow: 0 16px 36px #0719154a }
video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #142b28; object-fit: contain }
video::cue { background: #142b25ed; color: #fff; font-family: system-ui, sans-serif }
.screenbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .9rem }
.screenbar h2 { color: #f8eaca; margin: 0; font-size: clamp(1.65rem,2.4vw,2.25rem); line-height: 1.1 }
.screenbar > span { color: #ead4ac; font-size: .77rem; line-height: 1.5 }
.screenbar time { font-variant-numeric: tabular-nums }
#filmdesc { max-width: 68ch; margin: .38rem 0 0; font-size: .8rem; line-height: 1.55; color: #d1d9cc }

.reading-grid { display: grid; grid-template-columns: minmax(10.5rem,15.2rem) minmax(0,44rem); justify-content: center; gap: clamp(2rem,6.6vw,6.6rem); align-items: start; padding-block: clamp(3rem,6.2vw,6rem) clamp(2.8rem,5vw,4.8rem) }
.rail { position: sticky; top: 1.4rem; border-top: 2px solid #a7844c; padding-top: 1rem }
.toc-label { margin: 0 0 .52rem; font: 600 1.35rem/1.2 var(--display); color: var(--pine) }
.rail nav, .mobile-contents nav { display: grid }
.rail nav a, .mobile-contents nav a { display: flex; align-items: center; min-height: 44px; padding-block: .55rem; border-bottom: 1px solid var(--line); font: 500 .88rem/1.45 var(--sans); color: var(--muted); text-decoration: none }
.mobile-contents { display: none }
article { min-width: 0; font: 1.13rem/1.76 Georgia, "Times New Roman", serif }
article > p { margin: 0 0 1.12em }
.lede { position: relative; margin-bottom: 1.3rem; padding-bottom: 1.25rem; font: 600 clamp(1.73rem,2.55vw,2.32rem)/1.22 var(--display); color: var(--pine); letter-spacing: -.012em }
.lede::after { content: ""; position: absolute; bottom: 0; left: 0; width: 4rem; height: 2px; background: #a7844c }
#article, article h2, #film { scroll-margin-block-start: 1.5rem }
article > h2 { margin: 1.4em 0 .42em; padding-top: .62em; border-top: 1px solid var(--line); color: var(--pine); font-size: clamp(2.05rem,3.55vw,3rem); line-height: 1.06; letter-spacing: -.022em }
.caption { margin: 1.25rem 0 1.65rem; padding: 1rem 1.25rem; background: #f1eada; border-inline-start: 2px solid #a1804b; color: #3d5147; font: .9rem/1.6 var(--sans) }
.caption span { display: block; margin-bottom: .28rem; color: #765932; font-weight: 700; font-size: .78rem }
.credits { margin-block-start: clamp(2.5rem,5vw,4rem); padding-top: 1.45rem; border-top: 2px solid #9a7a4c; font: .94rem/1.65 var(--sans); color: var(--muted) }
.credits h2 { margin: 0 0 .7rem; font-size: clamp(1.9rem,3vw,2.4rem); line-height: 1.12; color: var(--pine) }
.credits p { margin: .65rem 0 }
.sources { padding: 0; margin: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--line) }
.sources li { border-bottom: 1px solid var(--line) }
.sources a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .5rem .3rem .5rem 0; color: var(--pine); font-weight: 600; text-decoration: none }
.sources a span { color: var(--bronze); flex: none }
.bottom { color: #eee3c9; background: #14332e; border-top: 2px solid #ad8a56 }
.bottom-inner { min-height: 78px; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .65rem; font-size: .83rem }
.bottom-inner > span { color: #e3cda3; font: 600 1.25rem/1.25 var(--display) }

@media (hover: hover) {
  .languages a:not([aria-current]):hover { background: #e9dec9 }
  .read:hover { background: #ffe2aa }
  .return:hover, .rail a:hover, .mobile-contents a:hover, .sources a:hover, .bottom a:hover { text-decoration: underline }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.85rem; max-width: 43.5rem }
  .opening-text { max-width: 38rem }
  h1 { font-size: clamp(2.8rem,7.2vw,4.05rem) }
  .reading-grid { grid-template-columns: minmax(0,43.5rem) }
  .rail { display: none }
  .mobile-contents { display: block; margin: 0 0 1.35rem; border-block: 1px solid var(--line); font-family: var(--sans) }
  .mobile-contents summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 46px; padding: .5rem .15rem; list-style: none; color: var(--pine); font-size: .9rem; font-weight: 700; cursor: pointer }
  .mobile-contents summary::-webkit-details-marker { display: none }
  .mobile-contents summary::after { content: ""; width: .56rem; height: .56rem; margin-inline-end: .3rem; border: solid var(--bronze); border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg) }
  .mobile-contents[open] summary::after { transform: translateY(.15rem) rotate(225deg) }
  .mobile-contents nav { padding-inline: .5rem }
  .mobile-contents nav a:last-child { border-bottom: 0 }
}
@media (max-width: 620px) {
  .mast-inner { flex-direction: column; align-items: stretch; gap: .18rem; padding-block: .5rem }
  .brand { align-self: flex-start }
  .brand img { width: 33px; height: 33px }
  .languages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .12rem }
  .languages a { padding-inline: .18rem; font-size: .8rem }
  .hero-grid { padding-block: 1.1rem 1.65rem; gap: 1.6rem }
  h1 { margin-block: .12em .35em; font-size: clamp(2.42rem,9.9vw,3.35rem) }
  .attribution { margin-block: .85rem 1rem }
  .screenbar { margin-top: .68rem }
  .reading-grid { padding-top: 2.1rem }
  article { font-size: 1.065rem; line-height: 1.72 }
  .caption { padding: .8rem 1rem }
  .bottom-inner > span { font-size: 1.1rem }
}
@media (forced-colors: active) {
  .languages a[aria-current="page"], .read, .film-frame, .caption { border: 1px solid CanvasText }
  .languages a[aria-current="page"] { text-decoration: underline }
  .mobile-contents summary::after { border-color: ButtonText }
}
@media print {
  .mast, .return, .read, .screen, .rail, .mobile-contents, .bottom, .skip { display: none }
  .wrap { width: 100%; max-width: none }
  .opening { color: #111; background: transparent; border-bottom: 1px solid #777 }
  .hero-grid, .reading-grid { display: block; padding-block: 1rem }
  h1 { font-size: 30pt }
  h1 .name, .byline, .byline span, .issue { color: #111 }
  article { font: 11pt/1.45 Georgia, serif }
  article h2 { break-after: avoid }
  .caption { break-inside: avoid }
}
