@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-deep: #e9e5d9;
  --ink: #242820;
  --muted: #73766a;
  --olive: #58604b;
  --olive-dark: #383f33;
  --line: rgba(36, 40, 32, 0.2);
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #b18b58;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: var(--paper);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon span,
.menu-toggle-icon::after {
  position: absolute;
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before {
  content: "";
  transform: translateY(-6px);
}

.menu-toggle-icon::after {
  content: "";
  transform: translateY(6px);
}

.primary-navigation {
  position: absolute;
  top: 100%;
  right: 4%;
  display: none;
  width: min(290px, 92vw);
  flex-direction: column;
  padding: 0.6rem 1.4rem;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(36, 40, 32, 0.12);
  font-size: 0.82rem;
}

.primary-navigation.is-open {
  display: flex;
}

.primary-navigation a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.primary-navigation a:last-child {
  border-bottom: 0;
}

.primary-navigation a:hover,
.text-link:hover,
.contact-email:hover,
.contact-details a:hover {
  color: var(--olive);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(690px, calc(100svh - 80px));
  align-items: center;
  overflow: hidden;
  background: #57584a;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 52%;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(22, 27, 22, 0.47), rgba(22, 27, 22, 0.08) 85%);
}

.hero-content {
  position: relative;
  width: min(1000px, 84%);
  margin: 0 auto;
  padding: 5rem 0;
}

.hero-location {
  margin-bottom: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(5rem, 13vw, 10rem);
  letter-spacing: 0.015em;
  line-height: 0.95;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.hero-link span {
  font-size: 1rem;
}

.section-shell {
  width: min(1280px, 84%);
  margin: 0 auto;
}

.work-section {
  padding: 6.5rem 0 8rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.about-copy h2,
.contact-inner h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  transition: color 180ms ease;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.86fr 1fr;
  align-items: start;
  gap: 1.65rem;
}

.project-card-offset {
  margin-top: 3.8rem;
}

.project-card-third {
  margin-top: 1.4rem;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.project-card-tall .project-image-wrap {
  aspect-ratio: 0.84;
}

.project-card-offset .project-image-wrap {
  aspect-ratio: 0.9;
}

.project-card-third .project-image-wrap {
  aspect-ratio: 0.86;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.035);
}

.project-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  opacity: 1;
  transform: translateY(0);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  font-size: 0.72rem;
}

.project-meta span:last-child {
  color: var(--muted);
}

.about-section {
  display: grid;
  min-height: 540px;
  grid-template-columns: 1fr 1fr;
  background: var(--olive-dark);
  color: var(--paper);
}

.about-image-wrap {
  position: relative;
  min-height: 500px;
}

.about-image-wrap img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  align-self: center;
  max-width: 610px;
  padding: 5rem clamp(3rem, 8vw, 8rem);
}

.about-copy h2 {
  margin-bottom: 1.5rem;
}

.about-copy > p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(244, 241, 233, 0.78);
  font-size: 0.86rem;
  line-height: 1.85;
}

.contact-section {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 8%;
  background: var(--olive);
  color: var(--paper);
  text-align: center;
}

.contact-inner h2 {
  margin-bottom: 1.2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(244, 241, 233, 0.55);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  color: rgba(244, 241, 233, 0.78);
  font-size: 0.72rem;
}

.site-footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6%;
  background: var(--paper);
  font-size: 0.68rem;
}

.wordmark-footer .wordmark-name {
  font-size: 1.5rem;
}

.site-footer > span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    min-height: 640px;
  }

  .section-shell {
    width: 88%;
  }

  .project-grid {
    gap: 1rem;
  }

  .project-card-offset {
    margin-top: 3rem;
  }

  .about-section {
    min-height: 480px;
  }

  .about-image-wrap {
    min-height: 480px;
  }

  .about-copy {
    padding: 3.5rem 2.7rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 4rem;
  }

  .site-header {
    min-height: 72px;
  }

  .wordmark-name {
    font-size: 1.7rem;
  }

  .primary-navigation {
    right: 4%;
  }

  .hero {
    min-height: min(740px, calc(100svh - 72px));
    align-items: end;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(22, 27, 22, 0.54), rgba(22, 27, 22, 0.04) 100%);
  }

  .hero-content {
    width: 88%;
    padding: 5rem 0 5.2rem;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 18vw, 7rem);
  }

  .section-shell {
    width: 88%;
  }

  .work-section {
    padding: 4.5rem 0 5.5rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
  }

  .section-heading h2 {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card-offset,
  .project-card-third {
    margin-top: 0;
  }

  .project-card-tall .project-image-wrap,
  .project-card-offset .project-image-wrap,
  .project-card-third .project-image-wrap {
    aspect-ratio: 0.95;
  }

  .project-arrow {
    opacity: 1;
    transform: none;
  }

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

  .about-image-wrap {
    min-height: 360px;
  }

  .about-copy {
    padding: 3.5rem 7%;
  }

  .about-copy h2,
  .contact-inner h2 {
    font-size: clamp(2.8rem, 11vw, 3.8rem);
  }

  .contact-section {
    min-height: 310px;
    padding: 4rem 6%;
  }

  .contact-details {
    gap: 0.8rem 1.4rem;
  }

  .site-footer {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
