/* Homepage: a single quiet page with the courses. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #fbfaf5;
  --ink: #2a211b;
  --muted: #8e8a83;
  --line: #cfcac0;
  --olive: #66784f;
  --olive-dark: #536340;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--serif); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 12px; background: #fff; }

.home-header, .home-footer, main { width: min(100% - 3rem, 1260px); margin-inline: auto; }

.home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 24px; border-bottom: 1px solid var(--line); }
.home-brand { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.home-nav { display: flex; gap: clamp(20px, 3.4vw, 48px); font-family: var(--sans); font-size: 1.2rem; }
.home-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

main { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(56px, 10vw, 112px) clamp(40px, 6vw, 48px); }
.home-title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 360; line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; }

.offer-group { width: min(100%, 820px); margin-top: clamp(40px, 5vw, 56px); scroll-margin-top: 24px; text-align: left; }
.offer-group + .offer-group { margin-top: clamp(28px, 4vw, 44px); }
.group-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.course { padding-block: clamp(24px, 3vw, 32px); scroll-margin-top: 24px; }
.course + .course { border-top: 1px solid var(--line); }
.course-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }
.course h3 { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 380; line-height: 1.05; letter-spacing: -.01em; }
.course-buy { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 68px; padding: 0 32px; background: var(--olive); color: #fff; border-radius: 4px; font-size: 1.65rem; transition: background .15s; }
.course-buy:hover { background: var(--olive-dark); }
.course-soon { display: none; margin-top: 20px; font-family: var(--sans); font-size: 1.05rem; color: var(--ink); }
.course-soon:target { display: block; }

.home-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-block: 28px 40px; border-top: 1px solid var(--line); text-align: center; }
.home-footer-link { font-family: var(--sans); font-size: .95rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.home-footer-link:hover { color: var(--ink); }
.home-nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

/* About and Terms pages */
main.page { align-items: stretch; text-align: left; width: min(100% - 3rem, 820px); }
.page-title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 360; line-height: 1.1; letter-spacing: -.012em; text-align: center; }
.page-lede { margin: 18px auto 0; max-width: 34ch; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; text-align: center; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.person img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 4px; }
.person h2 { margin-top: 20px; font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
.person p, .terms p { margin-top: 12px; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; color: #4a423c; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding: 0; list-style: none; font-family: var(--sans); font-size: 1.05rem; }
.social a { color: var(--olive-dark); text-decoration: underline; text-underline-offset: 3px; }
.social a:hover { color: var(--ink); }
.terms { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.terms section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.terms h2 { font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
.terms a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .home-header, .home-footer, main { width: calc(100% - 2rem); }
  .home-header { padding-block: 20px 16px; gap: 12px; }
  .home-brand { font-size: 1.3rem; }
  .home-title br { display: none; }
  main.page { width: calc(100% - 2rem); }
  .people { grid-template-columns: 1fr; gap: 40px; }
  .home-nav { gap: 16px; font-size: 1.05rem; }
  .group-title { text-align: center; }
  .course-row { flex-direction: column; align-items: stretch; gap: 20px; text-align: center; }
  .course-buy { width: 100%; min-width: 0; min-height: 64px; font-size: 1.45rem; }
}
@media (max-width: 380px) {
  .home-header { flex-direction: column; align-items: center; }
}
