:root {
  --color-background: #f7f5f2;
  --color-text: #1c1c1a;
  --color-muted: #6c6c68;
  --color-accent: #c7b79c;
  --max-width: 1100px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero__intro {
  max-width: 42rem;
  margin: 0 auto;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--color-muted);
}

h1 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.view-work {
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  position: relative;
  transition: color var(--transition);
}

.view-work::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition);
  transform-origin: left;
  transform: scaleX(0.6);
}

.view-work:hover,
.view-work:focus {
  color: var(--color-text);
}

.view-work:hover::after,
.view-work:focus::after {
  transform: scaleX(1);
}

main {
  flex: 1;
}

.section {
  padding: 3.5rem 1.5rem;
}

.section__inner {
  margin: 0 auto;
  max-width: var(--max-width);
}

.section__title {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

.section p {
  margin: 0;
}

.about p {
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.work__grid {
  display: grid;
  gap: 2.5rem;
}

.project-card {
  display: block;
}

.project-card figure {
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.project-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(199, 183, 156, 0.65), rgba(199, 183, 156, 0.15));
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 45px -35px rgba(0, 0, 0, 0.4);
}

.project-card__image--two {
  background: linear-gradient(135deg, rgba(156, 174, 183, 0.6), rgba(199, 183, 156, 0.2));
}

.project-card__image--three {
  background: linear-gradient(135deg, rgba(180, 189, 175, 0.6), rgba(199, 183, 156, 0.2));
}

.project-card__category {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-card__title {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 0;
}

.services__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2.5rem;
}

.services__list li {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.services__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.services__list h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.services__list p {
  margin: 0;
  color: var(--color-muted);
}

.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.process__steps li {
  display: grid;
  gap: 0.6rem;
}

.step__title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.process__steps p {
  margin: 0;
  color: var(--color-text);
}

.contact {
  background: #efede8;
  border-radius: 2rem 2rem 0 0;
}

.contact__message {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  margin: 0 0 1rem;
}

.contact__email {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
}

.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--transition);
}

.contact__email:hover::after,
.contact__email:focus::after {
  transform: scaleX(1);
}

.footer {
  padding: 2.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f1ec;
}

.footer__inner {
  margin: 0 auto;
  max-width: var(--max-width);
  display: grid;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer__name {
  font-weight: 500;
  color: var(--color-text);
}

.footer__email {
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__email:hover,
.footer__email:focus {
  color: var(--color-text);
}

@media (min-width: 640px) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services__list li:nth-child(3) {
    grid-column: span 2;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 6rem 3rem 4rem;
  }

  .section {
    padding: 4.5rem 3rem;
  }

  .work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }

  .services__list li {
    border-bottom: none;
    padding: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 1.5rem;
  }

  .services__list li:first-child {
    border-left: none;
    padding-left: 0;
  }

  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__steps li {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 1.5rem;
  }

  .process__steps li:first-child {
    border-left: none;
    padding-left: 0;
  }

  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .footer__note {
    justify-self: end;
  }
}
