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

:root {
  --ink: #142521;
  --forest: #173b36;
  --forest-light: #24544c;
  --sage: #cdd9c9;
  --cream: #f3efe6;
  --paper: #faf8f2;
  --line: rgba(20, 37, 33, .16);
  --white: #fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(1240px, calc(100% - 64px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--forest);
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.brand-copy span {
  color: #5d6a66;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--forest);
  border-radius: 999px;
}

main,
footer {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  padding: 70px 4% 82px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(54px, 6vw, 84px);
  letter-spacing: -.045em;
}

.hero-intro {
  max-width: 640px;
  margin: 0;
  color: #465651;
  font-size: 18px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.credential-row {
  margin-top: 54px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.credential-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #52615c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portrait-wrap {
  position: relative;
  max-width: 455px;
  justify-self: end;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  top: -22px;
  right: -22px;
  background: var(--sage);
  border-radius: 4px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(20, 37, 33, .12);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 24px 55px rgba(20, 37, 33, .12);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(.84) contrast(1.03);
}

.portrait-caption {
  position: relative;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.portrait-caption strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}

.statement {
  padding: 105px 8%;
  color: var(--cream);
  background: var(--forest);
}

.statement p {
  max-width: 940px;
  margin: 0 auto;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  text-align: center;
  letter-spacing: -.025em;
}

.services {
  padding: 120px 4%;
}

.section-heading {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -.035em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.service-grid article {
  min-height: 285px;
  padding: 26px 25px 20px;
  border-right: 1px solid var(--line);
}

.service-grid article:first-child {
  padding-left: 0;
}

.service-grid article:last-child {
  border-right: 0;
}

.service-number {
  display: block;
  margin-bottom: 56px;
  color: #82908b;
  font-size: 11px;
}

.service-grid h3 {
  margin-bottom: 15px;
  font-size: 27px;
}

.service-grid p {
  margin: 0;
  color: #52615c;
  font-size: 14px;
}

.about {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  padding: 110px 8%;
  background: var(--cream);
}

.about-copy {
  max-width: 750px;
}

.about-copy h2 {
  margin-bottom: 35px;
}

.about-copy > p {
  max-width: 650px;
  color: #465651;
  font-size: 17px;
}

.about-copy .text-link {
  margin-top: 18px;
}

.contact {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 60px;
  align-items: end;
  padding: 100px 8%;
  color: var(--cream);
  background: #ad684d;
}

.contact .eyebrow {
  color: #f4d8c9;
}

.contact-action p {
  margin: 0 0 8px;
}

.contact-email {
  display: block;
  width: fit-content;
  margin-bottom: 26px;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(22px, 2.1vw, 30px);
  text-underline-offset: 5px;
}

.button-light {
  color: var(--forest);
  background: var(--cream);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 4%;
  color: #65726e;
  font-size: 12px;
}

footer div {
  display: flex;
  gap: 18px;
}

footer strong {
  color: var(--ink);
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header,
  main,
  footer {
    width: min(100% - 36px, 1240px);
  }

  nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 58px 3% 75px;
  }

  .portrait-wrap {
    width: min(88%, 480px);
    justify-self: center;
  }

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

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

  .service-grid article {
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:nth-child(2) {
    border-right: 0;
  }

  .service-grid article:nth-child(3) {
    padding-left: 0;
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 84px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-cta {
    padding: 9px 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .credential-row {
    margin-top: 44px;
  }

  .portrait-wrap {
    width: 90%;
    margin-top: 15px;
  }

  .statement,
  .services,
  .about,
  .contact {
    padding: 76px 7%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .service-grid article:first-child,
  .service-grid article:nth-child(3) {
    min-height: auto;
    padding: 25px 0 35px;
    border-right: 0;
  }

  .service-number {
    margin-bottom: 30px;
  }

  footer,
  footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
