:root {
  font-family: Arial, sans-serif;
  color: #172943;
  background: #fff;
  line-height: 1.6;
  --brand-blue: #205c93;
}
.footer-credit { padding-block: 1rem; margin-top: 1.5rem; border-top: 1px solid #ffffff30; text-align: center; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #205c93; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 4; padding: .5rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: 1.35rem clamp(1rem, 3vw, 3rem); background: #fff; }
.admin-bar .top { top: 32px; }
.brand { align-self: center; }
.brand img { display: block; width: clamp(8rem, 15vw, 11rem); height: auto; }
.top nav { flex: 1; display: flex; justify-content: center; border-radius: 1.2rem; background: var(--brand-blue); color: #fff; }
.top nav a { flex: 1; padding: .8rem .6rem; text-align: center; text-decoration: none; font-size: .95rem; font-weight: 750; }
.top nav > a:first-child, .primary-menu li:first-child a { border-radius: 1.2rem 0 0 1.2rem; }
.top nav > a:last-child, .primary-menu li:last-child a { border-radius: 0 1.2rem 1.2rem 0; }
.top nav a + a { border-left: 1px solid white; }
.primary-menu { display: flex; flex: 1; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-menu li { display: flex; flex: 1 1 auto; }
.primary-menu li + li { border-inline-start: 1px solid white; }
.top nav a:focus-visible { outline-color: #102948; }
.top nav a:hover { background: #174773; }
.top nav a[aria-current="page"] { background: #174773; }
section[id], main[id] { scroll-margin-top: 8rem; }
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(ellipse 75% 42% at 50% 23%, #dcf2ff 0%, #f0f9ff 48%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(18rem, 34vw, 30rem);
  background: url("hero-ribbons.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-logo-glow { position: relative; isolation: isolate; }
.hero-logo-glow::before {
  content: "";
  position: absolute;
  inset: -.8rem;
  z-index: -1;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0% 55%, #70ccff55 65%, #1696e8 76%, #ffca66 82%, transparent 92%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.logo-sparkle {
  position: absolute;
  width: .8rem;
  height: .8rem;
  background: #188ed6;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
  opacity: .7;
}
.logo-sparkle:nth-of-type(1) { top: 5%; right: -2%; }
.logo-sparkle:nth-of-type(2) { top: 55%; left: -5%; background: #e8a62d; }
.logo-sparkle:nth-of-type(3) { bottom: 8%; right: -4%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo-glow::before { animation: logo-orbit 7s linear infinite; }
  .logo-sparkle { animation: logo-twinkle 3s ease-in-out infinite; }
  .logo-sparkle:nth-of-type(2) { animation-delay: -1s; }
  .logo-sparkle:nth-of-type(3) { animation-delay: -2s; }
}
@keyframes logo-orbit { to { transform: rotate(360deg); } }
@keyframes logo-twinkle {
  0%, 100% { opacity: .25; transform: scale(.65); }
  50% { opacity: 1; transform: scale(1.25); }
}
.hero-emblem {
  display: block;
  width: clamp(10rem, 28vw, 20rem);
  height: auto;
  filter: drop-shadow(0 .2rem .35rem #10294840);
}
.hero-stage {
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  background: transparent;
}
.anniversary-countdown { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(.2rem, 1.2vw, 1rem); width: min(38rem, calc(100% - 2rem)); margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); color: #164f87; font-family: Arial, sans-serif; }
.countdown-number, .countdown-colon { display: block; font-size: clamp(2.1rem, 8vw, 4.75rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.countdown-colon { font-weight: 500; }
.countdown-label { display: block; margin-top: .4rem; font-size: clamp(.9rem, 2.5vw, 1.25rem); }
.countdown-finished { color: #205c93; font-weight: 700; }
.hero-intro {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse at top left, #d2eefa 0%, transparent 65%),
    linear-gradient(125deg, #e7f2fc, #f3faff 55%, #dcedf9);
  border: 1px solid #bed8ed;
  border-top: 3px solid #2781ba;
  border-radius: 1.25rem;
  box-shadow: 0 .6rem 2rem #205c9312;
}
.hero-intro h1 { color: #163d68; }
.hero-slogan {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem auto 1.5rem;
  padding: .7rem clamp(.75rem, 2.5vw, 1.75rem) 1rem;
  border: 1px solid #bdd8ec;
  border-radius: .9rem;
  background: linear-gradient(135deg, #ffffffed, #f1f9ff);
  box-shadow: 0 .35rem 1rem #163d6810;
  color: #134c80;
  font-family: Arial, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.3;
  text-align: center;
}
.hero-slogan strong { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25em; font-weight: 700; }
.hero-slogan span { white-space: nowrap; }
.hero-slogan::after {
  content: "";
  position: absolute;
  bottom: .4rem;
  left: 25%;
  width: 50%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #d79521 30% 70%, transparent);
}
h1, h2 { line-height: 1.17; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin: .25em 0; }
.eyebrow { color: var(--brand-blue); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-block; padding: .65rem 1.5rem; margin-top: .5rem; background: var(--brand-blue); color: white; border-radius: 2rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #174773; }
.route { background: repeating-radial-gradient(ellipse at bottom, #fff 0 2.2rem, #eaf4fb 2.3rem 2.4rem, #fff 2.5rem 4rem); border-block: 1px solid #dcebf7; }
.route ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; list-style: none; margin: 0 auto; padding: 2rem 0; }
.route ol::before { content: ""; position: absolute; top: 50%; left: 12%; right: 12%; border-top: 1px solid #82afd0; }
.route li { display: grid; place-items: center; z-index: 1; }
.route a { display: grid; place-content: center; width: clamp(5rem, 16vw, 9rem); aspect-ratio: 1; border: 1px solid #4582b4; border-radius: 50%; background: #fff; color: #205c93; font-size: clamp(.73rem, 2.3vw, 1rem); text-align: center; text-decoration: none; font-weight: 750; }
.route a:hover { background: #e8f4fd; }
.route span { font-size: 1.5em; line-height: 1; }
.chapter, .album { padding-block: clamp(3rem, 7vw, 6rem); }
.section-heading { text-align: center; margin: 0 auto 2rem; max-width: 42rem; }
.yearbook { background: #edf6fd; }
.yearbook .section-heading { padding-inline: 1rem; }
.contents {
  --timeline-accent: #205c93;
  list-style: none;
  counter-reset: chapter;
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(#89a8c3, #89a8c3) center / 1px 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .contents {
    background:
      radial-gradient(ellipse, #fff 8%, #53caff 30%, #1689df 48%, transparent 72%) center -6rem / 9px 6rem no-repeat,
      linear-gradient(#89a8c3, #89a8c3) center / 1px 100% no-repeat;
    animation: timeline-light 4s linear infinite;
  }
}
@keyframes timeline-light {
  from { background-position: center -6rem, center; }
  to { background-position: center calc(100% + 6rem), center; }
}
.contents li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(2.75rem, 12vw, 6rem) minmax(0, 1fr);
  align-items: center;
  position: relative;
  isolation: isolate;
  counter-increment: chapter;
  padding-block: .65rem;
}
.contents li::before {
  content: counter(chapter, decimal-leading-zero) / "";
  grid-area: 1 / 2;
  justify-self: center;
  align-self: start;
  padding: .15rem .25rem;
  background: #edf6fd;
  color: var(--timeline-accent);
  font-size: clamp(1.35rem, 5vw, 2.15rem);
  font-weight: 800;
}
.contents li::after {
  content: "";
  grid-area: 1 / 2;
  place-self: center;
  width: .8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--timeline-accent);
  box-shadow: 0 0 0 4px #edf6fd;
}
.contents .timeline-badge {
  grid-area: 1 / 1;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(100%, 13rem);
  min-height: clamp(7.25rem, 29vw, 13rem);
  aspect-ratio: 1;
  padding: clamp(.45rem, 2vw, 1.55rem);
  border: 1px solid var(--timeline-accent);
  border-radius: 50%;
  outline-offset: 4px;
  background: #fff;
  color: #174773;
  font-size: clamp(.73rem, 2.5vw, 1rem);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contents li:nth-child(even) .timeline-badge { grid-column: 3; justify-self: start; }
.contents li:nth-child(1) { --timeline-accent: #205c93; --badge-tint: #e0f1ff; }
.contents li:nth-child(2) { --timeline-accent: #146557; --badge-tint: #daf4eb; }
.contents li:nth-child(3) { --timeline-accent: #82520f; --badge-tint: #fff0ce; }
.contents li:nth-child(4) { --timeline-accent: #64438a; --badge-tint: #f0e6fc; }
.contents .timeline-badge {
  color: var(--timeline-accent);
  background: linear-gradient(115deg, transparent 38%, #fffc 50%, transparent 62%) 150% 0 / 250% 100% no-repeat,
    radial-gradient(circle at 28% 18%, #fff, var(--badge-tint));
  transition: background-position .6s ease, box-shadow .25s ease;
}
.contents a.timeline-badge:is(:hover, :focus-visible) {
  text-decoration: none;
  background-position: -50% 0, center;
  box-shadow: 0 0 0 3px var(--badge-tint), 0 .45rem 1.3rem color-mix(in srgb, var(--timeline-accent) 30%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .contents .timeline-badge { transition: none; }
}
@media (min-width: 38rem) {
  .contents .timeline-badge::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 50%;
    width: 4.5rem;
    height: 26%;
    border-top: 1px dashed #6e9ec4;
    border-radius: 50%;
  }
  .contents li:nth-child(even) .timeline-badge::after { right: auto; left: 50%; }
}
.film { background: #f0f7fc; }
.film .chapter { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.screen { display: grid; place-items: center; min-height: 15rem; padding: 1rem; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 70%, #246da2, #102948); border-radius: .8rem; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tiles li { display: grid; align-content: end; min-height: 11rem; background: #e3f0fa; padding: 1.25rem; font-weight: 700; border-radius: .65rem; }
.tiles span { color: var(--brand-blue); font-size: 2.5rem; margin-bottom: .6rem; }
.site-footer { padding-block: 2.5rem; background: #163d68; color: #fff; }
.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.footer-school { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-logo { width: 11rem; padding: .6rem; border-radius: .45rem; background: #fff; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-name, .footer-links p { margin: 0 0 .35rem; font-weight: 700; }
.footer-school address { font-style: normal; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: .2rem; text-underline-offset: .2em; }
.site-footer a:focus-visible { outline-color: #fff; }
.publication-reader { text-align: center; }
.publication-controls { width: fit-content; max-width: 100%; margin: 0 auto 1rem; border: 1px solid #c5d9ea; border-radius: .65rem; }
.publication-controls button, .publication-controls input { min-height: 2.65rem; font: inherit; }
.publication-controls button { margin: .2rem; padding-inline: .65rem; color: #fff; background: var(--brand-blue); border: 0; border-radius: .4rem; cursor: pointer; }
.publication-controls button:disabled { background: #536c82; cursor: default; }
.publication-controls input { width: 4.5rem; }
.publication-page { perspective: 1000px; }
.publication-page canvas { max-width: 100%; max-height: 80vh; width: auto; height: auto; box-shadow: 0 .45rem 2rem #203f632e; }
.publication-reader { width: min(112rem, 100% - 1rem); padding-block: 1rem; }
.publication-reader h1 { margin-block: .25rem 1rem; }
.publication-help { font-size: .9rem; color: #476079; }
.publication-stage { display: flex; align-items: center; justify-content: center; height: clamp(360px, 88vh, 1100px); padding: .5rem; overflow: hidden; border-radius: 1rem 1rem 0 0; background: radial-gradient(ellipse at 50% 10%, #e4f3fb, #9ebfd4 55%, #285a7c); }
.publication-book { width: 100%; height: 100%; margin: auto; }
.publication-stage.is-front-cover .publication-book { transform: translateX(calc(-1 * var(--cover-shift, 0px))); }
.publication-stage.is-back-cover .publication-book { transform: translateX(var(--cover-shift, 0px)); }
.publication-book:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.publication-sheet { overflow: hidden; background: #fffdf7; box-shadow: inset 0 0 12px #1d35571a; }
.publication-sheet img { display: none; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; }
.publication-sheet.is-loaded img { display: block; }
.publication-page-loading { display: grid; place-items: center; height: 100%; padding: 1rem; color: #344474; }
.publication-sheet.is-loaded .publication-page-loading { display: none; }
.publication-reader .publication-controls { width: 100%; max-width: none; margin: 0; padding: .5rem; background: #163d68; color: #fff; border: 0; border-radius: 0 0 1rem 1rem; }
.publication-controls legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.publication-controls label { display: inline-flex; align-items: center; gap: .4rem; margin-inline: .35rem; }
.publication-controls input { color: #172943; border: 1px solid #c5d9ea; border-radius: .35rem; text-align: center; }
.publication-controls button { border: 1px solid #ffffff50; background: #286292; }
.publication-controls button:hover:not(:disabled) { background: #3579ae; }
.publication-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .75rem; max-height: 320px; overflow-y: auto; padding: 1rem; background: #edf6fd; border-radius: .75rem; }
.publication-thumbnails button { padding: .4rem; cursor: pointer; border: 2px solid transparent; border-radius: .5rem; background: #fff; color: #163d68; }
.publication-thumbnails button[aria-current="page"] { border-color: #205c93; }
.publication-thumbnails img { display: block; width: 100%; height: 125px; object-fit: contain; background: #e3f0fa; }
.publication-thumbnails span { display: block; padding-top: .3rem; }
.publication-zoom { width: 95vw; max-width: 1600px; height: 94vh; max-height: 94vh; border: 0; border-radius: .75rem; padding: 0; background: #edf6fd; }
.publication-zoom::backdrop { background: #102948cc; }
.publication-zoom button { position: sticky; top: 0; margin: .75rem; padding: .65rem 1rem; background: #163d68; color: white; border: 0; border-radius: .4rem; cursor: pointer; }
.publication-zoom div { overflow: auto; height: calc(100% - 4.5rem); text-align: left; }
.publication-zoom img { display: block; width: max(100%, 1100px); height: auto; max-width: none; }
.publication-reader:fullscreen { width: 100%; height: 100%; overflow: auto; padding: 1rem; background: #edf6fd; }
.publication-reader:fullscreen .publication-stage { height: 88vh; }
.publication-reader [hidden] { display: none !important; }
@media (max-width: 40rem) { .publication-reader { width: calc(100% - .5rem); } .publication-stage { height: 80vh; min-height: 300px; padding: .25rem; } .publication-controls button { font-size: .82rem; padding-inline: .5rem; } }
@media (max-width: 48.875rem) { .admin-bar .top { top: 46px; } }
@media (max-width: 40rem) {
  .top { flex-direction: column; align-items: stretch; gap: .65rem; padding: .65rem 1rem; }
  .brand { align-self: start; }
  .top nav a { font-size: .8rem; padding: .55rem .2rem; }
  .film .chapter, .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 37.5rem) { .admin-bar .top { top: 0; } }
.publication-reader .eyebrow {
  margin: 0 0 .5rem;
  color: #16324f;
  font-family: Arial, sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}
