:root {
  --ink: #152033;
  --ink-soft: #2a3a52;
  --paper: #f7f4ef;
  --paper-deep: #ebe4d8;
  --accent: #0f6b5c;
  --accent-hover: #0c5549;
  --line: rgba(21, 32, 51, 0.12);
  --shadow: 0 18px 50px rgba(21, 32, 51, 0.12);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(15, 107, 92, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(21, 32, 51, 0.16), transparent 50%),
    linear-gradient(165deg, #fbf8f3 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
  padding-block: 2rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s var(--ease) 0.05s forwards;
}

.brand img {
  width: clamp(7.5rem, 22vw, 9.5rem);
  height: auto;
  display: block;
}

.brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 107, 92, 0.12);
  animation: pulse 2.4s var(--ease) 0.6s infinite;
}

.campus {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) 0.18s forwards;
}

.lede {
  margin: 0 0 2.25rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.portals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s var(--ease) 0.42s forwards;
}

.portal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.portal:hover,
.portal:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 92, 0.35);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.portal:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.28), var(--shadow);
}

.portal-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.portal-hint {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.portal-arrow {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.portal:hover .portal-arrow,
.portal:focus-visible .portal-arrow {
  background: var(--accent-hover);
  transform: translateX(2px);
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  opacity: 0;
  animation: fade 0.8s var(--ease) 0.7s forwards;
}

.footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(15, 107, 92, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(15, 107, 92, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .campus,
  .lede,
  .portals,
  .footer,
  .brand-mark {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .portals {
    grid-template-columns: 1fr 1fr;
  }
}
