/*/////////// SITE BASICS ///////////*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

html,
body {
  min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 300;
}

.dot-divider {
  text-align: center;
  margin: 1rem 0;
}

.dot-divider img {
  max-width: 40%;
  height: auto;
}

/*/////////// SITE HEADER ///////////*/

.site-header {
  background: #404042;
  border-bottom: 6px solid #9f7e7c;
  padding: 1.5rem 4rem;
  margin: 0;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 400;
}

.desktop-nav a:hover {
  color: #d2c5c5;
}

.desktop-nav a.active {
  color: #d2c5c5;
}

.dot {
  color: #fff;
}

/*/////////// HAMBURGER MOBILE MENU ///////////*/

.hamburger-toggle {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    padding: 1.5rem 1.3rem;
  }

  .container {
    align-items: flex-start;
  }

  .hamburger-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #fff;
    cursor: pointer;
  }
}

/*/////////// FOOTER ///////////*/

.footer {
  background-color: #9f7e7c;
  color: #fff;
  font-weight: 200;
  text-transform: uppercase;
  text-align: center;
  padding: 8rem 1rem;
  margin-top: 2rem;
  letter-spacing: 1px;
}

/*/////////// INTRO SECTION ///////////*/

.intro-section {
  background-color: #f4efef;
  padding: 1.5rem 0 2.5rem 0;
  position: relative;
}

.intro-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  bottom: -50px;
  background: url("images/scallop.svg") no-repeat center bottom;
  background-size: cover;
}

.intro-container {
  max-width: 1000px;
  width: 100%;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.intro-container img {
  width: 250px;
  height: auto;
  max-width: 40vw;
}

.intro-hi {
  margin: 1rem 0;
  color: #9f7e7c;
  font-size: 1.5rem;
  font-weight: 600;
}

.intro-body {
  font-weight: 200;
  letter-spacing: 0.5px;
  padding: 0rem 0 1rem 0;
}

.intro-link {
  text-decoration: none;
  font-weight: 500;
  color: #9f7e7c;
}

.intro-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .intro-section {
    padding: 2rem 0 1rem 0;
  }

  .intro-container {
    flex-direction: column;
    align-items: start;
    gap: 0px;
    max-width: 90%;
  }

  .intro-container img {
    width: 200px;
    height: auto;
    max-width: none;
  }

  .intro-copy {
    width: 100%;
    max-width: 40rem;
    text-align: left;
  }
}

/*/////////// SANDCASTLE SECTION ///////////*/

.sandcastle-container {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 4rem 0 0 0;
}

.sandcastle-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #404042;
}

/*/////////// REPEATED PROJECT CODE ///////////*/

.project {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem 0 0 0;
}

.project-title {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-transform: uppercase;
  color: #404042;
}

/*/////////// ECOM SECTION ///////////*/

.ecom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 20px auto 0;
}

.ecom-grid a {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 913 / 571;
}

.ecom-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
  display: block;
}

.ecom-grid a:hover img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .ecom-grid {
    grid-template-columns: 1fr;
  }
}

/*/////////// FONT FOUNDRY ///////////*/

.font-foundry-container {
  position: relative;
  text-align: center;
  margin: 8rem auto;
  padding: 1rem 0;
  background-color: #f4efef;
  overflow: visible;
  z-index: 1;
}

.font-foundry-container::before,
.font-foundry-container::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 50px;
  background-image: url("images/scallop.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.font-foundry-container::before {
  bottom: 100%;
  margin-bottom: -1px;
  transform: translateX(-50%) scaleY(-1);
}

.font-foundry-container::after {
  top: 100%;
  margin-top: -1px;
}

.fonts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 20px auto 0;
}

.fonts-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
  display: block;
}

.browse-fonts {
  display: inline-block;
  margin: 2rem 0;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 1px;
  color: #9f7e7c;
}

.browse-fonts:hover {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .fonts-grid {
    grid-template-columns: 1fr;
  }
}
