:root {
  color-scheme: light;
  --navy: #16213b;
  --ink: #23304a;
  --ice: #c2eef0;
  --paper: #fafbfd;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}

.shell {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  background: #fff;
  color: var(--navy);
}

.masthead .shell {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.masthead img {
  display: block;
  width: clamp(8.5rem, 20vw, 10rem);
  height: auto;
}

.masthead a { color: inherit; }

.language {
  font-weight: 650;
  text-underline-offset: .22em;
}

.hero {
  background: var(--navy);
  color: #fff;
}

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4.5rem);
  padding-block: clamp(2.125rem, 6vw, 4.75rem);
}

h1, h2, p { margin: 0; }

h1 {
  max-width: 15ch;
  font-size: clamp(2.075rem, 4.8vw, 4.125rem);
  font-weight: 770;
  line-height: 1.06;
  text-wrap: balance;
}

.hero-summary { max-width: 35ch; }

.closed {
  margin-bottom: .45rem;
  color: var(--ice);
  font-size: clamp(1.075rem, 2.3vw, 1.35rem);
  font-weight: 720;
}

.directory {
  padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.5rem, 7vw, 6rem);
}

h2 {
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(.875rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.program {
  display: block;
  border-radius: .55rem;
  color: var(--navy);
  text-decoration: none;
}

.program img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
  background: #e7edf2;
}

.program-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem;
  padding: .6rem .15rem .16rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.program:hover .program-name,
.program:focus-visible .program-name {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.program:focus-visible, .masthead a:focus-visible {
  outline: 3px solid #1251a8;
  outline-offset: 4px;
}

@media (max-width: 52rem) {
  .hero .shell { grid-template-columns: 1fr; }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 20rem) {
  .programs { grid-template-columns: 1fr; }
}
