@font-face {
  font-family: "Labil Grotesk";
  src: url("/fonts/LabilGrotesk-Regular.woff2") format("woff2"),
       url("/fonts/LabilGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Labil Grotesk";
  src: url("/fonts/LabilGrotesk-Medium.woff2") format("woff2"),
       url("/fonts/LabilGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Labil Grotesk";
  src: url("/fonts/LabilGrotesk-Bold.woff2") format("woff2"),
       url("/fonts/LabilGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Labil Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #13322B;
  background: #F4F0E2;
  line-height: 1.6;
  font-size: 18px;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a { color: #13322B; text-decoration: none; font-weight: 500; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.nav .brand .dot { width: 12px; height: 12px; border-radius: 50%; background: #C4D600; }
.nav .links { margin-left: auto; display: flex; gap: 28px; align-items: center; }
@media (max-width: 640px) { .nav .links a:not(.cta) { display: none; } }
.nav .cta {
  background: #13322B; color: #fff; padding: 12px 22px; border-radius: 9999px;
  font-weight: 600; font-size: 15px;
}

article, .listing {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 clamp(20px, 5vw, 40px);
}
article h1, .listing h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 16px 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
article h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
article h3 { font-size: clamp(20px, 2.4vw, 24px); margin: 32px 0 8px; font-weight: 700; }
article p, article li { font-size: 19px; line-height: 1.65; }
article a { color: #13322B; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: #C4D600; }
article a:hover { background: #C4D600; }
article ul, article ol { padding-left: 24px; }
article li { margin: 6px 0; }
article hr { border: none; border-top: 1px solid #13322B22; margin: 48px 0; }
article blockquote {
  border-left: 4px solid #C4D600;
  padding: 8px 20px;
  margin: 24px 0;
  color: #13322B;
  background: #ffffff55;
  font-style: italic;
}
article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #13322B;
  color: #C4D600;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
article pre {
  background: #13322B;
  color: #F4F0E2;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 24px 0;
}
article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
article th, article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #13322B22; }
article th { font-weight: 700; background: #13322B0a; }

.meta { color: #13322B99; font-size: 15px; margin-bottom: 8px; font-weight: 500; }
.tag {
  display: inline-block; background: #C4D600; color: #13322B;
  padding: 4px 12px; border-radius: 9999px; font-size: 13px; font-weight: 600;
  margin-right: 8px;
}

.post-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid #13322B22;
  text-decoration: none;
  color: #13322B;
}
.post-card:hover h2 { color: #13322B; background: #C4D600; }
.post-card h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 8px; font-weight: 700; display: inline; padding: 2px 0; }
.post-card .excerpt { color: #13322Bcc; margin: 10px 0 0; }

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 80px) 60px;
  border-top: 1px solid #13322B22;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #13322B99;
  font-size: 14px;
}
footer a { color: #13322B99; text-decoration: none; }
footer a:hover { color: #13322B; }
