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

:root {
  --ink: #0d1a10;
  --green-dark: #243328;
  --green: #2e994d;
  --beige: #ebeadf;
  --white: #fff;
  --border: #b8c0cc;
  --link: #4c29eb;
  --max: 1224px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin: 0 0 1.25em;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--white);
}

/* Header */

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 136px;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.site-logo img {
  width: 254px;
}

@media (max-width: 720px) {
  .site-header .wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-block: 20px;
    min-height: 0;
  }

  .site-logo {
    order: -1;
  }

  .site-logo img {
    width: 200px;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-dark {
  background: #000;
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  min-width: 230px;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 352px;
  padding: 64px var(--gutter);
  color: var(--white);
  text-align: center;
  background: var(--green-dark) center / cover no-repeat;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 16, 0.5);
}

.hero h1 {
  position: relative;
  max-width: 900px;
  margin: 0;
}

/* Sections */

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-beige {
  background: var(--beige);
}

.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-title {
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split + .split {
  margin-top: clamp(48px, 8vw, 96px);
}

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

.split-reverse .split-media {
  order: 2;
}

.split-body .btn {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media {
    order: 0;
  }
}

.link-strong {
  color: var(--link);
  font-weight: 700;
}

.button-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}

/* Contact form */

.contact-band {
  position: relative;
  padding: clamp(48px, 8vw, 80px) var(--gutter);
  color: var(--white);
  background: url("/img/contact-band.webp") center / cover no-repeat;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 16, 0.6);
}

.contact-band > * {
  position: relative;
}

.contact-band h2 {
  text-align: center;
}

.contact-band .contact-form {
  max-width: 616px;
  margin-inline: auto;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.contact-band .btn {
  display: block;
  margin-inline: auto;
}

/* Contact page */

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  gap: 24px 48px;
  margin-bottom: 48px;
}

.contact-info h3 {
  font-size: 14px;
}

.map {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* About page */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}

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

.gallery .tall {
  grid-row: span 2;
}

.gallery .tall img {
  aspect-ratio: auto;
}

@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Footer */

.site-footer {
  padding-block: 64px;
  background: var(--beige);
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-footer address {
  grid-column: 2;
  font-style: normal;
}

.site-footer h2 {
  font-size: 16px;
}

.site-footer p {
  margin-bottom: 1em;
}

@media (max-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .site-footer address {
    grid-column: 1;
  }
}

.gallery figure {
  margin: 0;
}

.gallery .wide {
  grid-column: span 2;
}

.gallery .wide img {
  aspect-ratio: 8 / 3;
}

.cf-turnstile {
  min-height: 65px;
  margin-bottom: 20px;
}

.contact-band .cf-turnstile {
  display: flex;
  justify-content: center;
}
