/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #fbfaf7;
  --text: #1b1b1f;
  --muted: #5f5f68;
  --rule: #e3e1db;
  --accent: #2a4bd7;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --text: #ececef;
    --muted: #a0a0a9;
    --rule: #2a2a30;
    --accent: #8ea3ff;
  }
}

/* ---------- Base ---------- */

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

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

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

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ---------- Header & footer ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- Sections ---------- */

section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--rule);
}

.hero {
  padding-block: 3rem 4.5rem;
  border-top: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

/* ---------- Services ---------- */

.services {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.375rem 1rem;
}

.services .num {
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.15;
}

.services p {
  margin: 0;
  color: var(--muted);
}

/* ---------- About & contact ---------- */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 2rem;
  margin: 2rem 0 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.contact-email {
  margin-block: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 5.5vw, 2rem);
  overflow-wrap: anywhere;
}
