@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --white: #fffefa;
  --ink: #1b2925;
  --muted: #6d7973;
  --line: #dfe1d8;
  --green: #315b4a;
  --green-dark: #203e33;
  --green-soft: #e4ece3;
  --gold: #d5a64e;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
.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; }
.site-header { max-width: 1240px; min-height: 76px; margin: 0 auto; padding: 0 44px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 12%; background: var(--green); color: #fff; font: italic 1.15rem var(--serif); }
.brand-light { color: var(--green); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-right: auto; }
.main-nav a, .header-cta { font-size: .84rem; text-decoration: none; }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .site-footer a:hover { color: var(--green); }
.header-cta { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; }
.header-cta span { margin-left: 8px; color: var(--green); }
.hero { max-width: 1240px; min-height: 565px; margin: auto; padding: 82px 44px 48px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 35px; }
.hero-copy { max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #efe6d1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 590px; margin: 21px 0 18px; font-size: clamp(3.4rem, 6vw, 5.45rem); line-height: .99; }
h1 em, .how-heading em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 445px; margin-bottom: 23px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 600; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--green-dark); color: white; }
.button-dark:hover { background: var(--green); }
.no-signup { color: var(--muted); font-size: .78rem; }
.no-signup span { margin-right: 5px; color: var(--green); }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 48px); margin-top: 53px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 3px; }
.hero-facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.hero-facts span { color: var(--muted); font-size: .68rem; }
.hero-art { position: relative; min-height: 375px; max-width: 505px; width: 100%; justify-self: end; overflow: hidden; border: 1px solid #d9ded4; border-radius: 46% 46% 22px 22px; background: #e9eee6; }
.hero-art::before, .hero-art::after { position: absolute; content: ""; border: 1px solid rgba(49, 91, 74, .15); border-radius: 50%; }
.hero-art::before { inset: 31px 42px 24px; }
.hero-art::after { inset: 68px 78px 58px; }
.art-sun { position: absolute; top: 51px; left: 50%; width: 115px; height: 115px; border-radius: 50%; background: #ead5a7; transform: translateX(-50%); }
.art-orbit { position: absolute; z-index: 1; border-radius: 50%; }
.orbit-one { top: 85px; left: 27%; width: 13px; height: 13px; background: var(--green); }
.orbit-two { top: 178px; right: 22%; width: 9px; height: 9px; background: #c78d62; }
.art-book { position: absolute; z-index: 2; top: 112px; left: 50%; width: 254px; height: 173px; display: flex; transform: translateX(-50%) rotate(-5deg); filter: drop-shadow(0 17px 15px rgba(41, 62, 50, .14)); }
.book-page { position: relative; flex: 1; padding: 33px 18px 20px; background: #fffef9; }
.page-left { border-radius: 8px 0 0 10px; transform: skewY(3deg); }
.page-right { border-radius: 0 8px 10px 0; transform: skewY(-3deg); border-left: 1px solid #e3e2da; }
.book-rule { display: block; height: 1px; margin-bottom: 13px; background: #d9ddd4; }
.book-rule.short { width: 65%; }
.book-rule.medium { width: 82%; }
.book-glyph { display: block; margin: -20px 0 10px; color: var(--green); font: 2.45rem var(--serif); text-align: center; }
.art-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(27, 41, 37, .08); border-radius: 999px; background: var(--white); box-shadow: 0 5px 20px rgba(30, 55, 43, .07); font-size: .71rem; font-weight: 600; }
.note-top { top: 36px; right: 30px; }
.note-bottom { bottom: 33px; left: 29px; }
.note-star { color: #b88630; font-size: 1rem; }
.note-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.classes-section { max-width: 1240px; margin: 0 auto; padding: 59px 44px 83px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section-heading h2, .how-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 3.7vw, 3.15rem); line-height: 1.06; }
.search-box { display: flex; min-width: 235px; height: 43px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.search-icon { color: var(--green); font-size: 1.35rem; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .77rem; }
.search-box input::placeholder { color: #9aa19a; }
kbd { display: grid; width: 19px; height: 21px; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: #959d96; font-size: .69rem; }
.filter-row { display: flex; gap: 8px; margin: 27px 0 18px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; }
.filter-chip:hover { border-color: #9aa99e; color: var(--ink); }
.filter-chip.is-active { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.filter-chip span { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .62rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.course-card { position: relative; min-height: 270px; display: flex; flex-direction: column; padding: 21px 21px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.course-card:hover { transform: translateY(-3px); border-color: #bdc9be; box-shadow: 0 12px 28px rgba(31, 54, 43, .07); }
.course-card[hidden] { display: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.course-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font: 1.17rem var(--serif); }
.course-card[data-course="english"] .course-icon { background: #f3eadb; color: #916824; font: 600 .95rem var(--sans); }
.course-card[data-course="sql"] .course-icon { background: #e8e8f1; color: #515278; font: 600 .8rem var(--sans); }
.course-label { padding: 5px 8px; border-radius: 999px; background: #f2f2eb; color: var(--muted); font-size: .62rem; font-weight: 600; }
.course-title { margin: 21px 0 8px; font: 1.55rem/1.15 var(--serif); letter-spacing: -.02em; }
.course-summary { max-width: 330px; margin: 0 0 17px; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.course-meta { display: flex; gap: 13px; margin-top: auto; color: var(--muted); font-size: .67rem; }
.course-meta span::before { content: "·"; margin-right: 6px; color: var(--gold); }
.course-link { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e8e9e2; color: var(--green-dark); font-size: .77rem; font-weight: 700; text-decoration: none; }
.course-link span { font-size: 1rem; transition: transform .18s ease; }
.course-link:hover span { transform: translateX(4px); }
.empty-state { margin: 26px 0; color: var(--muted); text-align: center; font-size: .9rem; }
.shelf-note { display: flex; align-items: center; gap: 15px; margin-top: 21px; padding: 17px 20px; border: 1px dashed #c9cec3; border-radius: 10px; }
.shelf-note-icon { display: grid; width: 35px; height: 35px; flex: none; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.shelf-note p { margin: 0 auto 0 0; color: var(--muted); font-size: .75rem; }
.shelf-note p strong { color: var(--ink); }
.shelf-coming { flex: none; color: var(--green); font-size: .73rem; font-weight: 700; }
.how-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; padding: 68px max(44px, calc((100vw - 1152px) / 2)) 76px; background: #e9eee6; }
.how-heading h2 { max-width: 440px; margin-top: 13px; }
.how-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-self: center; }
.how-points article { padding-top: 14px; border-top: 1px solid #cdd6cb; }
.point-number { color: #8a9a8d; font-size: .65rem; letter-spacing: .08em; }
.how-points h3 { margin: 22px 0 8px; font: 1.1rem/1.2 var(--serif); }
.how-points p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.site-footer { max-width: 1240px; min-height: 82px; margin: auto; padding: 17px 44px; display: flex; align-items: center; gap: 24px; }
.site-footer > span { margin-right: auto; color: var(--muted); font-size: .7rem; }
.site-footer > a:last-child { font-size: .7rem; text-decoration: none; }
.footer-brand { font-size: .85rem; }
.footer-brand .brand-mark { width: 24px; height: 24px; font-size: .98rem; }

.course-page { min-height: 100vh; }
.course-header { max-width: 1060px; min-height: 72px; margin: auto; padding: 0 30px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.course-header .brand { margin-right: auto; }
.back-link { margin-left: auto; color: var(--muted); font-size: .8rem; text-decoration: none; }
.back-link:hover { color: var(--green); }
.course-shell { max-width: 1060px; margin: auto; padding: 48px 30px 74px; }
.course-intro { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.course-intro h1 { max-width: 750px; margin: 13px 0 9px; font-size: clamp(2.8rem, 6vw, 4.5rem); }
.course-intro p { max-width: 610px; margin: 0; color: var(--muted); }
.course-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 47px; padding-top: 30px; }
.lesson-sidebar h2 { margin: 0 0 13px; font: 1.1rem var(--serif); }
.lesson-list { display: grid; gap: 7px; }
.lesson-pick { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.lesson-pick:hover { background: #eeeee7; }
.lesson-pick.is-current { border-color: #d8ded5; background: var(--white); }
.lesson-pick.is-complete .lesson-number { background: var(--green); color: white; }
.lesson-number { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; background: #e9e9e1; color: var(--muted); font-size: .7rem; }
.lesson-pick-title { display: grid; gap: 2px; font-size: .75rem; font-weight: 600; }
.lesson-pick-title small { color: var(--muted); font-size: .64rem; font-weight: 400; }
.lesson-content { min-width: 0; padding: 25px 29px 29px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.lesson-kicker { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.lesson-content h2 { margin: 7px 0 21px; font-size: 2rem; line-height: 1.12; }
.lesson-body p { color: #4e5b55; font-size: .91rem; line-height: 1.8; }
.lesson-body h3 { margin: 24px 0 9px; font: 1.2rem var(--serif); }
.lesson-example { overflow-x: auto; margin: 18px 0; padding: 17px 19px; border-radius: 8px; background: #24362f; color: #eef3ed; font: .84rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.lesson-callout { margin: 18px 0; padding: 13px 16px; border-left: 3px solid var(--gold); background: #f4f0e6; color: #59635b; font-size: .8rem; }
.quiz { margin-top: 27px; padding: 19px; border: 1px solid #e3e5dd; border-radius: 9px; background: #faf9f4; }
.quiz h3 { margin: 0 0 7px; font: 1.15rem var(--serif); }
.quiz-question { margin: 0 0 13px; font-size: .82rem; font-weight: 600; }
.quiz-options { display: grid; gap: 7px; }
.quiz-option { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; font-size: .78rem; }
.quiz-option:hover:not(:disabled) { border-color: #8da293; }
.quiz-option:disabled { cursor: default; }
.quiz-option.is-right { border-color: #8eaa96; background: #e8f0e8; }
.quiz-option.is-wrong { border-color: #d6a09a; background: #f8e9e5; }
.quiz-feedback { min-height: 23px; margin: 11px 0 0; color: var(--muted); font-size: .76rem; }
.quiz-feedback.is-right { color: var(--green); }
.quiz-feedback.is-wrong { color: #a3443b; }
.course-progress { margin-top: 20px; color: var(--muted); font-size: .73rem; }
.course-progress strong { color: var(--green-dark); }
.course-footer { max-width: 1060px; margin: auto; padding: 18px 30px 35px; color: var(--muted); font-size: .72rem; }
.not-found { max-width: 700px; margin: 70px auto; padding: 0 24px; text-align: center; }
.not-found h1 { margin: 0 0 14px; font-size: 3.3rem; }

@media (max-width: 800px) {
  .site-header { padding: 0 24px; gap: 24px; }
  .hero { min-height: auto; padding: 66px 24px 40px; grid-template-columns: 1fr 1fr; gap: 16px; }
  h1 { font-size: clamp(3rem, 7.5vw, 4.5rem); }
  .hero-art { min-height: 310px; }
  .art-book { transform: translateX(-50%) rotate(-5deg) scale(.82); }
  .art-note { font-size: .62rem; }
  .classes-section { padding: 50px 24px 63px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-section { grid-template-columns: 1fr; gap: 35px; padding: 52px 24px 59px; }
  .site-footer { padding-inline: 24px; }
}
@media (max-width: 560px) {
  .site-header { min-height: 65px; padding: 0 18px; gap: 10px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; padding: 8px 12px; font-size: .72rem; }
  .hero { padding: 52px 20px 31px; grid-template-columns: 1fr; }
  h1 { max-width: 450px; margin-top: 18px; font-size: clamp(3.3rem, 14vw, 4.2rem); }
  .hero-intro { font-size: .94rem; }
  .hero-facts { gap: 0; justify-content: space-between; margin-top: 34px; }
  .hero-facts span { font-size: .6rem; }
  .hero-art { min-height: 275px; max-width: 420px; justify-self: center; margin-top: 10px; }
  .art-sun { top: 35px; width: 100px; height: 100px; }
  .art-book { top: 78px; transform: translateX(-50%) rotate(-5deg) scale(.74); }
  .art-note { padding: 8px 11px; }
  .note-top { top: 20px; right: 14px; }
  .note-bottom { bottom: 19px; left: 13px; }
  .classes-section { padding: 43px 20px 52px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 19px; }
  .section-heading h2 { font-size: 2.35rem; }
  .search-box { min-width: 0; }
  .filter-row { margin: 19px 0 15px; }
  .course-grid { grid-template-columns: 1fr; gap: 11px; }
  .course-card { min-height: 246px; padding: 18px; }
  .shelf-note { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; }
  .shelf-note p { flex-basis: calc(100% - 48px); }
  .shelf-coming { margin-left: 45px; }
  .how-section { padding: 45px 20px 50px; }
  .how-heading h2 { font-size: 2.5rem; }
  .how-points { grid-template-columns: 1fr; gap: 20px; }
  .how-points article { display: grid; grid-template-columns: 34px 1fr; column-gap: 9px; }
  .point-number { grid-row: span 2; padding-top: 5px; }
  .how-points h3 { margin: 0 0 5px; }
  .site-footer { min-height: 74px; padding: 14px 20px; gap: 11px; flex-wrap: wrap; }
  .site-footer > span { font-size: .63rem; }
  .site-footer > a:last-child { display: none; }
  .course-header { min-height: 64px; padding: 0 17px; }
  .course-header .back-link { font-size: .71rem; }
  .course-shell { padding: 35px 17px 51px; }
  .course-intro h1 { font-size: 3rem; }
  .course-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .lesson-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .lesson-pick { gap: 7px; padding: 8px 5px; }
  .lesson-content { padding: 19px 17px 21px; }
  .lesson-content h2 { font-size: 1.7rem; }
  .course-footer { padding: 14px 17px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
