@font-face {
  font-family: "PT Serif";
  src: url("fonts/pt-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Serif";
  src: url("fonts/pt-serif-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #009534;
  --green-text: #00672d;
  --green-hover: #005323;
  --ink: #1d1d1b;
  --body: #393a36;
  --soft: #f4f5f2;
  --line: #daddd6;
  --serif: "PT Serif", Georgia, serif;
  --sans: Roboto, Arial, sans-serif;
  --frame: 100rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(3rem, 7vw, 6.25rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 1.125rem/1.6 var(--sans);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.8em;
  color: var(--ink);
  font: 700 1em/1.17 var(--serif);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p,
figure,
dl,
dd {
  margin: 0;
}

p + p {
  margin-top: 0.85em;
}

a {
  color: var(--green-text);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.19em;
}

a:hover {
  color: var(--green-hover);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 4px;
}

.frame {
  width: min(100%, var(--frame));
  margin-inline: auto;
}

.content-wrap {
  width: min(100%, 76rem);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.section {
  margin-block: var(--section-space);
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.6rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header and navigation */

.site-header-inner {
  min-height: 7rem;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  flex: none;
  display: block;
  width: clamp(9rem, 14vw, 12rem);
}

.site-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2.05vw, 2.1rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font: 400 1.16rem/1.25 var(--serif);
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  border-color: var(--green);
  color: var(--green-text);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  background: var(--green-text);
  color: #fff;
  font: 700 1rem/1.35 var(--sans);
  text-decoration: none;
}

.button:hover {
  background: var(--green-hover);
  color: #fff;
  text-decoration: underline;
}

/* Home */

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(31rem, 78vh, 46rem);
  padding: 4rem var(--gutter) 6rem;
  overflow: hidden;
  background-color: var(--ink);
  text-align: center;
}

.home-hero-media,
.home-hero-media::after {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
  transform: scale(1.35);
  transform-origin: left top;
}

.home-hero-media::after {
  z-index: auto;
  content: "";
  background: rgba(12, 20, 14, 0.64);
}

.home-hero::before,
.home-hero::after,
.page-hero-media::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.home-hero::before {
  z-index: -1;
  bottom: 0.6rem;
  left: -2rem;
  width: clamp(9rem, 23vw, 19rem);
  aspect-ratio: 293 / 368;
  background: url("images/leaves.png") center / contain no-repeat;
}

.home-hero::after,
.page-hero-media::after {
  right: 0;
  bottom: -4px;
  left: 0;
  height: clamp(2rem, 4.5vw, 5rem);
  background: url("images/wave.png") bottom center / 100% 100% no-repeat;
}

.home-hero-copy {
  max-width: 48rem;
  color: #fff;
}

.home-hero-copy h1 {
  margin-bottom: 0.36em;
  color: inherit;
  font-size: clamp(2.45rem, 5vw, 4rem);
}

.home-hero-copy p {
  max-width: 36rem;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.home-hero-copy .button {
  margin-top: 1.75rem;
  border-color: #fff;
}

.home-hero-copy .button:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fff;
}

.section-intro {
  max-width: 43rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.service-grid,
.photo-grid,
.text-columns,
.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.service-grid {
  max-width: 61rem;
  margin-inline: auto;
}

.service > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-caption {
  position: relative;
  width: calc(100% - clamp(1.5rem, 6vw, 5rem));
  min-height: 10rem;
  margin: -2.25rem auto 0;
  padding: 1.1rem clamp(1rem, 2.3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 0.28rem;
  background: #fff;
  text-align: center;
}

.service-caption h3 {
  margin-bottom: 0.45em;
}

.service-caption p {
  font-size: 1rem;
}

/* Interior pages */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  min-height: clamp(27rem, 39vw, 37rem);
}

.page-hero-copy {
  align-self: center;
  padding: clamp(2rem, 6.5vw, 6rem) var(--gutter);
}

.page-hero-copy h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.page-hero-copy p {
  max-width: 34rem;
}

.page-hero-copy .button,
.inline-links {
  margin-top: 1.45rem;
}

.page-hero-media {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--soft);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media img {
  object-position: 45% center;
}

.page-hero-media::after {
  height: clamp(1.8rem, 3vw, 3.5rem);
}

.text-columns section {
  max-width: 34rem;
}

.photo-grid {
  margin-top: clamp(1.65rem, 4.5vw, 3.5rem);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-photos {
  margin-top: clamp(2.25rem, 6vw, 4.5rem);
}

.project-photos .photo-grid {
  margin-top: 1.25rem;
}

.page-action {
  margin-top: 2rem;
}

.narrow {
  max-width: 58rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.contact-page {
  min-height: 26rem;
}

.contact-page > p {
  max-width: 40rem;
}

.contact-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border-top: 3px solid var(--green);
  background: var(--soft);
}

.contact-panel h2 {
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
}

address {
  font-style: normal;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 0.75rem;
}

.contact-details > div + div {
  margin-top: 0.6rem;
}

.contact-details dt {
  font-weight: 700;
}

.contact-details dd,
.site-footer address {
  overflow-wrap: anywhere;
}

/* Footer and responsive layout */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.75rem) var(--gutter);
  background: #292a27;
  color: #fff;
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  inset: -25% 10% -25% 10%;
  background: url("images/leaves.png") center / contain no-repeat;
  opacity: 0.08;
  content: "";
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.15rem 2rem;
  max-width: 67rem;
  margin-inline: auto;
  font-size: 1rem;
}

.footer-inner p + p {
  margin-top: 0.35rem;
}

.footer-name {
  font: 700 1.25rem/1.25 var(--serif);
}

.site-footer a {
  display: block;
  color: inherit;
}

@media (max-width: 56rem) {
  .site-header-inner {
    position: relative;
    min-height: 5.5rem;
    display: block;
    padding-block: 1rem;
  }

  .menu-toggle:not([hidden]) {
    position: absolute;
    top: 2.75rem;
    right: var(--gutter);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.2rem;
    background: #fff;
    color: var(--ink);
    font: 400 1rem/1 var(--sans);
    transform: translateY(-50%);
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    width: 1rem;
    height: 2px;
    background: currentColor;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-icon::before {
    top: -5px;
  }

  .menu-icon::after {
    top: 5px;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-menu {
    display: grid;
    gap: 0;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
  }

  .menu-toggle:not([hidden])[aria-expanded="false"] + .site-menu {
    display: none;
  }

  .site-menu a {
    min-height: 2.75rem;
    padding: 0.6rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .site-menu a[aria-current="page"] {
    font-weight: 700;
  }

  .home-hero {
    min-height: clamp(27rem, 72vh, 38rem);
  }

  .home-hero::before {
    left: -3rem;
    width: 11rem;
  }
}

@media (max-width: 44rem) {
  .page-hero,
  .service-grid,
  .text-columns,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero-copy {
    padding-block: 2.25rem;
  }

  .page-hero-media {
    aspect-ratio: 4 / 3;
  }

  .service-grid {
    gap: 1.75rem;
  }

  .service-caption {
    min-height: 0;
  }
}

@media (max-width: 31rem) {
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero::before {
    left: -2.3rem;
    width: 7rem;
  }
}

@media (max-width: 24rem) {
  .contact-details > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (forced-colors: active) {
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    forced-color-adjust: none;
    color: ButtonText;
  }

  .home-hero-copy :where(h1, p) {
    background: Canvas;
  }
}

