:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --ink: #1f2328;
  --ink-soft: #5b6168;
  --line: #e4e4e0;
  --accent: #3a5a6e;
  --accent-soft: #eef2f4;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--accent); }

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

.narrow { max-width: 720px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  display: inline-block;
}
.nav a {
  margin-left: 26px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: 44px;
  margin: 0 0 20px;
  max-width: 16ch;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
}
.btn:hover { background: #2f4a5a; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: 28px;
  margin: 0 0 32px;
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}
.card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid p { color: var(--ink-soft); }
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--ink-soft); font-size: 15px; margin: 0; }
.facts dd { margin: 0; font-weight: 500; font-size: 15px; }

/* Contact */
.contact-line {
  font-size: 22px;
  font-family: "IBM Plex Serif", Georgia, serif;
  margin: 8px 0 16px;
}
.muted { color: var(--ink-soft); font-size: 15px; }

/* Doc pages */
.doc h1 { font-size: 34px; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p { color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-nav a {
  margin-left: 22px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav a:first-child { margin-left: 0; }
}
