@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #101211;
  --panel: #171a18;
  --text: #e8e9e5;
  --muted: #9a9f99;
  --line: #303531;
  --accent: #b6e36b;
  --code: #c5df9a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #d6f49d; }
.site-header, main, footer { width: min(100% - 40px, 760px); margin-inline: auto; }
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-name { color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
main { min-height: calc(100vh - 145px); }
.intro { padding: 68px 0 42px; border-bottom: 1px solid var(--line); }
.eyebrow, time { color: var(--accent); font: 12px/1.5 'DM Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.intro h1 { max-width: 630px; margin: 18px 0; font-size: clamp(40px, 8vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.posts { padding: 44px 0 70px; }
.posts h2 { margin-bottom: 20px; font-size: 13px; color: var(--muted); font-weight: 500; }
.post-card { position: relative; display: grid; grid-template-columns: 120px 1fr 22px; gap: 5px 16px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: #66794b; color: var(--text); transform: translateY(-2px); }
.post-card time { grid-row: span 2; padding-top: 4px; color: var(--muted); font-size: 10px; }
.post-title { font-size: 17px; font-weight: 600; }
.post-description { color: var(--muted); font-size: 13px; }
.arrow { grid-column: 3; grid-row: 1; color: var(--accent); }
.empty { color: var(--muted); }
article { padding: 54px 0 90px; }
.back-link { display: inline-block; margin-bottom: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.article-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 12px 0 14px; font-size: clamp(38px, 7vw, 58px); line-height: 1.08; letter-spacing: -.05em; }
.dek { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; }
.article-body { padding-top: 26px; }
.article-body h2 { margin: 54px 0 16px; font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.article-body h3 { margin-top: 32px; font-size: 18px; }
.article-body p, .article-body li { color: #c9cdc8; }
.article-body li + li { margin-top: 7px; }
.article-body strong { color: var(--text); }
.article-body code, .article-body pre { font-family: 'DM Mono', ui-monospace, monospace; font-size: .86em; }
.article-body :not(pre) > code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--code); background: #171a17; }
.article-body pre { overflow-x: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: #151816; line-height: 1.65; }
.article-body pre code { color: #d6ddcf; }
.article-body figure { margin: 28px 0; }
.article-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 7px; }
.article-body figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; }
.article-body blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.article-body .note { padding: 14px 17px; border-left: 2px solid var(--accent); background: var(--panel); color: var(--muted); font-size: 14px; }
footer { padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 32px, 760px); }
  .intro { padding: 52px 0 38px; }
  .post-card { grid-template-columns: 1fr 22px; }
  .post-card time { grid-column: 1; grid-row: auto; }
  .post-title, .post-description { grid-column: 1; }
  .arrow { grid-column: 2; grid-row: 1; }
  article { padding-top: 38px; }
}
