@font-face { font-family: 'Lemma Serif'; src: url('./assets/newsreader-latin-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lemma Mono'; src: url('./assets/OhwSubsetMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { --paper: #faf7ff; --ink: #432c57; --soft: #ece3f4; --rule: #b1a2bf; --control: #7b668c; --yellow: #f5d76a; --body: 'Lemma Mono', monospace; --label: var(--body); --display: 'Lemma Serif', Georgia, serif; --weight: 600; }

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); color-scheme: light; }
body { margin: 0; font: 1rem/1.65 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a, button, summary { touch-action: manipulation; }
button { background: transparent; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--weight); line-height: 1.1; margin: 0 0 1.1rem; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.4rem; }
figure { margin: 0; }
svg { max-width: 100%; }
.focal-art { display: block; width: 100%; height: auto; }
figcaption { font-size: .8rem; padding-top: .8rem; }
.wrap { width: min(calc(100% - 40px), 1160px); margin-inline: auto; }
.section { padding-block: clamp(2.8rem, 6vw, 5.5rem); }
.page-intro { padding-block: clamp(2.8rem, 6vw, 5rem) 2rem; }
.page-intro .lead { max-width: 43rem; }
.lead { font-size: 1.2rem; line-height: 1.65; }
.eyebrow { font: .76rem/1.5 var(--label); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1.25rem; }
.small { font-size: .875rem; }
.skip-link { position: absolute; top: 0; left: 1rem; z-index: 5; padding: 1rem; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.5rem; }
.brand { text-decoration: none; font: var(--weight) 2rem/1 var(--display); letter-spacing: -.03em; }
.brand span { display: block; margin-top: .6rem; font: .65rem/1.5 var(--label); letter-spacing: .07em; }
#navigation { display: flex; gap: 1.4rem; align-items: center; font-size: .875rem; }
#navigation a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
#navigation a:hover, #navigation a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { display: none; border: 1px solid currentColor; min-height: 44px; padding: .5rem .75rem; }
.arrow, .disclosure { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button, .text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; max-width: 100%; font-size: 1rem; line-height: 1.45; }
.button { justify-content: space-between; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding: 1rem 1.3rem; text-decoration: none; }
.button:hover { text-decoration: underline; }
.button:focus-visible { outline-color: var(--ink); }
.text-link { padding-block: .6rem; }
.closing { padding-block: 3rem; background: var(--soft); }
.closing-layout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.closing-layout > div { max-width: 40rem; }
.closing-layout h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.closing-layout .button { flex-shrink: 0; }
.site-footer { padding-block: 2.5rem; font-size: .875rem; border-top: 1px solid var(--rule); }
.footer-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-name { font: var(--weight) 1.6rem/1.2 var(--display); }
.site-footer a { display: inline-block; padding-block: .6rem; }
.split, .form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split > *, .form-layout > *, .footer-layout > * { min-width: 0; }
.form-panel { padding: clamp(1rem, 3vw, 2.5rem); background: var(--soft); }
.demo-note { border-left: 3px solid currentColor; padding-left: 1rem; margin-top: 2rem; font-size: .95rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font: var(--weight) 1.8rem/1.2 var(--display); margin-bottom: 1rem; padding: 0; max-width: 100%; }
.field { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: .4rem; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: .7rem; border: 1px solid var(--control); border-radius: 0; color: var(--ink); background: var(--paper); font-size: 1rem; }
textarea { resize: vertical; }
.field .small { margin-top: .5rem; }
.confirmation { padding-block: 1rem; }
.confirmation h2 { font-size: 2rem; }
.prose { max-width: 740px; }
.prose section + section { margin-top: 2.5rem; }
.prose h2 { font-size: 2rem; }
.prose > .small { margin-top: 2.5rem; }
ul, ol { padding-left: 1.4rem; }
li { padding-block: .35rem; }
details { padding-block: 1rem; border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 1rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] .disclosure { transform: rotate(45deg); }
details p { padding-top: 1rem; max-width: 48rem; }
.questions { max-width: 850px; }
@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  #navigation { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .2rem; }
  #navigation a { padding: .6rem .25rem; }
  .has-menu .menu-toggle[aria-expanded="false"] + #navigation { display: none; }
  .closing-layout { flex-direction: column; align-items: start; }
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .split, .footer-layout { grid-template-columns: 1fr; }
  .site-header { gap: .75rem; }
  .brand { font-size: 1.8rem; }
  .brand span { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

body { font-size: .95rem; }
h1, h2, h3, .brand, .footer-name, legend { font-style: italic; }
.brand { font-size: 2.65rem; }
.brand span { font-style: normal; font-size: .57rem; }
#navigation { gap: 1rem; font-size: .78rem; }
.learning-opening { background: var(--ink); color: var(--paper); border-radius: 2.5rem; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.learning-opening h1 { font-size: clamp(3.4rem, 7.5vw, 7rem); max-width: 10ch; letter-spacing: -.05em; }
.learning-opening .lead { font-size: 1rem; max-width: 34rem; }
.learning-opening .eyebrow { color: var(--yellow); font-size: .7rem; }
.learning-opening > *, .subject-cards > *, .subject-row > *, .week-list > div > * { min-width: 0; }
.book-scene { margin: 0; }
.book-scene figcaption { text-align: center; font-size: .72rem; }
.first-session-slip { margin: 2rem 0 0; padding: 1.2rem 1.5rem; border-radius: .75rem; background: var(--yellow); color: var(--ink); }
.first-session-slip strong { display: block; font: italic 600 2rem/1.2 var(--display); margin-bottom: .5rem; }
.first-session-slip p { font-size: .85rem; }
.term-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-bottom: 2px solid var(--ink); padding-block: 1.5rem; font-size: .8rem; }
.term-strip p { margin: 0; }
.term-strip .text-link { font-size: .85rem; }
.subject-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.subject-card { padding: 1.7rem; border: 1px solid var(--ink); border-radius: 1.5rem; }
.subject-card:nth-child(2) { background: var(--soft); }
.subject-card:nth-child(3) { background: var(--yellow); }
.subject-card .card-number { display: block; font-size: .8rem; margin-bottom: 2rem; }
.subject-card h3 { font-size: 2.35rem; }
.subject-card p { font-size: .85rem; }
.lesson-note { background: var(--soft); border-radius: 1.5rem; padding: 2rem; }
.lesson-note h2 { font-size: 2.6rem; }
.subject-row { display: grid; grid-template-columns: .65fr 1.8fr .8fr; gap: 2rem; border-top: 1px solid var(--rule); padding-block: 2.2rem; align-items: start; }
.subject-row h2 { font-size: 2rem; }
.subject-row h3 { font: 700 1rem/1.4 var(--body); margin-bottom: .4rem; }
.subject-row p { font-size: .9rem; }
.session-price { border: 1px solid var(--ink); border-radius: 50% 50% .5rem .5rem / 1.5rem 1.5rem .5rem .5rem; padding: 1.2rem; text-align: center; background: var(--yellow); }
.session-price strong { display: block; font: italic 600 2.8rem/1.2 var(--display); }
.session-price span { display: block; font-size: .75rem; }
.prep-band { background: var(--ink); color: var(--paper); }
.prep-price { color: var(--yellow); font: italic 600 2.3rem/1.3 var(--display); }
.week-list { margin: 0; }
.week-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); padding-block: 1.2rem; }
.week-list dt { font-weight: 700; }
.week-list dd { margin: 0; }
.break-note { background: var(--yellow); padding: 2rem; border-radius: 1.5rem; }
.break-note h2 { font-size: 2.2rem; }
.lesson-steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: lesson; }
.lesson-steps li { counter-increment: lesson; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.3rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.lesson-steps li::before { content: counter(lesson); display: grid; place-items: center; align-self: start; width: 3rem; height: 3rem; border: 1px solid var(--ink); border-radius: 50%; }
.lesson-steps h3 { font-size: 1.8rem; }
.closing { background: var(--yellow); border-radius: 2rem 2rem 0 0; }
.button { border-radius: 999px; }
.form-panel { border-radius: 1.5rem; }
input, select, textarea { border-radius: .4rem; }
@media (max-width: 850px) {
  .learning-opening { grid-template-columns: 1fr; }
  .learning-opening h1 { max-width: 14ch; }
  .book-scene { max-width: 500px; justify-self: center; width: 100%; }
  .subject-row { grid-template-columns: 1fr 2fr; }
  .session-price { grid-column: 2; text-align: left; }
  .subject-cards { grid-template-columns: 1fr; }
  .subject-card .card-number { margin-bottom: 1rem; }
}
@media (max-width: 500px) {
  .brand { font-size: 2.1rem; }
  .brand span { font-size: .48rem; }
  .learning-opening { border-radius: 1.2rem; }
  .learning-opening h1 { font-size: 3.4rem; }
  .subject-row, .week-list > div { grid-template-columns: 1fr; }
  .session-price { grid-column: 1; }
  .lesson-steps li { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .lesson-steps li::before { width: 2rem; height: 2rem; }
}
html:not(.has-menu) .menu-toggle { display: none !important; }
