:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --green: #16834b;
  --green-dark: #0f6639;
  --soft: #f7f9f7;
  --max: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.page, .wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 17px; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: #555;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--green);
  border-color: #dce9e1;
  background: #fafdfb;
}

.hero { padding: 78px 0 65px; }
.eyebrow, .section-label, .kicker { color: var(--green); font-size: 12px; margin-bottom: 18px; }
.hero h1, .article h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -2.5px;
  font-weight: 700;
  max-width: 690px;
}
.hero-copy, .dek {
  margin-top: 18px;
  color: var(--muted);
  max-width: 640px;
  font-size: 14px;
}
.hero-copy strong, .dek strong { color: var(--text); font-weight: 600; }
.micro { margin-top: 25px; color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.pill, .contact-links a, .button, .backlink {
  display: inline-block;
  border: 1px solid #dedede;
  padding: 6px 11px;
  border-radius: 999px;
  color: #444;
  transition: .18s ease;
}
.pill:hover, .contact-links a:hover, .button:hover, .backlink:hover {
  border-color: var(--green);
  color: var(--green);
  background: #fbfefc;
}
.pill.primary { border-color: #cfe4d7; color: var(--green-dark); background: var(--soft); }

section, .section { padding: 48px 0; border-top: 1px solid var(--line); }
.about-text { max-width: 690px; color: #303030; }
.about-text p { margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }
.bullet-list { list-style: none; }
.bullet-list li { position: relative; padding-left: 25px; margin: 10px 0; color: #303030; }
.bullet-list li::before { content: "·"; position: absolute; left: 5px; color: var(--green); font-weight: 700; }

.principles {
  background: var(--soft);
  border: 1px solid #edf1ed;
  padding: 28px;
}
.principles p { color: #3c3c3c; margin-bottom: 10px; }
.principles p:last-child { margin-bottom: 0; }
.principles strong { color: var(--green-dark); font-weight: 600; }

.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.record-item { background: var(--bg); padding: 18px; }
.record-number { font-size: 24px; letter-spacing: -1.5px; font-weight: 700; color: var(--text); }
.record-number.green { color: var(--green); }
.record-label { margin-top: 4px; font-size: 11px; color: var(--muted); }

.list { list-style: none; }
.list-item, .build-item, .product, .post {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  padding: 17px 0;
  border-bottom: 1px dashed #e7e7e7;
}
.list-item:first-child, .build-item:first-child, .product:first-child, .post:first-child { border-top: 1px dashed #e7e7e7; }
.list-name, .build-name, .product-name { color: var(--text); font-weight: 600; }
.list-name::before, .build-name::before, .product-name::before { content: "↳ "; color: var(--green); font-weight: 400; }
.list-description, .build-description, .product-body { color: var(--muted); }
.list-description a, .build-description a, .product-body a { color: var(--green); }
.list-description a:hover, .build-description a:hover, .product-body a:hover { text-decoration: underline; }

.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.tag, .status {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #dedede;
  border-radius: 999px;
  color: #777;
  font-size: 10px;
  line-height: 1.7;
  text-transform: uppercase;
}
.status.live { color: var(--green-dark); border-color: #cfe4d7; background: #fbfefc; }
.product-stat { color: #444; font-size: 12px; margin: 7px 0 9px; }

.writing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px dashed #e7e7e7;
}
.writing-item:first-child { border-top: 1px dashed #e7e7e7; }
.writing-title:hover { color: var(--green); }
.writing-meta { color: #999; white-space: nowrap; font-size: 12px; }

.contact-line { color: var(--muted); margin-bottom: 20px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 9px; }

.site-footer, footer.wrap {
  padding: 35px 0 45px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #999;
  font-size: 11px;
}
.green { color: var(--green); }

/* Build log */
.blog-hero { padding-bottom: 48px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; color: #999; font-size: 11px; }
.archive-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 20px; }
.archive-head h2 { font-size: 14px; font-weight: 600; }
.post { grid-template-columns: 46px 1fr 110px; }
.post-number, .post-date { color: #999; font-size: 11px; }
.post-date { text-align: right; }
.post h3 { font-size: 14px; font-weight: 600; line-height: 1.5; }
.post h3 a:hover { color: var(--green); }
.post p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.post .tag { margin-top: 8px; }

.article { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 70px 0 90px; }
.article .backlink { font-size: 11px; }
.article .kicker { margin-top: 35px; }
.article .dek { margin-bottom: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #999; font-size: 11px; margin: 20px 0 44px; }
.prose { color: #303030; line-height: 1.85; }
.prose h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.8px; margin: 44px 0 15px; color: var(--text); }
.prose h3 { font-size: 16px; line-height: 1.4; margin: 34px 0 12px; color: var(--text); }
.prose p { margin-bottom: 20px; }
.prose ul { padding-left: 24px; margin: 0 0 24px; }
.prose li { margin: 8px 0; }
.prose blockquote { border-left: 2px solid var(--green); margin: 28px 0; padding: 2px 0 2px 18px; color: #555; }
.prose pre { overflow: auto; background: #151515; color: #f3f3f3; padding: 18px; margin: 25px 0; font: 12px/1.65 inherit; }
.prose code { font-family: inherit; font-size: .93em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-nav { border-top: 1px solid var(--line); margin-top: 55px; padding-top: 20px; display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.rss { color: var(--green); }

@media (max-width: 620px) {
  .page, .wrap, .article { width: min(calc(100% - 28px), var(--max)); }
  .site-nav { padding-top: 20px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 4px 7px; font-size: 11px; }
  .hero { padding: 58px 0 48px; }
  .hero h1, .article h1 { letter-spacing: -1.7px; }
  section, .section { padding: 40px 0; }
  .record-grid { grid-template-columns: 1fr; }
  .list-item, .build-item, .product, .post { grid-template-columns: 1fr; gap: 3px; }
  .post-date { text-align: left; }
  .writing-item { display: block; }
  .writing-meta { display: block; margin-top: 3px; }
  .principles { padding: 21px; }
  .site-footer, footer.wrap { display: block; }
  .site-footer span, footer.wrap span { display: block; margin-bottom: 5px; }
  .article { padding: 55px 0 70px; }
}
