:root {
    --ink: #171713;
    --paper: #f1eee6;
    --cream: #fbfaf5;
    --acid: #d7ff3f;
    --orange: #ff6b35;
    --blue: #a9c9ff;
    --line: rgba(23, 23, 19, .2);
    --muted: #68675f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
iframe { border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--acid); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.grain { position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(rgba(23,23,19,.12) .55px, transparent .55px); background-size: 5px 5px; }

.course-bar { position: sticky; z-index: 20; top: 0; height: 70px; padding: 0 clamp(1rem, 4vw, 4.5rem); display: grid; grid-template-columns: 1fr minmax(180px, 360px) 1fr; align-items: center; gap: 2rem; color: var(--cream); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
.course-mark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.course-mark > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: .65rem; font-weight: 900; letter-spacing: -.03em; transform: rotate(-6deg); }
.course-mark strong { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.course-progress { display: flex; align-items: center; gap: .8rem; }
.course-progress > span:first-child { flex: 0 0 auto; color: #aaa99f; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: 4px; flex: 1; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 9px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--acid); transition: width .35s ease; }
.continue-button { justify-self: end; padding: .55rem .85rem; color: var(--cream); background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; cursor: pointer; font-size: .74rem; font-weight: 800; }
.continue-button:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.hero { min-height: calc(100vh - 70px); padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 7vw, 7rem) 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .36fr); grid-template-rows: auto 1fr auto; column-gap: 5vw; background: var(--cream); border-bottom: 1px solid var(--ink); }
.hero-kicker { grid-column: 1 / -1; display: flex; gap: .55rem; flex-wrap: wrap; }
.hero-kicker span { padding: .35rem .65rem; border: 1px solid var(--ink); border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { align-self: center; margin: 5vh 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.3rem, 10.7vw, 10.5rem); font-weight: 400; line-height: .79; letter-spacing: -.075em; }
.hero h1 em { font-weight: 400; color: var(--orange); }
.hero-lead { align-self: center; max-width: 540px; margin: 2rem 0; font-size: clamp(1.2rem, 2vw, 1.85rem); line-height: 1.25; letter-spacing: -.025em; }
.hero-action { align-self: end; display: flex; align-items: center; gap: 1.5rem; }
.primary-action { min-height: 64px; padding: .8rem 1.2rem .8rem 1.6rem; display: inline-flex; gap: 2rem; align-items: center; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); border-radius: 99px; cursor: pointer; font-weight: 900; }
.primary-action span { font-size: 1.4rem; }
.primary-action:hover { transform: rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
.hero-action p { margin: 0; color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-note { position: relative; align-self: end; max-width: 470px; padding: 1.5rem; background: var(--blue); transform: rotate(1.5deg); box-shadow: 5px 5px 0 var(--ink); }
.hero-note p { margin: 0; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.4; }
.scribble { position: absolute; right: 1rem; top: -2.1rem; font-family: "Comic Sans MS", cursive; font-size: .88rem; transform: rotate(-7deg); }

.path { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 7vw, 7rem); display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; border-bottom: 1px solid var(--ink); }
.eyebrow { margin: 0 0 1.25rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.path h2, .course-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.path-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.path-list a { padding: 1rem 0; display: grid; grid-template-columns: 45px 1fr 1fr; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.path-list a:hover { padding-left: .7rem; background: var(--acid); }
.path-list span { font-size: .7rem; font-weight: 900; }
.path-list strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.path-list small { color: var(--muted); }

.course-intro { padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 7vw, 7rem); color: var(--cream); background: var(--ink); }
.course-intro h2 { color: var(--acid); }
.course-intro > p:last-child { max-width: 620px; margin: 2rem 0 0 auto; color: #cac8be; font-size: clamp(1.1rem, 1.8vw, 1.55rem); }

.lesson { scroll-margin-top: 69px; padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 7vw, 7rem); border-bottom: 1px solid var(--ink); }
.lesson:nth-of-type(even) { background: var(--cream); }
.lesson-header { margin-bottom: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: .55fr 1.45fr; gap: 5vw; align-items: end; }
.lesson-header > div { padding-bottom: .8rem; border-bottom: 1px solid var(--ink); }
.lesson-header p { margin: .4rem 0 0; color: var(--muted); }
.lesson-number { font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.lesson-header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 8rem); font-weight: 400; line-height: .78; letter-spacing: -.06em; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.video-frame { position: relative; padding-top: 56.25%; overflow: hidden; background: #080808; box-shadow: 8px 8px 0 var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster { display: block; color: var(--cream); text-decoration: none; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 45%, rgba(0,0,0,.72)); transition: background .25s ease; }
.poster-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); display: grid; place-items: center; background: var(--acid); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease, box-shadow .2s ease; }
.poster-play span { width: 0; height: 0; margin-left: 7px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 19px solid var(--ink); }
.poster-label { position: absolute; z-index: 2; left: 1.25rem; bottom: 1rem; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.video-poster:hover img { transform: scale(1.025); }
.video-poster:hover .poster-shade { background: linear-gradient(180deg, rgba(0,0,0,.13) 35%, rgba(0,0,0,.8)); }
.video-poster:hover .poster-play { box-shadow: 2px 2px 0 var(--ink); transform: translate(-50%, -50%) scale(1.06) rotate(-2deg); }
.video-poster:focus-visible { outline: 4px solid var(--orange); outline-offset: 5px; }
.source-line { margin-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.source-line a { color: var(--ink); text-underline-offset: .25em; }
.content-note { margin: .7rem 0 0; color: var(--orange); font-size: .73rem; font-weight: 800; }
.lesson-notes { display: grid; gap: 1.25rem; }
.why-here { margin: 0; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.45; }
.why-here strong { margin-bottom: .45rem; display: block; font-family: Arial, sans-serif; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.notice { padding: 1.2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.notice h3 { margin: 0 0 .7rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.notice ul { margin: 0; padding-left: 1.15rem; }
.notice li { margin: .4rem 0; }
.try-this { padding: 1.25rem; background: var(--acid); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.try-this > span { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.try-this p { margin: .7rem 0 .35rem; }
.try-this blockquote { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }
.companion { padding: 1rem; display: grid; text-decoration: none; border: 1px solid var(--ink); }
.companion:hover { color: var(--cream); background: var(--ink); }
.companion span { color: var(--muted); font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.companion strong { margin: .2rem 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; }
.companion small { font-size: .72rem; }
.complete-button { width: 100%; min-height: 54px; padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem; background: transparent; border: 1px solid var(--ink); cursor: pointer; font-weight: 900; }
.complete-button:hover { background: rgba(23,23,19,.05); }
.check { width: 28px; height: 28px; display: grid; place-items: center; color: transparent; border: 1px solid var(--ink); border-radius: 50%; }
.lesson.is-complete .complete-button { color: var(--cream); background: var(--ink); }
.lesson.is-complete .check { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.finish { padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 10vw, 10rem); text-align: center; color: var(--cream); background: var(--ink); }
.finish-label { display: inline-block; padding: .35rem .7rem; color: var(--ink); background: var(--acid); border-radius: 99px; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.finish h2 { margin: 2rem 0; font-family: Georgia, serif; font-size: clamp(4rem, 9vw, 9rem); font-weight: 400; line-height: .82; letter-spacing: -.065em; }
.finish h2 em { color: var(--acid); font-weight: 400; }
.finish > p { max-width: 700px; margin: 0 auto; color: #c8c6bc; font-size: 1.2rem; }
.finish-test { max-width: 900px; margin: 4rem auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.35); }
.finish-test div { min-height: 190px; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.35); }
.finish-test div:last-child { border: 0; }
.finish-test span { width: 38px; height: 38px; margin: 0 auto 2rem; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-weight: 900; }
.finish-test p { margin: 0; font-family: Georgia, serif; font-size: 1.2rem; }
.final-line { font-family: Georgia, serif; font-style: italic; }
.reset-button { margin-top: 4rem; padding: .5rem; color: #8d8c84; background: transparent; border: 0; border-bottom: 1px solid #66655f; cursor: pointer; font-size: .72rem; }

footer { padding: 2rem clamp(1rem, 7vw, 7rem); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; background: var(--cream); }
footer strong { font-family: Georgia, serif; font-size: 1.3rem; }
footer p { margin: .25rem 0 0; color: var(--muted); font-size: .75rem; }
footer .disclaimer { max-width: 600px; justify-self: end; }
.completion-toast { position: fixed; z-index: 30; left: 50%; bottom: -80px; padding: .8rem 1rem; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 900; transform: translateX(-50%); transition: bottom .25s ease; }
.completion-toast.show { bottom: 1.5rem; }

@media (max-width: 900px) {
    .course-bar { grid-template-columns: 1fr auto; gap: 1rem; }
    .course-progress { display: none; }
    .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-kicker, .hero h1, .hero-lead, .hero-action, .hero-note { grid-column: 1; }
    .hero h1 { margin: 5rem 0 2rem; }
    .hero-lead { margin: 0 0 3rem; }
    .hero-note { margin-top: 4rem; }
    .path, .lesson-header, .lesson-grid { grid-template-columns: 1fr; }
    .path-list { margin-top: 3rem; }
    .lesson-header { gap: 2rem; }
    .lesson-header > div { max-width: 360px; }
}

@media (max-width: 620px) {
    .course-bar { height: 62px; padding-inline: .8rem; }
    .course-mark strong { display: none; }
    .hero { padding-top: 2.2rem; }
    .hero h1 { font-size: clamp(3.7rem, 19vw, 6rem); }
    .hero-action { align-items: flex-start; flex-direction: column; }
    .path-list a { grid-template-columns: 35px 1fr; }
    .path-list small { grid-column: 2; }
    .lesson { scroll-margin-top: 61px; }
    .lesson-header h2 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
    .source-line { align-items: flex-start; flex-direction: column; }
    .finish-test { grid-template-columns: 1fr; }
    .finish-test div { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.35); }
    footer { grid-template-columns: 1fr; }
    footer .disclaimer { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
