:root {
  --paper: #f5f1e8;
  --card: #fbf9f4;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --line: #e1dacb;
  --accent: #b8562f;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; }
.brand b { font-weight: 600; }
.brand span { color: var(--muted); }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 18px; max-width: 18em; }
h2 { font-size: 24px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.label { font: 600 13px/1.4 var(--sans); margin: 0 0 16px; }
.lede { font-size: 17px; color: var(--muted); max-width: 36em; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
p { margin: 0 0 12px; max-width: 42em; }

/* sections */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero svg { width: 100%; height: auto; max-width: 480px; justify-self: end; }
.hero-art .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-art .draw { animation: none; stroke-dashoffset: 0; } }
section { padding: 40px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }

.links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 14px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { border-color: var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 0; display: flex; flex-direction: column; text-decoration: none; }
.card .art { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.card .art { padding: 14px; }
.card .art svg { width: 100%; height: auto; max-height: 100%; }
.card .body { padding: 14px 16px 18px; }
.card .body p { font-size: 13.5px; color: var(--muted); margin: 0; }
.card h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 0 4px; }

/* facts strip */
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

/* service blocks */
.service { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .art { align-self: start; width: 240px; background: var(--card); border: 1px solid var(--line); padding: 12px; }
.service .art svg { width: 100%; height: auto; }
.service ul, .plain { margin: 8px 0 0; padding-left: 18px; }
.service li, .plain li { margin-bottom: 4px; }
.service h2 { margin-bottom: 8px; }

/* data table */
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.data th { width: 34%; font-weight: 600; }
.data td span { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* illustration strokes */
.ink { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.thin { stroke-width: 1; }
.dash { stroke-dasharray: 3 5; }
.dots { stroke-dasharray: 0.1 7; stroke-width: 2.2; }
.acc { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.accf { fill: var(--accent); }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .hero svg { justify-self: start; max-width: 260px; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .data th { width: 42%; }
  .nav { gap: 14px; }
}

.tag { display: block; font: 600 12px/1.4 var(--sans); color: var(--accent); margin-bottom: 2px; }
