@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
  /* Color Palette */
  --chicago-red: #bb1717;
  --chicago-light-blue: #d4eeff;
  --neutral-dark: #222;
  --neutral-medium: #444b5a;
  --neutral-light: #f7f7fa;
  --neutral-white: #fff;
  --neutral-grey-light: #eee;
  --neutral-grey-medium: #ccc;
  --neutral-grey-dark: #bbb;
  --shadow-color: rgba(100, 100, 200, 0.08);

  /* Typography */
  --font-family-base: 'Inter', sans-serif;
  --font-size-sm: 0.8rem;
  --font-size-base: 1rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.563rem;
  --font-size-xl: 1.953rem;
  --font-size-xxl: 2.441rem;
  --font-size-xxxl: 3.052rem;

  /* Design Tokens */
  --border-radius-lg: 30px;
  --border-radius-md: 18px;
  --border-radius-sm: 10px;
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 4px 16px var(--shadow-color);
  --shadow-lg: 0 8px 32px var(--shadow-color);
}

/* HOME PAGE */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    box-sizing: border-box;
    background: var(--neutral-white);
}

/* HOMEPAGE HERO & SLIDESHOW */
.hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--neutral-white);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Dark overlay for text readability */
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 2;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, var(--font-size-xxxl));
  font-weight: 900;
  margin: 0 0 0.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, var(--font-size-md));
  margin-bottom: 2.5rem;
  max-width: 60ch;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* HEADER & NAVIGATION */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--neutral-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.site-title-link {
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--neutral-dark);
  text-transform: uppercase;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
}

.nav {
    display: flex;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    color: var(--neutral-medium);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--font-size-base);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--chicago-red);
}




/* MOBILE NAVIGATION STYLES */
@media (max-width: 800px) {
    .nav-toggle {
        display: block;
        cursor: pointer;
        background: transparent;
        border: 0;
        padding: 0.5em;
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
        z-index: 1000;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 2em;
        height: 3px;
        background: var(--neutral-dark);
        transition: transform 250ms ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--neutral-dark);
        transition: transform 250ms ease-in-out, opacity 250ms linear;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-open .hamburger {
        transform: rotate(0.625turn);
    }

    .nav-open .hamburger::before {
        transform: rotate(90deg) translateX(-8px);
    }

    .nav-open .hamburger::after {
        opacity: 0;
    }

    .nav {
        position: fixed;
        background: var(--neutral-white);
        color: var(--neutral-dark);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
    }

    .nav__list {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    .nav__link {
        font-size: var(--font-size-xl);
    }

    .nav-open .nav {
        transform: translateX(0);
    }

    .nav-open body {
        overflow: hidden;
    }
}

.links { text-decoration: none; color: inherit; cursor: pointer; }

.title h1 {
    font-size: var(--font-size-xxl);
    text-align: center;
    color: var(--chicago-red);
    font-weight: 900;
    letter-spacing: 1px;
}

.page-title {
    text-align: center;
    margin: 2rem 0;
    color: var(--neutral-dark);
    font-size: var(--font-size-xxl);
    font-weight: 800;
}

/* SLIDESHOW */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1125px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.slideshow-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 11/6;
  object-fit: cover;
  display: block;
}

.slides { display: none; width: 100%; animation: fade 1s; }
.slides.active { display: block; }
@keyframes fade { from {opacity: 0.4} to {opacity: 1} }

/* CONTRIBUTORS */
.contributors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
.contributor-card {
  background: var(--neutral-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  min-width: 270px;
  max-width: 350px;
  margin: 0.5rem;
}
.contributor-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.2rem;
  border: 2px solid var(--chicago-light-blue);
}
.contributor-info { flex: 1; }
.contributor-name { font-weight: bold; font-size: 1.15rem; color: var(--chicago-red); }
.contributor-bio { font-size: 0.98rem; color: var(--neutral-medium); margin: 0.3rem 0 0.5rem; }
.contributor-count { font-size: 0.93rem; color: var(--neutral-dark); }

/* HISTORY TIMELINE */
.history-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 50px 1rem;
}

/* This pseudo-element clears the floats used by the blurbs */
.history-container::after {
  content: "";
  display: table;
  clear: both;
}

#timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#timeline-path {
  stroke: var(--chicago-red);
  stroke-width: 4;
  fill: none;
}

.blurb {
  position: relative;
  width: 45%;
  margin: 50px 0;
  padding: 1.5rem;
  background: var(--neutral-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.blurb.left {
  float: left;
  margin-right: 5%;
  text-align: right;
  border-right: 5px solid var(--chicago-light-blue);
}

.blurb.right {
  float: right;
  margin-left: 5%;
  text-align: left;
  border-left: 5px solid var(--chicago-light-blue);
}

.blurb h3 {
  margin-top: 0;
  color: var(--chicago-red);
}

.timeline-date {
  font-size: var(--font-size-sm);
  font-weight: bold;
  color: var(--neutral-dark);
  display: block;
  margin-bottom: 0.5rem;
}

/* ABOUT ME */
.aboutme-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.aboutme-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.aboutme-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--chicago-light-blue);
}
.aboutme-text p {
    line-height: 1.6;
    color: var(--neutral-dark);
}

/* PLATE PICS */
/* PHOTO GRID */
.photogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.square {
  aspect-ratio: 1 / 1;
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-grey-medium);
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--neutral-grey-dark);
  font-weight: bold;
  overflow: hidden; /* Ensures image corners are rounded */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.square:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* IMAGE MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
}

.modal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.modal-close {
  position: absolute;
  top: -45px;
  right: -5px;
  font-size: 2.5rem;
  color: var(--neutral-white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    background: var(--neutral-light);
    color: var(--neutral-medium);
}


@media (max-width: 700px) {
  .contributors-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .contributor-card {
    width: 98vw;
  }
  .aboutme-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
