@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pine: #193024;
  --travertine: #F4F0E8;
  --ochre: #C4923E;
  --page: #FFFFFF;
  --alt: #F4F0E8;
  --text: #161816;
  --heading: #193024;
  --muted: #5A5243;
  --rule: #DDD6C8;
  --link: #193024;
  --on-band: #F4F0E8;
  --on-band-muted: #CFC8B6;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Calibri, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #101713;
    --alt: #17201B;
    --text: #ECE6D9;
    --heading: #F4F0E8;
    --muted: #C2BAA8;
    --rule: #2B3630;
    --link: #F4F0E8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--ochre); color: var(--pine); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ochre); color: var(--pine); padding: 0.6rem 1rem; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ---------- green band: header + hero, and the footer ---------- */
.band { background: var(--pine); color: var(--on-band); }
.band a { color: var(--on-band); }

.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; }
.brand { color: var(--on-band); }
.lockup { height: 2.4rem; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.9rem; }
nav a { font-size: 0.95rem; text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
nav a:hover { border-bottom-color: var(--ochre); }

.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: end; padding-top: clamp(2rem, 5vw, 4.5rem); }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 1.3rem + 3.1vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.012em;
  max-width: 18ch;
}
.lede { margin-top: 1.6rem; font-size: 1.15rem; line-height: 1.6; color: var(--on-band-muted); max-width: 34rem; }
.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.button {
  display: inline-block; background: var(--ochre); color: var(--pine) !important; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.45rem; border-radius: 2px;
}
.button:hover { background: #D2A24F; }
.quiet { font-size: 0.98rem; }
.hero-tree { width: 100%; height: auto; margin-bottom: -1px; }

/* ---------- page sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.alt { background: var(--alt); }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--heading);
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; }
.prose { max-width: 40rem; }
.prose p { line-height: 1.7; }

.services { margin: 2.75rem 0 0; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.5rem 4rem; padding-block: 1.9rem; border-top: 1px solid var(--rule); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service dt { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--heading); }
.service dd { margin: 0; max-width: 40rem; }

.steps { list-style: none; counter-reset: step; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2.25rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ochre); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--heading);
  font-variant-numeric: lining-nums; margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.05rem; font-weight: 600; color: var(--heading); margin-bottom: 0.45rem; }
.steps p { font-size: 0.98rem; color: var(--muted); }


/* ---------- footer ---------- */
footer.band { padding-top: clamp(4rem, 8vw, 6.5rem); }
footer h2 { color: var(--on-band); margin-bottom: 1rem; }
.contact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: end; }
.contact p { color: var(--on-band-muted); max-width: 32rem; }
.email { margin-top: 1.5rem; }
.email a { font-variant-ligatures: none; font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); color: var(--on-band); line-height: 1.2; }
.contact-meta { font-size: 0.98rem; }
.legal { margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.5rem 2.5rem; }
.legal-inner { border-top: 1px solid rgba(244, 240, 232, 0.18); padding-top: 1.5rem; }
.legal p { font-size: 0.82rem; line-height: 1.55; color: var(--on-band-muted); max-width: 52rem; }

.notfound h1 { color: var(--heading); margin-bottom: 1.25rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0.5rem; }
  .split, .service, .contact { grid-template-columns: minmax(0, 1fr); }
  .service { gap: 0.6rem; }
}
@media (max-width: 34rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .lockup { height: 1.75rem; }
  nav ul { gap: 0.4rem 1.25rem; }
  nav a { font-size: 0.9rem; }
}
