/* Luce: explanatory plates, art and photography follow the reading progress. */
.light-page { background: var(--paper); }
.light-story { --light-gold: #ae7f43; --light-gold-text: #805d32; --light-olive: #6d775f; --light-progress: 1; }
.light-story a { text-underline-offset: 5px; }
.light-opening { padding: 30px var(--pad) 0; overflow: clip; }
.light-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.light-back { padding: 8px 0; }
.light-back:hover { color: var(--ink); }
.light-topline > span { font-size: 11px; letter-spacing: .08em; }
.light-opening-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw; max-width: 1560px; min-height: min(680px, calc(100svh - 195px)); margin: 0 auto; padding: 56px 0 64px; }
.light-opening-copy { position: relative; z-index: 1; }
.light-kicker { margin: 0 0 26px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.light-opening h1 { margin: 0 0 30px; font-size: clamp(66px, 7.5vw, 116px); font-weight: 300; line-height: .97; letter-spacing: -.065em; }
.light-opening h1 span { color: var(--light-gold); }
.light-introduction { max-width: 35ch; margin: 0; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; }
.light-scroll-cue { display: inline-flex; align-items: center; gap: 13px; margin-top: 35px; padding: 6px 0; font-size: 13px; }
.light-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: transform .25s var(--ease); }
.light-scroll-cue:hover .light-arrow { transform: translateY(4px); }
.light-opening-art { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; max-width: 650px; justify-self: end; }
.light-chapter-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1560px; margin: 0 auto; border-top: 1px solid var(--line); }
.light-chapter-index a { display: flex; gap: 18px; align-items: baseline; padding: 22px 10px 24px 0; font-size: 14px; }
.light-chapter-index a:hover { text-decoration: underline; }
.light-chapter-index span { color: var(--light-gold-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.light-reading-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px var(--pad); background: #fff; border-top: 1px solid var(--line); }
.light-reading-tools p { margin: 0; color: var(--muted); font-size: 13px; }
.light-motion-toggle { flex-shrink: 0; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; background: transparent; font-size: 12px; cursor: pointer; }

.light-chapter { --light-mobile: 0; background: var(--paper); position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(40px,5vw,84px); padding: 64px var(--pad); scroll-margin-top: calc(var(--header) + 10px); border-top: 1px solid var(--line); }
.light-chapter--sun, .light-chapter--choice, .light-chapter--photographer { background: #fff; }
.light-stage { position: relative; top: auto; align-self: start; width: 100%; min-width: 0; max-width: 850px; margin: 0 auto; --light-progress: 1; }
.light-scroll .light-stage { position: sticky; top: calc(var(--header) + 24px); }
.light-story[data-motion="off"] .light-stage { position: relative; top: auto; }
.light-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.light-stage-heading > span:nth-child(2) { font-size: 24px; line-height: 1; color: var(--light-gold); }
.light-illustration { padding-top: 30px; }
.light-illustration svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Native vector plates: crisp at every density, no renderer or bitmap fallback. */
.light-opening-art svg { display: block; width: 100%; height: auto; }
.light-plate { width: 100%; }
.light-plate--camera .light-ray { stroke-width: 3.4; }
.light-plate--camera .light-ray--secondary { stroke-width: 2.7; opacity: .75; }
.light-plate--photographer { isolation: isolate; }
.light-plate--photographer svg { overflow: hidden; }
.light-plate svg { max-height: max(240px, calc(100svh - 380px)); }
.light-story .plate-eyebrow { font-size: 14px; letter-spacing: .14em; fill: #806945; }
.light-story .plate-label { font-size: 23px; fill: #343f36; }
.light-story .plate-small { font-size: 20px; fill: #696e61; }
.light-story .plate-footnote { font-size: 17px; fill: #696e61; }
/* Art and photographs retain their full framing and original colours. */
.light-artwork, .light-photograph { display: block; margin: 0; }
.light-artwork img, .light-photograph img { display: block; width: 100%; height: auto; max-height: max(240px, calc(100svh - 370px)); object-fit: contain; }
.light-artwork, .light-artwork .photo-link, .light-photograph, .light-photograph .photo-link { background: transparent; }
.light-illustration .photo-proportions { display: none; }
.light-artwork:hover img, .light-photograph:hover img { opacity: 1; }
.light-photograph:focus-visible, .light-photograph .photo-link:focus-visible { outline-color: var(--light-gold-text); }
.light-artwork-caption { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.light-artwork-caption strong { color: var(--ink); font-weight: 500; }
.light-artwork-caption a { text-decoration: underline; }
.light-photo-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.light-photo-note a { text-decoration: underline; }
.light-chapter-appendix { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.light-asset-missing { padding: 24px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.light-technical-details { margin-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.light-technical-details summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 9px; cursor: pointer; }
.light-technical-details summary span { color: var(--light-gold-text); }
.light-technical-diagram { padding: 12px 0; }
.light-technical-diagram svg { display: block; width: 100%; height: auto; }
.light-chapter:has(.light-technical-details[open]) { --light-mobile: 0; }
.light-chapter:has(.light-technical-details[open]) .light-stage { position: relative; top: auto; }
.light-phases { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.light-phases li { padding: 14px 7px 0 0; color: var(--muted); font-size: 14px; border-top: 2px solid transparent; margin-top: -1px; }
.light-phases li > span { display: block; font-size: 10px; color: var(--light-gold-text); margin-bottom: 3px; }
.light-phases li[aria-current="step"] { color: var(--ink); border-top-color: var(--light-gold); }
.light-sequence-caption { min-height: 3.2em; margin: 16px 0 0; font-size: 15px; line-height: 1.5; max-width: 66ch; }
.light-model-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 82ch; }
.light-model-note summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.light-model-note p { margin: 7px 0 0; }
.light-zoom { margin-left: auto; padding: 6px 0 6px 12px; background: transparent; border: 0; color: var(--ink); cursor: pointer; font-size: 12px; text-transform: none; letter-spacing: 0; }
.light-stage-heading:has(.light-zoom) > span:nth-child(2) { display: none; }
html.light-dialog-open, html.light-dialog-open body { overflow: hidden; }
.light-diagram-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 28px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.light-diagram-dialog::backdrop { background: #161b1799; }
.light-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.light-dialog-header h2 { margin: 0; font-size: 21px; font-weight: 400; }
.light-dialog-header button { padding: 9px 12px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.light-dialog-hint, .light-dialog-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.light-dialog-canvas { overflow-x: auto; overscroll-behavior-x: contain; margin: 24px 0; }
.light-dialog-canvas svg { display: block; width: 100%; min-width: 660px; height: auto; }
.light-stage-track { height: 2px; margin-top: 18px; background: var(--line); overflow: hidden; }
.light-stage-track > span { display: block; height: 100%; background: var(--light-gold); transform-origin: left; transform: scaleX(var(--light-progress)); }
.light-steps { min-width: 0; max-width: 540px; }
.light-step { display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.light-scroll .light-step { min-height: 52svh; }
.light-step + .light-step { border-top: 1px solid var(--line); }
.light-step h2, .light-step h3 { margin: 0 0 28px; font-size: clamp(34px,3.2vw,52px); font-weight: 300; line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.light-step p:not(.light-kicker) { margin: 0; font-size: clamp(17px,1.25vw,20px); line-height: 1.65; }
.light-step p:not(.light-kicker) + p { margin-top: 20px; }
.light-step p:not(.light-kicker).light-aside { margin-top: 28px; padding-left: 19px; border-left: 1px solid var(--light-gold); color: var(--muted); font-size: 16px !important; }
.light-spectrum { margin-top: 25px; }
.light-spectrum svg { display: block; width: 100%; height: auto; }
.light-step p.light-chart-note { margin-top: 14px; font-size: 13px !important; color: var(--muted); }
.light-model-details { margin-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.light-model-details summary { cursor: pointer; padding: 13px 0; }
.light-model-details p { font-size: 15px !important; color: var(--muted); }
/* The SVG geometry carries meaning; styling never distorts lenses, rays or axes. */
.light-story svg text { font-family: var(--font); font-weight: 400; }
.light-technical-diagram svg text, .light-spectrum svg text, .light-plate--source svg text { fill: #494d44; }
.light-story .diagram-label { font-size: 24px; }
.light-story .diagram-small { font-size: 20px; }
.light-story .diagram-value { font-size: 34px; fill: #303a33; font-variant-numeric: tabular-nums; }
.light-story .diagram-leader { fill: none; stroke: #a6aa9c; stroke-width: 1.2; }
.light-story .diagram-measure { fill: none; stroke: #9f9d91; stroke-width: 1.2; }
.light-story .diagram-measure text { stroke: none; font-size: 21px; }
.light-story .diagram-grid { stroke: #d6d5ca; stroke-width: 1; }
.light-story .light-axis { fill: none; stroke: #b8bbae; stroke-width: 1.2; stroke-dasharray: 5 7; }
.light-story .light-ray { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.light-story .light-ray--gold { stroke: #a57633; }
.light-story .light-ray--olive { stroke: #477c70; }
.light-story .light-surface-edge { fill: none; stroke: #737d67; stroke-width: 3; }
.light-story .light-normal { fill: none; stroke: #929a89; stroke-width: 1.5; stroke-dasharray: 4 5; }
.light-story .light-absorbed { fill: none; stroke: #777464; stroke-width: 2; }
.light-story .light-packet { display: none; stroke: #fff; stroke-width: 1.5; }
.light-story .light-packet--gold { fill: #a57633; }
.light-story .light-packet--olive { fill: #477c70; }
.light-scroll[data-motion="on"] .light-packet { display: block; }
.light-ending { padding: clamp(85px, 11vw, 160px) var(--pad) 70px; border-top: 1px solid var(--line); background: #fff; }
.light-ending-statement { max-width: 1200px; margin: 0; font-size: clamp(44px, 5.5vw, 88px); font-weight: 300; line-height: 1.1; letter-spacing: -.05em; }
.light-ending-statement span { color: var(--muted); }
.light-return { display: inline-flex; align-items: center; gap: 55px; margin-top: 50px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 16px; }
.light-return span { font-size: 24px; }
.light-sources { max-width: 760px; margin-top: 90px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.light-sources summary { width: fit-content; padding: 12px 0; cursor: pointer; }
.light-sources p { margin: 10px 0; }
.light-sources ul { padding-left: 18px; }
.light-sources a { text-decoration: underline; }

@media (max-width:1100px) {
    .light-opening-grid { gap: 30px; }
    .light-chapter { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 38px; padding-top: 55px; padding-bottom: 55px; }
    .light-step h2, .light-step h3 { font-size: 36px; }
    .light-step p:not(.light-kicker) { font-size: 17px; }
    .light-sequence-caption { font-size: 14px; }
}
@media (max-width:760px) {
    .light-opening { padding: 18px var(--mobile,18px) 0; }
    .light-topline > span { max-width: 15ch; text-align: right; line-height: 1.5; font-size: 10px; }
    .light-opening-grid { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 48px 0 32px; }
    .light-opening h1 { font-size: clamp(46px,13.8vw,94px); }
    .light-kicker { font-size: 10px; margin-bottom: 22px; }
    .light-introduction { max-width: 36ch; font-size: 18px; }
    .light-scroll-cue { margin-top: 24px; }
    .light-opening-art { max-width: 380px; width: 82%; margin: -5px auto 15px; }
    .light-chapter-index { grid-template-columns: 1fr 1fr; }
    .light-chapter-index a { font-size: 13px; padding: 16px 0; gap: 13px; }
    .light-chapter-index a:nth-child(n+3) { border-top: 1px solid var(--line); }
    .light-chapter-index a:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .light-reading-tools { align-items: flex-start; flex-direction: column; gap: 8px; padding: 24px var(--mobile,18px); }
    .light-reading-tools p { max-width: 40ch; font-size: 12px; }
    .light-chapter { --light-mobile: 1; display: block; padding: 0 var(--mobile,18px) 45px; scroll-margin-top: 0; }
    .light-stage { position: relative; top: auto; padding-top: 18px; background: inherit; }
    .light-scroll .light-stage { position: sticky; top: var(--header); z-index: 2; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .light-stage-heading { font-size: 10px; }
    .light-diagram-dialog { padding: 16px; }
    .light-dialog-header h2 { font-size: 16px; }
    .light-stage-heading > span:nth-child(2) { font-size: 20px; }
    .light-illustration { padding-top: 10px; max-width: 460px; margin: 0 auto; }
    .light-plate svg { max-height: min(230px, 33svh); }
    .light-scroll .light-stage .light-sequence-caption { display: none; }
    .light-scroll .light-stage { padding-top: 12px; }
    .light-scroll .light-stage .light-phases { margin-top: 8px; }
    .light-scroll .light-stage .light-stage-track { margin-top: 8px; }
    .light-zoom { font-size: 11px; }
    .light-chapter-appendix { margin-top: 0; }
    .light-phases { margin-top: 14px; }
    .light-phases li { padding-top: 8px; font-size: 12px; }
    .light-phases li > span { display: inline; margin-right: 5px; font-size: 9px; }
    .light-sequence-caption { font-size: 13px; line-height: 1.45; min-height: 4.35em; margin-top: 10px; }
    .light-model-note { font-size: 11px; line-height: 1.4; margin-top: 8px; }
    .light-stage-track { margin-top: 10px; }
    .light-steps { max-width: 600px; margin: 0 auto; }
    .light-step, .light-scroll .light-step { padding: 44px 3px; min-height: 0; }
    .light-scroll .light-step { min-height: 48svh; }
    /* A painting or photograph needs its own space, without covering the text. */
    .light-chapter--shadow, .light-chapter--photographer { --light-mobile: 0; }
    .light-scroll .light-chapter--shadow .light-stage, .light-scroll .light-chapter--photographer .light-stage { position: relative; top: auto; border-bottom: 0; padding-bottom: 20px; }
    .light-chapter--shadow .light-artwork img, .light-chapter--photographer .light-photograph img { max-height: none; }
    .light-scroll .light-chapter--shadow .light-step, .light-scroll .light-chapter--photographer .light-step { min-height: 0; }
    .light-scroll .light-chapter--shadow .light-sequence-caption, .light-scroll .light-chapter--photographer .light-sequence-caption { display: block; min-height: 0; }
    .light-artwork-caption { font-size: 12px; }
    .light-photo-note { font-size: 12px; }
    .light-step h2, .light-step h3 { font-size: clamp(32px,7.8vw,42px); margin-bottom: 23px; }
    .light-step p:not(.light-kicker) { font-size: 17px; }
    .light-ending { padding: 76px var(--mobile,18px) 52px; }
    .light-ending-statement { font-size: clamp(38px,9.5vw,60px); }
    .light-return { gap: 35px; }
    .light-sources { margin-top: 65px; }
}
@media (max-height:700px) {
    .light-chapter { --light-mobile: 0; }
    .light-stage, .light-scroll .light-stage { position: relative; top: auto; }
    .light-scroll .light-step { min-height: 0; }
    .light-scroll .light-stage .light-sequence-caption { display: block; }
}
@media (prefers-reduced-motion:reduce) {
    .light-stage, .light-scroll .light-stage { position: relative; top: auto; }
    .light-scroll .light-step { min-height: 0; }
    .light-scroll[data-motion="on"] .light-packet { display: none; }
}
@media print {
    .light-chapter-index, .light-reading-tools, .light-stage-track, .light-packet { display: none !important; }
    .light-opening-grid, .light-chapter { display: block; }
    .light-stage, .light-scroll .light-stage { position: static; max-width: 650px; break-inside: avoid; }
    .light-step, .light-scroll .light-step { min-height: 0; padding: 20px 0; }
    .light-ray { stroke-dashoffset: 0 !important; }
    [data-reveal], [data-chart-phase] { opacity: 1 !important; }
    .light-opening-art { max-width: 300px; }
    .light-plate svg { max-height: none; }
    .light-artwork img, .light-photograph img { max-height: none; }
    .light-opening h1 { font-size: 50px; }
    .light-step h2, .light-step h3 { break-after: avoid; }
}
