@font-face {
  font-family: Montserrat;
  src: url('/static/fonts/Montserrat-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fdfbf9;
  --ink: #0a0a0a;
  --muted: #4f4a44;
  --line: rgba(10, 10, 10, .13);
  --night: #0e0e10;
  --night-surface: #18181b;
  --night-line: rgba(253, 251, 249, .16);
  --accent: #d62e29;
  --accent-hover: #bb2622;
  --paper-inset: #f2efeb;
  font: 500 100%/1.6 Montserrat, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.shell { width: min(1224px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 650; line-height: 1.2; }
.school-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #1d1d1f; color: #fdfdfb; }
.school-mark .brand-mark { display: block; width: 23px; height: 23px; fill: currentColor; }
.main-nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.main-nav a, .login, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.main-nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.main-nav a:hover, .footer-inner a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.login { gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 0 17px; font-size: 14px; font-weight: 700; }
.login:hover { border-color: var(--ink); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 10px 14px; transform: translateY(-200%); color: var(--paper); background: var(--night); border-radius: 7px; }
.skip-link:focus { transform: translateY(0); }

.hero-band {
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 10, .08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(10, 10, 10, .08) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
}
.hero-band::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.42fr 1fr; align-items: center; gap: clamp(28px, 4vw, 68px); padding-block: clamp(54px, 6.5vw, 94px); }
.hero-copy { min-width: 0; }
.kicker { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .045em; }
h1, h2, h3 { font-weight: 650; }
h1 { margin-top: 17px; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.17; letter-spacing: -.032em; }
.hero-lead { max-width: 490px; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.52; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 19px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; border-radius: 16px; padding: 15px 19px; color: #fff; background: var(--accent); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.35; }
.button:hover { background: var(--accent-hover); }
.button span, .login span { flex: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.portrait { display: grid; grid-template-rows: 1fr auto; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--night); color: var(--paper); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; object-position: 46% center; }
.portrait figcaption { display: grid; gap: 2px; padding: 18px 23px 21px; background: var(--night-surface); }
.portrait strong { font-size: 18px; font-weight: 700; }
.portrait figcaption span { color: #ded8d1; font-size: 14px; }

.section { padding-block: clamp(55px, 8vw, 108px); }
.section-heading { max-width: 660px; }
.section-heading .kicker { margin-bottom: 9px; }
h2 { font-size: clamp(30px, 3.6vw, 49px); line-height: 1.17; letter-spacing: -.034em; overflow-wrap: break-word; }
h3 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.24; letter-spacing: -.028em; }
.section-heading > p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 52ch; }
.program { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(30px, 7vw, 100px); border-top: 1px solid var(--line); }
.syllabus { list-style: none; padding: 0; margin: 0; counter-reset: lesson; border-top: 1px solid var(--line); }
.syllabus li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; border-bottom: 1px solid var(--line); padding-block: 20px; counter-increment: lesson; }
.syllabus li::before { content: counter(lesson, decimal-leading-zero); font-size: 14px; margin-top: 2px; font-weight: 650; color: var(--muted); }
.syllabus h3 { font-size: clamp(20px, 2vw, 25px); }
.syllabus p, .audience-list p { margin-top: 7px; color: var(--muted); font-size: 16px; }

.format-band { background: var(--night); color: var(--paper); }
.format { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(25px, 7vw, 96px); }
.format .section-heading .kicker, .assignment .kicker { color: #c5bfb8; }
.format .section-heading > p:not(.kicker) { color: #ded8d1; }
.format .button { margin-top: 24px; }
.format :focus-visible { outline-color: var(--paper); }
.assignment { padding: clamp(23px, 4vw, 45px); background: var(--night-surface); border: 1px solid var(--night-line); border-radius: 20px; }
.assignment h3 { margin-top: 8px; }
.assignment ol { padding-left: 25px; margin: 16px 0 0; color: #ded8d1; }
.assignment li { margin-top: 11px; padding-left: 3px; }
.assignment li::marker { color: var(--paper); font-weight: 700; }

.audience { padding-bottom: clamp(42px, 6vw, 80px); }
.audience-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.audience-list article { border-top: 1px solid var(--line); padding-top: 19px; }
.faq { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(27px, 7vw, 100px); border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 53px; padding: 14px 0; font-size: 17px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; min-width: 22px; text-align: center; font-size: 24px; line-height: 1; font-weight: 550; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--muted); font-size: 16px; padding: 0 26px 15px 0; }
.faq-list p a { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

.closing { margin-bottom: clamp(48px, 7vw, 91px); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 23px 38px; padding: clamp(25px, 4.2vw, 58px); border-radius: 20px; background: var(--paper-inset); }
.closing h2 { font-size: clamp(29px, 3.35vw, 46px); }
.closing p { margin-top: 9px; color: var(--muted); font-size: 17px; }
.closing .button { flex: none; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 10px 32px; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 80px; padding-block: 14px; font-size: 14px; font-weight: 660; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 540; color: var(--muted); }

@media (max-width: 1040px) {
  .shell { width: calc(100% - 64px); }
  .portrait img { aspect-ratio: 1.02; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 42px); }
  .header-inner { min-height: 64px; }
  .main-nav { display: none; }
  .hero, .program, .format, .faq { grid-template-columns: 1fr; }
  .hero-band { background-size: 28px 28px; }
  .hero { gap: 29px; padding-block: 40px 45px; }
  h1 { font-size: clamp(30px, 6.9vw, 49px); }
  .hero-lead { margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .portrait img { aspect-ratio: 1.5; }
  .audience-list { grid-template-columns: 1fr; gap: 20px; }
  .closing-inner { display: grid; }
  .closing .button { justify-self: start; }
}

@media (max-width: 400px) {
  .shell { width: calc(100% - 32px); }
  .hero-actions .button { width: 100%; }
  .closing .button { width: 100%; }
}
