* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #080808;
  font-family: Arial,sans-serif;
}

.page {
  max-width: 946px;
  margin: auto;
  padding: 0 32px;
}

header {
  height: 132px;
  border-bottom: 1px solid #bdbdbd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 186px;
  height: 103px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 42px;
  align-items: center;
}

a {
  color: inherit;
}

nav a {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .02em;
}

nav svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 539fr 306fr;
  gap: 37px;
  padding-top: 32px;
}

.hero figure,
.gallery figure {
  margin: 0;
}

.hero img {
  display: block;
  width: 100%;
}

figcaption {
  font-family: Georgia,serif;
  font-style: italic;
  font-size: 18px;
  margin-top: 8px;
}

.intro {
  padding-top: 123px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: .23em;
  font-weight: 600;
}

.intro h1 {
  font: normal 58px/1.06 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
  margin: 57px 0 40px;
}

.tagline {
  font: 24px/1.3 Georgia,serif;
  white-space: nowrap;
  margin: 0;
}

.motto {
  font: italic 24px Georgia,serif;
  margin: 51px 0 53px;
}

.button {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  letter-spacing: .02em;
  padding: 17px 30px;
  min-width: 235px;
}

.work {
  margin-top: 68px;
}

.work h2 {
  font: normal 48px/1 Georgia,serif;
  letter-spacing: -.035em;
  margin: 0 0 19px;
}

.gallery {
  display: grid;
  grid-template-columns: 483fr 372fr;
  gap: 27px;
  align-items: start;
  margin-top: 35px;
}

.gallery img {
  display: block;
  width: 100%;
}

.gallery figure:nth-child(2) {
  margin-top: 89px;
}

footer {
  border-top: 1px solid #bdbdbd;
  margin-top: 39px;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 27px;
}

footer .footer-title {
  font: 24px Georgia,serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}

footer .discuss {
  font-size: 14px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

footer .social {
  text-decoration: none;
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}

footer .divider {
  color: #999;
}

footer .site {
  font-size: 12px;
  white-space: nowrap;
}

@media(max-width:780px) {
  .page {
    padding: 0 20px;
  }
  header {
    height: auto;
    min-height: 110px;
    gap: 20px;
  }
  .logo {
    width: 140px;
    height: auto;
  }
  nav {
    gap: 17px;
  }
  nav a {
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .intro {
    padding: 10px 0 0;
  }
  .intro h1 {
    font-size: clamp(44px, 10vw, 58px);
    margin: 30px 0;
  }
  .tagline {
    font-size: 20px;
    white-space: normal;
  }
  .motto {
    margin: 30px 0;
  }
  .work {
    margin-top: 60px;
  }
  .gallery {
    gap: 16px;
  }
  .gallery figure:nth-child(2) {
    margin-top: 55px;
  }
  footer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 0;
  }
  footer .footer-title {
    width: 100%;
  }
  footer .social {
    margin-left: 0;
  }
}

@media (max-width: 370px) {
  header { gap: 12px; }
  .logo { width: 112px; }
  nav { gap: 12px; }
  .intro h1 { font-size: 40px; }
  footer .footer-title { white-space: normal; }
}
