@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/LibreCaslonText-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Imperial Script';
  src: url('/fonts/ImperialScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/fonts/MaterialSymbolsOutlined.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}

:root {
		--primary-black: #000000;
		--primary-white: #ffffff;
		--gray-light: #f8f8f8;
		--gray-medium: #e0e0e0;
		--gray-dark: #333333;
		--spacing-xs: 0.5rem;
		--spacing-sm: 1rem;
		--spacing-md: 2rem;
		--spacing-lg: 4rem;
		--spacing-xl: 6rem;
}

html, body {
  margin: 0;
  padding: 0;
  margin-block: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  color: var(--primary-white);
  background-color: var(--primary-black);
  font-style: "Libre Caslon Text", serif;
}

.wrapper {
  margin: 0;
}

nav {
  display: flex;
  justify-content: space-around;
  width: 100vw;
  position: absolute;
  top: 1rem;
}

menu {
  font-style: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  width: 90vw;
  display: inline-flex;
  justify-content: space-between;
  text-transform: uppercase;
  padding: 0;

  li {
    gap: var(--spacing-md);
    list-style: none;

    a {
      color: var(--primary-white);
      text-decoration: none;
    }
  }
}

.script {
  font-family: "Imperial Script", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 6rem;
}

.upper-serif {
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.banner {
  :last-child {
    margin-top: -3rem;
  }
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 100vh;
  min-height: 500px;
  width: 100vw;

  .interior {
    align-items: center;
    border: 1px solid var(--primary-white);
    display: flex;
    flex-direction: column;
    min-height: 490px;
    height: 95vh;
    justify-content: center;
    position: relative;
    width: 98vw;

    .script {
      font-size: 6rem;
      margin: 0;
      margin: 0;

      @media screen and (max-width: 900px) {
        font-size: 5rem;
      }
    }
    .upper-serif {
      font-size: 5rem;
      margin-bottom: 0;
      margin: 0;

      @media screen and (max-width: 900px) {
        font-size: 4rem;
      }
    }

    .couple-name {
      bottom: 2rem;
      font-size: 2rem;
      position: absolute;


      @media screen and (max-width: 900px) {
        bottom: 1.5rem;
      }
    }

    .banner {
      align-items: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }
}

.hands {
  background-attachment: fixed;
  background-image: url("/images/hands.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  min-height: 50rem;

  @supports (-webkit-touch-callout: none) {
    background-attachment: scroll;
  }
}

.save-the-date {
  align-items: center;
  background-color: var(--primary-white);
  color: var(--primary-black);
  display: flex;
  justify-content: center;
  height: 100vh;
  min-height: 580px;
  width: 100vw;

  .interior {
    align-items: center;
    border: 2px solid var(--primary-black);
    display: flex;
    flex-direction: column;
    min-height: 570px;
    height: 95vh;
    justify-content: space-between;
    padding-bottom: 2rem;
    padding-top: 2rem;
    width: 98vw;

    > :not(:last-child) {
      position: relative;
      text-align: center;
    }
    > :not(:last-child)::after {
      background-color: var(--primary-black);
      content: "";
      height: 15vh;
      left: 50%;
      margin-top: 10px;
      position: absolute;
      top: 100%;
      transform: translateX(-50%);
      width: 2px;
    }

    .location.upper-serif {
      font-size: 2rem;
    }

    .script {
      font-size: 8rem;
      line-height: 7.5rem;
      margin: 0;
      margin: 0;

      @media screen and (max-width: 900px) {
        font-size: 7rem;
        line-height: 6.5rem;
      }
    }
    .upper-serif {
      font-size: 3rem;
      line-height: 2.5rem;
      margin-bottom: 0;
      margin: 0;

      @media screen and (max-width: 900px) {
        font-size: 2.5rem;
        line-height: 2rem;
      }
    }

    .date {
      font-size: 2rem;

      @media screen and (max-width: 900px) {
        font-size: 1.5rem;
      }
    }
  }
}

section.dark {
  background-color: var(--primary-black);
  color: var(--primary-white);
}

section.light {
  background-color: var(--primary-white);
  color: var(--primary-black);
}

section.light, section.dark {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
}

.wedding-party {
  padding: 2rem;

  .title {
    display: flex;
    flex-direction: column;
    font-size: 5rem;
    justify-content: center;
    line-height: 4.5rem;
    text-align: center;

    @media screen and (max-width: 500px) {
      font-size: 4rem;
      line-height: 3.5rem;
    }

    span.script {
      font-size: 7rem;
      line-height: 5rem;
      text-transform: capitalize;

      @media screen and (max-width: 500px) {
        font-size: 6rem;
        line-height: 4rem;
      }
    }
  }

  .party {
    align-items: baseline;
    column-gap: 10rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    row-gap: 3rem;

    .name {
      font-size: 1.5rem;
      font-weight: 600;
      margin: 0;
      padding: 0;
      text-align: center;
    }
    .title {
      font-size: 1rem;
      font-style: italic;
      line-height: initial;
      margin: 0;
      padding: 0;
      text-align: center;
    }

    .pfp {
      border-radius: 50%;
      display: inline-block;
      filter: grayscale(1);
      height: 200px;
      margin-bottom: 1rem;
      object-fit: cover;
      width: 200px;

      &:hover,&:active {
        filter: grayscale(0);
      }
    }
  }
}

.need-to-know {
  display: flex;
  flex-direction: column;
  padding: 2rem;

  .title {
    font-size: 1rem;
    font-style: italic;
    line-height: initial;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .upper-serif {
    font-size: 3rem;
    line-height: 2.5rem;
    margin-bottom: 0;
    margin: 0;
  }

  .content {
    max-width: 1000px;
    padding: inherit;
    margin: auto;

    .material-symbols-outlined {
      font-size: 5rem;
    }

    ul {
      li {
        list-style-type: none;
        margin-bottom: 1.5rem;

        > span {
          font-weight: bold;

          &:after {
            content: " | ";
            font-weight: bold;
          }
        }
      }
    }
  }
}

.the-couple {
  padding: 2rem;

  .title {
    display: flex;
    flex-direction: column;
    font-size: 3rem;
    justify-content: center;
    line-height: 4.5rem;
    text-align: center;

    span.script {
      text-transform: capitalize;
    }
  }


  .photos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;

    > img {
      max-height: 60vh;
      margin-bottom: 2rem;
    }
  }
}

.content {
  > .center {
    text-align: center;
  }
}

footer {
  display: flex;
  justify-content: space-around;

  .copyright {
    @media screen and (max-width: 900px) {
      max-width: 80vw;
    }
  }

  a {
    color: var(--primary-white)
  }
}
