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

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2");
}

:root {
  --paper: #f3f0e8;
  --paper-2: #e7e1d6;
  --ink: #1c1a16;
  --secondary: #3a3832;
  --meta: #5a564e;
  --line: #d4cdc0;
  --copper: #8f3d1b;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 70rem;
  --pad: 1.25rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

::selection {
  background: #e7cbbd;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

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

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

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4.25rem;
  width: min(var(--wrap), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-height: 2.75rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mark {
  display: block;
  flex: none;
}

.nav-toggle {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  min-height: 2.75rem;
  padding: 0 0.9rem;
  cursor: pointer;
}

.nav-toggle .when-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .when-open {
  display: inline;
}

.nav-toggle[aria-expanded="true"] .when-closed {
  display: none;
}

.nav {
  display: none;
  gap: 0.25rem 1.25rem;
  padding-bottom: 1rem;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  padding-bottom: 0.6rem;
}

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

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--meta);
}

.lang a {
  min-height: 2.75rem;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero,
.page-head,
.split,
.service,
.cta,
.pedigree,
.foot {
  padding-block: 1.5rem;
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding-top: 2rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--meta);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7.2vw, 4.35rem);
  max-width: 18em;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.lede,
.founder-line {
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 38rem;
  color: var(--secondary);
}

.lede {
  margin: 1.1rem 0 0;
}

.rule {
  width: 2.5rem;
  height: 2px;
  background: var(--copper);
  border: 0;
  margin: 1.15rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.05rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  font: inherit;
  cursor: pointer;
}

.button:hover {
  background: #000;
}

.text-link {
  color: inherit;
  text-underline-offset: 0.22em;
}

figure {
  margin: 0;
}

.hero-figure img,
.page-figure img,
.about-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
}

figcaption {
  margin-top: 0.55rem;
  color: var(--meta);
  font-size: 0.92rem;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.section-head p,
.service .who,
.note {
  margin: 0;
  color: var(--secondary);
  max-width: 40rem;
}

.cards,
.home-services,
.services {
  display: grid;
  gap: 0;
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.3rem;
}

.card h2,
.card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}

.card p,
.service li,
.method p {
  margin: 0;
}

.card-meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  color: var(--meta);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.4rem;
}

.filters button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  min-height: 2.75rem;
  padding: 0 0.85rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.empty {
  color: var(--meta);
  margin: 1rem 0;
}

.service {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.service ul,
.method {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service ul,
.doc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service ul li,
.doc li {
  padding-left: 1rem;
  position: relative;
  margin: 0.4rem 0;
}

.service ul li::before,
.doc li::before {
  content: "";
  width: 0.4rem;
  height: 1px;
  background: var(--copper);
  position: absolute;
  left: 0;
  top: 0.75em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.55rem;
  margin: 0.5rem 0;
  padding-left: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--copper);
  position: static;
  width: auto;
  height: auto;
  background: none;
}

.steps p,
.method p {
  margin: 0;
}

.method li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.method span {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--copper);
}

.pedigree p {
  margin: 0 0 0.8rem;
  max-width: 40rem;
  font-size: 1.05rem;
}

.cta {
  border-top: 1px solid var(--line);
  padding-bottom: 3rem;
}

.cta h2 {
  max-width: 16ch;
}

.doc {
  max-width: 40rem;
  margin-inline: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.prose h2 {
  margin-top: 1.6rem;
}

.doc h1 {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
}

.doc section {
  margin-top: 1.8rem;
}

.pair {
  display: grid;
  gap: 1.2rem;
}

.report {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 1.6rem;
  padding-top: 2rem;
}

.prose p,
.narrow p {
  max-width: 40rem;
}

.fields {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.2rem;
}

label span,
.legend {
  display: block;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: #fffcf7;
  border: 1px solid #c9c2b4;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hint,
.form-note,
.field-error,
.fine {
  color: var(--meta);
  font-size: 0.92rem;
}

.field-error {
  color: var(--copper);
  margin: 0.35rem 0 0;
  flex-basis: 100%;
}

.banner {
  border: 1px solid var(--copper);
  padding: 0.75rem 0.9rem;
  margin: 1rem 0 0;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.consent span {
  flex: 1;
  min-width: 0;
}

.consent input {
  width: 1.15rem;
  min-height: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  padding: 0;
  accent-color: var(--ink);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
}

.foot {
  display: grid;
  gap: 0.8rem;
}

.foot strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  display: block;
}

.foot a {
  overflow-wrap: anywhere;
}

.direct a {
  overflow-wrap: anywhere;
}

@media (min-width: 880px) {
  :root {
    --pad: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: auto;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .page-head {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .cards,
  .home-services {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .home-services {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1.5rem;
  }

  .service {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    padding-top: 1.4rem;
  }

  .service > div:first-child {
    grid-column: 1 / -1;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 3rem;
  }

  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
    padding-top: 3rem;
  }

  .foot {
    grid-template-columns: 1fr 1.4fr auto;
    align-items: end;
  }
}

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