/* =========================================
   VARIABLES AND RESET
========================================= */

:root {
  --burgundy: #741115;
  --dark-burgundy: #4d090c;
  --gold: #d2a62f;
  --cream: #f7f2e8;
  --white: #ffffff;
  --text: #201919;
  --muted: #716565;
  --border: #e7ddd2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 65px;
}

body {
  color: var(--text);
  background: var(--white);

  font-family: Arial, Helvetica, sans-serif;
  
  overflow-x: hidden;
}

a {
  color: inherit;
}


/* =========================================
   HEADER
========================================= */

.siteHeader {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 12px 6%;

  color: var(--white);

  background:
    linear-gradient(
      110deg,
      var(--dark-burgundy),
      var(--burgundy)
    );
}

.schoolBrand {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--white);
  text-decoration: none;
}

.brandMark {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  flex: 0 0 44px;

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;

  color: #271500;
  background: var(--gold);

  font-family: Georgia, serif;
  font-weight: 900;
}

.brandText strong,
.brandText small {
  display: block;
}

.brandText strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.brandText small {
  margin-top: 3px;

  color: #edcf79;

  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registryButton,
.primaryButton,
.contactButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border-radius: 999px;

  color: #241500;
  background: var(--gold);

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 9px 25px rgba(20, 3, 4, 0.18);
}


/* =========================================
   SECTION NAVIGATION
========================================= */

.sectionNavigation {
  position: sticky;
  top: 0;

  z-index: 100;

  border-bottom: 1px solid #e6ded6;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.sectionNavigationInner {
  max-width: 1180px;

  display: flex;
  align-items: center;
  gap: 7px;

  margin: auto;
  padding: 10px 18px;

  overflow-x: auto;
  scrollbar-width: none;
}

.sectionNavigationInner::-webkit-scrollbar {
  display: none;
}

.sectionLink {
  flex: 0 0 auto;

  padding: 9px 13px;

  border-radius: 999px;

  color: #514545;

  font-size: 12px;
  font-weight: 800;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.sectionLink:hover,
.sectionLink.active {
  color: var(--white);
  background: var(--burgundy);
}


/* =========================================
   HERO
========================================= */

.heroSection {
  min-height: 650px;

  position: relative;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  color: var(--white);
}

.heroBackground {
  position: absolute;
  inset: 0;

  background:
    url("../images/back-to-school-bash.jpg")
    center / cover no-repeat,
    linear-gradient(135deg, #876f58, #3e2924);

  transform: scale(1.01);
}

.heroOverlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(38, 3, 5, 0.93),
      rgba(38, 3, 5, 0.68) 48%,
      rgba(0, 0, 0, 0.18) 80%
    );
}

.heroContent {
  width: min(1180px, 88vw);

  position: relative;

  z-index: 2;

  margin: 0 auto;
  padding: 90px 0;
}

.sectionEyebrow {
  margin-bottom: 13px;

  color: #b57c08;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.heroSection .sectionEyebrow,
.contactSection .sectionEyebrow {
  color: #f0c44d;
}

.heroContent h1 {
  max-width: 820px;

  margin-bottom: 22px;

  font-family: Georgia, serif;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.heroDescription {
  max-width: 620px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 18px;
  line-height: 1.7;
}

.heroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 31px;
}

.outlineButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;

  color: var(--white);

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.pageSection {
  width: min(1180px, 88vw);

  margin: auto;
  padding: 100px 0;
}

.wideSection {
  width: 100%;

  padding: 100px 6%;
}

.wideSectionInner {
  max-width: 1180px;

  margin: auto;
}

.mutedSection {
  background: var(--cream);
}

.sectionHeading {
  max-width: 760px;

  margin-bottom: 42px;
}

.compactHeading {
  margin-bottom: 32px;
}

.sectionHeading h2,
.splitSection h2,
.contactSection h2 {
  margin-bottom: 17px;

  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.sectionHeading > p:last-child,
.sectionDescription,
.contactSection p {
  color: var(--muted);

  font-size: 17px;
  line-height: 1.75;
}


/* =========================================
   FEATURE CARDS
========================================= */

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.featureCard {
  padding: 29px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background: var(--white);

  box-shadow: 0 14px 38px rgba(56, 28, 22, 0.06);
}

.cardNumber {
  color: var(--gold);

  font-weight: 900;
}

.featureCard h3 {
  margin: 25px 0 12px;

  font-family: Georgia, serif;
  font-size: 24px;
}

.featureCard p {
  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}


/* =========================================
   SPLIT SECTIONS
========================================= */

.splitSection {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.burgundyPanel {
  padding: 38px;

  border-radius: 25px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--burgundy),
      var(--dark-burgundy)
    );

  box-shadow: 0 24px 60px rgba(55, 7, 10, 0.2);
}

.panelLabel {
  display: block;

  margin-bottom: 12px;

  color: #e5b93d;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.burgundyPanel h3 {
  margin-bottom: 16px;

  font-family: Georgia, serif;
  font-size: 29px;
}

.burgundyPanel > p {
  margin-bottom: 25px;

  color: rgba(255, 255, 255, 0.75);

  line-height: 1.7;
}

.burgundyPanel a,
.textLink {
  color: #e0b437;

  font-weight: 800;
  text-decoration: none;
}

.linkChips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 25px;
}

.linkChips a {
  padding: 10px 14px;

  border: 1px solid #ded3c6;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}


/* =========================================
   RESOURCE LINKS
========================================= */

.resourceGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.resourceGrid a {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 20px;

  border: 1px solid #e1d6c9;
  border-radius: 16px;

  background: var(--white);

  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.resourceGrid a:hover {
  transform: translateY(-3px);

  border-color: var(--gold);

  color: var(--burgundy);

  box-shadow: 0 12px 28px rgba(53, 25, 17, 0.08);
}

.resourceGrid a span {
  color: var(--gold);

  font-size: 20px;
}


/* =========================================
   GALLERY
========================================= */

.galleryGrid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 220px 220px;
  gap: 15px;
}

.galleryCard {
  position: relative;

  display: block;
  overflow: hidden;

  border-radius: 22px;

  background: #d8cec5;
}

.galleryLarge {
  grid-row: 1 / 3;
}

.galleryCard img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.galleryCard:hover img {
  transform: scale(1.04);
}

.galleryOverlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(25, 4, 5, 0.8),
      transparent 68%
    );
}

.galleryContent {
  position: absolute;
  left: 25px;
  bottom: 21px;

  z-index: 2;

  color: var(--white);
}

.galleryContent small {
  color: #edc14c;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.galleryContent h3 {
  margin-top: 5px;

  font-family: Georgia, serif;
  font-size: 27px;
}


/* =========================================
   CALENDAR
========================================= */

.dateList {
  display: grid;
  gap: 10px;
}

.dateList article {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px;

  border: 1px solid #e6dbce;
  border-radius: 15px;
}

.dateList article strong {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  flex: 0 0 48px;

  border-radius: 12px;

  color: var(--white);
  background: var(--burgundy);
}

.dateList b,
.dateList small {
  display: block;
}

.dateList small {
  margin-top: 5px;

  color: var(--muted);
}


/* =========================================
   LIBRARY
========================================= */

.quotePanel p {
  margin: 0;

  color: var(--white);

  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.45;
}


/* =========================================
   CONTACT
========================================= */

.contactSection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 80px 6%;

  color: var(--white);

  background:
    linear-gradient(
      120deg,
      var(--dark-burgundy),
      var(--burgundy)
    );
}

.contactSection h2 {
  margin-bottom: 12px;
}

.contactSection p {
  max-width: 650px;

  color: rgba(255, 255, 255, 0.75);
}


/* =========================================
   FOOTER
========================================= */

footer {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 28px 6%;

  color: #ead9d9;
  background: #250506;
}

footer span {
  color: #d6a62d;
}

footer small {
  margin-left: auto;

  color: #b99fa0;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

  .featureGrid,
  .resourceGrid {
    grid-template-columns: 1fr 1fr;
  }

  .splitSection {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .galleryGrid {
    grid-template-columns: 1fr;
    grid-template-rows: 350px 210px 210px;
  }

  .galleryLarge {
    grid-row: auto;
  }

  .contactSection {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 560px) {

  html {
    scroll-padding-top: 58px;
  }

  .siteHeader {
    min-height: 68px;
    padding: 10px 18px;
  }

  .brandText small {
    display: none;
  }

  .brandMark {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .registryButton {
    padding: 10px 13px;

    font-size: 11px;
  }

  .sectionNavigationInner {
    padding: 8px 12px;
  }

  .heroSection {
    min-height: 600px;
  }

  .heroContent {
    width: calc(100% - 36px);

    padding: 70px 0;
  }

  .heroContent h1 {
    font-size: 43px;
  }

  .heroDescription {
    font-size: 15px;
  }

  .pageSection {
    width: calc(100% - 36px);

    padding: 72px 0;
  }

  .wideSection {
    padding: 72px 18px;
  }

  .featureGrid,
  .resourceGrid {
    grid-template-columns: 1fr;
  }

  .galleryGrid {
    grid-template-rows: 290px 190px 190px;
  }

  .sectionHeading h2,
  .splitSection h2,
  .contactSection h2 {
    font-size: 40px;
  }

  .contactSection {
    padding: 60px 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;

    padding: 25px 18px;
  }

  footer small {
    margin-left: 0;
  }

}