@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-roman-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-roman-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-roman-greek.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/source-serif-4-italic-greek.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: light dark;
  --paper: #fcfbf8;
  --ink: #1b1a17;
  --muted: #6e6a61;
  --rule: rgba(27, 26, 23, 0.16);
  --measure: 33em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131211;
    --ink: #e7e3db;
    --muted: #9a958b;
    --rule: rgba(231, 227, 219, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 1.5rem 3.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: oldstyle-nums;
  hanging-punctuation: allow-end;
  text-wrap: pretty;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
}

/* ── Identity ──────────────────────────────────────────── */

.masthead {
  padding-block: 4rem 0;
}

.masthead h1 {
  margin: 0;
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.masthead .name {
  text-decoration: none;
}

.wordmark {
  margin: 0;
  font-size: 0.82em;
  letter-spacing: 0.05em;
  color: var(--muted);
}

main {
  padding-block-start: 4rem;
}

.lede {
  margin: 0.35em 0 0;
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Index ─────────────────────────────────────────────── */

.label {
  margin: 0 0 0.2em;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.2em;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts li {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.25em;
  align-items: baseline;
  padding-block: 0.45em;
}

.posts time {
  font-size: 0.8em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--muted);
}

.posts a {
  font-size: 1.06em;
  text-decoration: none;
}

.posts li:hover a {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.about {
  margin-block: 3.5rem 0;
}

.about p {
  margin: 0 0 0.9em;
  font-size: 0.92em;
  color: var(--muted);
}

/* ── Post ──────────────────────────────────────────────── */

.post {
  padding-block-start: 3rem;
}

.post h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.byline {
  margin: 0.7em 0 2.4em;
  font-size: 0.82em;
  font-variant-numeric: lining-nums;
  color: var(--muted);
}

.prose > * {
  margin-block: 0 1.15em;
}

.prose h2,
.prose h3 {
  font-weight: 600;
  letter-spacing: -0.004em;
}

.prose h2 {
  margin-block: 2.1em 0.45em;
  font-size: 1.16em;
  line-height: 1.3;
}

.prose h3 {
  margin-block: 1.7em 0.35em;
  font-size: 1em;
  line-height: 1.4;
}

.dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: 3.2em;
  font-weight: 400;
  line-height: 0.8;
  padding-right: 0.08em;
}

.prose blockquote {
  margin: 1.55em 0;
  padding-left: 1.2em;
  border-left: 1px solid var(--rule);
  font-style: italic;
}

.prose blockquote p {
  margin-block: 0 0.6em;
}

.prose blockquote :last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  font-size: 0.85em;
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin-block: 0.3em;
}

.prose li > ul,
.prose li > ol {
  margin-block: 0.3em;
}

.prose hr {
  border: 0;
  margin: 2.3em 0;
  overflow: visible;
}

.prose hr::before {
  content: "\00A7";
  display: block;
  text-align: center;
  color: var(--muted);
}

.prose sup {
  font-size: 0.72em;
  line-height: 0;
  font-variant-numeric: lining-nums;
}

.prose sup a {
  text-decoration: none;
  color: var(--muted);
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em;
}

.prose pre {
  margin: 1.5em 0;
  overflow-x: auto;
  font-size: 0.8em;
  line-height: 1.55;
  tab-size: 2;
}

.prose pre code {
  font-size: 1em;
}

.footnotes {
  margin-block: 3em 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
  font-size: 0.85em;
  color: var(--muted);
}

.footnotes ol {
  margin: 0;
  padding-left: 1.5em;
}

.footnotes li {
  margin-block: 0.45em;
}

.footnotes li:target {
  color: var(--ink);
}

/* ── Links ─────────────────────────────────────────────── */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(27, 26, 23, 0.45);
}

@media (prefers-color-scheme: dark) {
  a {
    text-decoration-color: rgba(231, 227, 219, 0.5);
  }
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ── Colophon ──────────────────────────────────────────── */

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.2em;
  margin-block: 4.5rem 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
  font-size: 0.8em;
  color: var(--muted);
}

.colophon p {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 30em) {
  .masthead {
    padding-block-start: 2.75rem;
  }
  .posts li {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-block: 0.7em;
  }
  .colophon {
    margin-block: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11.5pt;
    padding: 0;
  }
  .colophon {
    display: none;
  }
  .prose a {
    text-decoration: none;
  }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
}

/* ══ Page section — the designer pass (2026-12-04) ════════════════
   Built on edgaras' grammar. Six changes: a label spine, a past that
   recedes, a thesis set alone, room to breathe, one caret after the
   lede, one door in the colophon. No new colours, no new faces.  */

/* Standing rule: the lede never renders at a different size than
   the facts. It also carries the page's only animation. */
.masthead .lede {
  font-size: 1em;
}

.caret {
  display: inline-block;
  width: 0.09em;
  height: 0.92em;
  margin-left: 0.22em;
  vertical-align: -0.08em;
  background: currentColor;
  animation: caret-blink 1.15s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}

/* ── Facts: the label spine ── */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  display: grid;
  grid-template-columns: 6em 1fr;
  column-gap: 1.5em;
  align-items: baseline;
}

.facts li + li {
  margin-top: 2.75rem;
}

.facts .label {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.facts p {
  margin: 0;
}

/* ── The depth curve lives in whitespace, not color: every fact is
   full ink (Edgar rejected the muted past, 2026-12-04); the thesis
   separates by room and size alone. ── */

.facts .thesis {
  grid-template-columns: 1fr;
  margin-top: 5.5rem;
}

.facts .thesis p {
  color: var(--ink);
  font-size: 1.06em;
}

/* edgaras' .wrap measure is in em, so it resolves against each
   element's OWN font size: the footer's 0.8em shrank its 33em measure
   and centred it narrower than the page. Divide the footer's size out. */
.colophon {
  max-width: calc(var(--measure) / 0.8);
}

@media (max-width: 30em) {
  .facts li {
    grid-template-columns: 1fr;
    row-gap: 0.35em;
  }
  .facts li + li {
    margin-top: 2rem;
  }
  .facts .thesis {
    margin-top: 3.5rem;
  }
}
