@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #f2f1ec;
  --ink: #1c2420;
  --muted: #545e59;
  --line: #dedcd4;
  --brand: #1f3d33;
  --brand-dark: #142a23;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gutter: 24px;
}

*,
*::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(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 3px;
}
.button:hover { background: var(--brand-dark); color: #fff; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-intro {
  margin-top: 16px;
  max-width: 40em;
  color: var(--muted);
}

/* Hero */
.hero { padding: 104px 0 96px; }
.hero h1 {
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.125rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  max-width: 28ch;
}
.hero-text {
  margin-top: 24px;
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--muted);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hero-actions .plain-email { color: var(--muted); }

/* What we do */
.services {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.services li { border-top: 2px solid var(--brand); padding-top: 22px; }
.services h3 { font-size: 1.3125rem; }
.services p { margin-top: 10px; color: var(--muted); }

/* How we work */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--brand);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.contact-box .email-large {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  word-break: break-word;
  margin-bottom: 24px;
}
.contact-note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Legal / simple pages */
.legal { padding: 72px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.legal h2 { font-size: 1.375rem; margin-top: 44px; }
.legal p,
.legal ul { margin-top: 14px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .site-nav .nav-section { display: none; }
  .hero { padding: 64px 0 64px; }
  .hero-text { font-size: 1.0625rem; }
  .section { padding: 60px 0; }
  .services { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .steps { margin-top: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-box { padding: 24px; }
  .legal { padding: 48px 0 64px; }
}
@media (max-width: 440px) {
  :root { --gutter: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .brand-name { font-size: 1.25rem; }
}
