/* Shared layout and current Zupple University look */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: #171717;
  background: #b3c9d8;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header__brand {
  flex: 0 0 auto;
  color: #222e67;
  font-family: 'Noticia Text', Georgia, serif;
  font-size: 21px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  color: #222e67;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  border-bottom-color: #222e67;
  background: #f4f7fa;
}

main {
  min-height: 70vh;
}

.hero {
  padding: 36px 20px;
  background: #000;
}

.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero__image {
  display: block;
  width: min(100%, 760px);
  max-height: 280px;
}

.section {
  padding: 54px 0;
  color: #171717;
  font-family: Nunito, Arial, sans-serif;
}

.section--white {
  background: #fff;
}

.section--blue {
  background: #b3c9d8;
}

.section__title {
  margin: 0;
  color: #222e67;
  font-family: 'Noticia Text', Georgia, serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.section__part {
  margin-top: 28px;
}

.section__description {
  line-height: 1.65;
}

.section__gap {
  margin-top: 56px;
}

.container--tall {
  padding-top: 56px;
  padding-bottom: 72px;
}

.closing-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 24px;
  background: #222e67;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.closing-banner:hover {
  background: #2c3c7f;
}

.closing-banner:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: -5px;
}

.closing-banner strong {
  font-family: 'Noticia Text', Georgia, serif;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.announcement-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.announcement-card {
  padding: 0;
  border-left: 4px solid #b3c9d8;
  background: #f4f7f9;
  scroll-margin-top: 100px;
}

.announcement-card > summary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 6px 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.announcement-card > summary::-webkit-details-marker {
  display: none;
}

.announcement-card > summary::before {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: flex-end;
  color: #222e67;
  content: '+';
  font-size: 22px;
  line-height: 33px;
  text-align: center;
}

.announcement-card[open] > summary::before {
  content: '−';
}

.announcement-card__date {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #66747d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announcement-card__title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #222e67;
  font-family: 'Noticia Text', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.announcement-card__content {
  padding: 0 24px 22px 60px;
}

.announcement-card__copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.announcement-card__signature {
  margin: 16px 0 0;
  font-style: italic;
  text-align: right;
}

.testimonial-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px max(24px, calc((100vw - 1110px) / 2)) 22px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
}

.testimonial-card {
  display: flex;
  flex: 0 0 310px;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(34, 46, 103, 0.12);
  color: #222e67;
  scroll-snap-align: start;
  text-decoration: none;
}

.testimonial-card p {
  margin: 0;
  line-height: 1.55;
}

.testimonial-card__author {
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.testimonial-card__author a {
  text-decoration: underline;
}

.testimonial-card--review {
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.testimonial-card__stars {
  color: #e0a400;
  font-size: 25px;
  letter-spacing: 3px;
}

.home-illustration {
  background-image: url('/assets/images/scan.jpg');
  background-color: #000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.archive-label {
  margin: 0 0 12px;
  color: #607386;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.timeline {
  max-width: 760px;
}

.timeline__item {
  padding-bottom: 44px;
}

.timeline__title {
  color: #222e67;
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 23px;
  line-height: 1.35;
  text-transform: none;
}

.timeline__description {
  line-height: 1.6;
}

.timeline__easter-egg-link {
  color: inherit;
  text-decoration: none;
}

.timeline__easter-egg-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.timeline__item--pause .timeline__content {
  left: -30px;
  padding: 18px 0;
}

.timeline__item--pause .timeline__title {
  font-family: 'Noticia Text', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.social-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px;
  margin-top: 30px;
}

.social-links a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #222e67;
  font-size: 18px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #111b4b;
}

.social-links__icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.cantine-game {
  max-width: 1000px;
  margin-top: 36px;
}

.cantine-game__canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 18px rgba(34, 46, 103, 0.14);
}

.cantine-game__error {
  color: #8b1e1e;
  text-align: center;
}

.site-footer {
  padding: 48px 20px;
  background: #000;
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.site-footer p {
  margin: 12px 0;
}

.site-footer a {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    padding: 12px 0 0;
  }

  .site-header__brand {
    display: block;
    padding: 0 20px 10px;
    text-align: center;
  }

  .site-nav {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .site-nav a {
    min-height: 52px;
    padding: 0 10px;
  }

  .section {
    padding: 42px 0;
  }

  .section__gap {
    margin-top: 40px;
  }

  .announcement-card > summary {
    gap: 6px 12px;
    padding: 18px;
  }

  .announcement-card__content {
    padding: 0 18px 18px;
  }

  .testimonial-card {
    flex-basis: min(310px, calc(100vw - 64px));
    min-height: 240px;
  }

  .timeline__title {
    font-size: 21px;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;
  }
}

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