:root { --maxw: 1640px; --ink: #254d3c; --paper: #fffef8; --mint: #e6eee2; --line: #ccd7c8; --ochre: #e0c46c; }
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; background: #f1f3e9; color: #26372b; font: 17px/1.7 'Trebuchet MS',Arial,sans-serif; }
a { color: inherit; text-underline-offset: 4px; } a:focus-visible, summary:focus-visible { outline: 3px solid #9b7625; outline-offset: 5px; } a:active { opacity: .6; }
.shell { width: min(var(--maxw),calc(100% - 96px)); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 0 64px; }
.sidebar { align-self: start; position: sticky; top: 30px; padding-block: 45px; }
.brand { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); font-size: 19px; line-height: 1.25; font-weight: bold; }
.brand svg { flex-shrink: 0; }
.sidebar-note { font-size: 11px; line-height: 1.7; margin: 22px 0 34px; color: #5b705c; }
nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
nav a { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 12px; text-decoration: none; }
nav span { color: #81957d; font: 10px/2 'Courier New',monospace; } nav a:hover { color: #000; }
.sidebar-credit { font-size: 10px; color: #5b705c; margin-top: 32px; }
main { min-width: 0; margin-top: 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: 6px 6px 0 #e4e9db; }
.hero { background: var(--mint); padding: 60px 56px 0; border-bottom: 1px solid var(--line); }
.label { text-transform: uppercase; letter-spacing: 2px; font: 10px/1.5 'Courier New',monospace; color: #4b6b50; margin: 0 0 18px; }
h1 { font-size: clamp(46px,4.7vw,76px); color: var(--ink); letter-spacing: -3px; line-height: 1.04; margin: 0 0 30px; }
.lead { max-width: 60ch; font-size: 17px; }
.subject-line { display: flex; gap: 10px; margin: 30px 0; }
.subject-line span { border: 1px solid #9bb398; padding: 5px 16px; border-radius: 30px; font-size: 11px; }
.notebook-art { margin: 0; color: #668464; }
.notebook-art svg { display: block; width: 100%; height: auto; }
.notebook-art figcaption { padding: 12px 0 24px; text-align: center; font: 10px 'Courier New',monospace; letter-spacing: 2px; }
.lesson { padding: 50px 56px; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg,transparent 32px,#cda49a70 32px 33px,transparent 33px); }
.lesson-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.number { display: inline-flex; width: 35px; height: 35px; border: 1px solid #93aa8d; border-radius: 50%; flex: none; align-items: center; justify-content: center; font: 12px 'Courier New',monospace; color: var(--ink); }
.lesson-head .label { margin: 0 0 10px; }
h2 { font-size: clamp(27px,2.5vw,39px); line-height: 1.17; letter-spacing: -1px; color: var(--ink); margin: 0; }
.lesson > p { max-width: 70ch; margin: 0 0 24px; }
.activity { padding: 24px 28px; border-left: 4px solid #b69b43; background: #f7f0d9; margin-top: 30px; }
.activity h3 { font-size: 14px; margin: 0 0 12px; } .activity p { font-size: 15px; margin: 0; max-width: 70ch; }
.lesson .reference { font-size: 11px; margin-bottom: 0; color: #566b53; }
.storage-lesson { background-color: #f4f7ee; }
.questions { padding: 50px 56px; }
.questions h2 { margin-bottom: 30px; }
details { border-top: 1px solid var(--line); padding: 20px 0; } details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; } summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: #557250; } details[open] summary::after { content: '−'; } summary h3 { font-size: 15px; font-weight: normal; line-height: 1.5; margin: 0; } details p { max-width: 70ch; font-size: 15px; margin: 16px 0 0; }
.site-footer { grid-column: 2; padding-block: 35px; font-size: 11px; color: #566b53; }
.site-footer strong { color: var(--ink); font-size: 14px; } .site-footer p { margin: 12px 0; }
.not-found .sidebar { position: static; width: min(var(--maxw),calc(100% - 60px)); margin: 0 auto; padding-block: 25px; }
.not-found .sidebar-note, .not-found .sidebar-credit { display: none; }
.not-found nav { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.not-found nav a { border: none; }
.not-found main { box-shadow: none; border: none; background: none; }
.not-found .site-footer { width: min(960px,calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 1100px) { .shell { grid-template-columns: 200px minmax(0,1fr); gap: 0 32px; } .hero { padding-inline: 40px; } .lesson, .questions { padding-inline: 40px; } .lesson { background-image: none; } }
@media (max-width: 767px) { .shell { width: calc(100% - 32px); grid-template-columns: minmax(0,1fr); } .sidebar { position: static; padding: 25px 4px 0; } .brand { font-size: 20px; } .sidebar-note { margin-block: 16px; } nav { flex-direction: row; flex-wrap: wrap; gap: 0 18px; } nav a { border: 0; font-size: 11px; gap: 7px; } .sidebar-credit { display: none; } main { margin-top: 12px; } .hero { padding: 36px 24px 0; } h1 { font-size: 49px; letter-spacing: -2px; } .subject-line span { padding: 4px 13px; } .lesson, .questions { padding: 35px 24px; } .lesson-head { gap: 12px; } .number { width: 28px; height: 28px; font-size: 10px; } h2 { font-size: 29px; } .activity { padding: 20px; } .site-footer { grid-column: 1; padding-inline: 8px; } .not-found .sidebar { width: calc(100% - 40px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.not-found { min-height: 100vh; display: flex; flex-direction: column; }
.not-found .error-page { flex: 1; width: min(calc(100% - 40px), 960px); margin: auto; padding: 100px 0; }
.not-found footer { margin-top: auto; }
.error-page h1 { margin: 0 0 20px; font-size: clamp(32px, 7vw, 64px); }
.home-button { display: inline-block; padding: 14px 24px; margin-top: 20px; color: #fff; background: #383242; text-decoration: none; border-radius: 3px; }
