:root {
  --ground: #08120f;
  --forest: #101e18;
  --cream: #eee6d3;
  --gold: #cfb57c;
  --soft-cream: #c9c7b8;
  --dark-line: #655940;
  --paper: #f7f2e7;
  --paper-deep: #ede5d4;
  --ink: #1b2a23;
  --muted: #4d594e;
  --brass: #725522;
  --paper-line: #d6cbb4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ground); color: var(--cream); line-height: 1.62; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, h4, h5, figure { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 104px)); margin-inline: auto; }
.skip {
  position: absolute; top: .75rem; left: 1rem; z-index: 3; padding: .65rem 1rem;
  transform: translateY(-160%); background: var(--paper); color: var(--ink);
}
.skip:focus { transform: none; }
.masthead { background: #070f0c; border-bottom: 1px solid #38382a; }
.masthead-inner, .footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none;
  font: 1.35rem/1.15 var(--serif); color: var(--cream);
}
.brand img { flex: none; }
.brand small {
  display: block; color: var(--gold); margin-top: .3rem;
  font: 600 .68rem/1.15 var(--sans); text-transform: uppercase; letter-spacing: .15em;
}
.masthead nav { display: flex; gap: clamp(1rem, 2.65vw, 2.4rem); color: var(--cream); }
.masthead nav a {
  display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9rem;
}
.nav-long { margin-right: .27em; }
.nav-long + .nav-short { text-transform: lowercase; }
.masthead nav a:hover { color: var(--gold); text-decoration: underline; }

.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: 425px; background: #0d1a15; border-bottom: 1px solid var(--dark-line); overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0 0 0 43%; z-index: -1; overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d1a15 0%, #0d1a15ed 7%, #0d1a1547 29%, transparent 57%),
    linear-gradient(0deg, #07100dcc 0%, transparent 30%, transparent 85%, #07100d30 100%);
}
.hero-image figcaption {
  position: absolute; z-index: 1; right: max(1.25rem, calc((100vw - 1180px) / 2)); bottom: 1rem;
  color: var(--cream); font-size: .8rem; padding: .2rem .55rem;
  background: #08120fe0; border: 1px solid #cfb57c60;
}
.hero-inner { padding-block: 48px 55px; }
.hero-copy { max-width: 635px; }
.eyebrow {
  color: var(--gold); font-size: .81rem; font-weight: 700; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .145em;
}
.hero h1 {
  font: 400 clamp(3.4rem, 5.8vw, 5.65rem)/.99 var(--serif);
  letter-spacing: -.055em; margin: .85rem 0 1rem;
}
.hero h1 em { font-style: normal; }
.hero-author { color: var(--gold); font-size: 1rem; }
.hero-description { max-width: 442px; color: var(--cream); font-size: 1.05rem; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.18rem; border: 1px solid var(--gold); text-decoration: none; font-weight: 650;
  font-size: .91rem; line-height: 1.25; transition: background-color .18s ease, color .18s ease;
}
.primary { background: #e7d6ad; border-color: #e7d6ad; color: var(--ground); }
.primary:hover { background: #f8edd3; }
.ghost { color: var(--cream); background: #101e1899; border-color: #928265; }
.ghost:hover { background: #27352c; }

.workplace { padding-block: 45px 58px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: 1.35rem;
}
.section-head h2 { font: 400 clamp(2.15rem, 4.2vw, 3.3rem)/1.08 var(--serif); margin-top: .5rem; letter-spacing: -.035em; }
.section-head > p { max-width: 370px; color: var(--soft-cream); font-size: 1rem; }
.planner-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.level-rail { background: var(--forest); padding: 1.05rem; border: 1px solid #534931; }
.level-rail h3 { font: 400 1.36rem/1.2 var(--serif); padding: .15rem .25rem .85rem; }
.level-controls { display: grid; gap: .42rem; }
.level-controls button {
  width: 100%; min-height: 60px; background: transparent; color: var(--cream); text-align: left;
  border: 1px solid #74644b; border-left: 3px solid #74644b; padding: .55rem .65rem; line-height: 1.35;
}
.level-controls button strong, .level-controls button span { display: block; }
.level-controls button strong { font-size: .94rem; }
.level-controls button span { color: var(--soft-cream); font-size: .875rem; margin-top: .16rem; }
.level-controls button:hover { background: #253229; border-color: var(--gold); }
.level-controls button[aria-pressed="true"] {
  background: #e7d6ad; color: var(--ground); border-color: #e7d6ad; border-left-color: #a37d42;
}
.level-controls button[aria-pressed="true"] span { color: #3a493d; }
.rail-note { color: var(--soft-cream); font-size: .8rem; line-height: 1.5; margin: .85rem .25rem .15rem; }

.lesson-card {
  color-scheme: light; background: var(--paper); color: var(--ink); min-width: 0;
  border: 1px solid #c2ae81; box-shadow: 0 12px 32px #0003;
}
.lesson-card :focus-visible { outline-color: var(--brass); outline-offset: -3px; }
.lesson-head, .lesson-panel, .lesson-footer { padding-inline: clamp(1.25rem, 3.7vw, 2.6rem); }
.lesson-head { padding-top: 1.55rem; padding-bottom: 1.3rem; }
.lesson-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem .8rem; flex-wrap: wrap; }
.badge {
  color: #60471e; background: #ede2c8; padding: .25rem .52rem;
  font-size: .81rem; font-weight: 700; line-height: 1.35;
}
.time { display: inline-flex; gap: .43rem; align-items: center; font-size: .88rem; color: var(--muted); }
.time i { border: 1.5px solid currentColor; border-radius: 50%; width: .83rem; height: .83rem; position: relative; }
.time i::after {
  position: absolute; content: ''; border: solid currentColor; border-width: 0 0 1px 1px;
  width: .22rem; height: .27rem; top: .1rem; left: .28rem;
}
.lesson-head h3 {
  font: 400 clamp(1.85rem, 3.6vw, 2.7rem)/1.11 var(--serif); letter-spacing: -.035em;
  margin: .65rem 0 .55rem;
}
.lesson-intro { max-width: 71ch; color: var(--muted); }
.guiding-question {
  margin-top: 1rem; padding: .52rem .85rem; border-left: 2px solid #89682f;
  background: #efe8d9; font: italic 1.12rem/1.5 var(--serif); color: #332e20;
}
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-inline: clamp(.6rem, 2.5vw, 2rem); background: #ede6d7;
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
.tabs button {
  min-width: 0; min-height: 49px; padding: .55rem .2rem; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); background: transparent; font-weight: 650; font-size: .93rem;
}
.tabs button:hover { background: #e4dbc9; color: var(--ink); }
.tabs button[aria-selected="true"] { border-bottom-color: #426252; color: #223b2d; background: #f5f0e5; }
.lesson-panel { padding-block: 1.3rem 1.6rem; }
.lesson-panel:focus-visible { outline: 2px solid var(--brass); outline-offset: -4px; }
.lesson-panel h4 { font: 400 1.64rem/1.2 var(--serif); letter-spacing: -.018em; margin-bottom: .75rem; }
.lesson-panel h5 { font-size: 1rem; margin: 1.15rem 0 .4rem; }
.objective-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.objective { border-top: 2px solid #ba9c5e; padding: .6rem .7rem .7rem; background: #f0ebdf; }
.objective strong { color: #22392d; }
.objective p { color: var(--muted); margin-top: .3rem; }
.disclosure { border-top: 1px solid var(--paper-line); }
.disclosure summary, .reading-card summary {
  position: relative; list-style: none; cursor: pointer; padding: .65rem 1.6rem .65rem .1rem;
  display: list-item; min-height: 44px; font-weight: 650;
}
.disclosure summary::-webkit-details-marker, .reading-card summary::-webkit-details-marker { display: none; }
.disclosure summary::after, .reading-card summary::after {
  content: '+'; font-weight: 400; position: absolute; right: .24rem; top: .45rem; font-size: 1.24rem;
}
details[open] > summary::after { content: '−'; }
.disclosure summary:hover { color: var(--brass); }
.disclosure p { padding: 0 .65rem .8rem .1rem; color: var(--muted); }
.story { padding: .85rem .85rem .2rem; background: #eeeadf; margin-bottom: .25rem; }
.story p { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.prompt-list { padding-left: 1.35rem; margin: 0; }
.prompt-list li { padding: .35rem 0 .55rem .25rem; }
.prompt-list li::marker { color: var(--brass); font-weight: 700; }
.prompt-list li > p { font-weight: 600; margin-bottom: .43rem; }
.prompt-list .disclosure { border-color: #e4dac7; }
.prompt-list summary { color: #4c4937; font-size: .92rem; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 6.45rem 1fr; gap: .6rem; border-top: 1px solid var(--paper-line); padding: .6rem 0; }
.schedule li > span { color: #634d25; font-size: .92rem; font-weight: 650; }
.schedule li p { color: var(--muted); }
.task { padding: .75rem .9rem; background: #ece4d1; border-left: 2px solid #89682f; margin-bottom: .75rem; }
.task p { font: 1.2rem/1.4 var(--serif); }
.task small { display: block; color: var(--muted); font-size: .89rem; margin-top: .35rem; }
.criteria { margin: .35rem 0 1rem; padding-left: 1.3rem; }
.criteria li + li { margin-top: .28rem; }
.lesson-footer {
  display: flex; justify-content: space-between; align-items: center; gap: .55rem 1rem;
  padding-block: .55rem; border-top: 1px solid var(--paper-line); background: #eee6d5;
}
.lesson-footer span { font: italic 1rem/1.3 var(--serif); color: #3a4339; }
.print-button {
  min-height: 44px; color: #294534; border: 0; padding: .4rem .2rem;
  background: transparent; font-weight: 700; font-size: .88rem; text-underline-offset: 4px;
}
.print-button:hover { text-decoration: underline; }
.noscript { padding: 1.3rem; }

.reading-section { padding-block: 43px 52px; border-block: 1px solid #3e3e2d; background: #0c1713; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.reading-card {
  display: flex; flex-direction: column; align-items: stretch; padding: 1.25rem 1.35rem;
  border: 1px solid #62553c; background: var(--forest); color: var(--soft-cream);
}
.reading-card h3 { font: 400 1.69rem/1.2 var(--serif); color: var(--cream); margin-bottom: .55rem; }
.reading-card > p { margin-bottom: .8rem; }
.reading-card details { border-top: 1px solid #62553c; }
.reading-card details p { padding: 0 .6rem .7rem 0; }
.reading-card summary { color: var(--cream); }
.reading-card summary:hover, .reading-card summary::after, .source-link, .edition-note a { color: var(--gold); }
.source-link { display: flex; flex-wrap: wrap; column-gap: .4em; align-items: baseline; width: fit-content; padding-block: .7rem .25rem; font-weight: 650; }
.source-link span { color: var(--soft-cream); font-weight: 400; font-size: .85rem; }
.edition-note { color: var(--soft-cream); margin-top: 1.25rem; }
.footer { background: #070f0c; }
.footer .brand { font-size: 1.15rem; }
.footer p { font-size: .875rem; color: var(--soft-cream); }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 62px); }
  .hero-copy { max-width: 550px; }
  .hero-image { left: 38%; }
  .planner-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 1rem; }
  .objective-list { grid-template-columns: 1fr; gap: .5rem; }
  .objective { border-top: 0; border-left: 2px solid #ba9c5e; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { flex-wrap: wrap; justify-content: center; padding-top: .7rem; row-gap: .14rem; }
  .masthead nav { width: 100%; justify-content: center; gap: clamp(.7rem, 4vw, 1.8rem); }
  .hero { display: block; min-height: auto; }
  .hero-image { position: relative; inset: auto; height: clamp(170px, 53vw, 285px); }
  .hero-image img { object-position: 50% 35%; }
  .hero-image::after { background: linear-gradient(0deg, #0d1a15 0%, transparent 45%); }
  .hero-image figcaption { right: 1rem; bottom: .35rem; }
  .hero-inner { padding-block: .85rem 2.1rem; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 4.2rem); margin: .75rem 0 .56rem; }
  .hero-description { margin-top: .65rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.05rem; }
  .hero-actions .button { padding-inline: .9rem; }
  .workplace, .reading-section { padding-block: 1.95rem 2.25rem; }
  .section-head { align-items: start; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
  .section-head > p { max-width: 50ch; }
  .planner-layout, .reading-grid { grid-template-columns: 1fr; }
  .level-rail { padding: .8rem; }
  .level-controls { grid-template-columns: 1fr 1fr; gap: .42rem; }
  .level-controls button:first-child { grid-column: 1 / -1; }
  .rail-note { margin-top: .65rem; }
}
@media (max-width: 385px) {
  .wrap { width: calc(100% - 28px); }
  .lesson-head, .lesson-panel, .lesson-footer { padding-inline: .85rem; }
  .schedule li { grid-template-columns: 4.7rem 1fr; }
  .footer-inner { padding-block: .7rem; align-items: flex-start; flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { margin: 15mm; }
  :root, body, .lesson-card, .lesson-head, .lesson-panel, .lesson-footer { color: #000; background: white; }
  .masthead, .skip, .hero, .section-head, .level-rail, .tabs, .print-button, .reading-section, .footer { display: none !important; }
  .wrap, .planner-layout { width: 100%; display: block; margin: 0; }
  .workplace, .lesson-head, .lesson-panel, .lesson-footer { padding: 0; }
  .lesson-card { border: 0; box-shadow: none; }
  .lesson-panel[hidden] { display: block !important; }
  .lesson-panel { margin-top: 1.15rem; }
  .lesson-panel h4, .lesson-panel h5 { break-after: avoid; }
  .objective-list { display: block; }
  .objective, .schedule li, .prompt-list li { break-inside: avoid; }
  .objective, .guiding-question, .task { background: white; }
  .lesson-footer { margin-top: 1rem; padding-top: .5rem; }
}

@media screen and (max-width: 450px) {
  .tabs { grid-template-columns: repeat(2, 1fr); padding-inline: 0; }
  .tabs button { border-bottom-width: 2px; }
  .tabs button:nth-child(odd) { border-right: 1px solid var(--paper-line); }
  .tabs button:nth-child(n + 3) { border-top: 1px solid var(--paper-line); }
}
@media screen and (max-width: 350px) {
  .nav-long { display: none; }
  .nav-long + .nav-short { text-transform: none; }
  .masthead nav a { white-space: nowrap; }
  .hero-actions .button { flex-basis: 100%; }
}
