:root {
  --ink: #132e32;
  --paper: #f7f6ee;
  --panel: #eff1ec;
  --copper: #a84928;
  --muted: #4f6260;
  --line: #bcc7bf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #175952; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #bd5328; outline-offset: 3px; }
.skip-main { position: absolute; top: -12rem; padding: 1rem; z-index: 5; background: white; }
.skip-main:focus { top: 0; }
.mast-inner, .trail, .hero-inner, .reading-layout, .related, .footer-inner {
  width: min(92%, 1210px);
  margin-inline: auto;
}
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 151px; max-height: 44px; height: auto; display: block; }
.mast-inner > a:last-child { font-weight: 650; font-size: .92rem; }
.trail { padding-block: 14px; font-size: .82rem; color: var(--muted); }
.trail a { color: inherit; }
.trail span { margin-inline: .55em; }
.lesson-hero {
  color: #f7f6ee;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-image { position: absolute; inset: 0 0 0 auto; width: 43%; z-index: -2; }
.hero-image img { height: 100%; width: 100%; display: block; object-fit: cover; }
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(19,46,50,.35) 35%, rgba(19,46,50,.05) 76%);
}
.hero-inner { padding-block: clamp(43px,5vw,78px); }
.hero-copy { width: min(64%, 770px); }
.subject { margin: 0 0 16px; color: #ecbb93; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin: 0; font-size: clamp(2.5rem,4.5vw,4.7rem); line-height: 1.04; text-wrap: balance; letter-spacing: -.036em; }
.deck { margin: 18px 0 0; font: italic clamp(1.12rem,1.8vw,1.45rem)/1.4 var(--serif); color: #e2e7dc; }
.byline { margin: 26px 0 0; font-size: .85rem; letter-spacing: .01em; color: #f2f3e9; }
.reading-layout { display: grid; grid-template-columns: minmax(145px,200px) minmax(0,715px); column-gap: clamp(32px,6vw,95px); padding-block: clamp(30px,5vw,64px); justify-content: center; align-items:start; }
.contents { position: sticky; top: 20px; color: var(--muted); border-top: 3px solid var(--copper); padding-top: 12px; }
.contents strong { color: var(--ink); font-size: .88rem; }
.contents ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.contents li { border-top: 1px solid var(--line); padding: 10px 0; }
.contents a { font-size: .85rem; line-height: 1.5; display: block; color: inherit; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.prose { font: 1.15rem/1.68 var(--serif); }
.prose p { margin: 0 0 1.12em; }
.prose > p:first-child { font-size: clamp(1.28rem,2vw,1.5rem); line-height: 1.48; }
.prose h2 { margin: 1.48em 0 .42em; font-size: clamp(1.6rem,2.8vw,2.05rem); line-height: 1.18; letter-spacing: -.02em; }
.prose > p b:first-child { color: #7d3a22; }
.plate { margin: 34px 0; border: 1px solid var(--line); background: var(--panel); }
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 39 / 20; }
.plate figcaption { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); color: #334d4a; background: #f5f5ef; font: .9rem/1.48 var(--sans); }
.plate figcaption p { margin: .6em 0 0; }
.worked-math { margin: 0 0 2rem; border-left: 3px solid var(--copper); padding: .3rem 0 .3rem clamp(10px,2vw,24px); }
.worked-math h3 { font: 650 .85rem/1.4 var(--sans); margin: 0 0 .7rem; }
.worked-math math { font-size: clamp(.93rem,2.7vw,1.22rem); margin: .7em 0; text-align: left; }
.source { border-top: 2px solid var(--ink); margin-top: 32px; padding-top: 12px; font: .94rem/1.5 var(--sans); }
.source h2 { font: 700 .82rem/1.4 var(--sans); margin: 0 0 .55em; }
.source p { margin: 0; }
.related { border-top: 1px solid var(--line); padding-block: 24px 36px; display: flex; gap: 20px; align-items: baseline; justify-content: space-between; }
.related strong { font: 1.2rem/1.35 var(--serif); }
.related a { display:inline-block; }
footer { border-top: 4px solid #af623a; background: var(--ink); color: var(--paper); }
.footer-inner { padding-block: 20px; font-size: .85rem; }
@media (max-width: 760px) {
  .mast-inner { min-height: 60px; }
  .brand img { width: 126px; }
  .hero-copy { width: 78%; }
  .hero-image { width: 36%; opacity: .7; }
  .hero-image::after { background: linear-gradient(90deg,var(--ink),rgba(19,46,50,.38)); }
  .reading-layout { display: block; }
  .contents { position:static; margin: 0 0 26px; padding-top: 7px; }
  .contents ul { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: .32rem; }
  .contents li { border:0; padding:0; }
  .contents a { text-decoration: underline; }
  .related { display: grid; gap: 7px; }
}
@media (max-width: 480px) {
  .hero-inner { padding-block: 32px; }
  .hero-copy { width: 100%; }
  .hero-image { width: 48%; opacity: .31; }
  h1 { font-size: clamp(2.42rem,9vw,3.4rem); }
  .prose { font-size: 1.075rem; }
  .plate figcaption { padding: 10px 12px; font-size: .84rem; }
}
@media print {
  .mast, .trail, .hero-image, .contents, .related, footer, .skip-main { display: none; }
  .lesson-hero { color: black; background: white; }
  .hero-copy,.hero-inner,.reading-layout { width: 100%; }
  .hero-inner,.reading-layout { padding-block: 10px; }
  .reading-layout { display: block; }
  .subject,.deck,.byline { color: #243f3c; }
  h1 { font-size: 27pt; }
  .prose { font: 11pt/1.4 var(--serif); }
  .plate { break-inside: avoid; }
}
