:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1b1d1f;
  --muted: #5d6166;
  --line: #dedad1;
  --accent: #0f5c4d;
  --accent-ink: #ffffff;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131514;
    --surface: #1b1e1d;
    --ink: #ecebe6;
    --muted: #a3a7a4;
    --line: #2c302e;
    --accent: #5fc2a8;
    --accent-ink: #0d1412;
  }
}
:root[data-theme="dark"] {
  --bg: #131514;
  --surface: #1b1e1d;
  --ink: #ecebe6;
  --muted: #a3a7a4;
  --line: #2c302e;
  --accent: #5fc2a8;
  --accent-ink: #0d1412;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font: 600 20px/1 "Fraunces", Georgia, serif; text-decoration: none; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 96px 72px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
h1 {
  font: 500 clamp(36px, 6vw, 60px)/1.08 "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 17ch;
}
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
h2 { font: 500 28px/1.2 "Fraunces", Georgia, serif; letter-spacing: -0.01em; margin: 0; }
.see-all { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }

/* Case study cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 24px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.card h3 { font: 600 21px/1.25 "Fraunces", Georgia, serif; margin: 0 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; flex: 1; }
.card .more { font-size: 15px; font-weight: 600; color: var(--accent); }

/* Background strip */
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.bg-grid h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.bg-grid p { color: var(--muted); font-size: 15.5px; margin: 0; }
.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 8px;
  text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }

/* CTA */
.cta { text-align: left; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); max-width: 22ch; margin-bottom: 16px; }
.cta p { color: var(--muted); margin: 0 0 28px; max-width: 52ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .row { align-items: center; }
footer .links { display: flex; gap: 18px; align-items: center; }
footer .links a { display: inline-flex; width: 24px; height: 24px; }
footer .links a svg { width: 100%; height: 100%; display: block; }

@media (max-width: 820px) {
  .cards, .bg-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 64px 48px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { height: auto; padding-block: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav ul { gap: 18px; flex-wrap: wrap; }
  .btn.ghost { margin: 12px 0 0; }
}

/* Page intro (non-home pages) */
.page-head { padding-block: 72px 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; max-width: 22ch; }
.page-head + section { border-top: 0; }
.nav ul a[aria-current="page"] { color: var(--ink); }
.home-links { margin-top: 36px; }

