@charset "UTF-8";

:root {
  --paper: #f8f7f2;
  --ink: #243d32;
  --muted: #4e5d53;
  --green: #294d3f;
  --green-dark: #1d382e;
  --sage: #e6ede4;
  --peach: #f3ddcc;
  --accent: #b6492e;
  --line: #dedfd5;
  --white: #fffefa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .42; }
::selection { background: #dce7ce; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(50px, 6.3vw, 82px); }
h1 em, h2 em { font-weight: 400; color: var(--accent); }
h2 { margin-bottom: 0; font-size: clamp(32px, 3.8vw, 44px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
p { margin-bottom: 16px; }
.page-width { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 20px; padding: 12px 24px; color: white; background: var(--green); border-radius: 6px; }
.skip-link:focus { top: 15px; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 21px; letter-spacing: -.065em; white-space: nowrap; }
.brand-period { color: var(--accent); margin-left: -12px; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 40px; padding-bottom: 3px; font: italic 26px var(--serif); letter-spacing: -.09em; color: var(--paper); background: var(--green); border-radius: 10px 10px 10px 2px; }
.brand-mark > span { position: absolute; top: -7px; right: -5px; font: 20px var(--sans); color: var(--accent); background: var(--paper); line-height: 1; border-radius: 50%; }
.site-header nav { display: flex; gap: 32px; align-items: center; }
.nav-link { position: relative; font-size: 13px; font-weight: 500; padding: 8px 0; }
.nav-link:hover, .back-link:hover, .site-footer a:hover { color: var(--accent); }
.nav-link.active::after { content: ""; position: absolute; width: 5px; height: 5px; left: 50%; bottom: -5px; background: var(--accent); border-radius: 50%; }
.nav-link span { margin-left: 5px; }
.eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 19px; font-size: 10px; font-weight: 650; letter-spacing: .14em; line-height: 1.5; }
.small-star { color: var(--accent); font-size: 22px; line-height: 1; margin-right: 2px; }
.hero-description { font-size: 16px; line-height: 1.85; color: var(--muted); }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 26px; padding: 12px 23px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 550; line-height: 1.6; transition: background .18s, transform .18s, box-shadow .18s; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:not(:disabled):hover { background: var(--green-dark); box-shadow: 0 5px 12px #243d3215; }
.button-secondary { background: transparent; border-color: #c8cec4; }
.button-secondary:not(:disabled):hover { background: var(--sage); }
.button span { font-size: 18px; line-height: 1; }
.home-hero { min-height: 580px; padding-block: 76px 58px; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 34px; }
.hero-copy .button { margin-top: 11px; }
.hero-footnote { font-size: 11px; color: var(--muted); margin: 16px 0 0; display: flex; align-items: center; gap: 8px; }
.tiny-dot { width: 5px; height: 5px; background: #748a64; border-radius: 50%; }
.grammar-art { position: relative; min-height: 425px; width: min(100%, 480px); justify-self: end; }
.art-orbit { position: absolute; inset: 20px 0 0 15px; border: 1px solid #d9ded2; border-radius: 50%; transform: rotate(-20deg) scaleX(.92); }
.art-orbit::after { content: ""; position: absolute; inset: 22px -20px; border: 1px solid #e5e5d9; border-radius: 50%; transform: rotate(50deg); }
.art-caption { position: absolute; top: 0; left: 40px; font-size: 10px; letter-spacing: .1em; transform: rotate(-7deg); color: var(--muted); }
.word-note { position: absolute; width: 227px; padding: 19px 24px 17px; border-radius: 5px; box-shadow: 0 8px 18px #243d320b; }
.word-note > span { display: block; font-size: 9px; letter-spacing: .04em; }
.word-note strong { display: block; font-family: var(--serif); font-size: 67px; font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
.word-note small { font-size: 9px; }
.note-dot { color: var(--accent); }
.note-have { left: 20px; top: 42px; transform: rotate(-9deg); background: var(--sage); }
.note-has { right: 4px; top: 134px; transform: rotate(8deg); background: var(--peach); z-index: 1; }
.note-had { left: 48px; top: 240px; transform: rotate(-5deg); background: #f1e8bd; z-index: 2; }
.art-spark { position: absolute; top: 55px; right: 42px; color: var(--accent); font-size: 66px; line-height: 1; transform: rotate(8deg); }
.art-handwriting { position: absolute; bottom: -10px; right: 9px; font: italic 21px var(--serif); transform: rotate(-7deg); }
.section-space { padding-block: 40px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 9px; }
.count-tag { font-size: 10px; border: 1px solid var(--line); border-radius: 30px; padding: 5px 12px; white-space: nowrap; }
.topic-card { display: grid; grid-template-columns: 310px 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.topic-card:hover { border-color: #a3b3a1; box-shadow: 0 10px 26px #243d3208; }
.topic-card-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 295px; background: var(--sage); overflow: hidden; }
.topic-card-art::after { position: absolute; content: ""; width: 240px; height: 240px; border: 1px solid #c5d3c0; border-radius: 50%; right: -80px; bottom: -90px; }
.topic-number { position: absolute; top: 23px; left: 27px; font-size: 9px; letter-spacing: .12em; }
.topic-words { padding-top: 15px; font: 56px/.94 var(--serif); letter-spacing: -.055em; transform: rotate(-8deg); }
.topic-words span { display: block; margin-left: 60px; }
.topic-words i { display: block; color: var(--accent); }
.topic-art-star { position: absolute; right: 42px; top: 62px; font-size: 46px; color: var(--accent); }
.topic-card-copy { padding: 30px 38px 23px; }
.tag-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.tag { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .025em; padding: 4px 9px; border-radius: 4px; background: #eef0e7; }
.lesson-status { font-size: 10px; color: var(--muted); }
.lesson-status.completed { color: var(--green); }
.topic-card h3 { font: 36px/1.2 var(--serif); letter-spacing: -.04em; margin-bottom: 10px; }
.topic-card-copy > p { font-size: 13px; color: var(--muted); max-width: 560px; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 10px; }
.topic-meta > span + span::before { content: "·"; margin-left: -11px; margin-right: 10px; }
.topic-card-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.text-link { font-size: 12px; font-weight: 600; }
.text-link span { margin-left: 15px; }
.saved-score { color: var(--accent); font-size: 11px; }
.shelf-note { font: italic 13px var(--serif); color: var(--muted); margin: 17px 0 0; }
.how-section { margin-top: 12px; padding-bottom: 75px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; padding-top: 10px; }
.how-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.step-number { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 21px; }
.how-grid h3 { font-size: 17px; margin-top: 15px; margin-bottom: 10px; }
.how-grid p { color: var(--muted); font-size: 12px; max-width: 290px; }
.site-footer { border-top: 1px solid var(--line); min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-brand { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.06em; }
.site-footer > span span { color: var(--accent); font-size: 18px; margin-left: 8px; vertical-align: middle; }

/* Compact lesson index */
.index-page .site-header { min-height: 76px; max-width: 960px; }
.index-main { max-width: 960px; padding-block: 30px 48px; }
.index-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.index-heading h1 { font-size: 36px; margin: 0; }
.lesson-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.lesson-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: border-color .18s, background .18s; }
.lesson-row:hover { border-color: #a3b3a1; background: #f4f6ee; }
.lesson-row-number { align-self: start; padding-top: 4px; color: var(--muted); font: italic 17px var(--serif); }
.lesson-row h2 { font-size: 25px; margin-bottom: 6px; }
.lesson-row-content > p { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.lesson-row-arrow { font-size: 22px; }
.lesson-row .saved-score:empty { display: none; }
.lesson-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin-top: 12px; }
.lesson-progress-status { padding: 2px 7px; border-radius: 4px; background: #eeeee7; color: var(--muted); font-size: 11px; }
.lesson-progress-status[data-state="in-progress"] { background: #f3e8d2; color: #805d22; }
.lesson-progress-status[data-state="completed"] { background: var(--sage); color: var(--green); }

/* Lesson */
.lesson-main { max-width: 1020px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; margin-top: 29px; color: var(--muted); }
.lesson-hero { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 46px 50px; border-bottom: 1px solid var(--line); }
.lesson-hero h1 { font-size: clamp(48px, 7vw, 83px); margin-bottom: 15px; }
.eyebrow-separator { color: #9ca698; margin-inline: 5px; }
.lesson-hero .hero-description { margin-bottom: 21px; }
.lesson-hero-note { position: relative; min-width: 230px; background: #eee8ce; padding: 22px 26px 29px; border-radius: 3px; transform: rotate(5deg); }
.lesson-hero-note > span:first-child { font-size: 9px; color: #676a52; }
.lesson-hero-note p { font: 25px/1.6 var(--serif); margin: 17px 0 0; letter-spacing: -.03em; }
.lesson-hero-note strong { font-weight: 400; color: var(--accent); }
.note-flower { position: absolute; bottom: 14px; right: 15px; color: var(--accent); font-size: 32px; line-height: 1; }
.explanation-section { padding-top: 48px; }
.language-control { display: flex; flex-direction: column; align-items: end; gap: 7px; flex-shrink: 0; }
.language-caption { color: var(--muted); font-size: 14px; }
.language-switch { display: flex; gap: 3px; padding: 4px; background: #eaece3; border-radius: 7px; }
.language-button { border: 0; border-radius: 4px; padding: 7px 14px; background: transparent; font-size: 11px; }
.language-button[aria-pressed="true"] { background: var(--white); color: var(--green); box-shadow: 0 1px 4px #243d3210; }
.language-button:hover { background: #ffffff80; }
.explanation-intro { max-width: 900px; font-size: 14px; line-height: 1.9; color: #536259; margin-bottom: 25px; }
.explanation-intro strong { color: var(--ink); }
.inline-example { font-style: italic; color: var(--ink); white-space: nowrap; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rule-card { padding: 26px 28px; border: 1px solid var(--line); background: var(--white); border-radius: 9px; }
.rule-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.rule-label { font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.rule-pill { font: italic 18px var(--serif); color: var(--accent); }
.rule-card h3 { font-size: 18px; margin-bottom: 20px; }
.rule-card p { font-size: 14px; line-height: 1.8; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 10px 0; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; color: var(--muted); font-weight: 400; padding-top: 0; }
tbody th { font-weight: 400; }
td strong { display: inline-block; color: var(--green); background: var(--sage); border-radius: 4px; padding: 1px 8px; }
.rule-card .example-line { margin: 19px 0 0; color: var(--muted); font-size: 14px; }
.rule-card .rule-footnote { margin: 17px 0 0; font-size: 14px; color: var(--muted); }
.rule-card .example-line + p:not(.rule-footnote) { margin-top: 14px; }
.extra-rules { margin-top: 20px; }
.causative-card { background: #f7eee4; }
.example-line strong { color: var(--ink); }
.past-card { background: #f0f2e9; }
.formula { border-block: 1px solid #d6dccd; padding-block: 15px; margin-top: 21px; font-size: 13px; }
.formula > span { white-space: nowrap; }
.formula strong { color: var(--accent); margin-left: 6px; font-size: 17px; font-family: var(--serif); }
.wide-rule { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 30px 28px; margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.wide-rule > div { min-width: 0; }
.wide-rule .example-chips > span { max-width: 100%; overflow-wrap: anywhere; }
.rule-index { font: italic 34px var(--serif); color: var(--accent); background: #f6e7db; border-radius: 50%; width: 39px; height: 39px; text-align: center; }
.wide-rule h3 { font-size: 18px; margin-bottom: 10px; }
.wide-rule p { font-size: 14px; color: #536259; }
.example-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.example-chips > span { background: var(--paper); padding: 8px 12px; border-radius: 4px; font-size: 12px; }
.mistake-note { margin: 15px 0 0; }
.correct-marker { color: var(--green); margin-right: 5px; }
.incorrect-example { color: #8c6a5d; font-size: 11px; text-decoration: line-through; text-decoration-thickness: 1px; margin-left: 15px; }
.perfect-note { margin-top: 24px; padding: 6px 0 0 23px; border-left: 2px solid #d4b99f; }
.perfect-note .tag { color: #80583d; background: #eee5d8; }
.perfect-note h3 { margin: 15px 0 10px; font-size: 18px; }
.perfect-note p { font-size: 14px; color: #536259; margin-bottom: 12px; }
.perfect-note .perfect-examples { color: var(--ink); font-size: 13px; }
.perfect-examples > span + span { margin-left: 18px; }
.perfect-note .helper-note { color: var(--muted); font-size: 14px; max-width: 840px; margin-bottom: 0; }
.extra-examples { margin-top: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); overflow: hidden; }
.examples-heading { padding: 20px 24px; }
.examples-heading h3 { font-size: 16px; font-weight: 600; margin: 0; }
.examples-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.examples-content { padding: 24px; border-top: 1px solid var(--line); }
.forms-table caption { margin-bottom: 16px; color: var(--ink); text-align: left; font-size: 15px; font-weight: 600; }
.forms-table th, .forms-table td { padding: 10px 12px; vertical-align: top; }
.forms-table th:first-child { padding-left: 0; }
.forms-table td:last-child { padding-right: 0; }
.forms-table td { font-size: 14px; }
.forms-table td:nth-child(2) { color: var(--muted); }
.example-translation { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; margin-top: 28px; }
.example-group h4 { font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.025em; margin: 0 0 10px; }
.example-group > p { color: var(--muted); font-size: 13px; }
.example-list { display: grid; gap: 13px; list-style: none; padding: 0; margin: 0; }
.example-list li { padding-left: 12px; border-left: 2px solid #d8e0cf; font-size: 13px; }
.example-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.example-group .example-note { margin: 15px 0 0; font-size: 14px; }
.wide-rule .rule-footnote { margin: 16px 0 0; font-size: 14px; }
.reference-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.verb-search-label { display: grid; gap: 7px; width: min(100%, 340px); color: var(--muted); font-size: 14px; }
.verb-search { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cbd3c4; border-radius: 5px; color: var(--ink); background: var(--paper); font-size: 13px; }
.verb-search::placeholder { color: #6b776b; }
.verb-count { flex-shrink: 0; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.irregular-table { min-width: 560px; }
.irregular-table th, .irregular-table td { padding: 10px 12px; vertical-align: top; }
.irregular-table thead th { font-size: 13px; font-weight: 500; }
.irregular-table tbody th { font-weight: 600; }
.irregular-table tbody tr:nth-child(even) { background: #f4f6ee; }
.irregular-table tbody tr:hover { background: #eaf0e2; }
.irregular-table td:last-child { color: #536259; }
.verb-pronunciation { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.reference-note { font-size: 14px; color: var(--muted); margin: 15px 0 0; }
.verb-empty { margin: 15px 0 0; padding: 12px; border-radius: 4px; background: var(--sage); font-size: 13px; }
.phrasal-table { min-width: 660px; }
.phrasal-table th, .phrasal-table td { padding: 14px 12px; vertical-align: top; }
.phrasal-table thead th { font-size: 13px; }
.phrasal-table tbody th { width: 24%; font-weight: 600; }
.phrasal-table td { width: 38%; }
.phrasal-table tbody tr:nth-child(even) { background: #f4f6ee; }
.phrasal-pattern { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.reference-sources a { text-decoration: underline; text-underline-offset: 3px; }
.takeaway { display: flex; align-items: center; gap: 18px; padding: 17px 22px; margin-top: 26px; background: #e8ede1; border-radius: 6px; }
.takeaway > span { font-size: 28px; color: var(--green); }
.takeaway p { margin: 0; font-size: 12px; }
.practice-section { border-top: 1px solid var(--line); padding-top: 46px; margin-top: 12px; }
.quiz-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 65px; padding: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.quiz-intro h3 { font: 34px/1.2 var(--serif); letter-spacing: -.04em; margin: 17px 0 12px; }
.quiz-intro p { font-size: 14px; color: var(--muted); max-width: 470px; margin-bottom: 24px; }
.quiz-intro .resume-note { color: var(--green); font-size: 12px; margin-top: -8px; }
.practice-doodle { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; transform: rotate(4deg); }
.practice-doodle > span { font: italic 16px var(--serif); }
.practice-doodle > strong { font: 100px/1.35 var(--serif); letter-spacing: -.07em; }
.practice-doodle strong span { color: var(--accent); font: 40px var(--sans); display: inline-block; vertical-align: top; margin-top: 10px; margin-left: 6px; }
.practice-doodle small { font-size: 10px; color: var(--muted); }
.quiz-workspace { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 40px 26px; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quiz-topline .eyebrow { margin: 0; }
.answered-count { color: var(--muted); font-size: 14px; }
progress { display: block; appearance: none; width: 100%; height: 4px; border: 0; border-radius: 5px; background: #e8ece1; margin-top: 17px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8ece1; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 5px; transition: width .25s; }
progress::-moz-progress-bar { background: var(--green); border-radius: 5px; }
#question-heading { font-size: 14px; font-weight: 500; color: var(--muted); margin: 34px 0 12px; line-height: 1.6; }
#question-heading:focus, #results-heading:focus { outline: none; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.question-sentence { font: 32px/1.55 var(--serif); letter-spacing: -.025em; margin-bottom: 27px; }
.sentence-blank { display: inline-block; min-width: 66px; text-align: center; color: var(--accent); border-bottom: 2px solid #d3b59c; line-height: 1.1; margin-inline: 3px; }
.answer-options { display: grid; gap: 10px; }
.answer-option { display: flex; align-items: center; gap: 15px; padding: 14px 18px; min-height: 60px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: background .15s, border-color .15s; }
.answer-option:hover { background: #f5f6ef; border-color: #afbeaa; }
.answer-option.selected { border-color: var(--green); background: #eef3e9; }
.answer-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-letter { width: 29px; height: 29px; border: 1px solid #d5dccc; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); flex: 0 0 auto; background: var(--white); }
.selected .option-letter { color: var(--white); background: var(--green); border-color: var(--green); }
.option-text { font-size: 14px; }
.option-check { margin-left: auto; opacity: 0; font-size: 17px; flex-shrink: 0; }
.selected .option-check { opacity: 1; }
.quiz-controls { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.answer-hint { color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; margin: 0; max-width: 260px; }
.question-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 29px; }
.question-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 10px; border: 1px solid var(--line); background: transparent; border-radius: 5px; }
.question-dot:hover { border-color: var(--green); }
.question-dot.answered { background: #e7eddf; border-color: #cbd7be; }
.question-dot.answered::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--green); position: absolute; bottom: 3px; }
.question-dot[aria-current="step"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); font-weight: 700; }
.quiz-note { font-size: 14px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.keyboard-hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 19px 0 0; color: var(--muted); font-size: 14px; }
.keyboard-hint > span { margin-inline: 5px; }
kbd { min-width: 22px; padding: 1px 5px; text-align: center; font: 10px/1.7 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; }
.quiz-results { padding: 36px 40px 0; border: 1px solid var(--line); background: var(--white); border-radius: 10px; overflow: hidden; }
.result-top { display: flex; gap: 32px; align-items: center; }
.score-ring { --score: 0%; background: conic-gradient(var(--green) var(--score), #e7ebdf 0); flex: 0 0 155px; width: 155px; height: 155px; border-radius: 50%; display: grid; place-items: center; }
.score-ring > div { background: var(--white); border-radius: 50%; width: 133px; height: 133px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-ring strong { font: 39px/1.2 var(--serif); letter-spacing: -.055em; }
.score-ring span { font-size: 10px; color: var(--muted); }
.result-copy .eyebrow { color: var(--muted); margin-bottom: 8px; }
.result-copy h3 { font: 35px/1.2 var(--serif); margin-bottom: 10px; letter-spacing: -.04em; }
.result-copy p { font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.result-copy .score-description { font-size: 17px; font-weight: 600; color: var(--ink); }
.result-copy .best-score { font-size: 14px; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 27px; margin-bottom: 30px; }
.answer-review { margin: 0 -40px; border-top: 1px solid var(--line); }
.review-heading { margin: 0; padding: 22px 40px 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.review-intro { margin: 4px 40px 20px; font-size: 14px; color: var(--muted); }
.review-list { list-style: none; margin: 0; padding: 0 40px 8px; }
.review-item { border-top: 1px solid var(--line); padding: 23px 0; }
.review-item-head { display: flex; align-items: center; gap: 12px; font-size: 10px; margin-bottom: 8px; }
.review-question-number { color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.review-badge { border-radius: 4px; padding: 2px 7px; font-size: 9px; color: #973c23; background: #f6e5db; }
.review-prompt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.review-sentence { font: 21px/1.5 var(--serif); margin-bottom: 10px; }
.review-answer { font-size: 12px; margin-bottom: 5px; }
.review-answer.chosen-wrong { color: #973c23; }
.review-answer.correct-answer { color: var(--green); font-weight: 600; }
.review-explanation { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.lesson-endnote { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 22px 0 60px; }
.lesson-endnote > span { font-size: 38px; color: var(--accent); }
.lesson-endnote p { font: italic 20px/1.6 var(--serif); margin: 0; letter-spacing: -.02em; }
.lesson-endnote strong { font-weight: 400; }
.notice { font-size: 13px; padding: 16px; border: 1px solid #d5b899; border-radius: 5px; background: #fbefde; }

@media (min-width: 1400px) {
  .home-hero { padding-block: 90px 70px; }
}
@media (max-width: 960px) {
  .page-width { width: calc(100% - 56px); }
  .home-hero { gap: 8px; padding-block: 60px 40px; min-height: 530px; }
  .home-hero h1 { font-size: 58px; }
  .hero-description { font-size: 14px; }
  .grammar-art { transform: scale(.86); transform-origin: center; margin-inline: -22px; width: 360px; }
  .word-note { width: 205px; }
  .note-have { left: 0; }
  .note-had { left: 10px; }
  .art-spark { right: 12px; }
  .topic-card { grid-template-columns: 260px 1fr; }
  .topic-card-copy { padding: 26px; }
  .topic-card h3 { font-size: 30px; }
  .how-grid { gap: 25px; }
  .lesson-hero { gap: 25px; }
  .lesson-hero-note { min-width: 205px; padding: 20px; }
  .lesson-hero-note p { font-size: 24px; }
  .quiz-intro { gap: 25px; padding: 30px; }
}
@media (max-width: 700px) {
  .page-width { width: calc(100% - 36px); }
  .index-main { padding-top: 24px; }
  .index-heading h1 { font-size: 30px; }
  .lesson-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 17px 15px; }
  .lesson-row h2 { font-size: 22px; }
  .lesson-row-content > p { font-size: 12px; }
  .site-header { min-height: 82px; gap: 15px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-period { margin-left: -9px; }
  .brand-mark { width: 32px; height: 34px; font-size: 23px; }
  .brand-mark > span { font-size: 17px; }
  .site-header nav { gap: 17px; }
  .nav-link { font-size: 10px; }
  .home-hero { grid-template-columns: 1fr; padding-top: 45px; gap: 24px; }
  .home-hero h1 { font-size: clamp(48px, 10vw, 68px); }
  .hero-description { font-size: 14px; }
  .grammar-art { transform: scale(.92); width: 360px; max-width: 100%; justify-self: center; margin: -10px 0 -15px; }
  .note-have { left: 12px; }
  .note-had { left: 25px; }
  .section-space { padding-block: 30px; }
  .section-heading { gap: 15px; margin-bottom: 24px; }
  h2 { font-size: 32px; }
  .topic-card { grid-template-columns: 1fr; }
  .topic-card-art { min-height: 220px; }
  .topic-words { display: flex; align-items: center; gap: 16px; transform: rotate(-8deg); font-size: clamp(40px, 10vw, 54px); padding-top: 5px; }
  .topic-words span { margin-left: 0; }
  .topic-art-star { right: 25px; top: 34px; font-size: 34px; }
  .topic-card-copy { padding: 25px; }
  .topic-card-copy > p { font-size: 13px; }
  .how-section { padding-bottom: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .how-grid article { display: grid; grid-template-columns: 36px 1fr; column-gap: 15px; padding-top: 20px; }
  .step-number { grid-row: 1 / 3; }
  .how-grid h3 { margin-top: 3px; }
  .how-grid p { max-width: 100%; margin-bottom: 0; }
  .site-footer { flex-wrap: wrap; justify-content: center; gap: 8px 25px; text-align: center; padding-block: 23px; }
  .site-footer > :last-child { width: 100%; }
  .back-link { margin-top: 22px; }
  .lesson-hero { padding-block: 36px; }
  .lesson-hero h1 { font-size: clamp(43px, 9.6vw, 65px); }
  .lesson-hero .eyebrow { font-size: 9px; }
  .lesson-hero-note { display: none; }
  .lesson-hero .topic-meta { font-size: 9px; gap: 8px 18px; }
  .explanation-section { padding-top: 32px; }
  .explanation-heading { flex-wrap: wrap; align-items: center; }
  .language-control { align-items: start; flex-direction: row; align-items: center; gap: 10px; }
  .language-button { padding: 7px 12px; }
  .explanation-intro { font-size: 13px; }
  .rule-grid { grid-template-columns: 1fr; gap: 15px; }
  .rule-card { padding: 23px; }
  .rule-card-top { margin-bottom: 18px; }
  .wide-rule { grid-template-columns: 29px 1fr; gap: 14px; padding: 23px 18px; }
  .rule-index { width: 29px; height: 29px; font-size: 25px; }
  .example-chips { flex-direction: column; align-items: start; }
  .mistake-note .incorrect-example { display: block; margin: 4px 0 0 20px; }
  .perfect-note { padding-left: 17px; }
  .perfect-examples > span + span { margin-left: 0; }
  .examples-heading { padding: 17px; }
  .examples-content { padding: 18px 16px; }
  .example-grid { grid-template-columns: 1fr; gap: 24px; }
  .forms-table th, .forms-table td { padding: 9px 6px; }
  .reference-toolbar { flex-direction: column; align-items: stretch; gap: 9px; }
  .verb-search-label { width: 100%; }
  .verb-count { margin: 0; }
  .takeaway { padding: 15px; gap: 12px; }
  .takeaway > span { font-size: 23px; }
  .takeaway p { font-size: 11px; }
  .practice-section { margin-top: 8px; padding-top: 32px; }
  .quiz-intro { grid-template-columns: 1fr; padding: 27px 23px; }
  .quiz-intro h3 { font-size: 31px; }
  .practice-doodle { display: none; }
  .quiz-workspace { padding: 24px 20px; }
  .quiz-topline .eyebrow { font-size: 9px; letter-spacing: .08em; }
  #question-heading { margin-top: 25px; }
  .question-sentence { font-size: 27px; margin-bottom: 21px; }
  .answer-option { padding: 12px; gap: 12px; }
  .option-text { font-size: 13px; }
  .quiz-controls { flex-wrap: wrap; gap: 15px; margin-top: 22px; padding-top: 20px; }
  .quiz-controls .button { min-height: 46px; padding: 10px 16px; gap: 13px; }
  .answer-hint { order: 3; flex-basis: 100%; max-width: none; }
  .question-navigation { gap: 7px; margin-top: 24px; }
  .question-dot { width: 36px; height: 36px; }
  .quiz-results { padding: 28px 23px 0; }
  .result-top { flex-direction: column; align-items: start; gap: 24px; }
  .score-ring { flex-basis: 140px; width: 140px; height: 140px; align-self: center; }
  .score-ring > div { width: 120px; height: 120px; }
  .result-copy h3 { font-size: 32px; }
  .result-actions .button { width: 100%; }
  .answer-review { margin-inline: -23px; }
  .review-heading { padding: 20px 23px 12px; }
  .review-intro { margin-inline: 23px; }
  .review-list { padding-inline: 23px; }
  .review-sentence { font-size: 19px; }
  .lesson-endnote { padding-bottom: 35px; gap: 14px; }
  .lesson-endnote p { font-size: 17px; }
  .lesson-endnote > span { font-size: 30px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  .site-header nav { gap: 12px; }
  .nav-link { font-size: 9px; }
  .nav-link span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
