@font-face {
  font-display: swap;
  font-family: "Schoolbell";
  src: url("/assets/fonts/schoolbell-regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #1f2226;
  --paper: #fff7e4;
  --chalk: #eef3e7;
  --green: #1e5b46;
  --ruby: #9d2435;
  --gold: #e9a83a;
  --blue: #244e78;
  --shadow: 0 24px 70px rgba(22, 20, 18, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 247, 228, 0.92);
  border-bottom: 1px solid rgba(31, 34, 38, 0.14);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-family: Schoolbell, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  text-decoration: none;
}

.brand img {
  height: 44px;
  object-fit: contain;
  width: 52px;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

nav a {
  font-weight: 760;
  text-decoration: none;
}

.nav-play {
  background: var(--ruby);
  border-radius: 999px;
  color: #fff;
  min-width: 82px;
  padding: 9px 16px;
  text-align: center;
}

.hero {
  display: grid;
  isolation: isolate;
  min-height: calc(80svh - 36px);
  overflow: hidden;
  place-items: center start;
  position: relative;
}

.hero-bg,
.hero-bg img,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-bg {
  z-index: -3;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 28, 22, 0.84) 0%, rgba(20, 28, 22, 0.64) 42%, rgba(20, 28, 22, 0.2) 72%, rgba(20, 28, 22, 0.1) 100%),
    linear-gradient(180deg, rgba(31, 34, 38, 0.15), rgba(31, 34, 38, 0.58));
  z-index: -2;
}

.hero-content {
  color: #fff;
  max-width: 760px;
  padding: clamp(38px, 7vw, 80px) clamp(22px, 6vw, 76px);
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Schoolbell, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.6rem, 10vw, 7.9rem);
  font-weight: 400;
  line-height: 0.86;
  margin: 0;
  max-width: 700px;
}

.hero-copy {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 680;
  margin: 24px 0 0;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.text-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 830;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  color: #251f16;
}

.secondary-action {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.hero-faculty {
  align-items: end;
  bottom: 0;
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  justify-content: flex-end;
  max-height: 88%;
  pointer-events: none;
  position: absolute;
  right: clamp(18px, 7vw, 110px);
  width: min(34vw, 440px);
  z-index: -1;
}

.hero-faculty img {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36));
  height: min(58svh, 570px);
  object-fit: contain;
  object-position: bottom;
  width: auto;
}

.faculty-ruby {
  transform: translateY(1%) scale(1.05);
}

.faculty-sally {
  transform: translateY(3%);
}

.signal-band {
  background: var(--ink);
  color: var(--chalk);
  padding: 20px clamp(22px, 5vw, 72px);
  text-align: center;
}

.signal-band p {
  font-family: Caveat, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin: 0 auto;
  max-width: 980px;
}

.section {
  padding: clamp(54px, 9vw, 110px) clamp(22px, 6vw, 76px);
}

.faculty-section {
  background:
    linear-gradient(180deg, rgba(255, 247, 228, 0.92), rgba(238, 243, 231, 0.98));
}

.section-copy {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 1fr);
  margin: 0 auto 36px;
  max-width: 1120px;
}

.section-copy h2,
.rhythm-panel h2,
.yearbook-copy h2 {
  font-family: Schoolbell, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.section-copy p:not(.section-kicker),
.yearbook-copy p {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  margin: 0;
  max-width: 640px;
}

.faculty-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.faculty-grid article {
  --faculty-bg: #fffdf5;
  background: var(--faculty-bg);
  border: 1px solid rgba(31, 34, 38, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 20, 18, 0.08);
  display: grid;
  grid-template-rows: 360px auto auto;
  min-width: 0;
  overflow: hidden;
}

.faculty-grid article:nth-child(1) {
  --faculty-bg: #fde3e2;
}

.faculty-grid article:nth-child(2) {
  --faculty-bg: #d6f1e8;
}

.faculty-grid article:nth-child(3) {
  --faculty-bg: #eee3c7;
}

.faculty-grid img {
  align-self: end;
  background: var(--faculty-bg);
  height: 360px;
  object-fit: contain;
  object-position: bottom center;
  padding: 18px 18px 0;
  width: 100%;
}

.faculty-grid h3 {
  color: var(--ruby);
  font-size: 1.2rem;
  margin: 18px 18px 4px;
}

.faculty-grid p {
  margin: 0 18px 22px;
}

.rhythm-section {
  background: var(--green);
  color: #fff;
}

.rhythm-panel {
  margin: 0 auto;
  max-width: 1120px;
}

.rhythm-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.rhythm-list div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  min-height: 190px;
  padding: 22px;
}

.rhythm-list span {
  color: var(--gold);
  display: block;
  font-family: Schoolbell, ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 18px;
}

.rhythm-list h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.rhythm-list p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.yearbook-section {
  align-items: center;
  background: #f2ead4;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
}

.text-link {
  background: var(--blue);
  color: #fff;
  margin-top: 28px;
}

.artifact-wall {
  align-items: center;
  display: grid;
  grid-template-columns: 0.9fr 0.78fr;
  grid-template-rows: auto auto;
  max-width: 680px;
  min-height: 560px;
  position: relative;
}

.artifact-wall img {
  border: 8px solid #fffdf5;
  box-shadow: var(--shadow);
}

.comic-page {
  border-radius: 6px;
  grid-column: 1;
  grid-row: 1 / span 2;
  transform: rotate(-4deg);
  width: min(100%, 360px);
}

.hall-pass {
  border-radius: 6px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  transform: rotate(5deg) translateY(20px);
  width: min(100%, 270px);
  z-index: 2;
}

.comic-page.second {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  transform: rotate(7deg) translate(-18px, -12px);
  width: min(100%, 260px);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(22px, 6vw, 76px);
}

.site-footer span {
  font-family: Schoolbell, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.6rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 820;
  text-decoration: none;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(82svh - 84px);
    place-items: start;
  }

  .hero-content {
    padding-top: clamp(42px, 12vw, 74px);
  }

  .hero h1 {
    font-size: clamp(4.1rem, 20vw, 6.8rem);
  }

  .hero-faculty {
    opacity: 0.72;
    right: -4vw;
    width: 54vw;
  }

  .hero-faculty img {
    height: min(50svh, 440px);
  }

  .section-copy,
  .yearbook-section {
    grid-template-columns: 1fr;
  }

  .faculty-grid,
  .rhythm-list {
    grid-template-columns: 1fr;
  }

  .faculty-grid article {
    grid-template-rows: 300px auto auto;
  }

  .faculty-grid img {
    height: 300px;
  }

  .artifact-wall {
    margin-inline: auto;
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand span {
    font-size: 1.25rem;
  }

  nav {
    gap: 8px 12px;
  }

  nav a {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    padding-inline: 18px;
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-faculty {
    bottom: -4svh;
    opacity: 0.45;
    right: -12vw;
    width: 72vw;
  }

  .signal-band {
    text-align: left;
  }

  .section {
    padding-inline: 18px;
  }

  .artifact-wall {
    grid-template-columns: 1fr 0.88fr;
    min-height: 380px;
  }
}
