@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('./public-fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('./public-fonts/manrope-latin-wght-normal.woff2') format('woff2');
}
:root {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: #283d34;
  background: #f7f8f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #315e48;
  --line: #e0e6dc;
  --muted: #5e6e61;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid #6d944b;
  outline-offset: 5px;
  border-radius: 3px;
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, sans-serif;
  color: #233b31;
}
h1 {
  font-size: clamp(2rem, 4.3vw, 3.45rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin: 0.25em 0 0.45em;
}
h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 1.4em 0 0.6em;
}
h3 {
  font-size: 1.13rem;
  line-height: 1.4;
  margin: 1.3em 0 0.4em;
}
p,
li,
dd {
  line-height: 1.8;
}
p {
  margin: 0.7em 0 1em;
}
ul {
  padding-left: 1.4em;
}
li {
  margin: 0.45em 0;
}
strong {
  font-weight: 650;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 5;
  background: #fff;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px;
  min-height: 95px;
  padding: 20px 36px;
  margin: auto;
  display: flex;
  gap: 36px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.brand-icon {
  display: flex;
  flex-shrink: 0;
  width: 36px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #254a3b;
  color: #d8e9bb;
  transform: rotate(-3deg);
}
.brand-dot {
  color: #72985e;
}
.brand small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: -2px;
}
.header-inner nav {
  display: flex;
  gap: 26px;
  flex: 1;
  align-items: center;
}
.header-inner nav a,
.account-links > a:not(.button) {
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 550;
}
.account-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: background 0.15s;
}
.button:hover {
  background: #244c39;
  text-decoration: none;
}
.page-content {
  max-width: 1240px;
  padding: 28px 40px 90px;
  margin: auto;
}
.breadcrumbs {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0 0 42px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}
.breadcrumbs li {
  margin: 0;
}
.breadcrumbs li + li::before {
  content: '/';
  margin: 0 12px;
  color: #a3ada1;
}
.breadcrumbs a {
  text-decoration: none;
}
.page-intro {
  max-width: 880px;
  margin: 40px 0;
}
.eyebrow {
  font-size: 0.69rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 750;
  color: #667c60;
  margin: 0 0 16px;
}
.lead {
  font-size: 1.16rem;
  line-height: 1.75;
  color: #5b6b5e;
  max-width: 880px;
}
.intro-actions {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  margin: 28px 0;
}
.intro-actions > a:not(.button) {
  font-size: 0.9rem;
  font-weight: 600;
}
.scope-note {
  font-size: 0.78rem;
  color: #657362;
  line-height: 1.75;
  max-width: 900px;
}
.course-stats {
  display: flex;
  gap: 38px;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.course-stats strong {
  display: block;
  font-family: Manrope, sans-serif;
  color: #315e48;
  font-size: 2rem;
  line-height: 1.5;
}
.course-chapter {
  margin: 56px 0;
}
.chapter-heading {
  max-width: 780px;
}
.chapter-heading h2 {
  margin: 0.25em 0;
}
.chapter-heading > p:last-child {
  font-size: 0.95rem;
  color: var(--muted);
}
.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
.lesson-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 25px;
  display: flex;
  gap: 18px;
  margin: 0;
}
.lesson-number {
  color: #769061;
  font-weight: 600;
  font-size: 0.78rem;
  padding-top: 3px;
  flex-shrink: 0;
}
.lesson-card h3 {
  margin: 0;
  font-size: 1rem;
}
.lesson-card h3 a {
  text-decoration: none;
}
.lesson-card h3 a:hover {
  text-decoration: underline;
}
.lesson-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 12px;
}
.reading-time {
  font-size: 0.75rem;
  color: #667562;
}
.study-cta {
  background: #edf3e8;
  padding: 30px 34px;
  border: 1px solid #dce6d3;
  border-radius: 14px;
  margin: 40px 0;
}
.study-cta h2 {
  margin: 0 0 12px;
}
.study-cta p {
  font-size: 0.95rem;
  max-width: 760px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(200px, 1fr);
  gap: 70px;
  align-items: start;
}
.article-heading {
  margin: 20px 0 40px;
}
.article-heading .lead {
  font-size: 1.12rem;
}
.lesson-article > section {
  margin: 38px 0;
}
.lesson-article section p,
.lesson-article section li {
  font-size: 0.97rem;
}
.lesson-article .introduction {
  font-size: 1.03rem;
}
.lesson-sidebar {
  border-left: 1px solid var(--line);
  padding: 24px 0 0 28px;
  margin-top: 30px;
}
.lesson-sidebar h2 {
  font-size: 1.25rem;
  margin: 0 0 15px;
}
.lesson-sidebar p {
  font-size: 0.85rem;
  color: var(--muted);
}
.lesson-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.82rem;
}
.example-panel {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.example-panel h2 {
  margin-top: 0;
}
.misconception-panel {
  border-left: 4px solid #9bb77b;
  background: #f0f4eb;
  padding: 8px 26px 15px;
}
.misconception-panel h2 {
  margin-top: 0.6em;
}
.memory-cue {
  font-weight: 650;
  color: var(--green);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  width: 100%;
  min-width: 390px;
  background: #fff;
  font-size: 0.88rem;
}
th,
td {
  padding: 18px 22px;
  vertical-align: top;
  line-height: 1.75;
  border-bottom: 1px solid var(--line);
  width: 50%;
}
th {
  background: #edf3e8;
  color: #315e48;
}
tr:last-child td {
  border-bottom: 0;
}
td + td,
th + th {
  border-left: 1px solid var(--line);
}
.lesson-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 35px 0;
}
.lesson-navigation > div:last-child {
  text-align: right;
}
.lesson-navigation span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.lesson-navigation a {
  font-size: 0.92rem;
  font-weight: 600;
}
.alphabet-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 30px;
  border-bottom: 1px solid var(--line);
}
.alphabet-nav a {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #edf3e8;
  font-weight: 650;
  text-decoration: none;
}
.glossary-content {
  max-width: 870px;
}
.glossary-letter {
  scroll-margin-top: 25px;
  color: #6c8759;
  font-size: 2.3rem;
}
.glossary-entry {
  border-top: 1px solid var(--line);
  padding: 23px 0;
  scroll-margin-top: 20px;
}
.glossary-entry dt {
  font-family: Manrope, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.glossary-entry dd {
  margin: 10px 0 0;
  color: #4c5f50;
}
.legal-article {
  max-width: 850px;
  margin: 0 auto;
}
.legal-article section {
  margin: 40px 0;
}
.independence-callout {
  background: #edf3e8;
  border-left: 4px solid #9bb77b;
  padding: 18px 22px;
  font-size: 0.92rem;
}
.legal-article .article-heading p {
  line-height: 1.85;
}
.legal-contents {
  background: #edf3e8;
  border-radius: 12px;
  padding: 18px 28px;
  margin: 25px 0 45px;
  font-size: 0.88rem;
}
.legal-contents ol {
  margin: 0;
  padding-left: 20px;
}
.legal-article section[id] {
  scroll-margin-top: 25px;
}
.source-list > li {
  margin: 24px 0;
}
.source-list p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4em 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 45px 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 50px;
}
.footer-inner > div p {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  gap: 14px 25px;
  align-content: start;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 0.82rem;
}
.independence {
  grid-column: 1/-1;
  font-size: 0.72rem;
  color: #657362;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1080px) {
  .header-inner {
    gap: 25px;
    padding: 18px 28px;
  }
  .header-inner nav {
    gap: 18px;
  }
  .header-inner nav a {
    font-size: 0.8rem;
  }
  .account-links {
    gap: 18px;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 35px;
  }
  .lesson-sidebar {
    padding-left: 22px;
  }
}
@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 18px 24px;
    padding: 16px 24px;
  }
  .header-inner > .brand {
    flex: 1;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    flex: auto;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .header-inner nav a {
    font-size: 0.82rem;
  }
  .page-content {
    padding: 24px 26px 60px;
  }
  .reading-layout {
    display: block;
  }
  .lesson-sidebar {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
  }
  .lesson-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .lesson-list {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    padding: 22px;
  }
  .breadcrumbs {
    margin-bottom: 30px;
  }
  .course-stats {
    gap: 26px;
    flex-wrap: wrap;
  }
  .course-stats span {
    font-size: 0.78rem;
  }
  .course-stats strong {
    font-size: 1.7rem;
  }
  .site-footer {
    padding: 34px 26px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner nav {
    padding: 0;
  }
  .page-intro {
    margin: 30px 0;
  }
}
@media (max-width: 440px) {
  :root {
    font-size: 17px;
  }
  .header-inner {
    padding: 16px 18px;
    gap: 16px;
  }
  .brand {
    font-size: 1.85rem;
  }
  .account-links {
    gap: 14px;
  }
  .account-links > a:not(.button) {
    font-size: 0.78rem;
  }
  .account-links .button {
    padding: 10px 13px;
    font-size: 0.77rem;
    min-height: 44px;
  }
  .header-inner nav {
    gap: 14px;
  }
  .header-inner nav a {
    font-size: 0.72rem;
    min-height: 30px;
    display: flex;
    align-items: center;
  }
  .page-content {
    padding: 22px 20px 50px;
  }
  .breadcrumbs {
    font-size: 0.7rem;
  }
  .breadcrumbs li + li::before {
    margin: 0 8px;
  }
  .course-stats {
    gap: 16px;
    justify-content: space-between;
  }
  .course-stats span {
    max-width: 29%;
    font-size: 0.72rem;
  }
  .course-stats strong {
    font-size: 1.6rem;
  }
  .study-cta,
  .example-panel {
    padding: 24px;
  }
  .lesson-card {
    gap: 14px;
    padding: 20px;
  }
  .intro-actions {
    gap: 20px;
  }
  .alphabet-nav {
    gap: 9px;
  }
  .alphabet-nav a {
    width: 36px;
  }
  .lesson-navigation {
    gap: 20px;
  }
  .lesson-navigation a {
    font-size: 0.85rem;
  }
  .site-footer {
    padding: 30px 20px;
  }
  .lead {
    font-size: 1.06rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .lesson-sidebar,
  .study-cta,
  .skip-link {
    display: none;
  }
  .page-content {
    padding: 0;
    max-width: none;
  }
  .reading-layout {
    display: block;
  }
  a {
    color: inherit;
  }
  .lesson-article > section {
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
}
