:root {
  --page-padding: 2rem;
  --page-max-width: 1200px;
  --shadow-soft: 0 0 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 0 8px rgba(0, 0, 0, 0.2);
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter.woff2) format('woff2');
}

html {
  background: white;
  color: #121212;
}
a {
  color: #121212;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: 'Inter', sans-serif;
}

main {
  min-height: 90vh;
  margin-inline: auto;
}

.max-width {
  margin-inline: auto;
  max-width: var(--page-max-width);
}

section {
  padding: 2rem 1rem;
  margin-inline: auto;
  max-width: var(--page-max-width);
}

.text-medium {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.text-semibold {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* Header */
header {
  background-color: #f5f5f5e6;
  position: sticky;
  display: flex;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  border-bottom: 1px solid #eee;
}
header.hidden {
  transform: translateY(-115%);
}
header .logo {
  display: block;
  padding-top: 0.5rem;
  width: 300px;
  left: 15px;
  z-index: 1000;
}
header .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-inline: 1rem 0.5rem;
  flex: 1 1 0%;
}

#burger {
  cursor: pointer;
  display: inline;
  margin: 10px 1rem;
}
#burger .edge {
  stroke-dasharray: 60 207;
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
#burger .mid {
  stroke-dasharray: 60 60;
  transition: all 600ms;
}
.menu-open #burger .edge {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}
.menu-open #burger .mid {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
}

nav {
  position: relative;
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: end;
  min-height: 4rem;
}
.mainmenu {
  display: none;
  position: absolute;
  padding-block: 0.75rem 0.5rem;
}
.mainmenu li {
  cursor: pointer;
  position: relative;
  display: block;
  white-space: nowrap;
  padding: 0;
  margin: 0;
}
.mainmenu li div {
  display: inline-block;
  padding-inline: 0.25rem;
  margin-inline: 0.5rem;
  padding-block: 1rem;
}
.menu-open .mainmenu {
  display: block;
  position: absolute;
  top: 64px;
  right: 0;
  padding-block: 0.75rem 0.5rem;
  background-color: white;
  box-shadow: var(--shadow-soft);
}
.menu-open .mainmenu li div {
  cursor: pointer;
  display: inline-block;
  padding-inline: 1.25rem;
  padding-block: 0.5rem;
  margin-inline: 0;
  width: 100%;
  text-decoration: none;
}
.menu-open .mainmenu li div:hover {
  background-color: #f0f0f0;
}
.mainmenu li:focus-within .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background-color: white;
  box-shadow: var(--shadow-soft);
  padding-block: 0.5rem;
}
.submenu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}
.submenu li.mitlogo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.submenu li a:hover {
  background-color: #f0f0f0;
}
.menu-open .submenu {
  top: -10px;
  right: 100%;
  z-index: 100;
}

@media (min-width: 750px) {
  header .container {
    padding-inline: 1.5rem;
  }
  #burger {
    display: none;
  }
  .mainmenu {
    display: flex;
    background-color: unset;
    position: unset;
  }
}

/*Hero*/
.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 1rem;
  padding-top: 2rem;
  .text {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    max-width: 600px;
    flex-direction: column;
    justify-content: center;
    h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    p {
      font-size: 1.5rem;
    }
  }
  img {
    margin-left: 50px;
    mask-image: linear-gradient(to right, transparent 0%, white 300px);
    transition: margin-left 0.5s ease-in-out;
  }
  @media (min-width: 600px) {
    img {
      margin-left: 100px;
    }
  }
  @media (min-width: 900px) {
    img {
      margin-left: 300px;
    }
  }
}

/* School Statement */
.school-statement-container {
  padding-inline: 1rem;
}
.school-statement {
  margin-inline: auto;
  max-width: 850px;
  border: 3px solid transparent;
  border-radius: 30px;
  padding: 2rem;
  background:
    linear-gradient(white 0 0) padding-box,
    conic-gradient(from 40deg, #0fc9f8, #0f74f8, #410ce1, #410ce1, #0fc9f8)
      border-box;
  .text {
    display: flex;
    gap: 2rem;
  }
  .intro {
    font-size: 1.1em;
    min-width: 300px;
  }
}

@media (max-width: 750px) {
  .school-statement .text {
    display: block;
  }
  .school-statement .intro {
    min-width: unset;
    margin-bottom: 1rem;
  }
}

/* Planned Events */
.planned-events {
  background: #f7f7f7;
  padding-top: 1rem;
  margin-block: 4rem;
}
.planned-events .nav {
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.planned-events .list {
  display: flex;
  overflow-x: scroll;
  gap: 2rem;
  padding-left: 2rem;
}
.planned-events .list > * {
  flex: 0 0 auto;
  min-width: 250px;
  max-width: 350px;
}

/* Past Events*/
.past-events {
  padding-block: 2rem;
  margin-block: 4rem;
}
.past-events .comment {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.past-events .list {
  display: flex;
  overflow-x: scroll;
  gap: 0.5rem;
  padding-left: 2rem;
}
.past-events .list > * {
  border-radius: 20px;
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 300px;
}

/*School year*/
.school-year {
  max-width: 90%;
  overflow: hidden;
  font-size: 0.9rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.school-year .title {
  font-size: 1.5rem;
  column-gap: 1rem;
  display: flex;
}

.school-year .subtitle {
  font-size: 1.5rem;
}
.school-year .info {
  display: grid;
  grid-template-columns: 1fr 150px;
  column-gap: 2rem;
}
.school-year .info div:nth-child(even) {
  text-align: right;
}
.school-year .info .times span {
  display: inline-block;
  min-width: 40px;
}

@media (min-width: 600px) {
  .school-year {
    grid-template-columns: auto 1fr;
    font-size: 1rem;
    max-width: 800px;
    gap: 1rem 4rem;
  }
  .school-year .title {
    display: block;
    font-size: 2.5rem;
    width: 200px;
    text-align: right;
  }
  .school-year .info div:nth-child(even) {
    text-align: unset;
  }
}

/* Seals */
.siegel {
  padding-block: 2rem;
  margin-block: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: #f7f7f7;
}
.siegel img {
  max-height: 100px;
  mix-blend-mode: darken;
}

.general-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.general-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 800px;
}
.general-content ul {
  list-style: none;
}
.general-content .sup {
  vertical-align: super;
  font-size: 0.7rem;
}

/* Footer */
footer {
  background: #113e48;
  color: #d4dfe1;
  font-size: 0.85em;
  padding: 2rem 1rem;
}

footer a {
  color: #d4dfe1;
  display: inline-block;
  padding-block: 4px;
}
footer .inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .map {
  margin-block: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
