@font-face {
  font-family: "Glacial Indifference";
  src: url("fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("fonts/GlacialIndifference-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #061d3b;
  --navy-soft: #0b2e58;
  --cream: #f4efe6;
  --ink: #0b1f38;
  --blue: #0051ba;
  --red: #e8000d;
  --line: rgba(255, 255, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--navy);
}

body {
  margin: 0;
  font-family: "Glacial Indifference", "Avenir Next", Avenir, Arial, sans-serif;
  background: var(--navy);
  color: white;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.35rem, 3vw, 2.75rem);
}

.hero__image,
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background-image: url("assets/ku-campus.jpeg");
  background-position: center 44%;
  background-size: cover;
  filter: saturate(0.72) contrast(1.05);
  transform: scale(1.015);
}

.hero__wash {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 18, 38, 0.91) 0%, rgba(3, 18, 38, 0.69) 47%, rgba(3, 18, 38, 0.38) 100%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.35) 0%, rgba(3, 18, 38, 0.10) 52%, rgba(3, 18, 38, 0.76) 100%);
}

.hero__content {
  align-self: center;
  width: 100%;
  max-width: 96rem;
  padding: clamp(3rem, 9vh, 8rem) 0;
}

.hero__eyebrow {
  margin: 0 0 1.2rem;
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.21em;
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(4rem, 10.7vw, 11rem);
  line-height: 0.79;
  letter-spacing: -0.057em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero__date {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.12vw, 2px) rgba(255, 255, 255, 0.96);
  text-stroke: clamp(1px, 0.12vw, 2px) rgba(255, 255, 255, 0.96);
}

.hero__subhead {
  max-width: 34rem;
  margin: clamp(1.5rem, 3vw, 2.35rem) 0 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  opacity: 0.78;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--cream);
}

.modal-shell[hidden] {
  display: none;
}

.support-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 81, 186, 0.09), transparent 26rem),
    radial-gradient(circle at 4% 92%, rgba(232, 0, 13, 0.055), transparent 22rem),
    var(--cream);
  color: var(--ink);
  animation: screen-in 420ms cubic-bezier(.2, .82, .2, 1) both;
}

.support-screen:focus {
  outline: none;
}

.support-screen__inner {
  width: min(100%, 92rem);
  min-height: 100%;
  margin: 0 auto;
  padding:
    max(1.4rem, env(safe-area-inset-top))
    max(1.4rem, env(safe-area-inset-right))
    max(1.4rem, env(safe-area-inset-bottom))
    max(1.4rem, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vh, 4.5rem);
}

.support-screen__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-right: 4rem;
}

.support-screen__mark {
  width: 3.6rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0 64%, var(--red) 64% 100%);
}

.support-screen__label {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.modal-close {
  position: fixed;
  top: max(1.15rem, env(safe-area-inset-top));
  right: max(1.15rem, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(6, 29, 59, 0.18);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.88);
  color: var(--navy);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.modal-close span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-0.06em);
}

.modal-close:hover:not(:disabled) {
  transform: rotate(4deg) scale(1.04);
  background: white;
}

.modal-close:focus-visible,
.support-action:focus-visible {
  outline: 3px solid rgba(0, 81, 186, 0.38);
  outline-offset: 3px;
}

.modal-close:disabled {
  opacity: 0.26;
  cursor: wait;
}

.support-screen__body {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.8fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  align-items: center;
  padding: 1rem 0;
}

.support-screen h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.8rem, 7.6vw, 8.7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.support-screen__details {
  max-width: 36rem;
}

.support-screen__copy {
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 1.5;
}

.support-screen__copy p {
  margin: 0 0 1rem;
}

.support-screen__copy p:last-child {
  margin-bottom: 0;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.support-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(6, 29, 59, 0.22);
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.support-action--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.support-action:hover {
  transform: translateY(-2px);
  background: white;
}

.support-action--primary:hover {
  background: var(--navy-soft);
  color: white;
}

.support-screen__time {
  margin: 1.2rem 0 0;
  color: rgba(11, 31, 56, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.support-screen__footer {
  max-width: 56rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(11, 31, 56, 0.15);
}

.support-screen__emergency {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 700;
}

.support-screen__disclaimer {
  margin: 0.58rem 0 0;
  color: rgba(11, 31, 56, 0.62);
  font-size: 0.64rem;
  line-height: 1.4;
}

.noscript-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 1rem;
  border-radius: 0.75rem;
  background: white;
  color: black;
  font-size: 0.9rem;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 780px) {
  .hero {
    padding: 1.2rem;
  }

  .hero__image {
    background-position: 58% center;
  }

  .hero__wash {
    background:
      linear-gradient(180deg, rgba(3, 18, 38, 0.52) 0%, rgba(3, 18, 38, 0.64) 46%, rgba(3, 18, 38, 0.9) 100%),
      linear-gradient(90deg, rgba(3, 18, 38, 0.64), rgba(3, 18, 38, 0.3));
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.65rem, 18vw, 6.9rem);
    line-height: 0.82;
  }

  .hero__subhead {
    max-width: 23rem;
  }

  .page-footer {
    align-items: flex-end;
    font-size: 0.61rem;
  }

  .support-screen__inner {
    gap: 2.4rem;
    padding:
      max(1.2rem, env(safe-area-inset-top))
      max(1.2rem, env(safe-area-inset-right))
      max(1.3rem, env(safe-area-inset-bottom))
      max(1.2rem, env(safe-area-inset-left));
  }

  .support-screen__body {
    align-self: start;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 0.8rem 0 0;
  }

  .support-screen h2 {
    max-width: 9.5ch;
    font-size: clamp(3.35rem, 15vw, 5.8rem);
    line-height: 0.9;
  }

  .support-screen__copy {
    font-size: clamp(1.03rem, 4.4vw, 1.2rem);
  }

  .support-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .support-action:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  .support-action {
    width: 100%;
  }

  .support-screen__footer {
    align-self: end;
  }
}

@media (max-width: 390px) {
  .support-screen h2 {
    font-size: clamp(2.85rem, 14.5vw, 4rem);
  }

  .support-screen__copy {
    font-size: 0.98rem;
    line-height: 1.43;
  }

  .support-action {
    min-height: 3rem;
    padding: 0.72rem 0.75rem;
    font-size: 0.78rem;
  }

  .support-screen__time,
  .support-screen__emergency {
    font-size: 0.7rem;
  }

  .support-screen__disclaimer {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
