:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6066;
  --border: #e3e3df;
  --accent: #2f6f4f;
  --accent-contrast: #ffffff;
  --code-bg: #f0f0ec;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1a1c1f;
    --text: #e8e8e6;
    --muted: #a0a3a8;
    --border: #2c2f33;
    --accent: #6cc196;
    --accent-contrast: #0d1a13;
    --code-bg: #22252a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

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

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

.hero p {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

/* Sections */

section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card h3 a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 0.2em;
}

.card h3 a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.25rem;
}

.services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
}

.services strong {
  display: block;
  margin-bottom: 0.25rem;
}

.services span {
  color: var(--muted);
}

.cta {
  text-align: center;
  padding: 4rem 0;
}

.cta p {
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}

/* Contact form */

.contact {
  padding: 4rem 0;
  max-width: 40rem;
}

.contact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.contact > p {
  color: var(--muted);
  margin: 0 0 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Honeypot field, hidden from humans */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
