@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@1,800&display=swap');

:root {
  color-scheme: dark;
  --ink: #090a0c;
  --surface: #14161a;
  --panel: #1b1d22;
  --line: #3d414a;
  --text: #fff;
  --silver: #c5cad5;
  --watermark: url('./assets/x-watermark.png');
  --display: Barlow, "Segoe UI", sans-serif;
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--ink);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
p, dd { line-height: 1.65; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 16px; z-index: 3; padding: 12px; background: var(--ink); transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.header, #app { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, nav { display: flex; align-items: center; }
.header-inner, .footer-inner { justify-content: space-between; min-height: 80px; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 114px; height: 54px; object-fit: contain; }
.header .brand img { filter: contrast(1.14) brightness(1.05); }
.header .header-inner { display: grid; justify-content: stretch; justify-items: center; gap: 4px; padding-block: 4px 8px; }
.header .header-inner nav { max-width: 100%; justify-content: center; }
nav { gap: clamp(16px, 3vw, 40px); font-size: .9rem; font-weight: 700; }
nav a, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
nav a { white-space: nowrap; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.nav-cta { border: 1px solid #777982; border-radius: 4px; padding-inline: 16px; }
.header nav { flex-wrap: wrap; }
.header nav a:not(.nav-cta) { justify-content: center; border: 1px solid #777982; border-radius: 4px; padding-inline: clamp(4px, 1.2vw, 16px); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; isolation: isolate; padding-top: clamp(54px, 9vw, 108px); }
.hero-copy { position: relative; z-index: 1; max-width: 56rem; }
.eyebrow, .room-label {
  font: italic 800 .9rem/1.5 var(--display); letter-spacing: .16em;
}
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { margin-top: 18px; font-size: clamp(2.15rem, 5.25vw, 4.65rem); line-height: 1.12; letter-spacing: -.07em; }
h1 span { display: block; text-wrap: balance; }
.hero-lead { margin-top: 22px; max-width: 38rem; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; text-wrap: balance; }
.intro { max-width: 35rem; margin-top: 12px; }
.intro p + p { margin-top: 8px; }
.hero-lead, .intro { word-break: keep-all; overflow-wrap: anywhere; }
.hero-art { position: absolute; z-index: -1; inset: 0 -8% 12% 37%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse, #292a31, transparent 68%); }
.hero-art span, .room-graphic span { display: none; }
.hero-art::before, .room-graphic::before {
  content: "";
  display: block;
  background: var(--watermark) center / contain no-repeat;
  opacity: .08;
}
.hero-art::before { width: 88%; height: 88%; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; margin-top: clamp(36px, 6vw, 72px); border-top: 1px solid var(--line); }
.hero-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 20px; min-width: 0; }
.hero-metrics > div + div { border-left: 1px solid var(--line); }
.hero-metrics dt { font-size: .92rem; line-height: 1.5; word-break: keep-all; }
.hero-metrics dd { font-weight: 750; line-height: 1; }
.hero-metrics strong { font: italic 800 clamp(2.5rem, 5vw, 4.5rem)/1 var(--display); }
.metric-suffix { display: inline-block; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.surface { background-color: var(--surface); border-block: 1px solid var(--line); }
main > section:not(.hero) {
  isolation: isolate;
  position: relative;
}
main > section:not(.hero)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--watermark) right 4% bottom 1.5rem / min(36vw, 22rem) auto no-repeat;
  opacity: .06;
  pointer-events: none;
}
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
h2 { margin-top: 10px; font-size: clamp(1.95rem, 4.4vw, 3.65rem); line-height: 1.17; letter-spacing: -.06em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.4; letter-spacing: -.035em; }
.section-copy { font-size: clamp(1rem, 2vw, 1.18rem); }
.key-statement { font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
.section-copy p + p { margin-top: 12px; }
.section-intro { margin-top: 18px; }
.section-highlight {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid var(--silver);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.section-highlight strong { font-size: clamp(1.45rem, 3.25vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; }
.section-highlight b { font: italic 800 1.2em/1 var(--display); }
.section-highlight span { line-height: 1.5; }
.capacity-highlight { align-self: center; }

.learning-grid, .room-grid { display: grid; gap: 14px; margin-top: 28px; }
.learning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .room { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.panel, .room-copy { padding: clamp(20px, 3vw, 32px); }
.panel p, .room-copy h3 + p { margin-top: 8px; }
.reading-strategies { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.reading-strategies h4 { margin: 0; font-size: 1.2rem; line-height: 1.4; }
.nonfiction { grid-column: 1 / -1; }
.reading-types { margin-top: 16px; gap: 8px; }
.reading-types > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.reading-types dt { font-weight: 750; }
.section-note { margin-top: 20px; }
.rule-list, .admission-steps { border-top: 1px solid var(--line); }
.rule-list > div, .admission-steps li { border-bottom: 1px solid var(--line); }
.rule-list > div, .admission-steps li { padding-block: 16px; }
.rule-list dt { font-size: 1.08rem; font-weight: 750; }
.rule-list dd, .admission-steps p { margin-top: 6px; }
.review-status { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid #777982; border-radius: 4px; font-size: .875rem; }
.room { overflow: hidden; }
.room-graphic { display: grid; place-items: center; aspect-ratio: 2.5; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(140deg, #24252b, #101012 75%); }
.room-graphic::before { width: 60%; height: 80%; }
.room-graphic-small { background: linear-gradient(220deg, #2e3037, #111113 75%); }
.room-graphic-small::before { width: 52%; }
.room-copy h3 { margin-top: 8px; }
.seat-count { display: inline-block; white-space: nowrap; }
.room-features { margin: 14px 0 0; padding-left: 1.2em; line-height: 1.65; }
.room-features li + li { margin-top: 6px; }
.admission-steps { margin: 0; padding-left: 1.5rem; }
.admission-steps li::marker { font-weight: 700; }
.admission-steps a, .management-grid a, .rule-list a, .section-copy a { text-decoration: underline; text-underline-offset: .2em; }
.footer-inner { min-height: 96px; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  nav { flex-wrap: wrap; gap: 4px 12px; }
  .split { grid-template-columns: 1fr; }
  .hero-art { inset: 0 -10% 14% 28%; }
  .learning-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 4px 8px; }
  nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 4px 6px; }
  nav a { justify-content: center; padding-inline: 4px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.25rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.1rem); }
  .hero-metrics > div { padding: 14px 8px; }
  .hero-metrics > div:first-child { padding-left: 0; }
  .hero-metrics strong { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .room-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; gap: 8px 14px; }
  .footer-inner .brand img { width: 79px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
