:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --ink: #1e211e;
  --muted: #54564d;
  --blue: #1c2da8;
  --blue-deep: #111e82;
  --rust: #983b27;
  --rule: #c5c2b6;
  --soft-rule: #d9d7cb;
  --white: #fffefa;
  --tint: #efeee4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.125rem, 5.3vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: var(--blue); text-underline-offset: .23em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { padding-inline-start: 1.35rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ce4d1b; outline-offset: 4px; }
::selection { background: #d3d9ff; color: #172064; }
.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .6rem 1rem; color: white; background: var(--blue); }

/* Masthead */
.topbar { display: flex; align-items: center; min-height: 5rem; gap: clamp(1rem, 3.5vw, 3.5rem); }
header:has(> .topbar), header.topbar, .topbar.wrap { border-bottom: 1px solid var(--rule); }
header:has(> .topbar) .topbar.wrap { border-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: .64rem; min-width: 0; color: var(--ink); font: 650 1.24rem/1.05 var(--sans); text-decoration: none; letter-spacing: -.055em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; flex: none; object-fit: contain; }
.navlinks { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); margin-left: auto; }
.navlinks a, .navbuy { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .94rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.navlinks a:hover { color: var(--blue); text-decoration: underline; }
.navbuy { border: 1px solid var(--ink); padding: .57rem 1.1rem; justify-content: center; line-height: 1.1; }
.navbuy:hover { background: var(--ink); color: var(--paper); }

/* Introduction */
.hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.88fr); column-gap: clamp(2rem, 6.5vw, 7rem); align-items: center; padding-block: clamp(2.5rem, 5.3vw, 5.7rem) clamp(2rem, 4.8vw, 4.5rem); }
.hero-copy { min-width: 0; }
.kicker { margin: 0 0 1.1rem; color: var(--blue); font: 700 .81rem/1.35 var(--sans); letter-spacing: .105em; text-transform: uppercase; }
.hero h1 { max-width: 11ch; font-size: clamp(4.2rem, 8.3vw, 7.75rem); line-height: .94; letter-spacing: -.067em; }
.hero h1 span { display: block; }
.hero h1 em { font-family: var(--serif); color: var(--blue); font-weight: 400; }
.hero-copy > .intro, .hero .intro { max-width: 38rem; margin-top: clamp(1.1rem, 2.1vw, 2rem); color: #42453e; font-size: clamp(1.03rem, .85rem + .55vw, 1.32rem); line-height: 1.5; }
.hero-actions, .exercise-actions, .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.hero-actions { margin-top: 1.65rem; }
.btn { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .77rem 1.22rem; border: 1px solid transparent; border-radius: 2px; font: 650 1rem/1.25 var(--sans); text-decoration: none; text-align: center; transition: color .12s, border-color .12s, background-color .12s; }
.btn-primary { color: white; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline { color: var(--ink); border-color: #85867b; background: transparent; }
.btn-outline:hover { color: var(--blue); border-color: var(--blue); background: #f0f0ea; }
.btn-light { color: var(--blue-deep); background: var(--paper); border-color: var(--paper); }
.btn-light:hover { color: var(--ink); background: white; border-color: white; }
.btn:disabled { opacity: .62; cursor: default; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--blue); font-weight: 650; text-decoration: underline; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-price { margin-top: 1rem; color: var(--muted); font-size: .94rem; line-height: 1.48; }
.hero-price strong { color: var(--ink); }
.hero-price small { display: inline-block; margin-top: .15rem; font-size: .88rem; }
.hero-art { width: 100%; max-width: 27.4rem; justify-self: end; min-width: 0; }
.hero-art > img, .hero-art picture img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: #2035a6; }
.hero-art figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-block: .55rem .13rem; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.stats { padding-block: 1.15rem; border-block: 1px solid var(--rule); }
.stats dl, dl.stats { display: grid; grid-template-columns: repeat(3,1fr); }
.stats dl > div, dl.stats > div { min-width: 0; display: flex; align-items: baseline; gap: .7rem; padding-inline: clamp(.7rem,2.35vw,2.5rem); border-left: 1px solid var(--rule); }
.stats dl > div:first-child, dl.stats > div:first-child { padding-left: 0; border: 0; }
.stats dt { color: var(--blue); font: 400 clamp(1.9rem,3vw,3rem)/1.08 var(--serif); letter-spacing: -.05em; }
.stats dd { color: var(--muted); line-height: 1.3; font-size: .98rem; }

/* Free lesson */
.sample-section { padding-block: clamp(3rem,7vw,6.8rem); }
.split { display: grid; grid-template-columns: minmax(13rem,.72fr) minmax(0,1.25fr); gap: clamp(2rem,7.5vw,7rem); align-items: start; }
.split > *, .path-card, .price-panel, .offer-description { min-width: 0; }
.section-intro h2, .paths h2, .offer h2, .faq h2, .contents-section h2 { font-size: clamp(2.5rem,4.5vw,4.35rem); line-height: 1.05; letter-spacing: -.057em; }
.section-intro > p:not(.kicker), .paths > p:not(.kicker), .paths header > p:not(.kicker) { max-width: 47ch; margin-top: 1.15rem; color: var(--muted); font-size: 1.075rem; }
.sample-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .8rem; align-items: center; }
.sample-links a { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 650; }
.workbook { border: 1px solid #bdbfb0; background: var(--white); }
.workhead { background: var(--blue); color: white; padding: 1rem clamp(1rem,2.8vw,2rem); }
.workhead h3 { font-size: clamp(1.55rem,2.5vw,2.2rem); letter-spacing: -.04em; line-height: 1.14; }
.workhead .kicker, .workhead small { color: #f1eeff; }
.workhead .kicker { margin-bottom: .45rem; }
.workbody { padding: clamp(1.15rem,2.8vw,2rem); }
.workbody h3, .workbody h4 { margin: 0; color: var(--ink); line-height: 1.17; }
.workbody h3 { font-size: clamp(1.55rem,2.4vw,2rem); letter-spacing: -.043em; }
.workbody > p { margin-block: .45rem .9rem; }
.data-table { width: 100%; margin-block: .95rem 1.4rem; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; font-size: .98rem; line-height: 1.4; }
.data-table caption { font-weight: 650; margin-bottom: .45rem; text-align: left; }
.data-table th, .data-table td { border-bottom: 1px solid var(--soft-rule); padding: .54rem .35rem .54rem 0; vertical-align: top; }
.data-table thead th { color: var(--muted); font-size: .86rem; }
.data-table th:last-child, .data-table td:last-child { text-align: right; padding-right: 0; }
.workbody fieldset, fieldset.case-options { min-width: 0; padding: 0; margin: 0; border: 0; }
.workbody legend { padding: 0; margin-bottom: .58rem; font-weight: 650; }
.case-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { display: inline-flex; gap: .55rem; align-items: center; min-height: 2.75rem; padding: .48rem .78rem; border: 1px solid var(--rule); color: var(--ink); font-weight: 600; line-height: 1.25; cursor: pointer; }
.choice:has(input:checked) { background: #eeeffa; border-color: var(--blue); color: var(--blue-deep); }
.choice input { width: 1.04rem; height: 1.04rem; margin: 0; accent-color: var(--blue); }
.exercise-actions { margin-top: 1rem; }
#feedback:not(:empty) { margin-top: 1.05rem; padding: .72rem .95rem; background: #f0f1e7; border-left: 3px solid var(--blue); color: var(--ink); }
.copybox { margin-top: 1.1rem; }
.copybox summary { min-height: 2.7rem; padding-block: .55rem; color: var(--blue); font-weight: 650; }
.copybox pre, pre.copybox { margin: .5rem 0 1rem; padding: .9rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--tint); color: var(--ink); font: 400 .96rem/1.55 var(--sans); }
.copybox #prompt { margin: .3rem 0 .2rem; padding: .85rem 1rem; background: var(--tint); color: var(--ink); }
.copybox button.text-link { border: 0; padding: .35rem 0; background: transparent; }
.copybox > p:last-child { color: var(--muted); margin-top: .65rem; }
#copy-status { color: var(--blue-deep); padding-left: .5rem; font-size: .91rem; }

/* Practical tracks and syllabus */
.paths { padding-block: 0 clamp(3.75rem,7.4vw,7.25rem); }
.paths-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.4vw,2.2rem); margin-top: clamp(1.5rem,3vw,2.8rem); }
.path-card { display: flex; flex-direction: column; align-items: flex-start; }
.path-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.path-card h3 { margin-top: 1.1rem; font-size: clamp(1.5rem,2.3vw,2.15rem); line-height: 1.15; letter-spacing: -.04em; }
.path-card p { margin-top: .55rem; color: var(--muted); }
.path-card a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; padding-top: .35rem; font-weight: 650; }
.contents-section { background: var(--tint); border-block: 1px solid var(--soft-rule); padding-block: clamp(3.1rem,6.2vw,6rem); }
.chapter-list, .faq-list { border-top: 1px solid var(--rule); }
.chapter-list details, .faq-list details { border-bottom: 1px solid var(--rule); }
.chapter-list summary, .faq-list summary { min-height: 3.3rem; padding: .9rem 0; color: var(--ink); font-size: 1.03rem; font-weight: 650; line-height: 1.45; }
.chapter-list summary::marker, .faq-list summary::marker, .copybox summary::marker { color: var(--blue); }
.chapter-list summary:hover, .faq-list summary:hover { color: var(--blue); }
.chapter-no { display: inline-block; margin-inline: .3rem .6rem; color: var(--blue); font: 650 .85rem/1.4 var(--sans); }
.chapter-list details > p, .faq-list details > p, .chapter-list details > ol, .chapter-list details > ul { margin: 0 0 1.1rem; color: var(--muted); }
.chapter-list details > ol, .chapter-list details > ul { padding-left: 2.35rem; }
.chapter-list li + li { margin-top: .32rem; }

/* Price, purchase and FAQ */
.offer { margin-block: clamp(3.25rem,7.2vw,7.2rem); }
.offer-inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(2.5rem,6vw,6rem); padding: clamp(1.5rem,5vw,4.6rem); background: var(--blue); color: white; align-items: center; }
.offer .kicker { color: #e6e9ff; }
.offer h2 { color: white; }
.offer-description p:not(.kicker), .price-detail { color: #f0efff; }
.offer-description p:not(.kicker) { margin-top: 1rem; max-width: 36rem; }
.offer-description ul { margin: 1.15rem 0 0; }
.launch-clock { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.45rem; padding-top: 1.05rem; border-top: 1px solid #939ed9; }
.launch-clock[hidden] { display: none; }
.launch-clock > div { flex: 1 1 11rem; }
.launch-clock strong { display: block; color: white; font-size: .98rem; font-weight: 650; line-height: 1.4; }
.offer .launch-clock #clock-caption { margin-top: .15rem; font-size: .89rem; color: #ecedff; }
#clock { display: inline-block; color: white; font: 600 clamp(1.9rem,3.8vw,3.1rem)/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price-panel { padding-inline-start: clamp(1.5rem,4vw,3.7rem); border-inline-start: 1px solid #99a2dc; }
.price-panel p + p { margin-top: .4rem; }
.price-caption { color: #f0efff; font-size: .99rem; }
.price-big { font: 400 clamp(2.8rem,5.2vw,4.8rem)/1.05 var(--serif); letter-spacing: -.055em; }
.price-detail { font-size: 1.05rem; line-height: 1.48; }
.price-small { max-width: 30ch; color: #eceeff; font-size: .91rem; line-height: 1.45; }
.offer .price-panel .btn { margin-top: 1.3rem; }
.offer-state { margin-top: .72rem; color: #f1f2ff; font-size: .9rem; line-height: 1.45; }
.faq { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.25fr); align-items: start; column-gap: clamp(2rem,7.5vw,7rem); padding-bottom: clamp(3.5rem,7.8vw,7.5rem); }
.faq > .kicker { grid-column: 1 / -1; }
.faq-list details > p { padding-right: .7rem; }
.footer { background: var(--ink); color: white; }
.footer > .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding-block: 1.25rem; }
.footer a, .footer .brand { color: white; }
.footer p, .footer small { color: #e1e0d6; font-size: .91rem; }
dialog { width: min(100% - 2rem, 29rem); max-height: calc(100dvh - 2rem); padding: clamp(1.3rem,4vw,2rem); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(22 24 25 / 58%); }
dialog h2, dialog h3 { margin: 0 0 .7rem; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
dialog p + p { margin-top: .55rem; }
.dialog-actions { margin-top: 1.25rem; }
.dialog-content { overflow-wrap: break-word; }
.dialog-close { min-height: 2.75rem; border: 1px solid var(--rule); background: transparent; padding: .5rem .8rem; }

@media (max-width: 56rem) {
  .topbar { min-height: 4.5rem; gap: 1.3rem; }
  .navlinks { gap: 1rem; }
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,.9fr); column-gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.9rem,8.7vw,5.4rem); }
  .split, .faq { column-gap: 2.25rem; }
  .stats dl > div, dl.stats > div { align-items: start; flex-direction: column; gap: .18rem; }
  .offer-inner { gap: 2rem; }
  .price-panel { padding-inline-start: 1.7rem; }
}
@media (max-width: 44rem) {
  .topbar { min-height: 4.15rem; justify-content: space-between; gap: .8rem; }
  .navlinks { display: none; }
  .navbuy { margin-left: auto; }
  .brand { font-size: 1.13rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.2rem 1.5rem; }
  .hero h1 { max-width: none; font-size: clamp(3.85rem,13.8vw,5.6rem); }
  .hero .kicker { margin-bottom: .8rem; }
  .hero .intro { max-width: 36rem; }
  .hero-art { width: min(100%,28rem); justify-self: center; }
  .hero-actions { margin-top: 1.2rem; }
  .stats { padding-block: 1rem; }
  .stats dl > div, dl.stats > div { padding-inline: .8rem; }
  .stats dd { font-size: .87rem; }
  .split, .faq, .offer-inner { grid-template-columns: 1fr; gap: 1.55rem; }
  .section-intro > p:not(.kicker) { max-width: 48ch; margin-top: .75rem; }
  .paths-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .path-card { max-width: 33rem; }
  .path-card h3 { margin-top: .75rem; }
  .price-panel { padding: 1.35rem 0 0; border-left: 0; border-top: 1px solid #99a2dc; }
  .faq > .kicker { margin: 0; }
}
@media (max-width: 24.5rem) {
  .navbuy { font-size: .85rem; padding: .45rem .74rem; }
  .hero-actions { gap: .3rem .8rem; }
  .hero-actions .btn { font-size: .95rem; padding-inline: .9rem; }
  .hero-actions .text-link { font-size: .94rem; }
  .stats dl > div, dl.stats > div { padding-inline: .55rem; }
  .data-table { font-size: .91rem; }
  .workbody { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
