@font-face {
  font-family: Geist;
  src: url('./assets/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('./assets/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --ink: #20201d;
  --muted: #696860;
  --white: #fffef9;
  --blue: #315acc;
  --line: #dcd8ce;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input {
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.wrap { max-width: 1328px; padding-inline: 44px; margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 10px; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.brand span { font-size: 32px; font-weight: 740; letter-spacing: -.065em; }
.brand img { width: 40px; height: 40px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-current { color: var(--ink); }

/* Introduction */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 45px 48px;
}
.eyebrow { font-size: 10px; letter-spacing: .1em; font-weight: 650; line-height: 1.5; }
h1 {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -.065em;
  margin: 18px 0 20px;
}
h1 em { color: var(--blue); letter-spacing: -.06em; }
.hero-description { max-width: 480px; color: #5c5d57; font-size: 15px; line-height: 1.7; }
.hero-actions { margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
}
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #244cb9; }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.secondary:hover { background: #ece7db; }
.hero-art { display: flex; justify-content: flex-end; min-width: 0; }
.hero-project {
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid #20201d16;
  border-radius: 12px;
  background: #dcdcf1;
  box-shadow: 0 8px 24px #39362a08;
}
.hero-project > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* Course library */
.library { padding-top: 18px; padding-bottom: 54px; scroll-margin-top: 20px; }
.library-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.library h2 { font-size: 31px; line-height: 1.2; letter-spacing: -.05em; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 286px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9f6ef;
}
.search-box svg { width: 16px; height: 16px; color: var(--muted); }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: none;
  color: var(--ink);
}
.search-box:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: var(--muted); }
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px 12px;
  border-bottom: 1px solid var(--line);
}
.topic-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filter {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.filter.active { background: var(--ink); color: var(--white); }
.filter:not(.active):hover { background: #e9e4d8; }
.saved-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 0 10px 16px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.saved-filter svg { width: 15px; height: 17px; }
.saved-filter > span { color: var(--muted); font-size: 11px; }
.saved-filter[aria-pressed=true] { color: var(--blue); }
.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 17px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 23px; align-items: start; }
.course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ddd9cf;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px #39362a03;
  transition: box-shadow .2s, border-color .2s;
}
.course-card:hover { border-color: #cbc6ba; box-shadow: 0 5px 16px #39362a08; }
.course-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid #20201d12; background: #ddd; }
.course-art > img { width: 100%; height: 100%; object-fit: cover; }
.save-course {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.save-course::before {
  content: '';
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid #20201d1a;
  border-radius: inherit;
  background: #fffef9ed;
  transition: background .18s;
}
.save-course svg { position: relative; width: 14px; height: 16px; }
.save-course:hover::before { background: white; }
.save-course[aria-pressed=true] { color: var(--blue); }
.save-course[aria-pressed=true] svg { fill: #315acc25; }
.course-content { padding: 19px 20px 0; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 11px; color: var(--muted); }
.course-category { font-weight: 550; color: #5e6250; }
.course-duration { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.course-duration svg { width: 12px; height: 12px; }
.course-content h3 { font-size: 23px; line-height: 1.16; font-weight: 600; letter-spacing: -.045em; margin-bottom: 10px; }
.course-description { min-height: 43px; color: #696860; font-size: 13px; line-height: 1.65; }
.course-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 0;
  border-top: 1px solid #e9e5db;
}
.outline-toggle, .start-course {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
}
.outline-toggle { color: var(--muted); }
.outline-toggle:hover { color: var(--ink); }
.outline-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.outline-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.start-course { font-weight: 600; color: var(--blue); }
.start-course:hover { color: #192f78; }
.start-course svg { width: 14px; height: 14px; }
.lesson-outline { padding: 0 20px 12px; list-style: none; margin: 0; }
.lesson-outline li { border-top: 1px solid #e9e5db; }
.lesson-outline button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 12px 0; text-align: left; font-size: 12px; }
.lesson-outline button:hover { color: var(--blue); }
.lesson-num { color: var(--muted); font-family: 'Geist Mono', monospace; font-size: 10px; }
.lesson-name { flex: 1; line-height: 1.4; }
.lesson-outline svg { width: 13px; height: 13px; }
.lesson-outline small { font-size: 10px; white-space: nowrap; color: var(--muted); }
.empty-state { padding: 55px 20px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.empty-state h3 { margin-bottom: 12px; font-size: 28px; }
.empty-state p { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Supporting information */
.grown-ups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}
.grown-copy { max-width: 680px; }
.grown-copy h2 { margin-bottom: 9px; font-size: 25px; line-height: 1.25; }
.grown-copy p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.text-button svg { width: 16px; height: 16px; }
.text-button:hover { color: var(--blue); }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  border-top: 1px solid var(--line);
}
.site-footer .brand span { font-size: 24px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer > button { min-height: 44px; padding: 12px 0; color: var(--muted); font-size: 11px; }
.site-footer > button:hover { color: var(--ink); }

/* Sign-in and information dialogs */
dialog {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: 90dvh;
  overflow: auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 100px #20201d25;
}
dialog::backdrop { background: #24231f66; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.dialog-close:hover { background: #e7e2d8; }
.dialog-close svg { width: 18px; height: 18px; }
.modal-brand { width: 40px; height: 40px; margin-bottom: 24px; }
.modal-eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 600; }
.modal-title { margin-bottom: 14px; padding-right: 16px; font-size: 34px; line-height: 1.1; letter-spacing: -.055em; }
.modal-title:focus { outline: none; }
.modal-description { color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.selected-lesson { display: flex; align-items: center; gap: 12px; margin: 23px 0; padding: 15px 0; border-block: 1px solid var(--line); }
.selected-lesson img { width: 58px; height: 45px; flex-shrink: 0; object-fit: cover; border-radius: 5px; }
.selected-lesson strong { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.selected-lesson small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.entry-form { margin-top: 25px; }
.field-label { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 600; }
.entry-form input, .entry-form select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #ccc9be; border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 16px; }
.entry-form .button { width: 100%; margin-top: 17px; }
.verification-code { font-family: 'Geist Mono', monospace; letter-spacing: .4em; text-align: center; font-size: 22px !important; }
.code-error { min-height: 16px; margin-top: 9px; color: #a44228; font-size: 11px; line-height: 1.5; }
.back-button { min-height: 44px; padding: 12px 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.interest-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.interest-options button { min-height: 44px; padding: 10px; border: 1px solid #d5d0c4; border-radius: var(--radius); font-size: 12px; }
.interest-options button[aria-pressed=true] { color: white; background: var(--ink); border-color: var(--ink); }
.modal-list { margin: 20px 0; padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal-list li + li { margin-top: 8px; }
.full-width { width: 100%; margin-top: 22px; }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 20;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  box-shadow: 0 4px 20px #20201d20;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .wrap { padding-inline: 30px; }
  .hero { gap: 32px; padding-block: 42px; }
  .hero-description { font-size: 14px; }
  .library h2 { font-size: 28px; }
  .search-box { width: 250px; }
  .course-grid { gap: 22px 18px; }
  .course-content { padding: 17px 17px 0; }
  .course-content h3 { font-size: 21px; }
  .course-description { font-size: 12px; min-height: 59px; }
  .course-meta { font-size: 10px; }
  .outline-toggle, .start-course { font-size: 11px; }
  .lesson-outline { padding-inline: 17px; }
  .filter { padding-inline: 10px; font-size: 11px; }
  .grown-copy h2 { font-size: 23px; }
}

@media (max-width: 800px) {
  .wrap { padding-inline: 24px; }
  .site-header { min-height: 80px; }
  .brand span { font-size: 29px; }
  .brand img { width: 36px; height: 36px; }
  .main-nav { gap: 24px; }
  .main-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1.2fr 1fr; gap: 24px; padding-block: 38px; }
  h1 { font-size: 48px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .07em; }
  .hero-description { font-size: 13px; }
  .hero-actions { margin-top: 20px; }
  .library-heading-row { gap: 24px; }
  .library h2 { font-size: 27px; }
  .search-box { width: 220px; }
  .library-toolbar { gap: 12px; }
  .topic-filters { gap: 2px; }
  .filter { padding-inline: 9px; font-size: 10px; }
  .saved-filter { padding-left: 12px; font-size: 11px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .course-content h3 { font-size: 23px; }
  .course-description { min-height: 60px; font-size: 13px; }
  .course-actions { margin-top: 16px; }
  .grown-ups { gap: 28px; }
  .grown-copy h2 { font-size: 22px; }
  .grown-copy p { font-size: 12px; }
  .text-button { font-size: 11px; gap: 8px; }
}

@media (max-width: 580px) {
  .wrap { padding-inline: 20px; }
  .site-header { min-height: 77px; gap: 18px; }
  .brand span { font-size: 27px; }
  .brand img { width: 33px; height: 33px; }
  .main-nav { gap: 14px; flex-wrap: nowrap; }
  .main-nav > a { display: none; }
  .hero { display: block; padding-block: 34px 32px; }
  .hero-art { display: none; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .085em; }
  h1 { font-size: 53px; line-height: 1.02; margin: 18px 0; }
  .hero-description { max-width: 370px; font-size: 14px; }
  .hero-actions { margin-top: 22px; }
  .library { padding-top: 16px; padding-bottom: 32px; }
  .library-heading-row { display: block; }
  .library h2 { max-width: 300px; font-size: 28px; line-height: 1.13; }
  .search-box { width: 100%; margin-top: 19px; }
  .search-box input { font-size: 16px; }
  .library-toolbar { gap: 12px; padding-block: 13px 9px; }
  .topic-filters { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 5px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
  .filter { flex-shrink: 0; padding-inline: 11px; font-size: 11px; }
  .saved-filter { padding-left: 12px; gap: 5px; }
  .saved-filter svg { width: 14px; height: 16px; }
  .library-meta { gap: 10px; padding-block: 14px; align-items: flex-start; font-size: 10px; }
  .course-grid { grid-template-columns: 1fr; gap: 22px; }
  .course-art { aspect-ratio: 16 / 8.5; }
  .course-content { padding: 19px 20px 0; }
  .course-meta { font-size: 11px; margin-bottom: 12px; }
  .course-content h3 { font-size: 27px; }
  .course-description { min-height: 0; font-size: 13px; }
  .course-actions { margin-top: 18px; padding-block: 6px; }
  .outline-toggle, .start-course { font-size: 12px; }
  .lesson-outline { padding-inline: 20px; }
  .grown-ups { display: block; padding-block: 28px 22px; }
  .grown-copy h2 { max-width: 320px; font-size: 25px; }
  .grown-copy p { max-width: 370px; font-size: 13px; }
  .text-button { margin-top: 10px; font-size: 12px; }
  .site-footer { min-height: 82px; gap: 20px; }
  .site-footer > button { font-size: 10px; }
  .toast { bottom: 16px; font-size: 11px; }
  dialog { padding: 30px 25px; }
  .modal-title { font-size: 31px; padding-right: 18px; }
  .modal-brand { margin-bottom: 20px; }
}

@media (max-width: 360px) {
  .site-header { padding-block: 10px; }
  .main-nav { gap: 0; }
  .main-nav a { min-height: 32px; }
  h1 { font-size: 45px; }
  .course-content { padding-inline: 17px; }
  .course-content h3 { font-size: 25px; }
  .course-meta { font-size: 10px; }
  .outline-toggle, .start-course { font-size: 11px; }
  .lesson-outline { padding-inline: 17px; }
  .lesson-outline button { gap: 7px; font-size: 11px; }
  .grown-copy h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Your library */
.account-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 0 2px 8px; font-size: 12px; font-weight: 550; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6e8f3; color: #314b90; font-size: 12px; }
.account-button svg { width: 13px; height: 13px; }
.account-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button.account-entry { padding-inline: 8px; color: var(--blue); }
.account-button.account-entry .account-name { display: inline; max-width: none; }
.learner-home { padding-block: 42px 35px; }
.welcome-heading { overflow-wrap: anywhere; margin: 8px 0 10px; font-size: 40px; line-height: 1.12; }
.welcome-description { color: var(--muted); font-size: 14px; line-height: 1.65; }
.continue-card { display: flex; align-items: center; gap: 24px; padding: 22px; margin-top: 27px; border: 1px solid #ccd3e9; border-radius: 12px; background: #edf0f8; }
.continue-card > img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.continue-copy { flex: 1; min-width: 0; }
.continue-copy .eyebrow { color: #485b8d; font-size: 9px; }
.continue-copy h3 { margin: 8px 0 7px; font-size: 27px; line-height: 1.2; }
.continue-copy p { color: #59647e; font-size: 12px; line-height: 1.6; }
.continue-card .button { flex-shrink: 0; }
.library-views { display: flex; gap: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.library-views button { position: relative; min-height: 44px; padding: 0 0 13px; font-size: 13px; color: var(--muted); }
.library-views button[aria-pressed=true] { color: var(--ink); font-weight: 600; }
.library-views button[aria-pressed=true]::after { position: absolute; content: ''; height: 2px; bottom: -1px; inset-inline: 0; background: var(--ink); }

.library-views:not([hidden]) { margin-top: 24px; margin-bottom: 3px; }
.course-progress { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #59644a; margin-top: 15px; }
.course-progress svg, .lesson-status svg { width: 13px; height: 13px; }
.course-progress + .course-actions { margin-top: 12px; }
.lesson-status { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.outline-soon { color: var(--muted); }
.start-course:disabled { color: var(--muted); }
.profile-email { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.profile-note { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.profile-signout { margin-top: 16px; width: 100%; min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.completed-list { display: grid; gap: 12px; margin-top: 25px; }
.completed-lesson { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.completed-lesson > img { width: 94px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.completed-lesson .completed-copy { flex: 1; }
.completed-lesson h3 { font-size: 21px; margin: 7px 0; }
.completed-lesson p { font-size: 12px; color: var(--muted); }
.completed-label { display: flex; align-items: center; gap: 5px; color: #59644a; font-size: 11px; }
.completed-label svg { width: 13px; height: 13px; }
.completed-lesson .text-button { color: var(--blue); }
@media (max-width: 800px) {
  .continue-card { gap: 18px; }
  .continue-card > img { width: 115px; }
  .continue-copy h3 { font-size: 23px; }
  .account-name { display: none; }
  body.is-signed-in .main-nav { gap: 20px; }
}
@media (max-width: 580px) {
  .learner-home { padding-block: 30px 22px; }
  .welcome-heading { overflow-wrap: anywhere; font-size: 34px; }
  .welcome-description { font-size: 13px; }
  .continue-card { display: grid; grid-template-columns: 68px 1fr; gap: 16px 13px; padding: 18px; margin-top: 22px; }
  .continue-card > img { width: 68px; height: 68px; object-fit: cover; }
  .continue-copy h3 { font-size: 22px; }
  .continue-card .button { grid-column: 1 / -1; width: 100%; }
  .continue-copy p { font-size: 11px; }
  .library-views { gap: 25px; }
  .library-views button { font-size: 12px; }
  body.is-signed-in .main-nav > a[href="#grown-ups"] { display: none; }
  .completed-lesson { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .completed-lesson > img { width: 67px; }
  .completed-lesson h3 { font-size: 20px; }
  .completed-lesson .text-button { width: 100%; justify-content: flex-end; margin: 0; }
}

#library-heading:focus { outline: none; }

body.is-signed-in .main-nav > a[href="#grown-ups"] { display: none; }
.welcome-heading:focus, #hero-heading:focus { outline: none; }

.account-save-banner { display:flex; gap:12px; align-items:center; justify-content:center; padding:12px 20px; background:#f0e4cf; color:#54452e; font-size:13px; }
.account-save-banner button { text-decoration:underline; text-underline-offset:3px; font-weight:600; min-height:36px; flex-shrink:0; }
.adult-confirmation { display:flex; align-items:flex-start; gap:10px; margin-block:8px; font-size:12px; color:var(--muted); line-height:1.6; }
.adult-confirmation input { width:18px; height:18px; flex:0 0 18px; margin-top:3px; }
.adult-confirmation button { display:inline; text-decoration:underline; text-underline-offset:2px; font-size:inherit; }
.account-inline-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; }
.account-inline-actions .back-button { min-height:44px; }
.family-learners { display:flex; gap:8px; flex-wrap:wrap; margin:20px 0; }
.family-learners button { padding:10px 14px; min-height:44px; border:1px solid var(--line); border-radius:7px; font-size:13px; }
.family-learners [aria-pressed=true] { background:#e7ebf7; color:var(--blue); border-color:var(--blue); }
.account-management { border-top:1px solid var(--line); margin-top:22px; padding-top:18px; font-size:12px; line-height:1.7; }
.account-management summary { cursor:pointer; min-height:35px; }
.account-management .back-button { display:block; margin:8px 0; color:#804135; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; justify-content:flex-end; }
.footer-links button { min-height:44px; color:var(--muted); font-size:12px; }
.policy-copy { font-size:14px; line-height:1.75; color:var(--muted); margin:20px 0 28px; }
.policy-copy h3 { color:var(--ink); font-size:17px; margin:24px 0 8px; }
.policy-copy p { margin:12px 0; }
.policy-copy a { color:var(--blue); text-decoration:underline; }
.entry-form input:not([type=checkbox]) { font-size:16px; }
.entry-form button:disabled, .back-button:disabled { opacity:.55; cursor:wait; }
@media (max-width:580px) {
  .site-footer { flex-wrap:wrap; padding-block:18px; }
  .footer-links { gap:18px; }
  .footer-links button { font-size:11px; }
  .account-save-banner { align-items:flex-start; font-size:12px; }
}

.legal-page { max-width: 820px; padding-block: 36px 70px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.045em; max-width: 700px; }
.legal-page .policy-copy { font-size: 16px; line-height: 1.8; }
.legal-page .policy-copy h2 { font-size: 21px; margin-top: 36px; }
.policy-date { font-size: 12px; letter-spacing: .02em; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
@media (max-width:580px) { .legal-page { padding-top: 24px; } .legal-page .policy-copy { font-size: 15px; } }
