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

:root {
  --ink: #14251f;
  --muted: #63706a;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #dedfd7;
  --green: #174f3c;
  --rust: #b65432;
  --gold: #d9a441;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
header, main, footer { width: min(1040px, calc(100% - 40px)); margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Libre Franklin", sans-serif; letter-spacing: -.04em; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(2.05rem, 3.8vw, 3.15rem); line-height: 1.08; }
h2 { margin-top: 44px; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.2; }
h3 { font-size: 1rem; }
p, li { max-width: 760px; color: #44544d; font-size: 1rem; line-height: 1.65; }
a { color: var(--green); }

header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line); }
header img { width: 142px; display: block; }
header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
header nav a, .related a { color: #44544d; font-size: .84rem; font-weight: 700; text-decoration: none; }
header nav a:hover, .related a:hover { text-decoration: underline; text-underline-offset: 4px; }

main { padding: 56px 0 74px; }
.eyebrow, .section-kicker { margin: 0 0 9px; color: var(--rust); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 820px; font-size: 1.08rem; line-height: 1.65; }
.lead strong { color: var(--green); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 24px; color: #77827c; font-size: .8rem; }
.breadcrumbs a { color: #55655d; }

.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lesson-grid.subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lesson-grid article { padding: 20px; border: 1px solid var(--line); background: var(--white); }
.lesson-grid article > p:first-child { margin: 0 0 7px; color: var(--rust); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lesson-grid h2 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 1.08rem; letter-spacing: -.015em; }
.lesson-grid h2 a { text-decoration: none; }
.lesson-grid article > p:last-child { margin: 9px 0 0; font-size: .88rem; line-height: 1.5; }

.lesson-facts { max-width: 820px; margin: 27px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.lesson-facts div { min-height: 90px; padding: 17px; display: grid; align-content: center; gap: 4px; border-right: 1px solid var(--line); }
.lesson-facts div:last-child { border-right: 0; }
.lesson-facts strong { color: var(--green); font-family: "Libre Franklin", sans-serif; font-size: 1.2rem; }
.lesson-facts span { color: var(--muted); font-size: .8rem; }
.concepts, .lesson-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; max-width: 820px; padding-left: 22px; }
.lesson-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.why-simple { max-width: 860px; margin: 52px 0; border: 1px solid var(--line); border-top: 4px solid var(--green); background: var(--white); }
.why-heading { padding: 28px 30px 24px; }
.why-heading h2 { margin: 0; }
.why-heading > p:last-child { max-width: 680px; margin: 9px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.why-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f3f1e9; }
.why-steps article { min-width: 0; padding: 21px 22px 22px; border-right: 1px solid var(--line); }
.why-steps article:last-child { border-right: 0; }
.why-steps article > span { display: block; margin-bottom: 13px; color: var(--rust); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.why-steps h3 { margin: 0; color: var(--green); font-size: .96rem; line-height: 1.3; }
.why-steps p { margin: 6px 0 0; color: #526159; font-size: .84rem; line-height: 1.5; }
.why-note { margin: 0; padding: 18px 30px 20px; color: #526159; font-size: .82rem; font-weight: 700; line-height: 1.5; }

.cta { margin-top: 48px; padding: 26px; border-left: 4px solid var(--gold); background: #f3eee2; }
.cta h2 { margin: 0; }
.cta p { margin: 9px 0 18px; }
.button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; border: 1px solid var(--green); background: var(--green); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.related { display: flex; flex-wrap: wrap; gap: 11px 20px; margin-top: 44px; padding-top: 21px; border-top: 1px solid var(--line); }
.related h2 { width: 100%; margin: 0 0 4px; font-size: 1.12rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
footer { padding: 27px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 0; }
footer nav a { display: inline-flex; align-items: center; color: var(--green); font-weight: 700; text-underline-offset: 3px; }
footer nav a + a { margin-left: 16px; padding-left: 16px; border-left: 1px solid #c8cbc4; }

.legal-page { width: min(820px, calc(100% - 40px)); }
.legal-page .lead { margin-bottom: 26px; }
.legal-updated { color: var(--muted); font-size: .82rem; }
.legal-summary { margin: 28px 0 40px; padding: 24px 26px; border: 1px solid #c9d7cf; border-top: 4px solid var(--green); background: #f1f5f2; }
.legal-summary h2 { margin: 0 0 12px; font-size: 1.15rem; }
.legal-summary ul { margin: 0; padding-left: 21px; }
.legal-summary li + li { margin-top: 6px; }
.legal-section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 13px; font-size: 1.3rem; }
.legal-section h3 { margin: 23px 0 7px; color: var(--green); }
.legal-section p:last-child, .legal-section ul:last-child { margin-bottom: 0; }
.legal-section li + li { margin-top: 7px; }
.legal-contact { padding: 24px 26px; border-left: 4px solid var(--gold); background: #f3eee2; }
.legal-contact h2 { margin-top: 0; }

@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; gap: 15px; }
  header nav { justify-content: flex-start; }
  main { padding-top: 42px; }
  h1 { font-size: clamp(1.95rem, 9vw, 2.55rem); }
  .lesson-grid, .lesson-grid.subjects, .lesson-facts, .concepts, .lesson-index { grid-template-columns: 1fr; }
  .lesson-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .lesson-facts div:last-child { border-bottom: 0; }
  .why-heading { padding: 24px 21px 20px; }
  .why-steps { grid-template-columns: 1fr; }
  .why-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 9px; padding: 17px 21px; border-right: 0; border-bottom: 1px solid var(--line); }
  .why-steps article:last-child { border-bottom: 0; }
  .why-steps article > span { margin: 2px 0 0; }
  .why-note { padding: 17px 21px 19px; }
  footer { flex-direction: column; }
  .legal-summary, .legal-contact { padding: 21px; }
}
