:root {
  color-scheme: light; --bg: #f8f8f5; --paper: #fff; --ink: #292a25; --muted: #65655d;
  --line: #dedfd7; --clay: #9e4028; --clay-soft: #f7e8df; --green: #376044;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { font: 100%/1.5 var(--sans); }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #3475a0; outline-offset: 3px; }
button:disabled { cursor: default; }
.sprite { position:absolute; width:0; height:0; overflow:hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; vertical-align: middle; }
.wrap { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }
.skip { position: absolute; transform: translateY(-150%); padding: 10px 20px; background:white; z-index: 20; }
.skip:focus { transform:none; }
.masthead { border-bottom: 1px solid var(--line); background: #fdfdfb; }
.head-inner { min-height: 72px; display:flex; align-items:center; gap: 20px; }
.wordmark { display:flex; align-items:center; gap:10px; font-size:1.32rem; font-weight:740; letter-spacing:-.055em; }
.course-name { border-left:1px solid var(--line); padding-left:20px; color:var(--muted); font-size:.93rem; }
.progress-open, .source-link, .text-button { display:inline-flex; gap:8px; align-items:center; justify-content:center; border:0; background:transparent; font-weight:600; }
.progress-open { margin-left:auto; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:11px; font-size:.88rem; background:#fff; }
.progress-open .ico { color:var(--clay); }
button:not(:disabled):hover { filter:brightness(.96); }
.hero { display:grid; grid-template-columns: 55% 45%; min-height: 309px; margin-top:28px; border-radius:21px; overflow:hidden; background:#f0e9dd; }
.hero-copy { padding:30px 40px 28px; align-self:center; }
.hero-meta, .hero-spec, .hero-spec span, .lesson-tag { display:flex; align-items:center; }
.hero-meta { gap:12px; flex-wrap:wrap; color:#605b51; font-weight:550; font-size:.86rem; }
.lesson-tag { gap:6px; border:1px solid #d5c9b9; border-radius:6px; padding:3px 8px; color:#584737; }
.hero h1 { font: 500 clamp(3.1rem, 5vw, 4.25rem)/.97 var(--serif); letter-spacing:-.048em; margin:22px 0 15px; }
.hero h1 em { font-weight:400; color:var(--clay); }
.hero-copy p { margin:0; max-width:32em; line-height:1.48; color:#4e4b42; }
.hero-spec { gap:20px; font-size:.86rem; margin-top:20px; color:#5f5a51; }
.hero-spec span { gap:7px; }
.hero-photo { width:100%; height:100%; object-fit:cover; object-position:50% 52%; min-height:0; max-height:380px; }
.steps { display:flex; align-items:center; margin:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:13px 0; }
.step { display:flex; align-items:center; gap:9px; border:0; background:none; padding:5px 8px; font-size:.92rem; color:#64655c; min-height:42px; }
.step:first-child { padding-left:0; }
.step:last-child { padding-right:0; }
.step b { display:grid; place-items:center; border:1px solid #c9cac0; color:#71736a; width:28px; height:28px; border-radius:50%; font-size:.85rem; font-weight:580; background:#f8f8f5; }
.step[aria-current="step"] { font-weight:700; color:var(--clay); }
.step[aria-current="step"] b { background:var(--clay); border-color:var(--clay); color:#fff; }
.step.done b { background:#e8eee7; border-color:#cdd9cc; color:var(--green); }
.connector { flex:1; height:1px; background:var(--line); min-width:8px; margin:0 14px; }
.workspace { display:grid; grid-template-columns:minmax(0,1.56fr) minmax(0,1fr); align-items:start; gap:22px; padding-bottom:40px; outline:0; scroll-margin-top:12px; }
.panel { border:1px solid var(--line); border-radius:17px; background:var(--paper); padding:27px 29px; }
.eyebrow { display:flex; align-items:center; gap:7px; color:var(--clay); font-size:.77rem; text-transform:uppercase; letter-spacing:.11em; font-weight:730; margin:0 0 9px; }
h2, h3, p { overflow-wrap:break-word; }
h2, h3 { line-height:1.17; }
.panel h2,.dialog-top h2 { font-size:clamp(1.45rem,2.4vw,1.92rem); margin:0; letter-spacing:-.045em; }
h3 { font-size:1.12rem; margin:20px 0 8px; letter-spacing:-.02em; }
.intro { color:#55574e; margin:10px 0 20px; }
.draft-box { background:#f7f6f2; border:1px solid #e8e5dc; border-radius:12px; padding:17px 19px; margin:16px 0 21px; }
.draft-title { display:flex; align-items:center; gap:8px; font-size:.88rem; font-weight:650; color:#5d5a50; }
.draft-title .ico { color:var(--clay); }
.draft-text,.quote { font:400 1.15rem/1.47 var(--serif); margin:8px 0 0; }
.source { background:#fcfbf7; }
.source .eyebrow { color:#746446; }
.source h2 { font-family:var(--serif); font-weight:500; font-size:1.8rem; }
.source-sub { color:var(--muted); font-size:.91rem; margin:3px 0 14px; }
.facts { margin:0; }
.facts div { display:grid; grid-template-columns:88px 1fr; gap:8px; padding:9px 0; border-top:1px solid #e6e3d9; font-size:.92rem; }
.facts dt { color:var(--muted); }
.facts dd { margin:0; font-weight:540; }
details { margin-top:12px; }
summary { color:var(--clay); cursor:pointer; padding:6px 0; font-size:.94rem; font-weight:600; }
.details-body { color:#57594f; margin:6px 0 4px; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:18px; }
.primary,.secondary { border-radius:9px; padding:10px 17px; min-height:45px; font-weight:640; font-size:.94rem; }
.primary { color:#fff; border:1px solid var(--clay); background:var(--clay); }
.secondary { border:1px solid var(--line); background:#fff; }
.text-button { min-height:44px; padding:6px 8px; color:var(--clay); font-size:.91rem; }
.aid,.saved,.footnote { color:var(--muted); font-size:.88rem; margin:9px 0; }
.source-mobile { display:none; }
.quiz-quote { border-left:3px solid #b65b40; padding:8px 15px; margin:16px 0; background:#faf6f0; font:1.32rem/1.4 var(--serif); }
fieldset { padding:0; border:0; margin:20px 0; min-width:0; }
legend { font-weight:650; margin-bottom:8px; }
.option,.checkline { display:flex; align-items:flex-start; gap:10px; padding:11px 12px; border:1px solid var(--line); border-radius:8px; margin:7px 0; cursor:pointer; }
.option:has(input:checked),.checkline:has(input:checked) { background:#faf1e9; border-color:#b9745b; }
input { accent-color:var(--clay); flex:none; margin:4px 0 0; width:17px; height:17px; }
.feedback { margin:13px 0; border-left:3px solid #b77630; background:#fbf4e9; padding:12px 15px; border-radius:3px; }
.feedback.good { background:#edf3eb; border-color:#65815d; }
.feedback strong { display:block; margin-bottom:3px; }
.field-label { font-weight:650; display:block; margin:15px 0 6px; }
textarea,select { width:100%; border:1px solid #b8b9b0; border-radius:9px; background:#fff; color:var(--ink); padding:11px 13px; }
textarea { min-height:185px; resize:vertical; line-height:1.55; }
.user-copy { white-space:pre-wrap; overflow-wrap:anywhere; }
.source-link { width:100%; min-height:44px; color:var(--clay); }
.award { display:flex; align-items:center; gap:12px; background:#eff3ea; color:var(--green); padding:12px 16px; border-radius:10px; margin:16px 0; }
.award .ico { width:27px;height:27px; }
.bonus { border-top:1px solid var(--line); margin-top:24px; padding-top:5px; }
.bonus select { margin:6px 0; }
dialog { width:min(460px,calc(100% - 30px)); max-height:85dvh; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:17px; padding:23px; }
dialog::backdrop { background:#25251eb0; }
.dialog-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:18px; }
.dialog-top h2 { font-size:1.45rem; }
.icon-button { display:grid; place-items:center; border:1px solid var(--line); background:white; border-radius:8px; min-width:42px; height:42px; }
progress { width:100%; accent-color:var(--clay); }
.progress-list { list-style:none; padding:0; }
.progress-list li { display:flex; justify-content:space-between; gap:12px; font-size:.95rem; padding:8px 0; border-bottom:1px solid var(--line); }
.progress-list small { color:var(--muted); }
#notice:not(:empty) { background:#302f29; color:white; padding:10px 17px; position:fixed; bottom:20px; left:50%; transform:translateX(-50%); border-radius:8px; z-index:9; font-size:.92rem; }
@media(max-width:850px) {
  .wrap { width:calc(100% - 40px); } .hero-copy { padding:24px; }
  .panel { padding:21px; } .workspace { gap:15px; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); }
  .connector { margin:0 3px; } .step { gap:6px; }
}
@media(max-width:680px) {
  .wrap { width:calc(100% - 30px); } .head-inner { min-height:59px; gap:8px; } .course-name { display:none; }
  .wordmark { font-size:1.15rem; } .wordmark img { width:30px;height:30px; } .progress-open { font-size:.83rem; }
  .hero { display:flex; flex-direction:column; min-height:0; margin-top:15px; border-radius:16px; }
  .hero-copy { padding:21px 20px 19px; align-self:stretch; }
  .hero h1 { font-size:clamp(2.8rem,10vw,3.8rem); margin:15px 0 10px; }
  .hero-copy p { font-size:.97rem; } .hero-spec { margin-top:14px; }
  .hero-meta { gap:8px; font-size:.79rem; } .hero-photo { height:clamp(110px,29vw,160px); object-position:50% 54%; }
  .steps { margin:14px 0 0; padding:9px 0; justify-content:space-between; }
  .step { flex:1; flex-direction:column; gap:4px; padding:2px!important; font-size:.77rem; } .step b { width:24px; height:24px; } .connector { display:none; }
  .source-mobile { display:block; position:sticky; top:0; background:var(--bg); z-index:3; border-bottom:1px solid var(--line); margin-bottom:11px; }
  .workspace { display:block; scroll-margin-top:52px; } .source { display:none; }
  .panel { padding:19px 16px; border-radius:13px; } .panel h2 { font-size:1.52rem; }
  .draft-box { padding:14px; } .facts div { grid-template-columns:82px 1fr; }
  .actions { gap:6px; } .primary,.secondary { padding:9px 13px; }
}
@media(prefers-reduced-motion:no-preference) { button { transition:background .12s,filter .12s; } }
