:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #171717;
  color: #fff;
  --muted: #e5e7eb;
  --border: rgb(255 255 255 / .2);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(rgb(0 0 0 / .4),rgb(0 0 0 / .4)), url('/assets/portal-background.png') center / cover fixed; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b9d6ff; outline-offset: 4px; }
.wrap { width: min(1110px,calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; transform: translateY(-200%); background: #fff; color: #102046; padding: .5rem; z-index: 2; }
.skip:focus { transform: none; }
header, footer { background: rgb(255 255 255 / .1); backdrop-filter: blur(16px); border-block: 1px solid var(--border); }
.header, .footer, nav, .brand, .actions, .lookup { display: flex; align-items: center; gap: 1rem; }
.header, .footer { justify-content: space-between; padding-block: 1rem; }
.brand { text-decoration: none; font-weight: 850; letter-spacing: .06em; gap: .65rem; }
.brand small { display: block; font-size: .875rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.mark { display: block; flex: 0 0 auto; width: 4.65rem; height: auto; border-radius: .375rem; }
nav { flex-wrap: wrap; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { padding-block: clamp(2.5rem,7vw,5rem); min-height: 70vh; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1.5rem,5vw,4.5rem); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.15rem,4.5vw,3.75rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: .65rem; }
h3 { font-size: 1.2rem; margin-bottom: .6rem; }
p, li, address { line-height: 1.65; color: var(--muted); }
li + li { margin-top: .65rem; }
address { font-style: normal; margin-bottom: 1rem; }
.intro > p:not(.eyebrow) { max-width: 36rem; font-size: 1.15rem; }
.eyebrow, .course-label { color: var(--muted); font-size: .875rem; letter-spacing: .09em; font-weight: 700; }
.panel { background: rgb(255 255 255 / .1); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: .5rem; padding: clamp(1.2rem,3vw,2rem); box-shadow: 0 12px 28px #0003; }
.verification { max-width: 38rem; }
.verification label { display: block; font-weight: 650; margin-bottom: .5rem; }
.lookup { align-items: stretch; flex-direction: column; gap: .8rem; }
.grid .verification { max-width: none; min-width: 0; }
input { min-width: 0; width: 100%; border: 1px solid rgb(255 255 255 / .3); border-radius: .375rem; padding: .7rem; font: inherit; background: rgb(255 255 255 / .2); color: white; }
input::placeholder { color: #e5e7eb; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; background: #2563eb; border: 1px solid transparent; color: #fff; padding: .55rem .95rem; border-radius: .375rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: #1d4ed8; }
.outline { background: #ffffff14; border-color: var(--border); }
.outline:hover { background: #ffffff30; }
.actions { flex-wrap: wrap; }
.secondary { font-size: .875rem; margin: .9rem 0 0; }
.section { margin-top: clamp(2.5rem,6vw,4.2rem); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.course p:last-child, .callout p { margin-bottom: 0; }
.course-label { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; letter-spacing: 0; color: #fff; background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.course:nth-child(3n + 2) .course-label { background: linear-gradient(135deg,#a855f7,#7e22ce); }
.course:nth-child(3n) .course-label { background: linear-gradient(135deg,#22c55e,#15803d); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.detail { max-width: 54rem; }
.detail h1 { font-size: clamp(2.15rem,5vw,3.7rem); }
.detail .eyebrow, .related { margin-top: 1.2rem; }
.footer { color: var(--muted); }
.admission-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.admission-form label { display: grid; gap: .35rem; font-weight: 600; }
.admission-form select { width: 100%; min-width: 0; padding: .7rem; border: 1px solid var(--border); border-radius: .375rem; background: #252525; color: white; font: inherit; }
.admission-form .actions { grid-column: 1 / -1; }
@media (max-width: 540px) { .admission-form { grid-template-columns: 1fr; } }
nav [aria-current="page"] { text-decoration: underline; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 1rem; }
.gallery-photo { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: .5rem; background: #202020; text-decoration: none; }
.gallery-photo:hover { border-color: #b9d6ff; }
.gallery-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-photo span { display: block; padding: .65rem .8rem; }
.gallery-viewer { width: min(92vw,960px); max-height: 92dvh; padding: 1rem; border: 1px solid var(--border); border-radius: .75rem; color: white; background: #171717; }
.gallery-viewer::backdrop { background: #000c; }
.gallery-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.gallery-viewer figure { margin: .75rem 0 0; text-align: center; }
.gallery-viewer img { display: block; max-width: 100%; width: auto; height: auto; max-height: 65dvh; margin-inline: auto; object-fit: contain; }
.gallery-viewer figcaption { padding-top: .65rem; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .header { align-items: start; flex-direction: column; } }
@media (max-width: 465px) { .grid { grid-template-columns: 1fr; } .callout { align-items: start; flex-direction: column; } nav { gap: .5rem .85rem; } }
