@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Kalam:wght@300;400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: #111;
  background: #fafafa;
  font-family: 'Kalam', cursive;
  font-weight: 300;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}


/* =========================
   HEADER
   ========================= */

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  /* Compact desktop header */
  min-height: 0;
  height: auto;
  padding: 12px 5vw;

  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 20;
}


/* LOGO */

.brand {
  grid-column: 2;
  grid-row: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: center;

  position: relative;
  z-index: 2;
}

/*
  Keep the logo wide while preventing its image box
  from making the entire header 280px tall.
*/

.brand img {
  display: block;
  width: 280px;
  height: 80px;
  object-fit: contain;
}


/* NAVIGATION */

.header nav {
  grid-column: 1;
  grid-row: 1;

  display: flex;
  gap: 40px;

  justify-self: start;
}

.header nav a,
.footer a {
  color: #111;
  text-decoration: none;
}

.header nav a {
  font-family: 'Kalam', cursive;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
}


/* MOBILE MENU BUTTON */

.menu {
  display: none;
  grid-column: 1;
  grid-row: 1;
}


/* SOCIAL ICONS */

.socials {
  grid-column: 3;
  grid-row: 1;

  display: flex;
  align-items: center;

  justify-self: end;

  gap: 18px;
}

.socials img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.socials img:first-child {
  transform: scale(1.2);
}


/* =========================
   WORKS
   ========================= */

.works {
  padding: 24px 4vw 5vw;
}

.grid {
  columns: 4;
  column-gap: 8px;
}

.grid figure {
  display: block;
  width: 100%;

  margin: 0 0 8px;

  break-inside: avoid;

  overflow: hidden;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================
   ABOUT
   ========================= */

.about-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.about {
  padding: 48px 4vw 7vw;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.about .section-head p {
  font-weight: 700;
  text-transform: none;
}

.section-head h1 {
  font-family: 'Kalam', cursive;

  font-size: clamp(60px, 8vw, 120px);

  font-weight: 400;

  margin: 0;

  line-height: .8;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 7vw;
  max-width: 1400px;
  margin: 0 auto;
}

.about-copy {
  min-width: 0;
}

.copy {
  font-family: 'Kalam', cursive;

  font-size: clamp(23px, 2.2vw, 34px);

  line-height: 1.5;
}

.copy .kicker {
  font-family: 'Kalam', cursive;
  font-weight: 400;

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: .2em;

  margin: 0 0 42px;
}

.copy p {
  margin: 0 0 34px;
}

.copy .statement {
  font-family: 'Kalam', cursive;
  font-weight: 400;
  font-style: italic;

  font-size: 1.18em;

  margin-top: 65px;
}

.text-page {
  width: min(100% - 48px, 760px);
  margin: 48px auto 72px;
}

.text-page h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
}

.text-page h2 {
  margin: 32px 0 8px;
  font-size: 1.5em;
  font-weight: 400;
}

.text-page p {
  font-size: 1.2em;
  line-height: 1.5;
}

.text-page a {
  color: inherit;
}

.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-form label {
  margin-top: 8px;
  font-size: 1.15em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #888;
  border-radius: 0;
  padding: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1.1em;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 1px solid #111;
  padding: 10px 28px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 1.15em;
  cursor: pointer;
}

.contact-form .form-note {
  margin: 4px 0 0;
  font-size: .95em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 5vw;
  background: #111;
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 720px) {

  .header {
    height: 168px;
    padding: 0 22px;
  }

  .brand img {
    width: 168px;
    height: 168px;
  }

  .menu {
    display: block;

    position: relative;

    z-index: 1001;

    border: 0;

    background: none;

    padding: 10px;

    justify-self: start;

    cursor: pointer;
  }

  .menu i {
    display: block;

    width: 26px;
    height: 1px;

    background: #111;

    margin: 6px;

    transition:
      transform .2s,
      opacity .2s;
  }

  .header.open .menu i:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .header.open .menu i:nth-child(2) {
    opacity: 0;
  }

  .header.open .menu i:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header nav {
    display: none;

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    z-index: 1000;

    background: #fafafa;

    padding: 24px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 32px;
  }

  .header nav a {
    font-family: 'Kalam', cursive;
    font-weight: 400;

    font-size: clamp(38px, 12vw, 64px);

    letter-spacing: 0;

    text-transform: none;
  }

  .header.open nav {
    display: flex;
  }

  .socials {
    gap: 12px;
  }

  .socials img {
    width: 20px;
    height: 20px;
  }


  /* WORKS */

  .works {
    padding: 12px 12px 36px;
  }

  .grid {
    columns: 2;
  }


  /* ABOUT */

  .about {
    padding: 0 0 64px;
  }

  .section-head {
    display: block;
    margin-bottom: 18px;
  }

  .section-head p {
    margin: 0;
  }

  .section-head h1 {
    font-size: 68px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-hero img {
    height: min(76svh, 760px);
    object-fit: cover;
    object-position: center 35%;
  }

  .about-copy {
    padding: 36px 16px 0;
  }

  .copy {
    font-size: 24px;

    line-height: 1.45;
  }

  .copy .kicker {
    margin-bottom: 30px;
  }

  .copy .statement {
    margin-top: 50px;
  }

  .text-page {
    width: calc(100% - 32px);
    margin: 32px auto 48px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 16px;
  }

  .site-footer nav {
    gap: 10px 18px;
  }
}


/* =========================
   TABLET
   ========================= */

@media (min-width: 721px) and (max-width: 1024px) {

  .grid {
    columns: 2;
  }
}


/* =========================
   VERY SMALL PHONES
   ========================= */

@media (max-width: 360px) {

  .grid {
    columns: 1;
  }
}