@font-face {
  font-family: Pretendard;
  src: url("assets/brand/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* English pages only need Pretendard's smaller Latin edition. */
@font-face {
  font-family: Pretendard;
  src: url("assets/brand/PretendardStdVariable.woff2") format("woff2");
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2212;
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --gutter: clamp(20px, 2.083333vw, 48px);
  --site-font: Pretendard, system-ui, sans-serif;
  font-family: var(--site-font);
  -webkit-font-smoothing: antialiased;
  color: #222;
  background: #000;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { display: block; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; }
img, video { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #111;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(0, 1fr);
  place-items: start;
  align-content: start;
  padding: var(--gutter);
  height: 128px;
  color: #fff;
  pointer-events: none;
}
.site-header a, .site-header nav { pointer-events: auto; }
.mobile-menu-trigger, .mobile-menu { display: none; }
.site-brand { margin-inline-end: clamp(12px, 4vw - 16px, 32px); }
.site-brand img { width: 224px; height: auto; }
.footer-brand img, .footer-university img { width: 100%; height: auto; }
.site-nav {
  display: flex;
  margin-block-start: -14px;
  align-items: center;
  gap: max(10px, 1.39vw);
}
.site-nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -.27px;
  text-decoration: none;
}
.site-nav a:nth-child(1) { width: 69px; }
.site-nav a:nth-child(2) { width: 98px; }
.site-nav a:nth-child(3) { width: 123px; }
.site-nav a:nth-child(4) { width: 88px; }
.site-nav [aria-current] { font-weight: 700; }
.site-nav a:hover { color: #ccc; }

.site-footer {
  display: grid;
  grid-template-columns: 25.3% 25.3% 1fr auto;
  align-items: start;
  position: relative;
  min-height: 211px;
  padding: 36px var(--gutter) 35px;
  font-family: var(--site-font);
  color: #fff;
  background: #000;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: #383838;
}
.footer-brand, .footer-university { margin-top: 1px; }
.footer-brand { width: clamp(132px, 100% - 8px, 164px); }
.footer-university { width: 152px; min-height: 44px; }
.site-footer h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 21px;
  letter-spacing: normal;
  font-weight: 400;
  color: #a6a6a6;
}
.footer-visit address { font-style: normal; color: #a6a6a6; font-size: 16px; line-height: 22px; }
.footer-visit strong { display: block; margin-bottom: 6px; color: #fff; font-size: 20px; letter-spacing: -.35px; line-height: 25px; }
.directions { display: inline-block; margin-top: 11px; font-size: 15px; line-height: 21px; text-underline-offset: 2px; }
.footer-email { font-size: 18px; line-height: 25px; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.footer-channels { display: flex; margin-top: 3px; margin-left: -10px; }
.footer-channels a { display: grid; width: 42px; height: 44px; place-items: center; }
.footer-channels img { object-fit: contain; }
.footer-channels a:hover, .footer-brand:hover, .footer-university:hover { opacity: .8; }

@media (max-width: 960px) {
  .site-footer { grid-template-columns: 20% 31% 1fr auto; }
  .footer-university { width: 112px; }
}
@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
  }
  .site-brand { margin-inline-end: 0; }
  .site-brand img { width: 164px; }
  .site-header > .site-nav { display: none; }

  .mobile-menu-trigger, .mobile-menu-close {
    display: grid;
    place-items: center end;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
  }
  .mobile-menu-trigger::before, .mobile-menu-close::before, .mobile-menu-close::after {
    content: "";
    grid-area: 1 / 1;
    width: 22px;
    height: 3px;
    background: currentColor;
  }
  .mobile-menu-trigger::before { box-shadow: 0 -7px currentColor, 0 7px currentColor; }
  .mobile-menu-close::before { transform: rotate(45deg); }
  .mobile-menu-close::after { transform: rotate(-45deg); }
  html:has(.mobile-menu[open]) { overflow: hidden; }
  .mobile-menu[open] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: var(--gutter) var(--gutter) max(32px, env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    background: #fff;
    color: #000;
  }
  .mobile-menu::backdrop { background: #fff; }
  .mobile-menu-brand { display: block; width: 164px; }
  .mobile-menu-brand img { width: 100%; height: auto; filter: brightness(0); }
  .mobile-menu-toolbar { margin: 0; }
  .mobile-menu-links { grid-column: 1 / -1; display: grid; justify-items: start; margin-top: 48px; }
  .mobile-menu-links a, .mobile-menu-members summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.03em;
    text-decoration: none;
  }
  .mobile-menu-members summary { gap: 10px; list-style: none; cursor: pointer; }
  .mobile-menu-members summary::-webkit-details-marker { display: none; }
  .mobile-menu-members summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .mobile-menu-members[open] summary::after { transform: rotate(225deg); }
  .mobile-menu-members a { width: max-content; margin-left: 20px; font-size: 22px; }
  .mobile-menu-links a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .12em; }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 28px;
    padding-block: 32px 24px;
  }
  .footer-brand { width: 148px; }
  .footer-university { width: 112px; }
}
