@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  color: #101410;
  background: #fff;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #101410;
  --muted: #56615a;
  --line: #dce2dc;
  --soft: #f4f7f3;
  --signal: #087e70;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--signal);
}

.wrap {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 56px 0 96px;
}

.brand,
.wrap > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.brand::before,
.wrap > a:first-child::before {
  width: 11px;
  height: 11px;
  background: #58d2ca;
  content: "";
  transform: rotate(45deg);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 72px 0 28px;
  font-size: clamp(48px, 8vw, 82px);
  line-height: .91;
  letter-spacing: -.065em;
}

h2 {
  margin: 64px 0 18px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

h3 {
  margin-top: 38px;
  font-size: 24px;
  letter-spacing: -.025em;
}

p,
li {
  color: #303831;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.72;
}

.lead {
  max-width: 720px;
  color: #26342c;
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.55;
}

.date {
  margin: 28px 0 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

ul,
ol { padding-left: 28px; }

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

a:focus-visible {
  outline: 3px solid #58d2ca;
  outline-offset: 4px;
}

.ztp-table {
  overflow: auto;
  margin: 34px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: 2px;
  background: var(--soft);
  color: #26342c;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.cta {
  margin-top: 72px;
  padding: 36px;
  border-radius: 3px;
  background: #101410;
  color: #fff;
}

.cta h2,
.cta h3 { color: #fff; }
.cta p { color: #dbe3dc; }

.cta a {
  display: inline-flex;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 2px;
  background: #5dd7ce;
  color: #0b211e;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

/* Blog index */
body:has(.wrap > article) .wrap { width: min(100% - 40px, 1080px); }
body:has(.wrap > article) h1 { margin-bottom: 64px; }

article {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

article:last-child { border-bottom: 1px solid var(--line); }
article a { display: block; color: inherit; text-decoration: none; }
article h2 { max-width: 24ch; margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); }
article p { max-width: 760px; margin: 0; color: var(--muted); }
article a:hover h2 { color: var(--signal); }

@media (max-width: 640px) {
  .wrap { width: min(100% - 30px, 860px); padding: 34px 0 68px; }
  h1 { margin-top: 54px; font-size: clamp(43px, 14vw, 62px); }
  h2 { margin-top: 52px; }
  .date { margin-bottom: 42px; }
  .cta { padding: 26px 22px; }
  article { padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
