:root {
  --bg: #111110;
  --fg: #eceae4;
  --muted: #8f8b82;
  --line: #2c2b28;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
}

html { color-scheme: dark; }

body {
  font: 17px/1.5 "Anonymous Pro", ui-monospace, monospace;
  text-transform: lowercase;
  min-height: 100vh;
}

.w {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.4rem 6rem;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: #4a4842;
}

a:hover { text-decoration-color: var(--fg); }

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.aka {
  color: var(--muted);
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 32rem;
}

h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.6rem 0 0.85rem;
}

.rows {
  display: grid;
  gap: 0.55rem 1rem;
  grid-template-columns: 4.6rem minmax(8rem, 14rem) 1fr;
  align-items: baseline;
}

.rows.tools,
.rows.write {
  grid-template-columns: 8.5rem 1fr;
}

.y, .k { color: var(--muted); font-variant-numeric: tabular-nums; }
.v { color: var(--muted); }

.rows a { text-decoration: none; }
.rows a:hover { text-decoration: underline; text-decoration-color: var(--fg); }

.links {
  margin-top: 2.8rem;
  color: var(--muted);
}

.links a { margin-right: 0.85rem; }

article img, .page-content img {
  max-width: 100%;
  height: auto;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.2rem 0 0;
}

article h1 { margin-top: 0.3rem; }

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back:hover { color: var(--fg); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .rows,
  .rows.tools,
  .rows.write {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
  .y, .k { margin-top: 0.85rem; }
}
