@font-face {
  font-family: Bricolage;
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #17121e;
  --ink: #231b2a;
  --paper: #faf8fb;
  --lavender: #cfb6ff;
  --lime: #dcfa88;
  --muted-on-dark: #cdc4d4;
  --muted-on-paper: #594f60;
  --hairline: #d8cfdc;
  --display: Bricolage, "Arial", sans-serif;
  --reading: "DM Sans", "Arial", sans-serif;
  --serif: Instrument, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--reading); font-size: 1rem; line-height: 1.55; }
body, button { -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7845b6; outline-offset: 4px; }
.masthead :focus-visible, .hero :focus-visible, .practice :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
h1, h2, h3 { font-weight: 600; }
h1, h2 { text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; }
.shell { width: min(1280px, calc(100% - clamp(48px, 10vw, 160px))); margin-inline: auto; }
.kicker, .event-facts dt, .problem-topic, .hero-art figcaption {
  font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; color: var(--night); background: var(--lime); }
.masthead, .hero, .site-footer { color: var(--paper); background: var(--night); }
.masthead { position: relative; z-index: 3; border-bottom: 1px solid #ffffff23; }
.head-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--paper); text-decoration: none; font-weight: 750; font-size: 1.64rem; line-height: 1; letter-spacing: -.065em; }
.brand-ten { color: var(--lavender); }
.brand-mark { width: 39px; height: 34px; position: relative; display: inline-block; color: var(--lavender); }
.brand-mark i { position: absolute; left: 0; top: 29%; width: 100%; height: 43%; border: 1.55px solid currentColor; border-radius: 50%; }
.brand-mark i:first-child { transform: rotate(-47deg); }
.brand-mark i:nth-child(2) { transform: rotate(47deg); }
.brand-mark i:nth-child(3) { transform: rotate(-2deg); }
.brand-mark::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; top: calc(50% - 3px); left: calc(50% - 3px); }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.primary-nav a, .menu-toggle { color: #eae3ef; text-decoration: none; font-size: .94rem; font-weight: 550; }
.primary-nav a:hover, .footer-links a:hover { color: var(--lime); }
.primary-nav .nav-cta { padding: 8px 17px; color: var(--lavender); border: 1px solid #766485; border-radius: 100px; }
.primary-nav .nav-cta:hover { color: var(--night); background: var(--lavender); border-color: var(--lavender); }
.menu-toggle { display: none; align-items: center; gap: 9px; background: transparent; border: 1px solid #74697b; border-radius: 6px; min-height: 42px; padding: 5px 12px; }
.menu-lines { width: 14px; height: 8px; border-block: 1.5px solid currentColor; }

.hero { overflow: hidden; position: relative; isolation: isolate; }
.hero-frame { position: relative; display: flex; align-items: center; min-height: clamp(560px, 44.5vw, 660px); }
.hero-copy { position: relative; z-index: 1; padding: clamp(40px, 4.3vw, 68px) 0 clamp(42px, 4.3vw, 68px); width: 55%; }
.hero-kicker { color: #e3d7eb; display: flex; align-items: center; gap: 11px; }
.hero-kicker span { width: 30px; height: 2px; background: var(--lime); }
.hero-kicker b { color: #93819e; font-weight: 400; }
h1 { margin-top: 23px; font-size: clamp(4.2rem, 7.25vw, 7.05rem); line-height: .91; letter-spacing: -.067em; }
h1 span, h1 em { display: block; }
h1 em { line-height: .90; color: var(--lavender); font-size: 1.115em; letter-spacing: -.043em; margin: .015em 0 .03em; }
.hero-intro { margin-top: 24px; max-width: 450px; color: #ded5e4; font-size: clamp(1.03rem, 1.35vw, 1.2rem); line-height: 1.48; }
.actions, .problem-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions { margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 21px; border-radius: 6px; border: 1px solid transparent; font-size: .95rem; font-weight: 700; text-decoration: none; line-height: 1.35; transition: background .16s, border-color .16s; }
.button-lime { color: var(--night); background: var(--lime); }
.button-lime:hover { background: #edffba; }
.button-outline { color: var(--paper); border-color: #796c82; background: #211a29; }
.button-outline:hover { background: #33273f; border-color: var(--lavender); }
.hero-art { position: absolute; width: 66%; height: 100%; right: -4%; top: 0; z-index: 0; }
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center; }
.hero-art picture {
  mask-image: linear-gradient(90deg, transparent 0%, #000 21%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.hero-art figcaption { position: absolute; right: 8%; bottom: 5.8%; display: flex; gap: 10px; align-items: center; color: #c4b5cf; font-size: .75rem; letter-spacing: .09em; }
.trace-line { display: inline-block; width: 24px; height: 1px; background: #a58ab9; }
.event-band { background: #d9c8f2; border-bottom: 1px solid #b9a7cb; }
.event-facts { display: grid; grid-template-columns: 1fr 1.15fr 1fr; padding-block: 25px; }
.event-facts > div { padding-inline: clamp(20px, 3.8vw, 58px); border-left: 1px solid #b5a2c7; }
.event-facts > div:first-child { border: 0; padding-left: 0; }
.event-facts > div:last-child { padding-right: 0; }
.event-facts dt { color: #574563; font-size: .75rem; margin-bottom: 4px; }
.event-facts dd { font-family: var(--display); font-size: clamp(1.16rem, 1.75vw, 1.6rem); font-weight: 650; line-height: 1.2; letter-spacing: -.04em; }
.event-facts dd span { display: block; margin-top: 5px; font: 400 .92rem/1.4 var(--reading); letter-spacing: 0; color: #503e5b; }

.paper { background: var(--paper); }
.section-space { padding-block: clamp(62px, 7.2vw, 108px); }
.section-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 90px); align-items: end; }
.paper .kicker { color: #6d4c83; }
h2 { font-size: clamp(3rem, 5.2vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
h2 em { letter-spacing: -.042em; }
.section-intro h2, .practice h2, .faq h2, .registration h2 { margin-top: 15px; }
.section-intro h2 em { display: block; }
.paper h2 em { color: #745093; }
.section-intro > p, .practice-intro > p:not(.kicker), .registration-inner > div > p:not(.kicker) { color: var(--muted-on-paper); font-size: 1.06rem; line-height: 1.6; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--hairline); }
.levels article { display: flex; flex-direction: column; align-items: flex-start; padding: 27px clamp(18px, 2.6vw, 38px) 0; border-left: 1px solid var(--hairline); }
.levels article:first-child { border-left: 0; padding-left: 0; }
.levels article:last-child { padding-right: 0; }
.level-plot { width: 128px; height: 46px; margin-bottom: 16px; }
.levels h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.1; letter-spacing: -.048em; }
.levels p { max-width: 34ch; margin: 11px 0 18px; color: var(--muted-on-paper); }
.text-link, .calendar-link, .solution-button, .questions a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; font-weight: 650; }
.sample-link { margin-top: auto; padding-block: 5px; color: #644079; text-decoration-color: #a88abb; }
.text-link:hover, .questions a:hover { color: #7c399d; text-decoration-thickness: 2px; }
.practice { background: #231a2d; color: var(--paper); }
.practice-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7.5vw, 100px); align-items: start; }
.practice .kicker, .practice h2 em, .problem-topic { color: var(--lavender); }
.practice h2 { font-size: clamp(3.4rem, 6vw, 5.7rem); }
.practice-intro > p:not(.kicker) { margin-top: 24px; color: var(--muted-on-dark); max-width: 36ch; }
.level-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 25px; }
.level-tabs button { border: 1px solid #6d5c79; color: #ddd3e6; background: transparent; padding: 8px 14px; border-radius: 20px; font-size: .94rem; font-weight: 600; }
.level-tabs button:hover { border-color: var(--lavender); }
.level-tabs button[aria-selected="true"] { color: var(--night); border-color: var(--lavender); background: var(--lavender); }
.problem-panel { padding: clamp(24px, 3.4vw, 46px); border: 1px solid #584663; background: #2d2237; border-radius: 12px; }
.problem-panel h3 { margin: 9px 0 13px; font-size: clamp(1.75rem, 2.45vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
#problem-prompt { color: #ece5f1; }
#problem-options { display: grid; gap: 8px; padding: 0; margin: 22px 0; border: 0; min-width: 0; }
.choice { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 13px; border: 1px solid #685774; border-radius: 5px; color: #f1ebf5; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: var(--lavender); background: #3b2b48; }
.choice input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: var(--lavender); }
.solution-button { margin: 0; padding: 8px 4px; border: 0; background: transparent; color: var(--lavender); font-size: .95rem; }
.feedback:not(:empty), .solution { margin-top: 16px; }
.feedback { color: var(--lime); font-weight: 600; }
.solution { padding: 16px 18px; border-left: 2px solid var(--lavender); background: #382a44; }
.solution h4 { font-size: 1rem; color: var(--lavender); margin-bottom: 4px; }
.practice details { margin-top: 15px; }
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 7vw, 95px); }
.questions { border-top: 1px solid var(--hairline); }
.questions details { border-bottom: 1px solid var(--hairline); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; font-weight: 600; font-size: 1.06rem; line-height: 1.4; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: #795495; font: 400 1.5rem/1 var(--reading); }
.questions details[open] summary::after { content: "−"; }
.questions details p { color: var(--muted-on-paper); padding: 0 32px 19px 2px; }
.registration { padding-block: clamp(52px, 6vw, 86px); background: var(--lime); }
.registration-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.registration .kicker { color: #425327; }
.registration-inner > div > p:not(.kicker) { color: #36402b; max-width: 56ch; margin-top: 18px; }
.registration-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; }
.button-dark { color: white; background: var(--night); }
.button-dark:hover { background: #402a4e; }
.calendar-link { display: inline-flex; gap: 9px; align-items: center; min-height: 42px; font-size: .95rem; }
.calendar-symbol { height: 15px; width: 15px; border: 1.5px solid; border-radius: 2px; position: relative; }
.calendar-symbol::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid; }
.calendar-symbol::after { content: ""; position: absolute; top: -4px; left: 2px; right: 2px; height: 4px; border-inline: 1.5px solid; }
.footer-inner { min-height: 140px; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 32px; }
.footer-inner p, .footer-links a { font-size: .93rem; color: #ccbed6; }
.footer-inner p { margin-top: 8px; }
.footer-links { display: grid; justify-items: end; gap: 5px; }
.footer-links a { text-underline-offset: .22em; }

@media (max-width: 900px) {
  .hero-frame { min-height: 525px; }
  .hero-copy { width: 56%; }
  .hero-art { width: 63%; right: -6%; }
  .hero-intro { max-width: 38ch; }
  .event-facts > div { padding-inline: 20px; }
  .practice-grid { grid-template-columns: .76fr 1.24fr; gap: 28px; }
  .registration-actions { flex-direction: column; align-items: flex-start; flex-shrink: 0; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 40px); }
  .head-inner { min-height: 64px; }
  .brand { font-size: 1.48rem; }
  .brand-mark { width: 32px; height: 29px; }
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 18px; background: #211a29; border-bottom: 1px solid #64536e; gap: 0; box-shadow: 0 12px 20px #100b1780; }
  .js .primary-nav.is-open a { padding: 12px 8px; }
  .js .primary-nav.is-open .nav-cta { border: 0; border-radius: 0; color: var(--lime); }
  html:not(.js) .head-inner { flex-wrap: wrap; padding-block: 12px; gap: 12px; }
  html:not(.js) .primary-nav { gap: 13px; flex-wrap: wrap; }
  .hero-frame { display: grid; min-height: auto; }
  .hero-copy { order: 0; width: 100%; padding: 40px 0 0; }
  .hero-kicker { font-size: .75rem; gap: 9px; }
  .hero-kicker span { width: 22px; }
  h1 { font-size: clamp(3.65rem, 14.9vw, 6rem); margin-top: 21px; }
  .hero-intro { max-width: 43ch; font-size: 1.01rem; margin-top: 19px; }
  .actions { margin-top: 20px; }
  .hero-art { order: 1; position: relative; right: auto; width: calc(100% + 40px); margin: 2px -20px 0; height: clamp(175px, 49vw, 280px); }
  .hero-art img { object-position: 50% 57%; }
  .hero-art picture { mask-image: linear-gradient(0deg, transparent, black 12%, black 88%, transparent), linear-gradient(90deg, transparent 0%, black 8%, black 94%, transparent); }
  .hero-art figcaption { font-size: .72rem; bottom: 11px; right: 20px; }
  .event-facts { grid-template-columns: 1fr; padding-block: 5px; }
  .event-facts > div, .event-facts > div:first-child { display: grid; grid-template-columns: 85px 1fr; align-items: baseline; gap: 12px; padding: 12px 0; border: 0; }
  .event-facts > div + div { border-top: 1px solid #b5a2c7; }
  .event-facts dt { margin: 0; }
  .event-facts dd { font-size: 1.23rem; }
  .event-facts dd span { font-size: .87rem; margin-top: 2px; }
  .section-intro, .practice-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-space { padding-block: 55px; }
  h2 { font-size: clamp(2.8rem, 10.8vw, 3.9rem); }
  .section-intro h2 em { display: inline; }
  .levels { grid-template-columns: 1fr; margin-top: 25px; }
  .levels article, .levels article:first-child, .levels article:last-child { display: grid; grid-template-columns: 1fr 72px; align-items: start; padding: 20px 0; border: 0; border-bottom: 1px solid var(--hairline); }
  .levels h3, .levels p, .sample-link { grid-column: 1; }
  .levels p { margin: 6px 0 8px; max-width: 43ch; }
  .level-plot { grid-column: 2; grid-row: 1 / span 2; width: 68px; height: 36px; justify-self: end; }
  .sample-link { grid-column: 1 / -1; justify-self: start; }
  .practice h2 br { display: none; }
  .practice h2 br::after { content: " "; }
  .practice h2 em::before { content: " "; }
  .practice-intro > p:not(.kicker) { margin-top: 15px; max-width: 43ch; }
  .level-tabs { margin-top: 18px; }
  .problem-panel { padding: 21px 18px; }
  .registration-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .registration-inner { gap: 19px; }
  .registration-actions { flex-direction: row; align-items: center; justify-content: flex-start; }
  .footer-links { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
