@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f6f0;
  --panel: #eceee5;
  --ink: #171a15;
  --muted: #474d42;
  --line: #cbd0c2;
  --accent: #d8f77a;
  --dark: #1d211a;
  --gutter: clamp(1.25rem, 4.5vw, 4.25rem);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 100% / 1.6 system-ui, -apple-system, sans-serif;
}

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

body, h1, h2, h3, p {
  margin: 0;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #647a25;
  outline-offset: 5px;
}

.contact :focus-visible {
  outline-color: var(--accent);
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto var(--gutter);
  padding: 0.75rem 1rem;
  background: var(--accent);
  transform: translateY(-150%);
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), 79rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-inner {
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  font: 700 1.7rem / 1 var(--display);
  letter-spacing: -0.07em;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  background: var(--ink);
  clip-path: polygon(42% 0, 100% 0, 100% 28%, 61% 28%, 43% 45%, 75% 45%, 29% 100%, 0 100%, 27% 67%, 0 67%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3.3vw, 3rem);
  font-size: 0.9375rem;
  font-weight: 550;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

nav a:hover {
  text-decoration: underline;
}

.nav-contact {
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
}

.nav-contact:hover {
  border-color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: stretch;
  gap: clamp(2rem, 4.2vw, 4.25rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.hero-copy {
  align-self: center;
  padding-block: 1rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.75rem, 7vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-art {
  position: relative;
  isolation: isolate;
  min-height: 29rem;
  overflow: hidden;
  background: #20261e;
  border-radius: 0.375rem;
}

.hero-art img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  font: 650 0.9375rem / 1.4 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
  border-color: #9db14d;
}

.button-primary:hover {
  background: #edfbae;
}

.work {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.work-inner, .approach, .contact-inner {
  padding-block: clamp(3.25rem, 6.5vw, 6.5rem);
}

h2 {
  font-size: clamp(2.65rem, 4.6vw, 4.3rem);
  letter-spacing: -0.072em;
  line-height: 1;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.services article {
  padding: 1.85rem clamp(1rem, 2.8vw, 2.5rem);
}

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

.services article:last-child {
  padding-right: 0;
}

.services article + article {
  border-left: 1px solid var(--line);
}

.services h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.services p {
  max-width: 26ch;
  color: var(--muted);
  font-size: 1rem;
}

.service-icon {
  position: relative;
  display: block;
  width: 1.75rem;
  height: 1.5rem;
}

.app-icon {
  border: 2px solid currentColor;
  border-radius: 0.2rem;
}

.app-icon::after {
  position: absolute;
  inset: 0.3rem 0 auto;
  border-top: 2px solid currentColor;
  content: "";
}

.tools-icon::before,
.tools-icon::after {
  position: absolute;
  width: 1.15rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-radius: 0.125rem;
  content: "";
}

.tools-icon::before {
  inset: 0 0 auto auto;
}

.tools-icon::after {
  inset: auto auto 0 0;
  background: var(--panel);
}

.product-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.product-icon::before,
.product-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.75rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.product-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: 2rem;
}

.approach p,
.contact-copy p {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.contact {
  color: var(--paper);
  background: var(--dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 0.56fr);
  gap: 2rem clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.contact h2 {
  max-width: 13ch;
  text-wrap: balance;
}

.contact-copy p {
  max-width: 33rem;
  margin-top: 1.3rem;
  color: #d9dfd1;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  color: var(--accent);
  text-underline-offset: 0.25em;
}

.contact-form,
.contact-fields,
.form-field {
  display: grid;
}

.contact-form {
  gap: 1rem;
}

.contact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-field {
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.9375rem;
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid #8a9680;
  border-radius: 0.3rem;
  color: var(--paper);
  background: #292f25;
  font: inherit;
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.form-status {
  color: #d9dfd1;
  font-size: 0.9rem;
}

.form-status:empty {
  margin-top: -1rem;
}

.submission-result {
  max-width: 45rem;
  padding-block: 4rem;
}

.submission-result p {
  margin-block: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 5rem;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 57rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.6rem, 10.5vw, 6.5rem);
    text-wrap: initial;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 1.6;
  }

  .services article {
    padding-inline: 1rem;
  }
}

@media (max-width: 41rem) {
  .header-inner {
    min-height: 4.25rem;
  }

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

  .hero-art {
    aspect-ratio: 1.3;
  }

  .services,
  .approach,
  .contact-inner,
  .contact-fields {
    grid-template-columns: 1fr;
  }

  .services article {
    padding: 1.5rem 0;
  }

  .services article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .services p {
    max-width: 34ch;
  }

  .approach {
    gap: 1rem;
  }

  .footer-inner {
    gap: 0.6rem 1.25rem;
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
