:root {
  --ink: #16202b;
  --ink-2: #3c4855;
  --muted: #5d6874;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f4;
  --accent: #1d4d3f;
  --accent-ink: #ffffff;
  --accent-soft: #e8efec;
  --radius: 6px;
  --wrap: 1160px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.narrow-text { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.meta { font-size: .85rem; color: var(--muted); margin: 0; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: inherit;
}
.btn:hover { background: #163c31; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: .98rem; }
.logo { width: 26px; height: 26px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }

/* sections */
.hero { padding: 88px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.hero-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-alt); }
.panel-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 11px 0 11px 26px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; color: var(--ink-2); }
.check li:first-child { border-top: 0; }
.check li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.section { padding: 80px 0; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 680px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head.row p { margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service .num { display: block; font-family: var(--serif); color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: .95rem; }
.service a { font-weight: 600; font-size: .9rem; text-decoration: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: '0' counter(step); font-size: .8rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .95rem; }

.post-card { border-top: 1px solid var(--line); padding-top: 20px; }
.post-card h3 { font-size: 1.22rem; margin-bottom: .5em; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card .eyebrow { margin-bottom: .6em; }
.post-card p.muted { font-size: .95rem; }
.featured { margin-bottom: 48px; }
.post-card-lg { border-top: 2px solid var(--ink); padding: 28px 0 8px; max-width: 820px; }
.post-card-lg h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.post-card-lg p.muted { font-size: 1.05rem; }
.post-list > div[hidden] { display: none; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

.cta-band { background: var(--accent); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #d5e3dd; margin: 0; max-width: 620px; }

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }

/* services page */
.services-list { display: grid; gap: 0; }
.service-row { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row h2 { font-size: 1.5rem; }
.service-row h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 1.4em; }
.service-row ul { padding-left: 1.1em; color: var(--ink-2); }
.service-row li { margin-bottom: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #cfd4da; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.contact-side h2 { font-size: 1.15rem; margin-top: 0; }
.contact-side h2:not(:first-child) { margin-top: 1.8em; }
.small-steps { padding-left: 1.2em; color: var(--ink-2); }
.form-note { padding: 14px 16px; background: var(--accent-soft); border-radius: var(--radius); font-size: .95rem; }

/* article */
.article-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; padding-top: 48px; padding-bottom: 72px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .88rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-left: 2px solid var(--accent); margin-left: -1px; padding-left: 13px; }

.prose { font-size: 1.06rem; line-height: 1.75; color: #1f2a35; }
.prose h2 { margin-top: 2em; font-size: 1.65rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; font-size: 1.22rem; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; }
.prose blockquote.callout { font-family: var(--sans); font-size: .98rem; background: var(--bg-alt); border-left-color: var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0; }
.prose code { font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.article-end { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 8px; }
.plain a { color: var(--ink-2); text-decoration: none; }
.plain a:hover { color: var(--ink); text-decoration: underline; }
.brand-footer { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .service { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .hero { padding: 56px 0; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .section-head.row, .cta-inner { flex-direction: column; align-items: flex-start; }
}
