:root {
  color-scheme: light;
  --forest: #173c30;
  --paper: #faf9f3;
  --ink: #1e3028;
  --muted: #495e52;
  --rule: #c6d1c4;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #217143; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - clamp(36px, 8vw, 120px))); margin-inline: auto; }
.masthead, footer { background: white; }
.header-row, .footer-row, .brand { display: flex; align-items: center; }
.header-row, .footer-row { justify-content: space-between; gap: 1rem; }
.header-row { min-height: 74px; }
.brand { gap: .95rem; color: var(--forest); font-size: .94rem; font-weight: 650; line-height: 1.15; text-decoration: none; }
.wordmark { width: 80px; height: 45px; overflow: hidden; flex: none; }
.wordmark img { display: block; width: 100%; height: auto; transform: translateY(-23%); }
.brand > span:last-child { border-left: 1px solid var(--rule); padding-left: .95rem; }
.sign-in { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--forest); font-size: .94rem; font-weight: 650; }
.skip { position: fixed; top: -5rem; left: .5rem; z-index: 2; padding: .6rem; background: white; }
.skip:focus { top: .5rem; }

.hero { background: var(--forest); color: var(--paper); }
.hero-layout, .invite-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); }
.hero-layout { align-items: center; padding-block: clamp(2.8rem, 5.8vw, 5.4rem); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(3.15rem, 5.3vw, 4.65rem); letter-spacing: -.055em; line-height: 1.02; }
h1 em { display: block; color: #d7ebae; }
.hero-copy p { max-width: 42ch; color: #e5ecdf; font-size: clamp(1rem, 1.28vw, 1.15rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 46px; border: none; border-radius: .25rem; padding: .7rem 1.2rem; background: var(--forest); color: white; font-weight: 650; text-decoration: none; cursor: pointer; }
.hero .button { margin-top: 1.35rem; color: #172f21; background: #d7ebae; }
.button:hover { filter: brightness(.93); }
.hero :focus-visible { outline-color: #fff; }
.button:disabled { cursor: default; opacity: .75; }

.lessons { padding-block: clamp(2.1rem, 4.5vw, 3.65rem) clamp(2.8rem, 5.5vw, 4.7rem); }
h2 { font-size: clamp(2.15rem, 3.5vw, 3.4rem); letter-spacing: -.045em; line-height: 1.06; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.5vw, 2rem); margin-top: clamp(1.3rem, 2.3vw, 1.9rem); }
.lessons-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; }
.lessons-heading p { color: var(--muted); font-size: .9rem; }
.lesson-card { position: relative; min-width: 0; }
.lesson-card h3 a { color: inherit; text-decoration: none; }
.lesson-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: .3rem; }
.lesson-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lesson-card h3 a:focus-visible { outline: none; }
.lesson-card h3 a:focus-visible::after { outline: 3px solid #217143; outline-offset: 4px; }
.lesson-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e5eade; border-radius: .3rem; }
.lesson-copy { padding-top: .95rem; }
.lesson-copy .lesson-format { margin: 0 0 .45rem; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.4; }
.lesson-topic { margin-bottom: .36rem; color: #426240; font-size: .76rem; font-weight: 700; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.lesson-card h3 { font-size: clamp(1.38rem, 2.15vw, 1.95rem); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }

.invitation { background: #e6eddf; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.invite-layout { align-items: start; padding-block: clamp(2.6rem, 5.8vw, 5rem); }
.invite-copy p { max-width: 44ch; margin-top: 1rem; color: var(--muted); }
form { display: grid; }
label { margin-bottom: .3rem; font-weight: 650; }
input { width: 100%; min-height: 46px; margin-bottom: .85rem; padding: .65rem .8rem; border: 1px solid #809081; border-radius: .25rem; color: var(--ink); background: white; }
form .button { justify-self: start; margin-top: .25rem; }
#request-status, #request-received { margin-top: .7rem; }
#request-status:empty { margin: 0; }
#request-received:not(:target) { display: none; }
footer { border-top: 1px solid var(--rule); color: var(--muted); }
.footer-row { min-height: 66px; font-size: .85rem; }

@media (max-width: 740px) {
  .header-row { min-height: 66px; }
  .brand { gap: .6rem; font-size: .85rem; }
  .brand > span:last-child { max-width: 7rem; padding-left: .6rem; }
  .wordmark { width: 64px; height: 36px; }
  .sign-in { gap: .3rem; font-size: .88rem; }
  .hero-layout, .invite-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero-layout { padding-block: 2.4rem; }
  h1 { font-size: clamp(2.7rem, 8.3vw, 3.8rem); }
  .hero-copy p { max-width: 52ch; }
  .hero .button { margin-top: 1.1rem; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .lesson-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; column-gap: clamp(.85rem, 3vw, 1.4rem); }
  .lesson-card + .lesson-card { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
  .lesson-copy { align-self: center; padding-top: 0; }
  .lesson-card h3 { font-size: clamp(1.15rem, 3.4vw, 1.55rem); }
  .lesson-topic { font-size: .66rem; }
}

@media (max-width: 380px) {
  .brand > span:last-child { max-width: 5.5rem; }
  .lesson-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
}
