@font-face {
  font-family: Plex Sans;
  src: url("./fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex Sans;
  src: url("./fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex Serif;
  src: url("./fonts/IBMPlexSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #292144;
  --muted: #574f64;
  --paper: #f7f5ef;
  --white: #fffdfa;
  --line: #ccc4d3;
  --violet: #563799;
  --lavender: #eee8fa;
  --lime: #effa75;
  font: 16px/1.5 "Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #693fc0; outline-offset: 4px; }
.hero-copy :focus-visible, .consult-copy :focus-visible { outline-color: var(--lime); }
main:focus { outline: none; }
section[id] { scroll-margin-top: 16px; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 5; background: var(--white); padding: 12px; }
.skip:focus { top: 12px; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 15px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 600; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: .01em; color: var(--muted); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 5px; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 54px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.button.small { min-height: 44px; padding: 8px 14px; font-size: .9rem; gap: 8px; }
.outline { border-color: var(--ink); }
.outline:hover { background: var(--lavender); }
.primary { background: var(--lime); }
.primary:hover { background: #e2ed63; }
.button:active { transform: translateY(2px); }
.textlink { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.textlink:hover { text-decoration-thickness: 2px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 600 .77rem/1.35 ui-monospace, "Courier New", monospace; letter-spacing: .095em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin-block: 36px 48px; border-radius: 18px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-copy { padding: clamp(26px, 4.8vw, 78px); align-self: center; }
.hero-copy .eyebrow { color: var(--lime); }
h1 { font-size: clamp(64px, 7.7vw, 118px); font-weight: 600; line-height: .87; letter-spacing: -.076em; margin-top: 30px; }
h1 em { font: italic 400 .9em/.99 "Plex Serif", Georgia, serif; letter-spacing: -.067em; color: #e3d6ff; }
.intro { max-width: 410px; margin-top: 23px; color: #f0e9f7; font-size: clamp(1rem, 1.45vw, 1.17rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }
.hero-art { display: grid; position: relative; align-items: center; min-width: 0; padding: clamp(12px, 2.4vw, 34px); background: #cdbff8; }
.hero-art img { width: 100%; height: auto; }
figcaption { position: absolute; bottom: 13px; right: 19px; font: 600 .71rem/1.4 ui-monospace, "Courier New", monospace; letter-spacing: .05em; text-transform: uppercase; color: #382855; }

.courses { padding-block: 37px 70px; }
.branches { padding-block: 68px 74px; }
.section-head { display: grid; grid-template-columns: 1fr minmax(210px, 290px); gap: 22px; align-items: end; margin-bottom: 28px; }
.section-head .eyebrow { color: var(--violet); }
.section-head .eyebrow, .consult-copy .eyebrow { margin-bottom: 11px; }
h2 { font-size: clamp(38px, 5.15vw, 76px); font-weight: 600; line-height: .97; letter-spacing: -.06em; }
.section-head > p, .course > p:not(.category), .branch > p { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.course { min-width: 0; display: flex; flex-direction: column; min-height: 252px; padding: clamp(18px, 2.25vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.course:focus-within { background: #fbf8ff; }
.card-top, .branch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.glyph { display: grid; place-items: center; min-width: 49px; height: 45px; padding-inline: 8px; border-radius: 5px; font-size: 1.3rem; line-height: 1; font-weight: 600; }
.glyph.mint, .glyph.peach { font-size: .96rem; }
.lilac { background: #e4d8ff; } .mint { background: #c9ebd9; } .peach { background: #ffdfcd; } .blue { background: #dce6ff; } .yellow { background: #f2f0a7; }
.index { font: 600 .78rem/1 ui-monospace, monospace; color: var(--muted); }
.category { margin-bottom: 4px; font-size: .78rem; font-weight: 600; color: var(--violet); }
h3 { font-size: clamp(21px, 2.3vw, 31px); font-weight: 600; letter-spacing: -.037em; line-height: 1.08; overflow-wrap: anywhere; }
.course > p:not(.category) { max-width: 32ch; margin-top: 8px; margin-bottom: 10px; }
.course-link { display: inline-flex; align-items: center; align-self: start; min-height: 44px; gap: 7px; margin-top: auto; font-size: .94rem; font-weight: 600; text-decoration: none; }
.course-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.course-link .icon { padding: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.course-link:hover .icon, .course-link:focus-visible .icon { background: var(--lavender); border-color: var(--ink); }

#main { overflow: clip; }
.branches { position: relative; isolation: isolate; }
.branches::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; background: var(--lavender); border-block: 1px solid var(--line); }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.branch { padding: clamp(18px, 2.6vw, 35px); border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.branch-top { align-items: center; margin-bottom: 15px; }
.branch > p { margin-top: 7px; }
.pin { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--lavender); }
.pin svg { width: 21px; stroke: currentColor; stroke-width: 1.6; }
.branch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 8px; margin-top: 18px; border-top: 1px solid var(--line); }
.shared-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 20px; padding: 12px 16px 12px 20px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; }
.shared-contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.21rem; font-weight: 600; text-underline-offset: 4px; }

.consult { padding-block: 72px; color: var(--white); background: var(--ink); }
.consult-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(25px, 6vw, 94px); align-items: start; }
.consult-copy { padding-top: 16px; }
.consult-copy .eyebrow { color: var(--lime); }
.consult-copy > p:not(.eyebrow) { max-width: 38ch; margin-top: 18px; color: #f0e9f7; }
.consult-copy .recipient { display: grid; gap: 2px; padding-top: 17px; margin-top: 25px; border-top: 1px solid #857791; }
.recipient a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--lime); font-size: clamp(23px, 3.1vw, 32px); font-weight: 600; text-underline-offset: 5px; }
form { background: var(--white); color: var(--ink); border-radius: 11px; padding: clamp(17px, 3vw, 36px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field label { display: block; font-size: .95rem; font-weight: 600; }
.wide { grid-column: 1 / -1; }
.required { color: var(--violet); }
.optional { color: var(--muted); font-size: .82rem; font-weight: 400; margin-left: 5px; }
select, textarea { display: block; width: 100%; min-width: 0; min-height: 47px; padding: 10px 11px; margin-top: 6px; border: 1px solid #837991; border-radius: 6px; background: #faf8fc; color: var(--ink); font-size: 1rem; }
select { text-overflow: ellipsis; }
textarea { resize: vertical; }
textarea::placeholder { color: var(--muted); opacity: 1; }
.preview { margin-block: 7px 10px; font-size: .94rem; }
.preview summary { width: fit-content; min-height: 44px; padding-block: 11px; cursor: pointer; font-weight: 600; color: var(--violet); }
.preview summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview p { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: var(--lavender); border-radius: 6px; }
form .button { width: 100%; border-color: var(--ink); }
.form-note { margin-top: 10px; font-size: .87rem; text-align: center; color: var(--muted); }
.footer-inner { padding-block: 22px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero-copy { padding: 32px; }
  .hero { margin-block: 25px 28px; }
  .section-head { grid-template-columns: 1fr minmax(170px, 240px); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .consult-grid { grid-template-columns: 1fr; }
  .consult-copy { padding-top: 0; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 8px; padding-block: 12px 8px; }
  .header-inner .brand { grid-column: 1 / -1; justify-self: start; }
  .header-inner nav { gap: clamp(13px, 5vw, 20px); }
  .header-inner .brand { font-size: 20px; gap: 8px; }
  .header-inner .brand img { width: 34px; height: 34px; }
  .button.small { font-size: .82rem; padding-inline: 9px; gap: 4px; }
  .button.small .icon { width: 15px; height: 15px; }
  .hero { grid-template-columns: 1fr; margin-block: 16px 20px; border-radius: 12px; }
  .hero-copy { padding: 27px 22px 23px; }
  h1 { font-size: clamp(56px, 14vw, 82px); margin-top: 19px; }
  .intro { margin-top: 15px; }
  .hero-actions { margin-top: 17px; gap: 4px 12px; }
  .hero-actions .button { min-height: 48px; padding-inline: 11px; gap: 6px; }
  .hero-art { padding: 7px 13px 14px; }
  figcaption { bottom: 8px; right: 17px; font-size: .63rem; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .courses { padding-block: 25px 45px; }
  .branches, .consult { padding-block: 43px 46px; }
  .branch-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 450px) {
  .course-grid, .fields { grid-template-columns: 1fr; }
  .course { min-height: 0; }
  .card-top { margin-bottom: 11px; }
  .footer-inner .brand { width: 100%; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 24px); }
  .hero-copy { padding-inline: 17px; }
  .hero-actions { gap: 4px 9px; }
  .hero-actions .textlink { font-size: .9rem; }
  .hero-actions .icon { width: 16px; height: 16px; }
  .optional { margin-left: 2px; }
}
