:root {
  --primary: #fea405;
  --primary-deep: #e89400;
  --scaffold: #fdfbf8;
  --ink: #1c1915;
  --muted: #64748b;
  --soft: #99989b;
  --line: #e5e5e5;
  --font: "Manrope", "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--scaffold);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
}

.brand-light { color: #fff; }

.brand-icon,
.brand-word {
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-icon {
  width: 26px;
  height: 26px;
  -webkit-mask-image: url("assets/app_logo_icon.svg");
  mask-image: url("assets/app_logo_icon.svg");
}

.brand-word {
  width: 102px;
  height: 15px;
  margin-bottom: 3px;
  -webkit-mask-image: url("assets/app_logo_text.svg");
  mask-image: url("assets/app_logo_text.svg");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 var(--pad);
  background: var(--scaffold);
  border-bottom: 1px solid var(--line);
}

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--primary-deep); }

.menu-toggle,
.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 24px;
  padding: 36px var(--pad) 12px;
}

.welcome {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 13px;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
}

.line {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: var(--primary-deep); }

.hero-art {
  position: relative;
  height: 420px;
  justify-self: center;
  width: min(320px, 100%);
}

.hero-art img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  transform: translateX(-50%);
  opacity: 0;
  animation: hero-swap 15s infinite;
}

.hero-art img:nth-child(2) { animation-delay: -10s; }
.hero-art img:nth-child(3) { animation-delay: -5s; }

@keyframes hero-swap {
  0% { opacity: 1; }
  30% { opacity: 1; }
  33% { opacity: 0; }
  97% { opacity: 0; }
  100% { opacity: 1; }
}

.campus {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.campus > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.campus::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.62));
}

.campus-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding: 36px var(--pad) 40px;
  color: #fff;
}

.campus-copy h2 {
  margin: 22px 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.campus-copy p:last-child { margin: 0; }

.sheet { padding: 40px var(--pad); }

.sheet h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.split h2:not(:first-child) { margin-top: 28px; }

.split p { margin: 0; }

.split ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.split li + li { margin-top: 6px; }

.close {
  margin: 0;
  padding: 0 var(--pad) 40px;
  color: var(--muted);
}

.policy {
  max-width: 720px;
  margin: 0 var(--pad) 64px;
  padding-top: 40px;
}

.policy h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.policy-date {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.policy h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.policy p,
.policy li {
  color: #3d3a36;
}

.policy p { margin: 0 0 12px; }

.policy ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.policy li + li { margin-top: 6px; }

.policy code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad) 32px;
  border-top: 1px solid var(--line);
}

.site-footer p,
.footer-link {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  text-decoration: none;
}

.footer-link:hover { color: var(--primary-deep); }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
  }

  .menu-button span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--pad) 14px;
    background: var(--scaffold);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a { padding: 12px 0; }

  .menu-toggle:checked ~ .site-nav { display: flex; }

  .hero,
  .split { grid-template-columns: 1fr; }

  .hero { padding-top: 28px; }

  h1 { max-width: none; }

  .hero-art {
    order: -1;
    height: 320px;
  }

  .hero-art img { max-height: 300px; }

  .campus { min-height: 520px; }

  .site-footer { align-items: flex-start; flex-direction: column; }
}

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

  .hero-art img { animation: none; opacity: 0; }

  .hero-art img:first-child { opacity: 1; }
}
