:root {
  color-scheme: light;
  --ink: #102b3e;
  --muted: #475e6d;
  --paper: #f7f5ef;
  --gold: #efcf8d;
  --teal: #155e63;
  --line: #dce3df;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #168284; outline-offset: 4px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -5rem; z-index: 2; background: white; padding: .5rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.bar, .brand, nav, .controls, .filters, .dialog-bar { display: flex; align-items: center; gap: 1rem; }
.bar { min-height: 72px; justify-content: space-between; }
.masthead { background: #fff; }
.brand, nav a { text-decoration: none; }
.brand { gap: .65rem; }
.brand small { display: block; color: var(--muted); line-height: 1.25; }
nav a { font-size: .9rem; font-weight: 650; }
nav a:hover, footer a:hover { text-decoration: underline; }
.hero { color: #fff; background: radial-gradient(ellipse at 19% 28%, #276465, transparent 56%), #102b3e; border-block-end: 5px solid var(--gold); }
.hero-layout { display: grid; align-items: center; grid-template-columns: 1.45fr 1fr; min-height: 390px; gap: 2rem; padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { color: var(--teal); font-weight: 750; font-size: .95rem; margin: 0 0 .4rem; }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); }
h3 { font-size: 1.15rem; }
.hero-copy { max-width: 36rem; color: #e2edef; font-size: clamp(1rem, 2vw, 1.25rem); margin: 1.25rem 0 1.75rem; }
.hero-mark { display: grid; place-items: center; justify-self: center; width: min(100%, 270px); aspect-ratio: 1; border: 1px solid #e8cb8580; border-radius: 50%; box-shadow: inset 0 0 0 18px #ffffff0a, 0 0 0 18px #ffffff08; }
.hero-mark img { width: 65%; height: auto; }
.button, .filters button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; border-radius: .7rem; padding: .4rem 1rem; text-decoration: none; font-weight: 700; }
.gold { color: var(--ink); background: var(--gold); }
.outline { background: #fff; color: var(--ink); border: 1px solid #a8b8b5; }
.archive, .about { padding-block: clamp(2.5rem, 6vw, 5rem); }
.controls { justify-content: space-between; flex-wrap: wrap; margin-block-start: 1.4rem; }
.search { display: grid; gap: .25rem; font-weight: 650; width: min(100%, 25rem); }
.search input { min-height: 46px; width: 100%; padding-inline: .8rem; border: 1px solid #a8b8b5; border-radius: .7rem; background: #fff; color: var(--ink); }
.filters { gap: .3rem; flex-wrap: wrap; }
.filters button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
#status, .muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; max-width: 545px; }
.cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1c5260, var(--ink)); color: var(--gold); display: grid; place-items: center; font-size: 2.8rem; }
.cover > * { grid-area: 1 / 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem; }
.card-body a { color: var(--teal); font-weight: 750; }
.card-body p { margin: .6rem 0; }
.about { background: #eaf0ec; }
.about-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; }
.about dl { margin: 0; padding: 1.25rem; border-radius: 1rem; background: #fff; }
dt { color: var(--teal); font-weight: 750; }
dd { margin: 0 0 .7rem; }
dd:last-child { margin-bottom: 0; }
footer { background: var(--ink); color: #e2edef; font-size: .9rem; }
dialog { color: var(--ink); width: min(760px, calc(100% - 1.5rem)); max-height: 90dvh; padding: 0; border: 0; border-radius: 1rem; box-shadow: 0 20px 70px #0004; }
dialog::backdrop { background: #0a1b28ba; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar { position: sticky; top: 0; z-index: 1; background: #fff; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.dialog-content { padding: clamp(1rem, 4vw, 2rem); }
.dialog-cover { width: 100%; max-height: 430px; object-fit: contain; background: var(--paper); border-radius: .7rem; margin-block: 1rem; }
.detail-section { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1.1rem; }
details { margin-top: .65rem; border: 1px solid var(--line); border-radius: .65rem; padding: .65rem; }
summary { cursor: pointer; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: .8rem; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .55rem; }
.students { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .4rem 1rem; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1.6rem); }
  .hero-layout, .about-layout { grid-template-columns: 1fr; gap: 1rem; }
  .hero-layout { min-height: 0; }
  .hero-mark { display: none; }
  .controls { align-items: flex-start; }
  .bar { gap: .5rem; }
  nav { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
