:root {
  --ink: #000;
  --paper: #f4f4f4;
  --white: #fff;
  --csun-red: #d00d2d;
  --red-dark: #a90a24;
  --line: rgba(0, 0, 0, 0.2);
  --muted: #55565a;
  --font: "Atkinson Hyperlegible", Arial, sans-serif;
  --page-padding: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--csun-red);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--csun-red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 110;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.5rem var(--page-padding);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand .csun-logo {
  width: 10.5rem;
  height: auto;
}

.brand-divider {
  align-self: stretch;
  width: 1px;
  background: var(--line);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(32rem, 1.25fr);
  min-height: calc(100svh - 5rem);
  background: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) var(--page-padding);
}

.eyebrow,
.role,
.detail-label {
  margin: 0 0 1rem;
  color: var(--csun-red);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4.25rem, 5.5vw, 7rem);
}

h2 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero-intro {
  max-width: 34rem;
  margin: 2rem 0 0;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--csun-red);
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--csun-red);
}

.button-primary:hover {
  color: white;
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-secondary:hover {
  color: white;
  background: var(--csun-red);
}

.hero-image {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent 35%);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-image figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  color: white;
  background: var(--ink);
  font-size: 0.9rem;
}

.program-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 var(--page-padding);
  list-style: none;
  color: white;
  background: var(--ink);
}

.program-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

.program-facts li + li {
  padding-left: clamp(1rem, 3vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.program-facts strong {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.program-facts span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: var(--section-space) var(--page-padding);
  scroll-margin-top: 5.75rem;
}

.schedule {
  color: white;
  background: var(--csun-red);
}

.schedule .eyebrow,
.schedule .detail-label {
  color: white;
}

.schedule-details {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  gap: 2.5rem 3rem;
}

.schedule-details div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.schedule-details .detail-label {
  display: block;
  margin-bottom: 0.45rem;
}

.schedule-details strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  font-weight: 700;
}

.schedule .text-link:hover {
  color: white;
}

.about {
  background: var(--paper);
}

.about-copy {
  max-width: 48rem;
  align-self: center;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.about-copy p:first-child {
  margin-top: 0;
  font-weight: 700;
}

.form-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-list li {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.form-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.form-list p {
  max-width: 38rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.form-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.step-number {
  color: var(--csun-red);
  font-size: 1.35rem;
  font-weight: 700;
}

.medical-note {
  grid-column: 2;
  max-width: 48rem;
  margin: 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(208, 13, 45, 0.4);
  background: #fff3f5;
}

.team {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(28rem, 1.1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  color: white;
  background: var(--ink);
}

.team h2 {
  font-size: clamp(3.5rem, 4.6vw, 5.5rem);
}

.team .eyebrow,
.team .role {
  color: #ff6f84;
}

.contacts {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(2, minmax(14rem, 1fr));
  gap: 3rem;
}

.contacts article {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.contacts .role {
  margin-bottom: 0.7rem;
}

.contacts h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.contacts a:hover {
  color: #ff6f84;
}

.resources {
  display: block;
  background: var(--paper);
}

.resources details {
  max-width: 78rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resources summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 8rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

.resources summary::-webkit-details-marker {
  display: none;
}

.resources summary strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.resources summary .eyebrow {
  display: block;
  margin-bottom: 0.55rem;
}

.summary-action {
  font-weight: 700;
  white-space: nowrap;
}

.summary-action::after {
  content: "+";
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 1.5rem;
}

details[open] .summary-action::after {
  content: "−";
}

.resource-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(16rem, 1fr));
  gap: 4rem;
  padding: 1rem 0 3rem;
}

.resource-content ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-content li + li {
  border-top: 1px solid var(--line);
}

.resource-content a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0.65rem 0;
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem var(--page-padding);
  color: white;
  background: var(--csun-red);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.2rem;
  background: white;
  object-fit: contain;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section {
    scroll-margin-top: 8.5rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    min-height: min(72vw, 34rem);
  }

  .program-facts {
    grid-template-columns: 1fr;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .program-facts li,
  .program-facts li + li {
    padding: 0.9rem 0;
    border-left: 0;
  }

  .program-facts li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .section {
    grid-template-columns: minmax(0, 1fr);
  }

  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .medical-note {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.95rem;
  }

  .brand .csun-logo {
    width: 8.5rem;
  }

  nav a {
    min-width: 2.75rem;
    padding-left: 0.2rem;
    padding-right: 0.75rem;
    font-size: 0.93rem;
  }

  .hero-copy {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(3.4rem, 15.5vw, 5rem);
  }

  h2 {
    font-size: clamp(3rem, 13.5vw, 4.5rem);
  }

  .hero-image {
    min-height: 24rem;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .schedule-details,
  .contacts,
  .resource-content {
    grid-template-columns: 1fr;
  }

  .form-list li {
    grid-template-columns: 2.2rem 1fr;
  }

  .form-list a {
    grid-column: 2;
    justify-self: start;
  }

  .resources summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
