/* Same tokens as the stratware.win public site: white or pure black, one near-black accent, flat, system sans. */
:root {
  --b-bg: #ffffff;
  --b-fg: #111315;
  --b-muted: #4a4f57;
  --b-faint: #6b7078;
  --b-line: #e6e6e8;
  --b-tint: #f3f3f4;
  --b-head: #f7f7f8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --b-bg: #000000;
    --b-fg: #f2f2f2;
    --b-muted: #b8b8b8;
    --b-faint: #8a8a8a;
    --b-line: #222222;
    --b-tint: #141414;
    --b-head: #0b0b0b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  background: var(--b-bg); color: var(--b-fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--b-fg); outline-offset: 2px; border-radius: 2px; }

/* Header, content and footer share one column, so every edge lines up. */
.wrap { width: 100%; max-width: 736px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--b-fg); color: var(--b-bg); font-size: 14px; z-index: 20; }
.skip:focus { top: 8px; }

.bar { position: sticky; top: 0; z-index: 10; background: var(--b-bg); border-bottom: 1px solid var(--b-line); }
.bar-in { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; }
.brand-sub { color: var(--b-faint); font-weight: 500; }
.mark { display: inline-flex; width: 24px; height: 20px; }
.mark img { width: 24px; height: 20px; }
.mark-light { display: none; }
@media (prefers-color-scheme: dark) { .mark-dark { display: none; } .mark-light { display: block; } }
.nav { display: flex; align-items: stretch; gap: 22px; }
.nav-item { position: relative; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--b-muted); text-decoration: none; white-space: nowrap; }
.nav-item:hover { color: var(--b-fg); }
.nav-item[aria-current="page"] { color: var(--b-fg); }
.nav-item[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--b-fg); }

main.wrap { flex: 1 0 auto; padding-top: 48px; padding-bottom: 72px; }
.page-title { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 28px; }
.lead { color: var(--b-muted); }
.empty { color: var(--b-muted); }

/* Post list: date on the left, title and summary on the right. */
.list { border-top: 1px solid var(--b-line); }
.row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--b-line); }
.row time { padding-top: 2px; color: var(--b-faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.row h2 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.row h2 a { text-decoration: none; }
.row h2 a:hover { text-decoration: underline; }
.excerpt { margin-top: 6px; color: var(--b-muted); font-size: 15px; line-height: 1.55; }
.row-meta { margin-top: 8px; color: var(--b-faint); font-size: 13.5px; }

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

.post-head { margin-bottom: 32px; }
.post-head h1 { font-size: 34px; line-height: 1.18; font-weight: 650; letter-spacing: -0.022em; }
.post-meta { margin-top: 14px; color: var(--b-faint); font-size: 14px; }

.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; }
.prose h3 { margin-top: 32px; font-size: 18px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--b-tint); font-size: 0.88em; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; }
.prose thead th { border-bottom-color: var(--b-fg); font-weight: 600; }
.prose td:first-child { white-space: nowrap; color: var(--b-muted); font-variant-numeric: tabular-nums; }

.post-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--b-line); color: var(--b-faint); font-size: 14px; }

.more { margin-top: 64px; }
.more > h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

.foot { border-top: 1px solid var(--b-line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 26px; color: var(--b-faint); font-size: 13.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--b-faint); text-decoration: none; }
.foot a:hover { color: var(--b-fg); text-decoration: underline; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .bar-in { height: 56px; }
  .brand-sub { display: none; }
  .nav { gap: 18px; }
  .nav-out { display: none; }
  main.wrap { padding-top: 32px; padding-bottom: 56px; }
  .page-title { font-size: 26px; margin-bottom: 20px; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .row time { padding-top: 0; font-size: 13.5px; }
  .post-head h1 { font-size: 27px; }
  .prose { font-size: 16.5px; }
  .prose td:first-child { white-space: normal; }
}
