﻿/* DynamicDave stylesheet entry: compiled to wwwroot/lib/css/dynamicdave(.min).css by compilerconfig.json.
   __layers.less declares the cascade layer order first, so the import order below doesn't decide precedence;
   _motion.less comes last with the entrance animations and the prefers-reduced-motion overrides. */
/* Cascade layer order for the whole stylesheet: a later layer wins over an earlier one, whatever the import order. */
@layer tokens, base, layout, components, motion;
/* Layout concept: a quiet paper page with one loud object. The newest post is a full-bleed signal slab
   with a tear-off ticket; everything else is ink on paper, cut into blocks like Umbraco's content tree. */
@layer tokens {
  :root {
    /* Colours (light theme) */
    --paper: #f5f2ea;
    --paper-raised: #fffdf8;
    --paper-sunken: #ebe6da;
    --ink: #15171c;
    --ink-muted: #4a4d55;
    --ink-subtle: #686b73;
    --rule: #d9d3c5;
    --rule-strong: #8f8a7e;
    --signal: #ec5a26;
    --on-signal: #15171c;
    --signal-text: #b3360d;
    --signal-soft: #f6d9cb;
    --teal: #0d6b63;
    --teal-soft: #d3e8e4;
    --focus: var(--teal);
    --grain-opacity: 0.1;
    /* Type */
    --font-display: "Plus Jakarta Sans", sans-serif;
    --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    /* Spacing scale: --space-N is N x 4px */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-24: 96px;
    /* Radii */
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-pill: 999px;
    /* Layout and easing */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-inout: cubic-bezier(0.7, 0, 0.2, 1);
    color-scheme: light;
  }
  /* The dark colours twice: for the OS preference unless the visitor picked light with the theme fader,
	   and for an explicit dark choice (data-theme="dark"). Keep both blocks the same. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #111216;
      --paper-raised: #1a1c21;
      --paper-sunken: #0b0c0f;
      --ink: #ede9e0;
      --ink-muted: #b4b1aa;
      --ink-subtle: #9a978f;
      --rule: #2c2e35;
      --rule-strong: #686b74;
      --signal: #ff7447;
      --on-signal: #15171c;
      --signal-text: #ff9670;
      --signal-soft: #3a2219;
      --teal: #5cc4b6;
      --teal-soft: #16302d;
      --grain-opacity: 0.08;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #111216;
    --paper-raised: #1a1c21;
    --paper-sunken: #0b0c0f;
    --ink: #ede9e0;
    --ink-muted: #b4b1aa;
    --ink-subtle: #9a978f;
    --rule: #2c2e35;
    --rule-strong: #686b74;
    --signal: #ff7447;
    --on-signal: #15171c;
    --signal-text: #ff9670;
    --signal-soft: #3a2219;
    --teal: #5cc4b6;
    --teal-soft: #16302d;
    --grain-opacity: 0.08;
    color-scheme: dark;
  }
}
/* ================= Shared additions for blog, article, sitemap, about ================= */
@layer tokens {
  :root {
    /* Code blocks (dark in both themes) and the amber accent */
    --code-bg: #15171c;
    --code-bar: #1e2026;
    --code-ink: #e9e4d8;
    --code-muted: #9a9ca3;
    --code-key: #ff9670;
    --code-str: #7fd3c6;
    --code-type: #f2c46d;
    --code-num: #9ec7ff;
    --amber: #8a5a00;
    --amber-soft: #f5e4bf;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --code-bg: #0b0c0f;
      --code-bar: #15171c;
      --amber: #f0b54a;
      --amber-soft: #33280f;
    }
  }
  :root[data-theme="dark"] {
    --code-bg: #0b0c0f;
    --code-bar: #15171c;
    --amber: #f0b54a;
    --amber-soft: #33280f;
  }
}
/* Reset and element defaults: box sizing, body type, links, the focus ring and the .vh / .skip / .meta helpers. */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }
  /* Hidden means hidden: component display rules must not override it. */
  [hidden] {
    display: none !important;
  }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.63;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    text-wrap: balance;
    margin: 0;
  }
  p {
    margin: 0;
  }
  a {
    color: var(--signal-text);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
  }
  a:hover {
    text-decoration-thickness: 2px;
  }
  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }
  .vh {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .skip {
    position: absolute;
    left: var(--gutter);
    top: var(--space-2);
    z-index: 20;
    background: var(--ink);
    color: var(--paper);
    font: 600 15px/20px var(--font-display);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transform: translateY(-200%);
  }
  .skip:focus {
    transform: none;
  }
  .meta {
    font: 500 13px/18px var(--font-mono);
    letter-spacing: 0.01em;
    color: var(--ink-subtle);
    font-variant-numeric: tabular-nums;
  }
  .hidden {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* Page frame: the centred .wrap container, spacing between the main sections and the section headings. */
@layer layout {
  .wrap {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  main > section {
    padding-block: var(--space-16);
  }
  main > section + section {
    padding-top: 0;
  }
  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
    margin-bottom: var(--space-8);
  }
  .section-head h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
}
/* Header, navigation and theme switcher */
@layer components {
  /* ---------- Header ---------- */
  .site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper-raised);
  }
  .site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
    padding-block: var(--space-4);
  }
  .wordmark {
    font: 800 26px/1 var(--font-display);
    letter-spacing: -0.035em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    min-height: 24px;
  }
  .wordmark span {
    color: var(--ink-muted);
  }
  .wordmark i {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--signal);
    margin-left: 3px;
    display: inline-block;
  }
  .header-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-8);
  }
  .nav {
    display: flex;
    gap: var(--space-6);
  }
  .nav a {
    font: 600 15px/20px var(--font-display);
    color: var(--ink);
    text-decoration: none;
    padding-block: var(--space-1);
    border-bottom: 2px solid transparent;
    display: inline-block;
    min-height: 24px;
  }
  .nav a:hover {
    border-bottom-color: var(--rule-strong);
  }
  .nav a[aria-current="page"] {
    border-bottom-color: var(--signal);
  }
  .nav a[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--signal);
    margin-right: 6px;
    vertical-align: middle;
  }
  /* Theme fader: three stops, the knob is the brand dot and travels with the choice */
  .fader {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  .fader legend {
    float: left;
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    margin-right: var(--space-2);
  }
  .fader-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(52px, auto));
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
    padding: 2px;
  }
  .fader-knob {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc((100% - 4px)/3);
    border-radius: 4px;
    background: var(--ink);
    transition: transform 280ms var(--ease-out);
  }
  .fader-knob::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: var(--radius-pill);
    background: var(--signal);
  }
  .fader:has(#t-auto:checked) .fader-knob {
    transform: translateX(100%);
  }
  .fader:has(#t-dark:checked) .fader-knob {
    transform: translateX(200%);
  }
  .fader input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
  }
  .fader label {
    position: relative;
    z-index: 1;
    font: 600 13px/16px var(--font-display);
    text-align: center;
    padding: 6px 14px 6px 8px;
    min-height: 28px;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: color 200ms var(--ease-out);
  }
  .fader label:hover {
    color: var(--ink);
  }
  .fader input:checked + label {
    color: var(--paper);
  }
  .fader input:focus-visible + label {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  @media (max-width: 760px) {
    .fader legend {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }
  }
}
/* Shared buttons */
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font: 600 15px/20px var(--font-display);
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: transform 200ms var(--ease-out);
  }
  .btn-primary {
    background: var(--signal);
    color: var(--on-signal);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-strong);
  }
  .btn-secondary:hover {
    border-color: var(--ink);
  }
  .btn[data-done] .lbl-copy {
    display: none;
  }
  .btn:not([data-done]) .lbl-done {
    display: none;
  }
}
/* Category tags */
@layer components {
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 12px/16px var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
  }
  .tag::before {
    content: "";
    width: 6px;
    height: 6px;
  }
  .tag-cms {
    background: var(--signal-soft);
    color: var(--signal-text);
  }
  .tag-cms::before {
    background: currentColor;
    border-radius: var(--radius-pill);
  }
  .tag-general {
    background: var(--teal-soft);
    color: var(--teal);
  }
  .tag-general::before {
    background: currentColor;
    transform: rotate(45deg);
  }
  /* Extra category tags: each carries a shape as well as a word */
  .tag-development {
    background: var(--paper-sunken);
    color: var(--ink);
  }
  .tag-development::before {
    border: 1.5px solid currentColor;
    width: 7px;
    height: 7px;
  }
  .tag-updates {
    background: var(--paper-sunken);
    color: var(--ink);
  }
  .tag-updates::before {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid currentColor;
  }
  .tag-marketing {
    background: var(--paper-sunken);
    color: var(--ink);
  }
  .tag-marketing::before {
    border: 1.5px solid currentColor;
    border-radius: var(--radius-pill);
    width: 7px;
    height: 7px;
  }
}
/* Shared page heading */
@layer components {
  .page-head {
    padding-block: var(--space-12) var(--space-8);
  }
  .page-head .kicker {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .page-head h1 {
    font-size: clamp(44px, 7vw, 96px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-top: var(--space-3);
  }
  .page-head p {
    font-size: 21px;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 52ch;
    margin-top: var(--space-4);
  }
  .page-head h1 .dot {
    display: inline-block;
    width: 0.16em;
    height: 0.16em;
    border-radius: var(--radius-pill);
    background: var(--signal);
    margin-left: 0.04em;
  }
}
/* Homepage */
@layer components {
  /* ---------- Opening line (h1) ---------- */
  .opener {
    padding-block: var(--space-12) var(--space-8);
  }
  .opener h1 {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    max-width: 34ch;
    color: var(--ink);
  }
  .opener h1 em {
    font-style: normal;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.82em;
    background: var(--paper-sunken);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
  }
  /* ---------- The slab: newest post ---------- */
  .slab {
    position: relative;
    background: var(--signal);
    color: var(--on-signal);
    isolation: isolate;
    overflow: hidden;
  }
  .slab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--grain-opacity);
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(../../../Repository/Less/DynamicDave/%23n)'/%3E%3C/svg%3E");
  }
  .slab .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-8) var(--space-12);
    align-items: end;
    padding-block: var(--space-12) var(--space-16);
  }
  .slab-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-6);
    font: 600 13px/16px var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .slab-kicker .pill {
    border: 1.5px solid var(--on-signal);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
  }
  .slab h2 {
    font-size: clamp(40px, 7.4vw, 108px);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    max-width: 14ch;
  }
  .slab h2 a {
    color: inherit;
    text-decoration: none;
  }
  .slab h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .slab h2 .w {
    display: inline-block;
  }
  .slab-lead {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.5;
    max-width: 46ch;
    margin-top: var(--space-6);
  }
  .slab-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    font: 700 16px/20px var(--font-display);
    color: var(--on-signal);
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 4px;
    min-height: 24px;
  }
  .slab-cta svg {
    transition: transform 250ms var(--ease-out);
  }
  .slab:hover .slab-cta svg {
    transform: translateX(5px);
  }
  .slab:has(h2 a:focus-visible) {
    outline: 3px solid var(--on-signal);
    outline-offset: -8px;
  }
  .slab h2 a:focus-visible {
    outline: none;
  }
  /* Ticket stub: tactile, perforated, carries the facts */
  .ticket {
    position: relative;
    z-index: 1;
    width: 220px;
    background: var(--paper-raised);
    color: var(--ink);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-6) var(--space-4);
    transform: rotate(3deg);
    transition: transform 320ms var(--ease-out);
    pointer-events: none;
    -webkit-mask: radial-gradient(circle 7px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 7px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .slab:hover .ticket {
    transform: rotate(-1.5deg) translateY(-6px);
  }
  .ticket dl {
    margin: 0;
    display: grid;
    gap: var(--space-3);
  }
  .ticket dt {
    font: 500 11px/14px var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-subtle);
  }
  .ticket dd {
    margin: 0;
    font: 700 20px/1.15 var(--font-display);
    letter-spacing: -0.01em;
  }
  .ticket dd.big {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .ticket .perf {
    border: 0;
    border-top: 2px dashed var(--rule-strong);
    margin: var(--space-4) calc(var(--space-2) * -1);
  }
  .ticket .admit {
    font: 600 12px/16px var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  /* ---------- Earlier posts ---------- */
  .more-link {
    font: 600 15px/20px var(--font-display);
  }
  .posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .post {
    position: relative;
    isolation: isolate;
  }
  .post::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    border-radius: var(--radius-md);
    z-index: -1;
  }
  .post-card {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--space-3);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
  }
  .post:hover .post-card,
  .post:focus-within .post-card {
    transform: translate(-6px, -6px);
    border-color: var(--ink);
  }
  .post h3 {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .post h3 a {
    color: var(--ink);
    text-decoration: none;
  }
  .post h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .post:hover h3 a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .post h3 a:focus-visible {
    outline: none;
  }
  .post:has(h3 a:focus-visible) .post-card {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  .post p.excerpt {
    font-size: 16px;
    line-height: 1.56;
    color: var(--ink-muted);
  }
  .post-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
  }
  /* ---------- Content tree ---------- */
  .browse {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
  .tree {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6) var(--space-6);
    font-family: var(--font-display);
  }
  .tree-bar {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    border-bottom: 1px solid var(--rule);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
  }
  .tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .tree ul ul {
    margin-left: 11px;
    padding-left: var(--space-4);
    border-left: 1px dashed var(--rule-strong);
  }
  .tree summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    min-height: 36px;
    font: 700 17px/22px var(--font-display);
    border-radius: var(--radius-sm);
  }
  .tree summary::-webkit-details-marker {
    display: none;
  }
  .tree .caret {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    flex: none;
    transition: transform 220ms var(--ease-out);
  }
  .tree details[open] > summary .caret {
    transform: rotate(90deg);
  }
  .tree .count {
    margin-left: auto;
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
  }
  .tree .count b {
    font-weight: 500;
  }
  .tree li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 32px;
    font: 500 15px/20px var(--font-display);
    color: var(--ink);
    text-decoration: none;
  }
  .tree li a:hover {
    color: var(--signal-text);
    text-decoration: underline;
  }
  .tree li a svg {
    flex: none;
    color: var(--ink-subtle);
  }
  .tree .node-cms .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--signal);
  }
  .tree .node-gen .dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    transform: rotate(45deg);
  }
  .tree .node-pages .dot {
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--ink-muted);
  }
  .bench {
    display: grid;
    gap: var(--space-4);
    align-content: start;
    border-top: 3px solid var(--ink);
    padding-top: var(--space-6);
  }
  .bench h2 {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .bench p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-muted);
  }
  .bench ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--space-2);
  }
  .bench li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
    align-items: baseline;
    font-size: 17px;
    line-height: 1.5;
  }
  .bench li .meta {
    min-width: 7ch;
  }
  .monogram {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font: 800 24px/1 var(--font-display);
    letter-spacing: -0.04em;
    position: relative;
  }
  .monogram::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--signal);
  }
  @media (max-width: 960px) {
    .posts {
      grid-template-columns: minmax(0, 1fr);
    }
    .browse {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @media (max-width: 760px) {
    .slab .wrap {
      grid-template-columns: minmax(0, 1fr);
    }
    .ticket {
      width: auto;
      max-width: 300px;
      transform: rotate(1.5deg);
    }
    .ticket dl {
      grid-template-columns: repeat(auto-fit, minmax(84px, auto));
      justify-content: start;
      column-gap: var(--space-6);
    }
    .ticket dd.big {
      font-size: 28px;
      white-space: nowrap;
    }
  }
}
/* Blog index */
@layer components {
  /* ================= Blog index ================= */
  .index {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--space-12);
    align-items: start;
    padding-bottom: var(--space-16);
  }
  .filters {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--space-6));
    display: grid;
    gap: var(--space-6);
  }
  .filters fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .filters legend,
  .filters .flabel {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    padding: 0;
  }
  .chips {
    display: grid;
    gap: 2px;
  }
  .chip {
    position: relative;
  }
  .chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .chip label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 40px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font: 600 16px/20px var(--font-display);
    color: var(--ink);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 160ms var(--ease-out);
  }
  .chip label:hover {
    background: var(--paper-sunken);
  }
  .chip .box {
    width: 18px;
    height: 18px;
    flex: none;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
  }
  .chip .box svg {
    opacity: 0;
  }
  .chip .n {
    margin-left: auto;
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    font-variant-numeric: tabular-nums;
  }
  .chip input:checked + label {
    background: var(--ink);
    color: var(--paper);
  }
  .chip input:checked + label .box {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
  }
  .chip input:checked + label .box svg {
    opacity: 1;
  }
  .chip input:checked + label .n {
    color: var(--paper);
  }
  .chip input:focus-visible + label {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  .search {
    display: grid;
    gap: var(--space-2);
  }
  .search input {
    font: 500 16px/20px var(--font-display);
    color: var(--ink);
    background: var(--paper-raised);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 44px;
    width: 100%;
  }
  .search input::placeholder {
    color: var(--ink-subtle);
  }
  .result-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    min-height: 44px;
  }
  .result-line p {
    font: 600 16px/20px var(--font-display);
  }
  .result-line p b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .result-line .btn[hidden] {
    display: none;
  }
  .post-list {
    container-type: inline-size;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-8);
  }
  .icard {
    position: relative;
    isolation: isolate;
    height: 100%;
  }
  .icard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    border-radius: var(--radius-md);
    z-index: -1;
  }
  .icard-in {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: var(--space-3);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
  }
  .icard-in img {
    width: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
  }
  .icard:hover .icard-in,
  .icard:focus-within .icard-in {
    transform: translate(-6px, -6px);
    border-color: var(--ink);
  }
  .art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background: var(--paper-sunken);
    border-bottom: 1px solid var(--rule);
  }
  .art .b1 {
    fill: var(--signal);
  }
  .art .b2 {
    fill: var(--ink);
  }
  .art .b3 {
    fill: var(--teal);
  }
  .art .b4 {
    fill: var(--signal-soft);
  }
  .art .b5 {
    fill: var(--paper-raised);
  }
  .icard .pad {
    padding-inline: var(--space-6);
  }
  .icard h2 {
    font-size: 22px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.01em;
    order: 0;
  }
  .icard h2 a {
    color: var(--ink);
    text-decoration: none;
  }
  .icard h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .icard:hover h2 a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .icard h2 a:focus-visible {
    outline: none;
  }
  .icard:has(h2 a:focus-visible) .icard-in {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  .icard .intro {
    font-size: 20px;
    line-height: 1.56;
    color: var(--ink-muted);
  }
  .icard .foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-6) var(--space-6);
  }
  .icard .cat-row {
    padding-top: var(--space-2);
  }
  .empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
    border: 1.5px dashed var(--rule-strong);
    border-radius: var(--radius-md);
    padding: var(--space-8);
  }
  .empty h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .empty p {
    color: var(--ink-muted);
    margin-top: var(--space-2);
    font-size: 17px;
  }
  .empty .actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
  .empty svg .t-line {
    stroke: var(--rule-strong);
  }
  .empty svg .t-node {
    fill: var(--ink);
  }
  .empty svg .t-slot {
    fill: none;
    stroke: var(--signal-text);
    stroke-dasharray: 4 4;
  }
  .empty svg .t-dot {
    fill: var(--signal);
  }
  @media (max-width: 900px) {
    .index {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-6);
    }
    .filters {
      position: sticky;
      top: 0;
      z-index: 5;
      background: var(--paper);
      margin-inline: calc(var(--gutter) * -1);
      padding: var(--space-3) var(--gutter);
      border-bottom: 1px solid var(--rule);
      gap: var(--space-3);
    }
    .filters legend {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }
    .chips {
      display: flex;
      gap: var(--space-2);
      overflow-x: auto;
      scrollbar-width: thin;
      padding-bottom: 2px;
    }
    .chip label {
      white-space: nowrap;
      border-color: var(--rule-strong);
      min-height: 40px;
    }
    .chip .n {
      margin-left: 0;
    }
    .search .flabel {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }
    .empty {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
/* Article page */
@layer components {
  /* ================= Article ================= */
  .progress {
    position: fixed;
    left: 0;
    right: 0;
    top: env(safe-area-inset-top, 0px);
    height: 4px;
    background: var(--signal);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 30;
  }
  .art-head {
    padding-block: var(--space-12) var(--space-8);
    border-bottom: 1px solid var(--rule);
  }
  .art-head .crumbs {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
  }
  .art-head .crumbs a {
    color: var(--ink-muted);
  }
  .art-head h1 {
    font-size: clamp(40px, 6.4vw, 80px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 16ch;
    margin-top: var(--space-4);
  }
  .art-head .lead {
    font-size: 22px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 52ch;
    margin-top: var(--space-6);
  }
  .art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-8);
    margin: var(--space-8) 0 0;
    padding: 0;
  }
  .art-meta div {
    display: grid;
    gap: 2px;
  }
  .art-meta dt {
    font: 500 11px/14px var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-subtle);
  }
  .art-meta dd {
    margin: 0;
    font: 700 17px/22px var(--font-display);
  }
  .art-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 68ch);
    gap: var(--space-16);
    justify-content: center;
    padding-block: var(--space-12) var(--space-16);
  }
  .toc {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--space-8));
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow: auto;
  }
  .toc h2 {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
  }
  .toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    border-left: 1px solid var(--rule);
  }
  .toc li.sub a {
    padding-left: 28px;
    font-weight: 500;
    font-size: 14px;
  }
  .toc a {
    position: relative;
    display: block;
    padding: 6px 0 6px 14px;
    min-height: 24px;
    font: 600 15px/20px var(--font-display);
    color: var(--ink-muted);
    text-decoration: none;
  }
  .toc a:hover {
    color: var(--ink);
    text-decoration: underline;
  }
  .toc a[aria-current="location"] {
    color: var(--ink);
    font-weight: 800;
  }
  .toc a[aria-current="location"]::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--signal);
    border-radius: 2px;
  }
  .toc-mobile {
    display: none;
  }
  /* The reading column whispers */
  .prose {
    font-size: 22px;
    line-height: 1.65;
    min-width: 0;
  }
  .prose > * + * {
    margin-top: var(--space-6);
  }
  .prose h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-top: var(--space-16);
    scroll-margin-top: var(--space-8);
  }
  .prose h3 {
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: var(--space-12);
    scroll-margin-top: var(--space-8);
  }
  .prose h4 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-top: var(--space-8);
  }
  .prose h2 + *,
  .prose h3 + *,
  .prose h4 + * {
    margin-top: var(--space-3);
  }
  .prose ul,
  .prose ol {
    padding-left: 1.4em;
  }
  .prose li + li {
    margin-top: var(--space-2);
  }
  .prose li::marker {
    color: var(--ink-subtle);
    font-family: var(--font-mono);
    font-size: 0.85em;
  }
  .prose > pre {
    font-size: 16px;
  }
  .prose :not(pre) > code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--paper-sunken);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 0.05em 0.35em;
    overflow-wrap: anywhere;
  }
  .prose blockquote {
    margin: var(--space-8) 0;
    padding: 0 0 0 var(--space-6);
    border-left: 3px solid var(--ink);
    font-size: 24px;
    line-height: 1.45;
    font-style: italic;
  }
  .prose blockquote p + p {
    margin-top: var(--space-3);
  }
  .prose blockquote footer {
    font: 500 13px/18px var(--font-mono);
    font-style: normal;
    color: var(--ink-subtle);
    margin-top: var(--space-3);
  }
  .prose figure {
    margin-inline: 0;
  }
  .prose figure img,
  .prose figure svg.diagram {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }
  .prose figcaption {
    font: 500 13px/19px var(--font-mono);
    color: var(--ink-subtle);
    margin-top: var(--space-3);
  }
  .diagram .d-line {
    stroke: var(--rule-strong);
    fill: none;
  }
  .diagram .d-text {
    fill: var(--ink);
    font: 600 13px var(--font-display);
  }
  .diagram .d-sub {
    fill: var(--ink-subtle);
    font: 500 11px var(--font-mono);
  }
  .diagram .d-root {
    fill: var(--signal);
  }
  .diagram .d-node {
    fill: var(--paper-sunken);
    stroke: var(--rule-strong);
  }
  .diagram .d-set {
    fill: var(--teal-soft);
    stroke: var(--teal);
  }
  .callout {
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    display: grid;
    gap: var(--space-1);
    font-size: 17px;
    line-height: 1.55;
  }
  .callout .lbl {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font: 700 13px/16px var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .callout-tip {
    background: var(--teal-soft);
  }
  .callout-tip .lbl {
    color: var(--teal);
  }
  .callout-warning {
    background: var(--amber-soft);
  }
  .callout-warning .lbl {
    color: var(--amber);
  }
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }
  .table-wrap:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  .prose table {
    width: 100%;
    border-collapse: collapse;
    font: 500 15px/1.45 var(--font-display);
    min-width: 560px;
  }
  .prose caption {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    border-bottom: 1px solid var(--rule);
  }
  .prose th,
  .prose td {
    text-align: left;
    padding: 10px var(--space-4);
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
  }
  .prose thead th {
    font-weight: 700;
    background: var(--paper-sunken);
  }
  .prose tbody tr:last-child td,
  .prose tbody tr:last-child th {
    border-bottom: 0;
  }
  .prose tbody th {
    font-weight: 700;
  }
  .code {
    background: var(--code-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--code-ink);
  }
  .code pre {
    margin: 0;
    padding: var(--space-4);
    overflow-x: auto;
    font: 400 15px/24px var(--font-mono);
    tab-size: 4;
  }
  .code pre:focus-visible {
    outline: 2px solid var(--code-str);
    outline-offset: -2px;
  }
  .code .k {
    color: var(--code-key);
  }
  .code .s {
    color: var(--code-str);
  }
  .code .t {
    color: var(--code-type);
  }
  .code .n {
    color: var(--code-num);
  }
  .code .c {
    color: var(--code-muted);
    font-style: italic;
  }
  .code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: var(--code-bar);
    padding: 6px 6px 6px var(--space-4);
    font: 500 13px/18px var(--font-mono);
    color: var(--code-muted);
  }
  .code-bar .lang {
    border: 1px solid #3a3d45;
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    margin-left: var(--space-2);
  }
  .code-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 10px;
    font: 600 13px/16px var(--font-display);
    color: var(--code-ink);
    background: transparent;
    border: 1px solid #4a4d55;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .code-copy:hover {
    border-color: var(--code-ink);
  }
  .code-copy:focus-visible {
    outline: 2px solid var(--code-str);
    outline-offset: 2px;
  }
  .art-end {
    border-top: 3px solid var(--ink);
    margin-top: var(--space-16);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .art-end a {
    font: 700 17px/22px var(--font-display);
  }
  @media (max-width: 900px) {
    .art-layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    .toc {
      display: none;
    }
    .toc-mobile {
      display: block;
      margin-bottom: var(--space-8);
      border: 1px solid var(--rule-strong);
      border-radius: var(--radius-md);
      background: var(--paper-raised);
    }
    .toc-mobile summary {
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-3);
      padding: var(--space-3) var(--space-4);
      min-height: 44px;
      font: 700 16px/20px var(--font-display);
    }
    .toc-mobile summary span {
      font: 500 13px/18px var(--font-mono);
      color: var(--ink-subtle);
    }
    .toc-mobile ol {
      margin: 0;
      padding: 0 var(--space-4) var(--space-4) 2.2em;
      display: grid;
      gap: var(--space-2);
      font: 600 15px/20px var(--font-display);
    }
    .toc-mobile a {
      color: var(--ink);
    }
  }
  @media (max-width: 560px) {
    .prose {
      font-size: 18px;
    }
    .prose blockquote {
      font-size: 21px;
      padding-left: var(--space-4);
    }
  }
}
/* Comments and comment composer */
@layer components {
  /* Comments */
  .comments {
    border-top: 1px solid var(--rule);
    padding-block: var(--space-12) var(--space-16);
  }
  .comments-in {
    max-width: 68ch;
    margin-inline: auto;
  }
  .comments-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }
  .comments-head h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .clist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
  }
  .cmt {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
  }
  .cmt header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-2);
  }
  .cmt .who {
    font: 700 16px/20px var(--font-display);
  }
  .cmt .avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font: 800 13px/1 var(--font-display);
    background: var(--paper-sunken);
    color: var(--ink);
  }
  .cmt.author .avatar {
    background: var(--ink);
    color: var(--paper);
  }
  .cmt .badge {
    font: 600 11px/14px var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid currentColor;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    color: var(--ink-muted);
  }
  .cmt .body {
    font-size: 17px;
    line-height: 1.6;
  }
  .cmt .body p + p {
    margin-top: var(--space-3);
  }
  .cmt .body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--paper-sunken);
    border-radius: var(--radius-sm);
    padding: 0.05em 0.3em;
  }
  .cmt.reply {
    margin-left: var(--space-8);
  }
  .c-empty {
    display: grid;
    gap: var(--space-2);
    justify-items: start;
    border: 1.5px dashed var(--rule-strong);
    border-radius: var(--radius-md);
    padding: var(--space-8);
  }
  .c-empty strong {
    font: 800 22px/1.2 var(--font-display);
    letter-spacing: -0.01em;
  }
  .c-empty p {
    color: var(--ink-muted);
    font-size: 17px;
  }
  .composer {
    margin-top: var(--space-8);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
    overflow: hidden;
  }
  .composer h3 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    padding: var(--space-4) var(--space-6) 0;
  }
  .composer .row {
    padding: var(--space-4) var(--space-6) 0;
    display: grid;
    gap: 6px;
  }
  .composer label.f {
    font: 600 14px/18px var(--font-display);
  }
  .composer input[type=text] {
    font: 500 16px/20px var(--font-display);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 44px;
    max-width: 320px;
    width: 100%;
  }
  .rte {
    margin: var(--space-4) var(--space-6) 0;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }
  .rte:focus-within {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  .rte-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    border-bottom: 1px solid var(--rule);
  }
  .rte-tools button {
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink);
    cursor: pointer;
    font: 700 14px/1 var(--font-display);
  }
  .rte-tools button:hover {
    background: var(--paper-sunken);
  }
  .rte-tools button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
  }
  .rte-tools button:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
  }
  .rte-tools .sep {
    width: 1px;
    background: var(--rule);
    margin: 4px;
  }
  .rte-body {
    min-height: 120px;
    padding: var(--space-3) var(--space-4);
    font: 400 17px/1.6 var(--font-serif);
    color: var(--ink);
    outline: none;
  }
  .rte-body:empty::before {
    content: attr(data-placeholder);
    color: var(--ink-subtle);
  }
  .rte-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--paper-sunken);
    border-radius: var(--radius-sm);
    padding: 0.05em 0.3em;
  }
  .composer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6) var(--space-6);
  }
  .composer .hint {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
  }
  .form-error {
    font: 600 14px/18px var(--font-display);
    color: var(--signal-text);
    display: flex;
    gap: 6px;
    align-items: center;
  }
  @media (max-width: 560px) {
    .cmt.reply {
      margin-left: var(--space-4);
    }
  }
}
/* Sitemap */
@layer components {
  /* ================= Sitemap ================= */
  .sm {
    display: grid;
    gap: var(--space-16);
    padding-bottom: var(--space-16);
  }
  .sm-year {
    display: grid;
    grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
    gap: var(--space-8);
    border-top: 3px solid var(--ink);
    padding-top: var(--space-6);
  }
  .sm-year h2 {
    font: 800 clamp(56px, 9vw, 128px)/0.85 var(--font-display);
    letter-spacing: -0.05em;
    position: sticky;
    top: var(--space-6);
    align-self: start;
  }
  .sm-year h2 small {
    display: block;
    font: 500 13px/18px var(--font-mono);
    letter-spacing: 0.02em;
    color: var(--ink-subtle);
    margin-top: var(--space-3);
  }
  .sm-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .sm-list li {
    display: grid;
    grid-template-columns: 8ch minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: baseline;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--rule);
  }
  .sm-list li:first-child {
    padding-top: 0;
  }
  .sm-list time {
    font: 500 13px/22px var(--font-mono);
    color: var(--ink-subtle);
    font-variant-numeric: tabular-nums;
  }
  .sm-list a {
    font: 600 19px/1.35 var(--font-display);
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.005em;
  }
  .sm-list a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .sm-month {
    grid-column: 1/-1;
    font: 500 11px/14px var(--font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-subtle);
    padding-top: var(--space-6) !important;
    border-bottom: 0 !important;
  }
  .sm-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .sm-pages a {
    display: grid;
    gap: 4px;
    padding: var(--space-4) var(--space-6);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
    color: var(--ink);
    text-decoration: none;
    font: 700 19px/1.2 var(--font-display);
    min-height: 88px;
    height: 100%;
  }
  .sm-pages a span {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
  }
  .sm-pages a:hover {
    border-color: var(--ink);
  }
  .sm-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .sm-cats a {
    text-decoration: none;
  }
  .sm-cats a:hover {
    text-decoration: underline;
  }
  @media (max-width: 900px) {
    .sm-year {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-4);
    }
    .sm-year h2 {
      position: static;
    }
  }
  @media (max-width: 560px) {
    .sm-list li {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: var(--space-1) var(--space-3);
    }
    .sm-list time {
      grid-column: 1/-1;
    }
  }
}
/* About page */
@layer components {
  /* ================= About ================= */
  .about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-12);
    align-items: center;
    padding-block: var(--space-12) var(--space-16);
  }
  .about-hero h1 {
    font-size: clamp(48px, 8vw, 112px);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.05em;
  }
  .about-hero h1 .q {
    color: var(--signal-text);
  }
  .about-hero .lead {
    font-size: 22px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 44ch;
    margin-top: var(--space-6);
  }
  .portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
  }
  .portrait .frame {
    position: relative;
    display: block;
    aspect-ratio: 4/5;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    background: var(--signal);
    transform: rotate(-3deg);
    transition: transform 320ms var(--ease-out);
    overflow: hidden;
  }
  .portrait .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }
  .portrait:hover .frame {
    transform: rotate(1deg);
  }
  .portrait .frame .ph {
    position: absolute;
    inset: var(--space-4);
    border: 2px dashed var(--on-signal);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--on-signal);
    padding: var(--space-4);
  }
  .portrait .frame .ph b {
    display: block;
    font: 800 88px/1 var(--font-display);
    letter-spacing: -0.06em;
  }
  .portrait .frame .ph span {
    font: 500 13px/18px var(--font-mono);
  }
  .portrait .tape {
    position: absolute;
    width: 96px;
    height: 28px;
    background: var(--paper-raised);
    opacity: 0.85;
    border: 1px solid var(--rule);
    z-index: 2;
  }
  .portrait .tape.a {
    top: -10px;
    left: 18px;
    transform: rotate(-14deg);
  }
  .portrait .tape.b {
    top: -6px;
    right: -14px;
    transform: rotate(28deg);
  }
  .portrait figcaption {
    font: 500 13px/18px var(--font-mono);
    color: var(--ink-subtle);
    margin-top: var(--space-6);
    text-align: center;
  }
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 68ch) minmax(0, 1fr);
    gap: var(--space-16);
    padding-bottom: var(--space-16);
  }
  .about-grid .prose h2 {
    margin-top: var(--space-12);
  }
  .about-grid .prose h2:first-child {
    margin-top: 0;
  }
  .side {
    display: grid;
    gap: var(--space-8);
    align-content: start;
  }
  .side section {
    border-top: 3px solid var(--ink);
    padding-top: var(--space-4);
    display: grid;
    gap: var(--space-3);
  }
  .side h2 {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .find {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
  }
  .find li {
    display: grid;
    grid-template-columns: 9ch minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
    font: 600 16px/1.4 var(--font-display);
  }
  .find .meta {
    font-size: 12px;
  }
  .find .copyline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
  }
  .find code {
    font: 500 14px/20px var(--font-mono);
    user-select: all;
    overflow-wrap: anywhere;
  }
  .mini-btn {
    min-height: 28px;
    padding: 3px 10px;
    font: 600 13px/16px var(--font-display);
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .mini-btn:hover {
    border-color: var(--ink);
  }
  .now {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
  }
  .now li {
    display: grid;
    gap: 2px;
    font: 600 16px/1.35 var(--font-display);
  }
  .now li span {
    font: 500 12px/16px var(--font-mono);
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .ruler-wrap {
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }
  .ruler {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(15, minmax(44px, 1fr));
    min-width: 600px;
    position: relative;
    border-top: 2px solid var(--ink);
  }
  .ruler li {
    position: relative;
    text-align: center;
    font: 700 15px/20px var(--font-display);
    padding-top: var(--space-2);
    margin-top: 0 !important;
  }
  .ruler li::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: var(--ink);
  }
  .ruler li small {
    display: block;
    font: 500 11px/14px var(--font-mono);
    color: var(--ink-subtle);
    margin-top: 2px;
  }
  .ruler li.on::after {
    content: "";
    position: absolute;
    top: -37px;
    left: 50%;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-pill);
    background: var(--signal);
    border: 2px solid var(--ink);
  }
  .ruler li.next {
    color: var(--ink-subtle);
  }
  .ruler li.next::before {
    background: var(--rule-strong);
  }
  @media (max-width: 900px) {
    .about-hero,
    .about-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
/* Footer */
@layer components {
  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--paper-sunken);
    border-top: 1px solid var(--rule);
    margin: var(--space-8) 0 0 0;
    padding-bottom: var(--space-8);
    overflow: hidden;
    position: relative;
  }
  .rss {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6) var(--space-12);
    align-items: center;
    padding-block: var(--space-12);
  }
  .rss h2 {
    font-size: clamp(28px, 2vw, 38px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .rss h2 svg {
    flex: none;
    width: 0.9em;
    height: 0.9em;
    color: var(--signal-text);
  }
  .rss p {
    font-size: 17px;
    color: var(--ink-muted);
    margin-top: var(--space-3);
    max-width: 48ch;
  }
  .feed {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
  }
  .feed code {
    font: 500 10px/10px var(--font-mono);
    background: var(--paper-raised);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--ink);
    user-select: all;
    overflow-wrap: anywhere;
  }
  .feed .btn {
    min-height: 33px;
    font: 600 10px/10px var(--font-display);
  }
  .foot-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
    border-top: 1px solid var(--rule);
    padding-block: var(--space-6);
  }
  .foot-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  .foot-bar a {
    font: 600 15px/20px var(--font-display);
    color: var(--ink);
    min-height: 24px;
    display: inline-block;
  }
  .foot-bar small {
    font: 500 13px/20px var(--font-mono);
    color: var(--ink-muted);
  }
  .giant {
    font: 800 clamp(32px, 8.75vw, 116px)/0.78 var(--font-display);
    letter-spacing: -0.06em;
    color: var(--ink);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    position: absolute;
    right: 0.1em;
    bottom: -0.1em;
    opacity: 0.5;
  }
  .giant span {
    color: var(--paper-raised);
  }
  .giant i {
    display: inline-block;
    width: 0.16em;
    height: 0.16em;
    border-radius: var(--radius-pill);
    background: var(--signal);
    margin-left: 0.03em;
  }
  /* Theme flip: the old sheet rolls up and away */
  .sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    transform-origin: top;
    animation: roll 420ms var(--ease-inout) forwards;
  }
  .sheet::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--signal);
  }
  @keyframes roll {
    to {
      transform: translateY(-101%);
    }
  }
  @media (max-width: 760px) {
    .rss {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
/* Entrance animations, only for prefers-reduced-motion: no-preference, and the overrides that calm everything down for reduce. */
@layer motion {
  /* The one orchestrated moment: the newest title sets itself word by word, then the ticket lands. */
  @media (prefers-reduced-motion: no-preference) {
    .slab h2 .w {
      animation: rise 520ms var(--ease-out) both;
      animation-delay: calc(80ms + var(--i) * 55ms);
    }
    .ticket {
      animation: land 480ms var(--ease-out) both;
      animation-delay: 420ms;
    }
    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(0.35em);
      }
    }
    @keyframes land {
      from {
        opacity: 0;
        transform: translate(40px, -16px) rotate(12deg);
      }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
    .post:hover .post-card,
    .post:focus-within .post-card {
      transform: none;
    }
    .post::before {
      display: none;
    }
    .slab:hover .ticket {
      transform: rotate(3deg);
    }
    .sheet {
      display: none;
    }
  }
}
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .page-head h1,
    .art-head h1,
    .about-hero h1 {
      animation: rise 520ms var(--ease-out) both;
    }
    .page-head p,
    .art-head .lead,
    .about-hero .lead {
      animation: rise 520ms var(--ease-out) 120ms both;
    }
    .portrait {
      animation: land 520ms var(--ease-out) 260ms both;
    }
    .icard.enter {
      animation: rise 300ms var(--ease-out) both;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .icard:hover .icard-in,
    .icard:focus-within .icard-in {
      transform: none;
    }
    .icard::before {
      display: none;
    }
    .portrait:hover .frame {
      transform: rotate(-3deg);
    }
  }
}