:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fff;
  --muted: #555;
  --line: #ddd;
  --rule: #bbb;
  --code: #f2f2f2;
  --display: Syne, Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Courier New", monospace;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
body { margin: 0 auto; width: min(100% - 2rem, 72rem); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--paper); background: var(--ink); outline: .2rem solid var(--ink); }
img { display: block; max-width: 100%; height: auto; filter: grayscale(1) contrast(1.04); }
.skip, .offscreen { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); color: var(--ink); }

/* The one piece of ASCII furniture left: a full-bleed run of "=" that the
   overflow clip trims to whatever width the viewport happens to be. */
.rule {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -.08em;
  color: var(--rule);
  user-select: none;
}

/* The wordmark is a quiet label, not a headline — the article titles are
   what should carry weight on the page. */
body > header { padding: 1.25rem 0 .75rem; text-align: center; }
.brand {
  display: inline-block;
  margin: .9rem 0 .2rem;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover, .brand:focus-visible { color: var(--paper); background: var(--ink); }
.tagline { margin: 0 0 .9rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }

main { min-height: 55vh; }
.intro { padding: clamp(1.75rem, 5vw, 3rem) 0; margin: 0 0 .5rem; max-width: none; }
.intro > * { max-width: 52rem; }
.intro h1, .post h1 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: .4rem 0 1rem;
  overflow-wrap: anywhere;
}
/* Listing headings are signposts; article headlines carry the page. */
.intro h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: .5rem; }
.post h1 { font-size: clamp(2rem, 8vw, 5rem); }
.intro h1 + p { margin-bottom: 0; color: var(--muted); }
.intro > p:first-child, .eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.listing { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border-top: 1px solid var(--line); }
.card { grid-column: span 6; padding: 2rem; border-bottom: 1px solid var(--line); }
.card:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.card:nth-child(even) { padding-right: 0; }
.card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: .5rem 0 1rem;
}
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h2 a:focus-visible { color: var(--paper); background: var(--ink); }
.card p { max-width: 42rem; }
.meta { font-family: var(--mono); color: var(--muted); font-size: .78rem; }
.read { display: inline-block; margin-top: .5rem; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; font-family: var(--mono); padding: 2rem 0; }

.post { max-width: 54rem; margin: 0 auto; }
.post-header { border-bottom: 1px solid var(--line); padding: clamp(1.75rem, 5vw, 3rem) 0 2rem; }
.post figure { margin: 2rem 0; }
.post figure img { width: 100%; border: 1px solid var(--line); }
.content { font-size: clamp(1.02rem, 2vw, 1.14rem); line-height: 1.75; }
.content h2, .content h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2.5em; }
.content blockquote { margin-inline: 0; padding: .5rem 1.5rem; border-left: .2rem solid var(--ink); color: var(--muted); }
/* Code blocks are unhighlighted on purpose: the site ships no JavaScript, so
   any colouring would have to happen at build time. Long lines scroll inside
   the block rather than widening the page. */
.content code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: .25rem;
  padding: .1em .35em;
}
/* Size and family sit on the <pre> itself: the editor emits code blocks both
   as <pre><code> and as a bare <pre>, and the two must look identical. */
.content pre {
  margin: 2rem 0;
  padding: 1rem 1.15rem;
  max-width: 100%;
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--line);
  border-left: .2rem solid var(--ink);
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.55;
  tab-size: 2;
}
.content pre code {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}
.content img { margin-block: 2rem; border: 1px solid var(--line); }
.back { margin: 4rem 0; border-top: 1px solid var(--line); padding-top: 1rem; font-family: var(--mono); font-size: .82rem; }

body > footer { margin-top: 4rem; padding: 0 0 2rem; text-align: center; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
body > footer p { margin-top: 1rem; }

@media (max-width: 48rem) {
  body { width: min(100% - 1.25rem, 72rem); }
  body > header { padding-top: 1rem; }
  .card { grid-column: 1 / -1; padding: 1.5rem 0; border-right: 0 !important; }
}

@media print {
  .rule, .read, body > footer { display: none; }
  body { width: 100%; }
  a { color: inherit; text-decoration: none; }
}
