:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --ink: #15171a;
  --ink-2: #4b5159;
  --ink-3: #7b828c;
  --line: #e6e3dc;
  --accent: #0f6e56;
  --accent-ink: #ffffff;
  --accent-soft: #e4f2ec;
  --radius: 14px;
  --max: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --bg-elev: #171a1d;
    --ink: #f2f1ed;
    --ink-2: #b9bec6;
    --ink-3: #828992;
    --line: #262a2f;
    --accent: #3ec59f;
    --accent-ink: #0b1511;
    --accent-soft: #15241f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-3); }

/* header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav.main { display: flex; gap: 26px; }
nav.main a { color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
nav.main a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { nav.main { gap: 16px; } nav.main a.hide-sm { display: none; } }

/* hero */
.hero { padding: 96px 0 72px; }
.hero .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 640px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px 20px; border-radius: 10px; margin-top: 12px; }
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.cta.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section .intro { max-width: 640px; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 20px; height: 20px; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list strong { min-width: 90px; color: var(--ink-2); font-weight: 500; }

/* prose pages */
.prose { max-width: 720px; padding: 64px 20px 80px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 2em; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-3); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }
