@font-face {
  font-family: "Codan Sans";
  src: local("Avenir Next"), local("Avenir"), local("Helvetica Neue");
  font-display: swap;
}

:root {
  --paper: #f4f0e8;
  --ink: #142620;
  --muted: #626b65;
  --green: #183d32;
  --lichen: #d1b66d;
  --white: #fffdf8;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Codan Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header,
.hero,
.contact-section,
footer {
  width: min(100%, calc(var(--max-width) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.18rem;
  height: 1.65rem;
  background: currentColor;
  clip-path: polygon(50% 0, 76% 28%, 65% 28%, 89% 55%, 73% 55%, 100% 84%, 61% 84%, 61% 100%, 39% 100%, 39% 84%, 0 84%, 27% 55%, 11% 55%, 35% 28%, 24% 28%);
}

.header-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 6.5rem);
  display: flex;
  align-items: center;
  padding-inline: max(var(--gutter), calc((100vw - var(--max-width)) / 2));
  padding-top: 2rem;
  padding-bottom: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  width: min(45%, 35rem);
  padding-block: 2rem;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3.5rem, 6.5vw, 6.8rem);
  line-height: 0.91;
}

.hero-intro {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 15rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(26rem, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 0 0 100vmax var(--green);
  clip-path: inset(0 -100vmax);
}

.contact-intro h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.94;
}

.contact-intro > p {
  max-width: 28rem;
  margin-bottom: 2rem;
  color: rgba(255, 253, 248, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 253, 248, 0.55);
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  text-decoration: none;
}

.form-wrap {
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 1.55rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.6rem;
}

.field label {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field label span {
  color: rgba(255, 253, 248, 0.42);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  transition: border-color 160ms ease, background 160ms ease;
}

.field input {
  min-height: 2.75rem;
}

.field textarea {
  min-height: 8rem;
  padding-block: 0.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--lichen);
  background: rgba(255, 255, 255, 0.025);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.3rem;
}

.form-footer p {
  max-width: 18rem;
  margin: 0;
  color: rgba(255, 253, 248, 0.47);
  font-size: 0.72rem;
  line-height: 1.5;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 12.5rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--lichen);
  background: var(--lichen);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: #ffbcae;
  font-size: 0.88rem;
}

.form-success {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 26rem;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--lichen);
  border-radius: 50%;
  color: var(--lichen);
  font-size: 1.4rem;
}

.form-success h3 {
  margin-bottom: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.form-success p {
  color: rgba(255, 253, 248, 0.65);
}

.text-button {
  padding: 0.25rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 2.3rem;
  padding-bottom: 2.3rem;
  background: var(--green);
  color: rgba(255, 253, 248, 0.55);
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  box-shadow: 0 0 0 100vmax var(--green);
  clip-path: inset(0 -100vmax);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.brand-footer,
.brand-mark-light {
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--lichen);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 5.5rem;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3.5rem;
    padding-top: 3rem;
    padding-bottom: 0;
  }

  .hero-copy {
    width: min(100%, 35rem);
    padding-block: 0;
  }

  .hero-background {
    position: relative;
    z-index: auto;
    order: 2;
    width: calc(100% + (var(--gutter) * 2));
    height: auto;
    margin-inline: calc(var(--gutter) * -1);
    aspect-ratio: 4 / 3;
    object-position: right center;
  }

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

  .contact-intro > p {
    max-width: 34rem;
  }

}

@media (max-width: 540px) {
  .brand {
    font-size: 0.85rem;
  }

  .header-link {
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero {
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .hero-background {
    aspect-ratio: 1 / 1;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 1.55rem;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  footer p:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
