/* ==== 00-base.css ==== */
/* MIGHTIER THAN THE SWORD — THE COPYBOOK. Shared tokens, grounds, type, kit objects, chrome. Parts never restyle these. */
:root {
  --paper: #F7EFDD; --paper-hi: #FBF7EE; --paper-lo: #ECE2CC;
  --ink: #1F2433; --ink-2: #4A5068;
  --rule: #B9CBE0; --rule-dark: #8FA6C4;
  --red: #A8322A; --bow: #F4A9BA; --bow-hi: #F7BCC9; --gold: #D9A23A; --gold-hi: #EDC872;
  --desk: #231B14; --desk-2: #2E251C; --candle: #F2CF8A; --mist: #C9BFAE;
  --ring: var(--ink); --em: var(--red); --mute: var(--ink-2);
  --serif: 'Old Standard TT', 'Iowan Old Style', Georgia, serif;
  --sans: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  --script: 'Petit Formal Script', 'Snell Roundhand', cursive;
  --hand: 'Shadows Into Light', 'Segoe Print', cursive;
  --m: clamp(16px, 4vw, 48px);
  --nav: 64px;
  --h1: clamp(40px, 5.6vw, 84px);
  --pitch: 40px;
}
@media (max-width: 699px) { :root { --nav: 56px; --pitch: 32px; } }
@media (max-width: 389px) { :root { --h1: 36px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); overflow-x: hidden; }
@media (max-width: 699px) { body { font-size: 17px; } }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper-hi); padding: 12px 18px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ---------- grounds ---------- */
.gd-page, .gd-page-hi { position: relative; isolation: isolate; color: var(--ink); --em: var(--red); --ring: var(--ink); --mute: var(--ink-2); }
.gd-page { background: var(--paper); }
.gd-page-hi { background: var(--paper-hi); }
.gd-page::before, .gd-page-hi::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--pitch) - 1px), var(--rule) calc(var(--pitch) - 1px) var(--pitch)); opacity: .55; }
.gd-page-hi::before { opacity: .35; }
.gd-page::after, .gd-page-hi::after { content: ''; position: absolute; top: 0; bottom: 0; left: 72px; width: 5px; z-index: -1; pointer-events: none;
  border-left: 1px solid var(--red); border-right: 1px solid var(--red); opacity: .8; }
@media (max-width: 699px) { .gd-page::after, .gd-page-hi::after { left: 6px; } }
.gd-desk { background: var(--desk); color: var(--paper); --em: var(--candle); --ring: var(--candle); --mute: var(--mist); }
.gd-photo { position: relative; background: var(--desk); color: var(--ink); --em: var(--red); --ring: var(--ink); --mute: var(--ink-2); }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--m); }
@media (min-width: 700px) {
  .gd-page .wrap, .gd-page-hi .wrap { padding-left: max(var(--m), calc(100px - max(0px, (100vw - 1280px) / 2))); }
}
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 699px) {
  .g12 { grid-template-columns: minmax(0, 1fr); }
  .g12 > * { grid-column: 1 / -1 !important; }
}
.sec { padding: 112px 0; }
@media (max-width: 699px) { .sec { padding: 72px 0; } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--serif); color: inherit; }
h1 { font-weight: 400; font-size: var(--h1); line-height: 1.02; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--em); }
h2 { font-weight: 400; font-size: min(clamp(34px, 4.6vw, 66px), calc(var(--h1) * .72)); line-height: 1.08; letter-spacing: -.005em; margin: 10px 0 24px; }
h3 { font-weight: 700; font-size: min(clamp(21px, 1.9vw, 27px), calc(var(--h1) * .5)); line-height: 1.2; margin: 0 0 8px; }
.lbl { display: inline-block; font: 700 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--em); margin: 0; }
.lead { font-size: 21px; line-height: 1.5; }
@media (max-width: 699px) { .lead { font-size: 19px; } }
.cap { font-size: 15px; font-style: italic; line-height: 1.45; color: var(--mute); margin: 10px 4px 0; }
.fine { font-size: 14px; line-height: 1.5; color: var(--mute); }
.script { font-family: var(--script); font-size: max(40px, min(56px, calc(var(--h1) * .6))); font-weight: 400; line-height: 1.3; }
.hand { display: inline-block; font-family: var(--hand); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; color: var(--red); transform: rotate(-3deg); transform-origin: 0 50%; margin: 0; }

/* ---------- kit: the taped-in photo ---------- */
.snap { position: relative; margin: 0; padding: 10px; background: var(--paper-hi); border: 1px solid rgba(31, 36, 51, .12); box-shadow: 0 14px 30px rgba(31, 36, 51, .12); }
.snap img { width: 100%; height: auto; }
.snap::before, .snap::after { content: ''; position: absolute; width: 34px; height: 34px; z-index: 1; pointer-events: none; }
.snap::before { top: -5px; left: -5px; background: linear-gradient(135deg, var(--paper-lo) 0 48%, rgba(31, 36, 51, .28) 48% 51%, transparent 51%); }
.snap::after { bottom: -5px; right: -5px; background: linear-gradient(315deg, var(--paper-lo) 0 48%, rgba(31, 36, 51, .28) 48% 51%, transparent 51%); }
.snap .cap { margin: 10px 4px 2px; }

/* ---------- kit: the gold star sticker ---------- */
.star { display: inline-block; position: relative; width: 44px; height: 44px; background: var(--gold);
  clip-path: polygon(50% 0%, 61.8% 35%, 98% 35.5%, 68.5% 57%, 79.5% 92%, 50% 71%, 20.5% 92%, 31.5% 57%, 2% 35.5%, 38.2% 35%); }
.star::after { content: ''; position: absolute; inset: 11px; background: var(--gold-hi);
  clip-path: polygon(50% 0%, 61.8% 35%, 98% 35.5%, 68.5% 57%, 79.5% 92%, 50% 71%, 20.5% 92%, 31.5% 57%, 2% 35.5%, 38.2% 35%); }

/* ---------- kit: pills, round marks, the buy row ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid transparent; background: transparent; font: 700 17px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill .mk, .rnd .mk { width: 20px; height: 20px; flex: none; }
.pill.buy { background: var(--bow); color: var(--ink); border-color: var(--ink); }
.pill.buy:hover { background: var(--bow-hi); }
.pill.ink { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); --ring: var(--ink); }
.pill.ink:hover { background: #2C3247; }
.pill.line { color: var(--ink); border-color: var(--ink); }
.pill.line:hover { background: rgba(31, 36, 51, .06); }
.pill.line-l { color: var(--paper); border-color: var(--paper); }
.pill.line-l:hover { background: rgba(247, 239, 221, .08); }
.pill.sm { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.mk.inv { filter: invert(1); }
html.js:not(.rm) .pill { transition: transform .15s ease, background-color .15s ease; }
html.js:not(.rm) .pill:hover { transform: translateY(-1px); }
.rnd { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; text-decoration: none; padding: 0; flex: none; }
.rnd.lg { width: 56px; height: 56px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
@media (max-width: 699px) {
  .btns > .pill.buy { flex: 1 1 100%; min-height: 52px; }
  .btns > .pill:not(.buy) { flex: 1 1 0; min-height: 44px; padding: 0 14px; }
}

/* ---------- kit: THE COPY LINE (the CA object) ---------- */
.cl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; max-width: 640px;
  padding: 16px 20px 18px 40px; background: var(--paper-hi); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 10px 28px rgba(31, 36, 51, .10); --ring: var(--ink); }
.cl::before { content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red); opacity: .8; pointer-events: none; }
.cl > .cl-hd, .cl > .ca, .cl > .cl-soon { grid-column: 1 / -1; }
.cl-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cl-tag { font: italic 400 16px/1.3 var(--serif); color: var(--red); }
.cl .ca, .cl .cl-soon { margin: 2px 0 0; font: 700 17px/1.5 var(--sans); letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.cl-trace { position: relative; display: block; height: auto; border-bottom: 2px dotted var(--rule-dark); margin: 6px 0 0; align-self: center; overflow: hidden; }
/* the traced copy of the CA: faint outline letters (model line above, your copy here); Copy fills them with ink */
.cl .cl-trace .ca { display: block; margin: 0; padding: 0 0 2px; line-height: 1.3; white-space: normal; overflow: hidden; overflow-wrap: normal; word-break: normal; color: transparent; -webkit-text-stroke: 1px var(--rule-dark);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0% 100%; -webkit-background-clip: text; background-clip: text; user-select: none; -webkit-user-select: none; pointer-events: none; }
.cl.is-copied .cl-trace .ca { background-size: 100% 100%; -webkit-text-stroke-color: var(--ink); }
html.js:not(.rm) .cl.is-copied .cl-trace .ca { transition: background-size .6s ease-out; }
.cl-trace::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); clip-path: inset(0 100% 0 0); }
.cl.is-copied .cl-trace::after { clip-path: inset(0 0 0 0); }
html.js:not(.rm) .cl.is-copied .cl-trace::after { transition: clip-path .5s ease-out; }
.cl-copy { margin-top: 10px; }
.cl.sm { padding: 12px 14px 14px 32px; column-gap: 12px; }
.cl.sm::before { left: 14px; }
.cl.sm .ca, .cl.sm .cl-soon { font-size: 15px; }
.cl.sm .cl-copy { margin-top: 8px; }
@media (max-width: 699px) { .cl > .cl-trace, .cl > .cl-copy { grid-column: 1 / -1; } .cl > .cl-copy { justify-self: start; } }
@media (max-width: 699px) { .cl .ca, .cl .cl-soon { font-size: 15px; } .cl { padding: 12px 14px 14px 32px; column-gap: 12px; } .cl::before { left: 14px; } }

/* ---------- kit motion (lead wires .rv / .in in 00-core.js; html.rm = final + visible) ---------- */
html.js:not(.rm) .snap.rv { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
html.js:not(.rm) .snap.rv.in { opacity: 1; translate: 0 0; }
html.js:not(.rm) .hand.rv { clip-path: inset(-20% 100% -20% 0); transition: clip-path .8s ease-out .2s; }
html.js:not(.rm) .hand.rv.in { clip-path: inset(-20% -5% -20% 0); }
html.js:not(.rm) .star.rv { opacity: 0; scale: 1.25; transition: opacity .2s ease .3s, scale .3s ease-out .3s; }
html.js:not(.rm) .star.rv.in { opacity: 1; scale: 1; }

/* ---------- chrome: header ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav); color: var(--ink); --ring: var(--ink); border-bottom: 1px solid transparent; }
.hd.solid { background: var(--paper-hi); border-bottom-color: var(--rule); }
html.js:not(.rm) .hd { transition: background-color .25s ease, border-color .25s ease; }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; max-width: 1376px; margin: 0 auto; padding: 0 var(--m); }
.hd-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--ink); }
.hd-brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(31, 36, 51, .2); object-fit: cover; }
.hd-brand b { font: 700 22px/1 var(--serif); letter-spacing: -.005em; }
.hd-nav { display: none; align-items: center; gap: 4px; }
.hd-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 700 15px/1 var(--sans); color: var(--ink); text-decoration: none; text-underline-offset: 6px; }
.hd-nav a:hover, .hd-nav a.here { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.hd-r { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1140px) { .hd-nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 429px) { .hd-brand b { display: none; } }
@media (max-width: 359px) { .hd-r { gap: 8px; } .hd-r .pill.sm { padding: 0 12px; } }
.menu-btn { border-color: var(--ink); }

/* ---------- chrome: drawer ---------- */
.hd-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(31, 36, 51, .45); }
.hd-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--m) 28px 34px; background: var(--paper-hi); color: var(--ink); --ring: var(--ink); --em: var(--red);
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(185, 203, 224, .45) 43px 44px); box-shadow: -10px 0 30px rgba(31, 36, 51, .18); }
.hd-drawer::before { content: ''; position: absolute; top: 0; bottom: 0; left: 14px; width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red); opacity: .8; }
.hd-dhd { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 8px; }
.hd-drawer nav a { display: flex; align-items: center; min-height: 52px; font: 400 22px/1.2 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.hd-drawer nav a:hover { color: var(--red); }
.hd-dft { margin-top: 24px; }
.hd-dft .pill { width: 100%; }

/* ---------- chrome: toast, footer shell, 404 ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper-hi);
  font: 700 16px/1.35 var(--sans); text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 0); }
.toast:empty { padding: 0; }
.toast.show { opacity: 1; }
html.js:not(.rm) .toast { transform: translate(-50%, 12px); transition: opacity .2s ease, transform .25s ease; }
html.js:not(.rm) .toast.show { transform: translate(-50%, 0); }
.foot { position: relative; }
.e404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }
#lost { min-height: 100vh; padding-top: 96px; }
#lost h1 { margin: 12px 0 20px; }
#lost .snap { max-width: 280px; margin: 8px 0 28px; }

/* ==== 10-hero.css ==== */
/* #top — the cover page of the copybook: name strip, H1, model line, the copy line, the buy row, the taped-in photo. */
.tp { padding: calc(var(--nav) + 28px) 0 80px; }
/* desktop: the cover fills the first screen and sits in the middle (no blank ruled paper under it) */
@media (min-width: 1000px) { .tp { min-height: 100svh; display: flex; align-items: center; padding-bottom: 48px; } .tp > .wrap { width: 100%; } }
.tp-grid { grid-template-rows: repeat(6, auto) 1fr; row-gap: 0; align-items: start; }
.tp-strip, .tp-h1, .tp-model, .tp-sub, .tp-ca, .tp-btns { grid-column: 1 / 8; }
.tp-strip { grid-row: 1; } .tp-h1 { grid-row: 2; } .tp-model { grid-row: 3; } .tp-sub { grid-row: 4; } .tp-ca { grid-row: 5; } .tp-btns { grid-row: 6; }
.tp-side { grid-column: 8 / 13; grid-row: 1 / 8; padding-top: 8px; }

/* name strip: one ruled row with two labels */
.tp-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin: 0 0 22px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-dark); }
.tp-strip b { font: 700 20px/1.2 var(--serif); margin-left: 4px; }

/* H1: the largest type on the page; line 2 in red italic with the ink line under it */
.tp-h1 { margin: 0 0 14px; }
.tp-l1 { display: block; }
.tp-l2 { position: relative; display: inline-block; }
.tp-l2::after { content: ''; position: absolute; left: 0; right: .1em; bottom: .02em; height: 2px; background: var(--ink); }

/* model line: copperplate word + two traced copies on one ruled line (desktop only, decor) */
.tp-model { font-size: 44px; margin: 0 0 8px; white-space: nowrap; overflow: hidden; border-bottom: 1px solid var(--rule); color: var(--ink); line-height: 1.35; }
.tp-tr { display: inline-block; margin-left: .45em; color: transparent; -webkit-text-stroke: 1px var(--rule-dark); }
.tp-sub { max-width: 32em; margin: 6px 0 22px; }
.tp-ca { margin: 0 0 20px; }
.tp-ca .cl { max-width: 600px; }

/* the taped-in photo */
.tp-ph { position: relative; max-width: 520px; }
@media (min-width: 1000px) { .tp-ph { max-width: 580px; } }
.tp-snap { transform: rotate(-2deg); }
.tp-snap .tp-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tp-star { position: absolute; top: -20px; right: -14px; width: 64px; height: 64px; z-index: 2; }
.tp-star::after { inset: 16px; }
.tp-note { margin: 26px 0 0 28px; font-size: clamp(26px, 2.4vw, 34px); }

@media (min-width: 700px) and (max-width: 999px) {
  .tp-strip, .tp-h1, .tp-model, .tp-sub, .tp-ca, .tp-btns { grid-column: 1 / 8; }
  .tp-side { grid-column: 8 / 13; }
}

/* phones: strip, H1, photo band, copy line, Buy, Chart + X, then the sub and the note */
@media (max-width: 699px) {
  .tp { padding: calc(var(--nav) + 14px) 0 56px; }
  .tp-grid { grid-template-rows: none; }
  .tp-grid > * { grid-row: auto !important; }
  .tp-side { display: contents; padding: 0; }
  .tp-strip { order: 1; display: grid; gap: 0; margin: 0 0 14px; padding-bottom: 4px; }
  .tp-strip b { font-size: 18px; }
  .tp-h1 { order: 2; margin: 0 0 12px; }
  .tp-model { display: none; }
  .tp-ph { order: 3; max-width: none; margin: 0 0 12px; }
  .tp-ca { order: 4; margin: 0 0 12px; }
  .tp-btns { order: 5; gap: 8px; }
  .tp-sub { order: 6; margin: 22px 0 0; }
  .tp-note { order: 7; margin: 12px 0 0 6px; font-size: 26px; }
  .tp-snap { transform: none; padding: 6px; }
  .tp-snap .tp-img { aspect-ratio: auto; height: 188px; object-position: 50% 60%; }
  .tp-star { width: 48px; height: 48px; top: -12px; right: -6px; }
  .tp-star::after { inset: 12px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .tp-snap .tp-img { height: 138px; }
  .tp-strip { margin-bottom: 10px; }
  .tp-h1 { margin-bottom: 10px; }
  .tp-ph, .tp-ca { margin-bottom: 10px; }
}

/* motion: once, on load; html.rm shows everything final */
@keyframes tp-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tp-wipe { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -2% -30% 0); } }
@keyframes tp-settle { from { opacity: 0; transform: rotate(-5deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes tp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-press { from { opacity: 0; scale: 1.25; } to { opacity: 1; scale: 1; } }
html.js:not(.rm) .tp-l2::after { animation: tp-draw .9s cubic-bezier(.4, 0, .2, 1) .35s both; }
html.js:not(.rm) .tp-tr { animation: tp-wipe .7s ease-out both; }
html.js:not(.rm) .tp-t1 { animation-delay: .7s; }
html.js:not(.rm) .tp-t2 { animation-delay: 1s; }
html.js:not(.rm) .tp-snap { animation: tp-settle .6s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.js:not(.rm) .tp-star { animation: tp-press .3s ease-out .75s both; }
html.js:not(.rm) .tp-note { animation: tp-wipe .8s ease-out 1.05s both; }
@media (max-width: 699px) { html.js:not(.rm) .tp-snap { animation-name: tp-fade; } }

/* ==== s01-02.css ==== */
/* Part A: #lesson1, #lesson2, #lesson3 (prefixes l1- l2- l3-) */

/* ---------- #lesson1: put down the sword ---------- */
.l1-grid { align-items: center; row-gap: 32px; }
.l1-p { font-size: 19px; max-width: 30em; }
.l1-p:last-child { margin-bottom: 0; }
.l1-fig { transform: rotate(-1.5deg); }
@media (min-width: 700px) {
  .l1-fig { grid-column: 1 / 8; grid-row: 1; }
  .l1-txt { grid-column: 8 / 13; grid-row: 1; padding-left: 8px; }
}
@media (max-width: 699px) {
  .l1-p { font-size: 17px; }
  .l1-fig { transform: rotate(-1deg); margin: 0 4px; }
}

/* ---------- #lesson2: dip the quill ---------- */
.l2-grid { align-items: center; row-gap: 32px; }
.l2-steps { list-style: none; counter-reset: l2; margin: 8px 0 0; padding: 0; max-width: 36em; }
.l2-steps li { counter-increment: l2; position: relative; display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0 12px; border-bottom: 1px solid var(--rule-dark); font-size: 20px; line-height: 1.45; }
.l2-steps li:first-child { border-top: 1px solid var(--rule-dark); }
.l2-steps li::before { content: counter(l2) '.'; flex: none; min-width: 1.4em; font: 700 26px/1 var(--serif); color: var(--red); }
.l2-side { position: relative; }
.l2-fig { transform: rotate(1.5deg); }
.l2-note { display: block; width: max-content; margin: 18px 0 0 28px; }
@media (min-width: 700px) {
  .l2-txt { grid-column: 1 / 8; grid-row: 1; padding-right: 24px; }
  .l2-side { grid-column: 8 / 13; grid-row: 1; }
}
@media (max-width: 699px) {
  .l2-steps li { font-size: 18px; gap: 14px; }
  .l2-steps li::before { font-size: 22px; }
  .l2-fig { transform: rotate(1deg); margin: 0 4px; }
  .l2-note { margin: 14px 0 0 16px; }
}

/* ---------- #lesson3: copy one line, then buy ---------- */
.l3-steps { list-style: none; margin: 8px 0 40px; padding: 0; }
.l3-step { grid-column: span 4; display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 20px;
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 18px rgba(31, 36, 51, .06); }
.l3-num { flex: none; font: 400 48px/1 var(--serif); color: var(--red); min-width: .8em; }
.l3-t { margin: 6px 0 0; font-size: 19px; line-height: 1.45; }
.l3-do { align-items: center; row-gap: 24px; }
.l3-line { grid-column: 1 / 8; }
.l3-act { grid-column: 8 / 13; }
.l3-fine { margin: 14px 0 0; max-width: 28em; }
@media (max-width: 899px) and (min-width: 700px) {
  .l3-step { grid-column: span 12; }
  .l3-line, .l3-act { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .l3-steps { margin-bottom: 28px; row-gap: 12px; }
  .l3-step { padding: 16px 18px 14px; gap: 14px; }
  .l3-num { font-size: 40px; }
  .l3-t { font-size: 17px; margin-top: 4px; }
}

/* ==== s03-04.css ==== */
/* Part B: #lesson4 (l4-), #homework (hw-), #last (ls-), #kit (kt-), footer contents (ft-). Kit classes are used, never restyled. */

/* ---------- #lesson4 ---------- */
.l4-grid { align-items: center; row-gap: 40px; }
.l4-fig { grid-column: 1 / 8; rotate: -1deg; }
.l4-txt { grid-column: 8 / 13; }
.l4-end { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0 0 22px; }
.l4-mark { display: flex; align-items: center; gap: 14px; }
.l4-note { margin: 0; }
@media (max-width: 699px) {
  .l4-fig { rotate: 0deg; }
  .l4-end { font-size: 20px; }
}

/* ---------- #homework ---------- */
.hw-grid { row-gap: 40px; align-items: start; margin-top: 8px; }
.hw-fig { grid-column: span 4; }
.hw-fig img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
.hw-f1 { rotate: -1.5deg; }
.hw-f2 { rotate: 1deg; margin-top: 28px; }
.hw-f3 { rotate: -1deg; }
@media (max-width: 699px) {
  .hw-fig { rotate: 0deg; }
  .hw-f2 { margin-top: 0; }
}
.hw-box { position: relative; max-width: 760px; margin: 72px 0 0; padding: 28px 32px 30px 60px; background-color: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(185, 203, 224, .55) 39px 40px); box-shadow: 0 10px 28px rgba(31, 36, 51, .08); }
.hw-box::before { content: ''; position: absolute; top: 0; bottom: 0; left: 30px; width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red); opacity: .8; pointer-events: none; }
.hw-q { margin: 6px 0 20px; }
.hw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hw-note { margin: 0; }
@media (max-width: 699px) {
  .hw-box { margin-top: 48px; padding: 22px 16px 24px 40px; }
  .hw-box::before { left: 18px; }
  .hw-row .hw-x { flex: 1 1 100%; }
}

/* ---------- #last ---------- */
.ls { position: relative; overflow: hidden; min-height: min(66.67vw, 920px); display: flex; align-items: center; padding: 96px 0; }
.ls-ph { position: absolute; inset: 0; overflow: hidden; }
.ls-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ls-wrap { position: relative; z-index: 1; width: 100%; }
.ls-card { position: relative; max-width: 560px; padding: 34px 36px 30px 60px; background-color: var(--paper-hi); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(185, 203, 224, .5) 39px 40px); box-shadow: 0 18px 44px rgba(20, 16, 12, .35); }
.ls-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 30px; width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red); opacity: .8; pointer-events: none; }
.ls-btns { margin-top: 6px; }
.ls-fine { margin: 18px 0 0; }
@media (max-width: 699px) {
  .ls { display: block; min-height: 0; padding: 0 0 56px; }
  .ls-ph { position: relative; inset: auto; aspect-ratio: 1 / 1; }
  .ls-card { margin-top: -64px; padding: 24px 16px 22px 40px; }
  .ls-card::before { left: 18px; }
}
html.js:not(.rm) .ls-img { animation: ls-zoom 16s ease-in-out infinite alternate; animation-play-state: paused; transform-origin: 50% 40%; }
html.js:not(.rm) .ls.ls-on .ls-img { animation-play-state: running; }
@keyframes ls-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }

/* ---------- #kit ---------- */
.kt-grid { align-items: center; row-gap: 40px; }
.kt-txt { grid-column: 1 / 7; }
.kt-fig { grid-column: 8 / 13; rotate: 1.5deg; }
.kt-dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 699px) {
  .kt-fig { rotate: 0deg; }
  .kt-dl > .pill { flex: 1 1 100%; }
}

/* ---------- footer contents ---------- */
.ft-in { padding-top: 56px; padding-bottom: 48px; border-top: 1px solid rgba(247, 239, 221, .14); }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ft-brand { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--paper); text-decoration: none; }
.ft-brand img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(247, 239, 221, .3); object-fit: cover; }
.ft-nm { display: flex; flex-direction: column; gap: 2px; }
.ft-nm b { font: 400 24px/1.15 var(--serif); }
.ft-tk { font: 700 14px/1.3 var(--sans); letter-spacing: .12em; color: var(--candle); }
.ft-marks { display: flex; flex-wrap: wrap; gap: 10px; color: var(--paper); }
.ft-bot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-top: 36px; }
.ft-words .fine { margin: 0 0 6px; }
.ft-up { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 15px/1 var(--sans); color: var(--candle); text-decoration: none; }
.ft-up:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 699px) {
  .ft-in { padding-top: 40px; }
  .ft-brand img { width: 56px; height: 56px; }
}

