:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #193248;
  background: #f4f8fc;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; }
.site-header { padding: 1rem max(1rem, calc((100% - 1100px) / 2)); background: #fff; border-bottom: 1px solid #d9e4ef; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.brand { color: #075a9d; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.header-link { color: #075a9d; font-weight: 650; text-decoration: none; }
.hero { padding: 3rem 1.25rem; background: linear-gradient(135deg, #074f88, #0878aa); color: white; }
.hero-inner, main { width: min(100% - 2rem, 1000px); margin: 0 auto; }
.eyebrow { color: #cbeaff; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; font-size: .8rem; }
h1 { margin: .4rem 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
.hero p { max-width: 720px; color: #e6f4ff; }
.stats { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.stat { padding: .45rem .8rem; border: 1px solid #8ec9ec; border-radius: 999px; font-size: .9rem; }
main { padding: 2rem 0 4rem; }
.access-note { background: #e8f5ff; border-left: 4px solid #0878aa; border-radius: .4rem; padding: .8rem 1rem; margin-bottom: 1.5rem; }
.progress-card, .unit { background: white; border: 1px solid #d9e4ef; border-radius: .8rem; box-shadow: 0 3px 12px #0c35530c; }
.progress-card { padding: 1.2rem; margin-bottom: 1.4rem; }
.progress-line { height: .6rem; border-radius: 1rem; background: #e5edf4; overflow: hidden; margin-top: .5rem; }
.progress-fill { width: 0; height: 100%; background: #178853; transition: width .2s ease; }
.units { display: grid; gap: 1rem; }
.unit { padding: 1.2rem; }
.unit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.unit h2 { font-size: 1.2rem; margin: 0; color: #074f88; }
.unit-number { flex: none; color: #5b7285; font-weight: 700; }
.unit p { margin: .5rem 0; }
.unit h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.phrases { display: grid; gap: .4rem; padding: 0; margin: .5rem 0; list-style: none; }
.phrases li { background: #f4f8fc; padding: .6rem .75rem; border-radius: .4rem; }
.phrases strong { color: #075a9d; }
.unit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
button { font: inherit; cursor: pointer; }
.complete-button, .quiz-button { border: 0; background: #075a9d; color: white; padding: .6rem .9rem; border-radius: .45rem; font-weight: 700; }
.complete-button[aria-pressed="true"] { background: #178853; }
.quiz { border-top: 1px solid #e2eaf1; margin-top: 1rem; padding-top: .6rem; }
.quiz legend { font-weight: 700; }
.quiz label { display: block; padding: .35rem 0; }
.feedback { min-height: 1.5rem; font-weight: 700; }
.status { color: #51697d; min-height: 1.5rem; }
.level-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.level-nav a { text-decoration: none; border: 1px solid #c9d9e7; padding: .4rem .7rem; border-radius: 999px; background: white; color: #075a9d; }
.level-nav a[aria-current="page"] { color: white; background: #075a9d; }
.footer { color: #5b7285; margin-top: 2rem; font-size: .9rem; }
@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { padding: 2.3rem 1rem; }
  .unit { padding: 1rem; }
}
