/*
  Layer order. Later layers win:
    reset  browser normalisation
    base   layout primitives shared by every theme. Not a look.
    theme  every theme, each scoped to :root[data-theme="<id>"]
    floor  tier 1 of docs/RULES.md. Always wins.
  Themes may not use !important (scripts/lint-themes.mjs enforces this), so
  the floor's ordinary declarations beat anything a theme does.
*/
@layer reset, base, theme, floor;

/* The tear strip (switcher.js): the cellophane tape pulled round a fresh
   pack, drawn across the foot of the bar by its tab. */
@keyframes ft-tear {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes ft-tab {
  from { left: 0; }
  to { left: calc(100% - 18px); }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { margin: 0; }
  img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  pre, code, kbd, samp { font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace; }
  table { border-collapse: collapse; }
  figure { margin: 0; }
}

@layer base {
  [hidden] { display: none !important; }

  .vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  /* Hooks that themes switch on when they want them. */
  .deco, .hits { display: none; }

  .bar-inner { display: flex; align-items: center; gap: 0.5rem; }

  /* The tear strip. Themes colour it with --ft-strip (gold, red, silver…);
     it's drawn in the bar's text colour otherwise. */
  .bar-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    color: var(--ft-strip, currentColor);
    pointer-events: none;
  }
  .bar-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    animation: ft-tear 0.55s cubic-bezier(0.5, 0, 0.75, 0) both;
  }
  .bar-strip::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 18px;
    height: 9px;
    background: currentColor;
    animation: ft-tab 0.55s cubic-bezier(0.5, 0, 0.75, 0) both;
  }

  .post-list, .term-list, .tag-cloud, .archive-years, .post-tags { list-style: none; padding: 0; }

  .align-center { text-align: center; }
  .align-right { text-align: right; }
  .align-left { text-align: left; }
}
/*
  Full Flavor. Red over off-white along a steep 43-degree angle, a condensed
  high-contrast didone in charcoal, widely tracked geometric capitals, and a
  gold hairline. See docs/themes/full-flavor.md. Signal, don't copy: no centred chevron, no
  pill, no crest.
*/
@font-face {
  font-family: "Noto Serif Display";
  src: url("../themes/full-flavor/fonts/noto-serif-display.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  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: "Noto Serif";
  src: url("../themes/full-flavor/fonts/noto-serif.woff2") format("woff2");
  font-weight: 100 900;
  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: "Noto Serif";
  src: url("../themes/full-flavor/fonts/noto-serif-italic.woff2") format("woff2");
  font-weight: 100 900;
  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: "Jost";
  src: url("../themes/full-flavor/fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  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;
}

@layer theme {
  :root[data-theme="full-flavor"] {
    --ff-red: #c41e2a;
    --ff-red-deep: #a8161f;
    --ff-paper: #e9e7e3;
    --ff-paper-deep: #dfddd8;
    --ff-ink: #1f252b;
    --ff-charcoal: #323b43;
    --ff-khaki: #5e5d46;
    --ff-gold: #c9a85e;
    --ff-gold-foil: linear-gradient(90deg, #b18641, #f3eaae 40%, #c9a85e 70%, #b18641);
    --ft-strip: var(--ff-gold);
    --ff-display: "Noto Serif Display", "Bodoni 72", Didot, serif;
    --ff-text: "Noto Serif", Georgia, serif;
    --ff-label: "Jost", "Futura", "Century Gothic", sans-serif;
    /* The band: shallow on the left, then one 43-degree drop to its full
       depth (tan 43deg is about 0.93, so the run is about 1.07 x the drop). */
    --ff-band: clamp(120px, 24vh, 230px);
    --ff-drop: calc(var(--ff-band) * 0.42);
    --ff-step: clamp(40px, 14vw, 220px);
    /* The same step in miniature, for section breaks and post lists. */
    --ff-mini: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 14px 45%, 0 45%);
    --ff-shape: polygon(0 0, 100% 0, 100% var(--ff-band), calc(var(--ff-step) + var(--ff-drop) * 1.07) var(--ff-band), var(--ff-step) calc(var(--ff-band) - var(--ff-drop)), 0 calc(var(--ff-band) - var(--ff-drop)));

    color-scheme: light;
    background: var(--ff-paper);
    color: var(--ff-ink);
    font: 400 1.1875rem/1.6 var(--ff-text);

    body { background: var(--ff-paper); }
    /* The foot of the pack: a red band and a sliver of off-white. */
    body::after { content: ""; display: block; height: 10px; background: var(--ff-red); border-bottom: 4px solid var(--ff-paper); }

    a { color: var(--ff-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
    a:hover { color: var(--ff-red-deep); text-decoration-thickness: 2px; }
    :focus-visible { outline-color: var(--ff-gold); }

    /* The top of the pack: the bar is red, and Fresh pack is set like the
       pack's small capitals. */
    .bar { background: var(--ff-red); color: var(--ff-paper); }
    .bar-next {
      padding: 0 12px;
      font: 500 0.875rem/1 var(--ff-label);
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--ff-paper);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--ff-gold);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 500 0.8125rem/1.3 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ff-paper); }

    /* Full-width page; each region keeps its own measure. */
    .page { position: relative; padding: 0 0 48px; }
    .page > :not(.deco) { max-width: 44rem; margin-inline: auto; padding-inline: 20px; }

    /* The band on the page's top edge: the gold hairline, with the red
       over it. */
    .masthead::before, .masthead::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: calc(var(--ff-band) + 4px);
      clip-path: var(--ff-shape);
      pointer-events: none;
    }
    .masthead::before { z-index: 1; background: var(--ff-gold-foil); clip-path: polygon(0 0, 100% 0, 100% calc(var(--ff-band) + 4px), calc(var(--ff-step) + var(--ff-drop) * 1.07) calc(var(--ff-band) + 4px), var(--ff-step) calc(var(--ff-band) - var(--ff-drop) + 4px), 0 calc(var(--ff-band) - var(--ff-drop) + 4px)); }
    .masthead::after { z-index: 2; background: var(--ff-red); }

    .masthead { position: static; padding-top: calc(var(--ff-band) + 28px); padding-bottom: 8px; }
    .masthead > * { position: relative; z-index: 3; }
    .site-name { margin: 0; font: 900 clamp(3rem, 11vw, 6.5rem)/0.95 var(--ff-display); font-stretch: 62.5%; color: var(--ff-charcoal); }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0; font: 500 0.8125rem/1.3 var(--ff-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ff-charcoal); text-decoration-color: var(--ff-red); }

    .main { margin-top: 28px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.6em; }
    .post-title, .listing-title { margin: 0 0 0.3em; font: 900 clamp(2.25rem, 7vw, 3.75rem)/1 var(--ff-display); font-stretch: 62.5%; color: var(--ff-charcoal); }
    .post-meta, .post-tags { font: 500 0.8125rem/1.6 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ff-khaki); }
    .post-meta { margin: 0; }
    .post-reading { margin-left: 0.8em; }
    .post-tags { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 6px 0 0; padding: 0; }
    .post-tags a { display: inline-block; padding: 4px 0; color: var(--ff-red); }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1.05em; }
    .post-body h2 { margin: 1.7em 0 0.4em; font: 800 2.125rem/1.08 var(--ff-display); font-stretch: 62.5%; color: var(--ff-charcoal); }
    .post-body h3 { margin: 1.4em 0 0.35em; font: 800 1.625rem/1.12 var(--ff-display); font-stretch: 70%; color: var(--ff-charcoal); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.4em; font: 500 0.875rem/1.5 var(--ff-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ff-charcoal); }
    .h-anchor { color: var(--ff-red); text-decoration: none; font-weight: 400; }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body ul { list-style: square; }
    .post-body li::marker { color: var(--ff-red); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 500 0.875rem/1.6 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 4px solid var(--ff-red); }
    .post-body blockquote blockquote { border-left-color: var(--ff-gold); }
    .post-body hr { width: 120px; height: 16px; margin: 2.2em 0; border: 0; background: var(--ff-red); clip-path: var(--ff-mini); }

    .code { margin: 0 0 1.3em; border-left: 4px solid var(--ff-red); background: var(--ff-paper-deep); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 500 0.75rem/1.4 var(--ff-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ff-khaki); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--ff-charcoal); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: #d3d0c9; }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--ff-red-deep); font-weight: 600; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--ff-khaki); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--ff-khaki); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--ff-paper-deep); }

    .table-scroll table { font-size: 1rem; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid #b9b6af; }
    .table-scroll th { font: 500 0.75rem/1.4 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 2px solid var(--ff-charcoal); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font: 500 0.75rem/1.5 var(--ff-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ff-khaki); }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 0.95rem; border-top: 1px solid var(--ff-charcoal); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 500 0.75rem/1.4 var(--ff-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ff-khaki); }

    .post-list { margin: 0; }
    .post-item { margin: 0 0 2.1em; }
    .post-item::before { content: ""; display: block; width: 72px; height: 12px; margin-bottom: 12px; background: var(--ff-red); clip-path: var(--ff-mini); }
    .post-summary-title { margin: 0 0 0.2em; font: 900 clamp(1.75rem, 5vw, 2.5rem)/1.05 var(--ff-display); font-stretch: 62.5%; }
    .post-summary-title a { color: var(--ff-charcoal); text-decoration: none; }
    .post-summary-title a:hover { color: var(--ff-red); }
    .post-summary-meta { margin: 0 0 0.3em; font: 500 0.75rem/1.6 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ff-khaki); }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 500 0.875rem/1.4 var(--ff-label); letter-spacing: 0.2em; text-transform: uppercase; }
    .tag-count { color: var(--ff-khaki); }

    .rail { margin-top: 2.5em; font-size: 1rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; padding-bottom: 6px; font: 500 0.75rem/1.4 var(--ff-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ff-charcoal); border-bottom: 2px solid var(--ff-red); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; font: 500 0.6875rem/1 var(--ff-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ff-khaki); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 500 0.75rem/1.4 var(--ff-label); letter-spacing: 0.2em; }

    .site-foot { margin-top: 3em; padding-top: 14px; font: 500 0.75rem/1.8 var(--ff-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ff-khaki); border-top: 1px solid #b9b6af; }
    .site-foot p { margin: 0; }
    .site-foot-name { color: var(--ff-charcoal); }
  }
}
/*
  Gold Prism. Holographic gold board as the page's background: gold, a fine
  lattice of triangles, and a wide rainbow that slides as the reader scrolls
  (theme.js). The text sits on a solid pale-gold column, never on the foil.
  An empty metal medallion breaks the column's top edge and turns with the
  scroll. Red handwriting for the name and headings; a sans for the text.
  No emblem, no wordmark. See docs/themes/gold-prism.md.
*/
@font-face {
  font-family: "Kalam";
  src: url("../themes/gold-prism/fonts/kalam-700.woff2") format("woff2");
  font-weight: 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: "IBM Plex Sans";
  src: url("../themes/gold-prism/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 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: "IBM Plex Sans";
  src: url("../themes/gold-prism/fonts/ibm-plex-sans-italic.woff2") format("woff2");
  font-weight: 100 700;
  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;
}

@layer theme {
  :root[data-theme="gold-prism"] {
    --gp-gold: #d4be78;
    --gp-light: #efe3b0;
    --gp-shade: #a9945a;
    --gp-ring: #e8d48e;
    --gp-cream: #f8f0d3;
    --gp-panel: #f1e5bd;
    --gp-highlight: #e9daa4;
    --gp-rule: #c9ac62;
    --gp-red: #a8232f;
    --gp-ink: #2a1f12;
    --gp-brown: #6b4a1e;
    --ft-strip: var(--gp-red);
    --gp-hand: "Kalam", "Segoe Print", cursive;
    --gp-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --gp-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20.784'%3E%3Cpath d='M-12.00 10.39 L-6.00 0.00 L0.00 10.39Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M-6.00 0.00 L0.00 10.39 L6.00 0.00Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M0.00 10.39 L6.00 0.00 L12.00 10.39Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M6.00 0.00 L12.00 10.39 L18.00 0.00Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M12.00 10.39 L18.00 0.00 L24.00 10.39Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M18.00 0.00 L24.00 10.39 L30.00 0.00Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M24.00 10.39 L30.00 0.00 L36.00 10.39Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M30.00 0.00 L36.00 10.39 L42.00 0.00Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M-6.00 20.78 L0.00 10.39 L6.00 20.78Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M0.00 10.39 L6.00 20.78 L12.00 10.39Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M6.00 20.78 L12.00 10.39 L18.00 20.78Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M12.00 10.39 L18.00 20.78 L24.00 10.39Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M18.00 20.78 L24.00 10.39 L30.00 20.78Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M24.00 10.39 L30.00 20.78 L36.00 10.39Z' fill='%235a3d00' fill-opacity='.13'/%3E%3Cpath d='M30.00 20.78 L36.00 10.39 L42.00 20.78Z' fill='%23fff' fill-opacity='.26'/%3E%3Cpath d='M36.00 10.39 L42.00 20.78 L48.00 10.39Z' fill='%235a3d00' fill-opacity='.13'/%3E%3C/svg%3E");
    --gp-rainbow: repeating-linear-gradient(105deg, #f08a7a 0px, #f6d070 147px, #c2df78 294px, #67cfa2 441px, #56b6e4 588px, #6f7fe0 714px, #c07ad6 840px, #f08a7a 966px);
    --gp-medal: clamp(84px, 16vw, 116px);

    color-scheme: light;
    background: var(--gp-gold);
    color: var(--gp-ink);
    font: 400 1.125rem/1.65 var(--gp-text);

    /* The body stays clear, so the foil (fixed, behind everything) shows. */
    body { background: transparent; }

    a { color: var(--gp-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { color: var(--gp-ink); }
    :focus-visible { outline-color: var(--gp-red); }

    .bar { background: var(--gp-light); border-bottom: 2px solid var(--gp-red); }
    .bar-next {
      padding: 0 12px;
      font: 600 0.8125rem/1 var(--gp-text);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gp-red);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--gp-red);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 600 0.8125rem/1.3 var(--gp-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-red); }

    /* The foil: the markup's decoration layer, fixed behind the page. The
       first span is the gold and its lattice; the second, the rainbow,
       wider than the screen by one repeat, so it can slide. */
    .deco { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate; }
    .deco span { display: none; }
    .deco span:nth-child(1) {
      display: block;
      position: absolute;
      inset: 0;
      background: var(--gp-lattice) 0 0 / 12px 20.785px, linear-gradient(160deg, #e3cf8a, #cdb46a 40%, #ead9a0 60%, #bfa35e);
    }
    .deco span:nth-child(2) {
      display: block;
      position: absolute;
      top: -40%;
      bottom: -40%;
      left: 0;
      width: calc(100% + 1000px);
      opacity: 0.78;
      mix-blend-mode: overlay;
      background: var(--gp-rainbow);
      transform: translate3d(var(--gp-shift, 0px), var(--gp-lift, 0px), 0);
      will-change: transform;
    }

    /* The column: solid, so the text never sits on the moving foil. */
    .page { width: min(46rem, 100% - 24px); margin: calc(var(--gp-medal) / 2 + 28px) auto 56px; padding: 0; background: var(--gp-cream); border: 1px solid var(--gp-rule); }
    .page > :not(.deco) { padding-inline: clamp(20px, 5vw, 56px); }

    /* The masthead, under the medallion, ending in the red rule. */
    .masthead { display: flow-root; position: relative; padding-bottom: 24px; text-align: center; border-bottom: 2px solid var(--gp-red); }
    /* The medallion: a metal conic in a gold ring, empty, breaking the top
       edge. Its colours turn with the scroll (--gp-turn, from theme.js);
       the glint above it stays put, so it reads as light moving on metal. */
    .masthead::before {
      content: "";
      display: block;
      width: var(--gp-medal);
      aspect-ratio: 1;
      margin: calc(var(--gp-medal) / -2) auto 14px;
      border-radius: 50%;
      background: conic-gradient(#cfe3ff, #f6d6ff, #c9fff0, #ffe9b8, #bcd3ff, #ffd0e6, #cfe3ff);
      box-shadow: 0 0 0 4px var(--gp-ring), 0 0 0 5px var(--gp-shade);
      transform: rotate(var(--gp-turn, 0deg));
    }
    .masthead::after {
      content: "";
      position: absolute;
      top: calc(var(--gp-medal) / -2);
      left: calc(50% - var(--gp-medal) / 2);
      width: var(--gp-medal);
      aspect-ratio: 1;
      border-radius: 50%;
      box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.75);
      pointer-events: none;
    }
    .site-name { margin: 0; font: 700 clamp(2.5rem, 9.5vw, 5rem)/1.05 var(--gp-hand); color: var(--gp-red); text-wrap: balance; }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; margin: 12px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0 6px 0.18em; font: 600 0.875rem/1.3 var(--gp-text); letter-spacing: 0.18em; text-transform: uppercase; text-underline-offset: 5px; }

    .main { padding-top: 34px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.3em; font: 700 clamp(2rem, 5.5vw, 2.8rem)/1.12 var(--gp-hand); color: var(--gp-red); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4em; margin: 0; font: 600 0.8125rem/1.6 var(--gp-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gp-brown); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 10px 0 0; padding: 0; font: 600 0.8125rem/1.6 var(--gp-text); letter-spacing: 0.14em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body { max-width: 36em; margin-inline: auto; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.5em 0 0.3em; font: 700 1.9rem/1.15 var(--gp-hand); color: var(--gp-red); }
    .post-body h3 { margin: 1.3em 0 0.25em; font: 700 1.5rem/1.2 var(--gp-hand); color: var(--gp-red); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 600 0.875rem/1.5 var(--gp-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-red); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--gp-red); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 600 0.875rem/1.6 var(--gp-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gp-red); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 3px solid var(--gp-rule); }
    .post-body blockquote blockquote { border-left-color: var(--gp-red); }
    .post-body hr { width: 5rem; height: 0; margin: 2.2em auto; border: 0; border-top: 2px solid var(--gp-red); }

    .code { margin: 0 0 1.3em; background: var(--gp-panel); border-left: 4px solid var(--gp-red); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 600 0.75rem/1.4 var(--gp-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gp-brown); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--gp-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--gp-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--gp-red); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--gp-brown); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--gp-brown); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--gp-panel); }

    .table-scroll table { font-size: 1rem; font-variant-numeric: tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--gp-rule); }
    .table-scroll th { font: 600 0.75rem/1.4 var(--gp-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gp-red); border-bottom: 2px solid var(--gp-red); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font-style: italic; font-size: 1rem; text-align: center; }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 1rem; border-top: 1px solid var(--gp-rule); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 600 0.75rem/1.4 var(--gp-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gp-brown); }

    /* Home: posts centred, parted by short red rules. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 3.5rem; margin: 0 auto 1.6em; border-top: 2px solid var(--gp-red); }
    .post-summary-title { margin: 0 0 0.25em; font: 700 1.7rem/1.15 var(--gp-hand); text-wrap: balance; }
    .post-summary-title a { color: var(--gp-red); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 600 0.75rem/1.6 var(--gp-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gp-brown); }
    .post-summary-meta .post-reading { margin-left: 1em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 600 0.875rem/1.4 var(--gp-text); letter-spacing: 0.1em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; font-size: 1.0625rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 600 0.8125rem/1.4 var(--gp-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gp-red); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; white-space: nowrap; font: 600 0.6875rem/1 var(--gp-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-brown); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 600 0.8125rem/1.4 var(--gp-text); letter-spacing: 0.14em; color: var(--gp-red); }

    .site-foot { margin-top: 3em; padding-block: 22px 26px; font: 600 0.75rem/2 var(--gp-text); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; color: var(--gp-brown); border-top: 2px solid var(--gp-red); }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--gp-brown); }

    /* Narrow screens: a smaller glint, tighter navigation; a date or a
       reading time never breaks in two. */
    :is(.post-meta, .post-summary-meta) > * { white-space: nowrap; }
    @media (max-width: 480px) {
      .masthead::after { box-shadow: inset 0 0 13px rgba(255, 255, 255, 0.75); }
      .site-nav ul { gap: 2px 16px; }
      .site-nav a { letter-spacing: 0.1em; }
      :is(.post-meta, .post-summary-meta) { letter-spacing: 0.12em; }
    }

    /* Forced colours: no foil and no medallion, just the page. */
    @media (forced-colors: active) {
      .deco, .masthead::before, .masthead::after { display: none; }
    }
  }
}
/*
  Green Marble. A band of green marble down the left edge of the page,
  edged in pale gold, dark green and pale gold, beside a slim white column;
  light, sloped sans-serif small capitals in green; bold grotesque capitals
  and widely tracked ones for the small type. The marble is generated (an
  SVG noise filter stepped through a few greens), never a picture. See
  docs/themes/green-marble.md.
*/
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("../themes/green-marble/fonts/sofia-sans-condensed-italic.woff2") format("woff2");
  font-weight: 100 900;
  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: "Spectral";
  src: url("../themes/green-marble/fonts/spectral.woff2") format("woff2");
  font-weight: 400;
  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: "Spectral";
  src: url("../themes/green-marble/fonts/spectral-italic.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: "Spectral";
  src: url("../themes/green-marble/fonts/spectral-600.woff2") format("woff2");
  font-weight: 600;
  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: "Hanken Grotesk";
  src: url("../themes/green-marble/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@layer theme {
  :root[data-theme="green-marble"] {
    --gm-white: #f3f5f0;
    --gm-mint: #e6efe9;
    --gm-highlight: #d6e5db;
    --gm-green: #1f6b4e;
    --gm-green-dark: #1f6249;
    --gm-gold: #b5ad86;
    --gm-gold-ink: #6f6844;
    --gm-string: #5f5836;
    --gm-muted: #4c5a53;
    --gm-ink: #1d2b25;
    --ft-strip: var(--gm-gold);
    --gm-display: "Sofia Sans Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
    --gm-text: "Spectral", Georgia, serif;
    --gm-caps: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    /* The edge: the marble, then pale gold, dark green and pale gold. */
    --gm-marble-width: clamp(22px, 9vw, 120px);
    --gm-stripe: 4px;
    --gm-stripe-mid: 6px;
    --gm-edge: calc(var(--gm-marble-width) + var(--gm-stripe) * 2 + var(--gm-stripe-mid));
    --gm-marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='640'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.024 0.015' numOctaves='7' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0.063 0.086 0.110 0.110 0.145 0.173 0.200 0.243 0.412 0.639'/%3E%3CfeFuncG type='discrete' tableValues='0.227 0.286 0.361 0.361 0.451 0.529 0.596 0.663 0.753 0.851'/%3E%3CfeFuncB type='discrete' tableValues='0.169 0.227 0.271 0.271 0.353 0.416 0.490 0.545 0.639 0.776'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23m%29'/%3E%3C/svg%3E");
    /* The same three stripes, stacked short, for section breaks. */
    --gm-break: linear-gradient(var(--gm-gold) 0 3px, transparent 3px 4.5px, var(--gm-green-dark) 4.5px 7.5px, transparent 7.5px 9px, var(--gm-gold) 9px 12px);

    color-scheme: light;
    background: var(--gm-white);
    color: var(--gm-ink);
    font: 400 1.1875rem/1.65 var(--gm-text);

    body { background: var(--gm-white); }

    a { color: var(--gm-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { color: var(--gm-ink); }
    :focus-visible { outline-color: var(--gm-green); }
    strong, b { font-weight: 600; }

    /* The top of the box: white, over a pale gold rule. */
    .bar { background: var(--gm-white); border-bottom: 2px solid var(--gm-gold); }
    .bar-next {
      padding: 0 12px;
      font: 700 0.8125rem/1 var(--gm-caps);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gm-green);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--gm-green);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 700 0.8125rem/1.3 var(--gm-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm-green); }

    /* The marble band, the page's full height, and a slim column centred
       in the white beside it. */
    .page { position: relative; padding: 0 0 0 var(--gm-edge); }
    .page::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: var(--gm-edge);
      background:
        linear-gradient(90deg,
          transparent 0 var(--gm-marble-width),
          var(--gm-gold) var(--gm-marble-width) calc(var(--gm-marble-width) + var(--gm-stripe)),
          var(--gm-green-dark) calc(var(--gm-marble-width) + var(--gm-stripe)) calc(var(--gm-marble-width) + var(--gm-stripe) + var(--gm-stripe-mid)),
          var(--gm-gold) calc(var(--gm-marble-width) + var(--gm-stripe) + var(--gm-stripe-mid)) var(--gm-edge)),
        var(--gm-marble) 0 0 / 160px 640px repeat;
      pointer-events: none;
    }
    .page > :not(.deco) { max-width: 34rem; margin-inline: auto; padding-inline: 22px; }

    /* The name, centred in the white. */
    .masthead { padding-top: 44px; padding-bottom: 6px; text-align: center; }
    .site-name { margin: 0; font: italic 300 clamp(3rem, 12vw, 5rem)/1 var(--gm-display); font-variant-caps: small-caps; letter-spacing: 0.03em; color: var(--gm-green); text-wrap: balance; }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0; font: 700 0.875rem/1.3 var(--gm-caps); letter-spacing: 0.1em; text-transform: uppercase; text-decoration-color: var(--gm-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

    .main { margin-top: 36px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.35em; font: italic 400 clamp(2rem, 6vw, 2.75rem)/1.12 var(--gm-display); color: var(--gm-green); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4em; margin: 0; font: 600 0.75rem/1.6 var(--gm-caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-gold-ink); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 10px 0 0; padding: 0; font: 600 0.75rem/1.6 var(--gm-caps); letter-spacing: 0.16em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.6em 0 0.35em; font: italic 500 1.9rem/1.15 var(--gm-display); color: var(--gm-green); }
    .post-body h3 { margin: 1.4em 0 0.3em; font: italic 500 1.45rem/1.2 var(--gm-display); color: var(--gm-green); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 700 0.875rem/1.5 var(--gm-caps); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gm-green); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--gm-green); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 700 0.875rem/1.6 var(--gm-caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-green); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 3px solid var(--gm-gold); }
    .post-body blockquote blockquote { border-left-color: var(--gm-green); }
    .post-body hr { width: 4rem; height: 12px; margin: 2.2em auto; border: 0; background: var(--gm-break); }

    .code { margin: 0 0 1.3em; background: var(--gm-mint); border-left: 4px solid var(--gm-green-dark); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 700 0.75rem/1.4 var(--gm-caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-green); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--gm-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--gm-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--gm-green); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--gm-string); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--gm-muted); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--gm-mint); }

    .table-scroll table { font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--gm-gold); }
    .table-scroll th { font: 700 0.75rem/1.4 var(--gm-caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-green); border-bottom: 2px solid var(--gm-green); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font-style: italic; font-size: 1rem; text-align: center; }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 1rem; border-top: 1px solid var(--gm-gold); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 600 0.75rem/1.4 var(--gm-caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gm-gold-ink); }

    /* Home: each post centred, parted by the three stripes. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 3rem; height: 12px; margin: 0 auto 1.6em; background: var(--gm-break); }
    .post-summary-title { margin: 0 0 0.25em; font: italic 400 1.75rem/1.15 var(--gm-display); text-wrap: balance; }
    .post-summary-title a { color: var(--gm-green); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 600 0.6875rem/1.6 var(--gm-caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-gold-ink); }
    .post-summary-meta .post-reading { margin-left: 1em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 700 0.875rem/1.4 var(--gm-caps); letter-spacing: 0.1em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; font-size: 1.0625rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 700 0.8125rem/1.4 var(--gm-caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-green); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; white-space: nowrap; font: 600 0.6875rem/1 var(--gm-caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-gold-ink); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 700 0.8125rem/1.4 var(--gm-caps); letter-spacing: 0.14em; color: var(--gm-green); }

    /* The small type at the foot of the box. */
    .site-foot { margin-top: 3.5em; padding-bottom: 30px; font: 600 0.75rem/2 var(--gm-caps); letter-spacing: 0.22em; text-transform: uppercase; text-align: center; color: var(--gm-gold-ink); }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--gm-gold-ink); }

    /* Narrow screens: narrower stripes and tighter tracking; a date or a
       reading time never breaks in two. */
    :is(.post-meta, .post-summary-meta) > * { white-space: nowrap; }
    @media (max-width: 480px) {
      --gm-stripe: 3px;
      --gm-stripe-mid: 4px;
      .page > :not(.deco) { padding-inline: 18px; }
      .site-nav ul { gap: 2px 16px; }
      .site-nav a { letter-spacing: 0.06em; }
      :is(.post-meta, .post-summary-meta) { letter-spacing: 0.16em; }
    }
    @media (max-width: 360px) {
      .site-nav ul { gap: 2px 12px; }
      .site-nav a { font-size: 0.8125rem; letter-spacing: 0.04em; }
    }
  }
}
/*
  Menthol Stripe. An off-white top with a heavy grotesque in near-black teal,
  a thin gold rule, and a field of dark teal lines on light teal: constant
  pitch, thickening toward the bottom until the field runs solid. The field
  lives at the foot of the page, never behind text, at a broad pitch (RULES.md
  tier 2, pattern glare). See docs/themes/menthol-stripe.md.
*/
@font-face {
  font-family: "Archivo";
  src: url("../themes/menthol-stripe/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  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: "Archivo";
  src: url("../themes/menthol-stripe/fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@layer theme {
  :root[data-theme="menthol-stripe"] {
    --ms-paper: #edece8;
    --ms-tint: #cce2dd;
    --ms-gold: #b18d4a;
    --ms-gold-ink: #6e5420;
    --ms-teal: #01a59c;
    --ms-teal-ink: #00646b;
    --ms-line: #00293f;
    --ms-line-deep: #001d20;
    --ms-ink: #033937;
    --ms-grey: #3a4448;
    --ft-strip: var(--ms-gold);
    --ms-face: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* The lined field: constant pitch, the dark share of each line growing
       band by band. 28px is well below the pattern-glare peak (about 3
       cycles per degree, a 12-16px pitch). */
    --ms-pitch: 28px;

    color-scheme: light;
    background: var(--ms-paper);
    color: var(--ms-ink);
    font: 400 1.125rem/1.62 var(--ms-face);

    body { background: var(--ms-paper); }

    a { color: var(--ms-ink); text-decoration: underline; text-decoration-color: var(--ms-teal); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
    a:hover { color: var(--ms-teal-ink); }
    :focus-visible { outline-color: var(--ms-gold); }

    .bar { background: var(--ms-paper); }
    .bar-next {
      padding: 0 16px;
      font: 800 0.875rem/1 var(--ms-face);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #ffffff;
      background: var(--ms-line);
      border: 0;
      cursor: pointer;
    }
    .bar-next:hover { background: var(--ms-line-deep); }
    .bar-plain { margin: 0; font: 700 0.875rem/1.3 var(--ms-face); color: var(--ms-ink); }

    .page { padding: 0; }
    .page > :not(.deco) { max-width: 44rem; margin-inline: auto; padding-inline: 20px; }

    /* The top of the pack, then the gold rule and the plain teal band that
       open the field. */
    /* Full width, with the column kept by padding, so the bands run edge to
       edge without vw units (which overflow beside a classic scrollbar). */
    .page > :is(.masthead, .site-foot) { max-width: none; padding-inline: max(20px, (100% - 44rem) / 2 + 20px); }
    .masthead { position: relative; padding-top: 28px; padding-bottom: 47px; }
    .masthead::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 17px;
      background: linear-gradient(var(--ms-gold) 0 3px, var(--ms-teal) 3px 100%);
    }
    .site-name { margin: 0; font: 700 clamp(2.75rem, 9vw, 5.25rem)/0.98 var(--ms-face); letter-spacing: -0.02em; color: var(--ms-ink); }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 5px 0; font: 800 0.875rem/1.3 var(--ms-face); letter-spacing: 0.05em; text-transform: uppercase; }

    .main { margin-top: 34px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.5em; }
    .post-title, .listing-title { margin: 0 0 0.3em; font: 800 clamp(2rem, 6vw, 3.25rem)/1.04 var(--ms-face); letter-spacing: -0.015em; color: var(--ms-ink); }
    .post-meta { margin: 0; font: 700 0.875rem/1.5 var(--ms-face); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ms-grey); }
    .post-reading { margin-left: 0.8em; }
    .post-tags { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 6px 0 0; padding: 0; font: 700 0.875rem/1.5 var(--ms-face); }
    .post-tags a { display: inline-block; padding: 3px 0; }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.6em 0 0.4em; font: 800 1.875rem/1.12 var(--ms-face); letter-spacing: -0.01em; }
    .post-body h3 { margin: 1.4em 0 0.35em; font: 800 1.375rem/1.2 var(--ms-face); }
    .post-body :is(h4, h5, h6) { margin: 1.3em 0 0.3em; font: 800 0.9375rem/1.4 var(--ms-face); letter-spacing: 0.06em; text-transform: uppercase; }
    .h-anchor { color: var(--ms-teal-ink); font-weight: 600; }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--ms-teal-ink); font-weight: 800; }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font-weight: 800; }
    .post-body dd { margin: 0 0 0.5em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.15em 0 0.15em 1em; font-style: italic; color: var(--ms-grey); border-left: 5px solid var(--ms-teal); }
    .post-body blockquote blockquote { border-left-color: var(--ms-gold); }
    /* A section break: three lines thickening, the field in miniature. */
    .post-body hr {
      width: 132px;
      height: 26px;
      margin: 2.2em 0;
      border: 0;
      background: linear-gradient(var(--ms-line) 0 3px, transparent 3px 9px, var(--ms-line) 9px 14px, transparent 14px 19px, var(--ms-line) 19px 26px);
    }

    .code { margin: 0 0 1.3em; background: var(--ms-tint); border-top: 3px solid var(--ms-gold); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 800 0.75rem/1.4 var(--ms-face); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-ink); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--ms-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: #b9dcd7; }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--ms-line); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--ms-gold-ink); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--ms-grey); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--ms-tint); }

    .table-scroll table { font-size: 1rem; }
    .table-scroll :is(th, td) { padding: 6px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid #b7c9c5; }
    .table-scroll th { font: 800 0.8125rem/1.4 var(--ms-face); letter-spacing: 0.05em; text-transform: uppercase; background: var(--ms-tint); border-bottom: 3px solid var(--ms-gold); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font: 600 0.875rem/1.5 var(--ms-face); color: var(--ms-grey); }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 0.95rem; border-top: 3px solid var(--ms-gold); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 800 0.75rem/1.4 var(--ms-face); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-grey); }

    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; padding-top: 1.1em; border-top: 2px solid var(--ms-gold); }
    .post-item:first-child { border-top: 0; padding-top: 0; }
    .post-summary-title { margin: 0 0 0.2em; font: 800 1.75rem/1.12 var(--ms-face); letter-spacing: -0.01em; }
    .post-summary-title a { text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; text-decoration-color: var(--ms-teal); }
    .post-summary-meta { margin: 0 0 0.3em; font: 700 0.8125rem/1.5 var(--ms-face); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ms-grey); }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font-weight: 800; }
    .tag-count { color: var(--ms-grey); }

    .rail { margin-top: 2.5em; font-size: 1rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 800 0.8125rem/1.4 var(--ms-face); letter-spacing: 0.06em; text-transform: uppercase; }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; font-size: 0.8125rem; color: var(--ms-grey); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 14px; }
    .archive-year-label { font-weight: 800; }

    /* The foot of the page is the foot of the pack: the gold rule, the plain
       teal band, then lines thickening until they run solid. */
    .page > .site-foot {
      margin-top: 4em;
      padding-top: calc(19px + var(--ms-pitch) * 12 + 28px);
      padding-bottom: 36px;
      font: 800 0.8125rem/1.8 var(--ms-face);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #ffffff;
      background:
        linear-gradient(var(--ms-gold), var(--ms-gold)) 0 0 / 100% 3px no-repeat,
        linear-gradient(var(--ms-teal), var(--ms-teal)) 0 3px / 100% 16px no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.67), var(--ms-line) 0 var(--ms-pitch)) 0 19px / 100% calc(var(--ms-pitch) * 2) no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.66), var(--ms-line) 0 var(--ms-pitch)) 0 calc(19px + var(--ms-pitch) * 2) / 100% calc(var(--ms-pitch) * 2) no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.55), var(--ms-line) 0 var(--ms-pitch)) 0 calc(19px + var(--ms-pitch) * 4) / 100% calc(var(--ms-pitch) * 2) no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.40), var(--ms-line) 0 var(--ms-pitch)) 0 calc(19px + var(--ms-pitch) * 6) / 100% calc(var(--ms-pitch) * 2) no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.28), var(--ms-line-deep) 0 var(--ms-pitch)) 0 calc(19px + var(--ms-pitch) * 8) / 100% calc(var(--ms-pitch) * 2) no-repeat,
        repeating-linear-gradient(var(--ms-teal) 0 calc(var(--ms-pitch) * 0.16), var(--ms-line-deep) 0 var(--ms-pitch)) 0 calc(19px + var(--ms-pitch) * 10) / 100% calc(var(--ms-pitch) * 2) no-repeat,
        var(--ms-line-deep);
    }
    .site-foot p { margin: 0; }
    .site-foot a { color: #ffffff; text-decoration-color: var(--ms-teal); }
  }
}
/*
  Night Gilt. Violet-navy with a faint grid of raised diamonds; a gold double
  rule at the top and foot; a gold medallion, engraved with our own guilloche,
  holding a camellia drawn in a stencil-and-glitter manner; the name in a bold
  gold script. The article sits on a smooth violet band, never on the
  texture. No crown, no stamp, no name. See docs/themes/night-gilt.md.
*/
@font-face {
  font-family: "Playball";
  src: url("../themes/night-gilt/fonts/playball.woff2") format("woff2");
  font-weight: 400;
  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: "Noto Sans";
  src: url("../themes/night-gilt/fonts/noto-sans.woff2") format("woff2");
  font-weight: 100 900;
  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: "Noto Sans";
  src: url("../themes/night-gilt/fonts/noto-sans-italic.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@layer theme {
  :root[data-theme="night-gilt"] {
    --ng-field: #1f1b3a;
    --ng-panel: #2a2550;
    --ng-deep: #1a1733;
    --ng-bar: #16132b;
    --ng-highlight: #3a3468;
    --ng-gold: #dcc35c;
    --ng-bright: #ecdc62;
    --ng-cream: #ebe5d4;
    --ng-lilac: #b9b2e0;
    --ng-hair: #5e5682;
    --ft-strip: var(--ng-gold);
    --ng-script: "Playball", "Snell Roundhand", cursive;
    --ng-text: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --ng-studs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M4.5 1.2 L7.8 4.5 L4.5 7.8 L1.2 4.5Z' fill='%232a2550'/%3E%3Cpath d='M4.5 1.2 L7.8 4.5 L4.5 4.5 L1.2 4.5Z' fill='%23322c60'/%3E%3Cpath d='M4.5 1.2 L4.5 4.5 L1.2 4.5Z' fill='%233b366f'/%3E%3C/svg%3E") 0 0 / 9px 9px;
    /* The pack's top edge: a thick and a thin gold line. */
    --ng-double: linear-gradient(var(--ng-bright) 0 3px, transparent 3px 5px, var(--ng-bright) 5px 6px, transparent 6px);
    --ng-medal: clamp(96px, 14vw, 132px);

    color-scheme: dark;
    background: var(--ng-field);
    color: var(--ng-cream);
    font: 400 1.125rem/1.65 var(--ng-text);

    body { background: var(--ng-studs), var(--ng-field); }

    a { color: var(--ng-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { color: var(--ng-cream); }
    :focus-visible { outline-color: var(--ng-bright); }
    strong, b { color: #fff; }

    .bar { background: var(--ng-bar); }
    .bar-next {
      padding: 0 12px;
      font: 700 0.8125rem/1 var(--ng-text);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ng-gold);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--ng-gold);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 700 0.8125rem/1.3 var(--ng-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ng-gold); }

    /* The page: the smooth violet band, between a textured masthead and a
       textured footer, both the full width. */
    .page { padding: 0; background: var(--ng-panel); }
    .page > :not(.deco) { max-width: 40rem; margin-inline: auto; padding-inline: 22px; }
    .page > :is(.masthead, .site-foot) { max-width: none; padding-inline: max(22px, (100% - 40rem) / 2 + 22px); background: var(--ng-double) 0 0 / 100% 6px no-repeat, var(--ng-studs), var(--ng-field); }

    .masthead { padding-top: 34px; padding-bottom: 26px; text-align: center; border-bottom: 1px solid var(--ng-gold); }
    /* The medallion: an engraved gold disc holding a camellia, still. */
    .masthead::before {
      content: "";
      display: block;
      width: var(--ng-medal);
      aspect-ratio: 1;
      margin: 0 auto 12px;
      background: url("../themes/night-gilt/img/medallion.svg") center / contain no-repeat;
      filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.45));
    }
    .site-name { margin: 0; font: 400 clamp(2.75rem, 9vw, 5.25rem)/1.15 var(--ng-script); color: var(--ng-gold); text-wrap: balance; }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; margin: 10px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0 6px 0.18em; font: 700 0.8125rem/1.3 var(--ng-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ng-gold); text-underline-offset: 5px; }

    .main { padding-top: 36px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.25em; font: 400 clamp(2.1rem, 6vw, 3rem)/1.15 var(--ng-script); color: var(--ng-gold); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4em; margin: 0; font: 700 0.8125rem/1.6 var(--ng-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ng-gold); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 10px 0 0; padding: 0; font: 700 0.8125rem/1.6 var(--ng-text); letter-spacing: 0.14em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.4em 0 0.3em; font: 400 2rem/1.2 var(--ng-script); color: var(--ng-gold); }
    .post-body h3 { margin: 1.4em 0 0.3em; font: 700 1.3125rem/1.3 var(--ng-text); color: var(--ng-bright); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 700 0.875rem/1.5 var(--ng-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ng-gold); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--ng-gold); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 700 0.875rem/1.6 var(--ng-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ng-gold); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; color: var(--ng-lilac); border-left: 3px solid var(--ng-gold); }
    .post-body blockquote blockquote { border-left-color: var(--ng-hair); }
    .post-body hr { width: 5rem; height: 6px; margin: 2.2em auto; border: 0; background: var(--ng-double); }

    .code { margin: 0 0 1.3em; background: var(--ng-deep); border-left: 4px solid var(--ng-gold); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 700 0.75rem/1.4 var(--ng-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ng-gold); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--ng-cream); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--ng-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--ng-bright); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--ng-lilac); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--ng-lilac); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--ng-deep); }

    .table-scroll table { font-size: 1rem; font-variant-numeric: tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--ng-hair); }
    .table-scroll th { font: 700 0.75rem/1.4 var(--ng-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ng-gold); border-bottom: 2px solid var(--ng-gold); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font-style: italic; font-size: 1rem; text-align: center; color: var(--ng-lilac); }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 1rem; border-top: 1px solid var(--ng-hair); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 700 0.75rem/1.4 var(--ng-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ng-gold); }

    /* Home: posts centred, parted by short gold rules. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 3.5rem; height: 6px; margin: 0 auto 1.6em; background: var(--ng-double); }
    .post-summary-title { margin: 0 0 0.2em; font: 400 1.9rem/1.2 var(--ng-script); text-wrap: balance; }
    .post-summary-title a { color: var(--ng-gold); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 700 0.75rem/1.6 var(--ng-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ng-gold); }
    .post-summary-meta .post-reading { margin-left: 1em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 700 0.875rem/1.4 var(--ng-text); letter-spacing: 0.1em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; padding-bottom: 1em; font-size: 1.0625rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 700 0.8125rem/1.4 var(--ng-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ng-gold); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; white-space: nowrap; font: 700 0.6875rem/1 var(--ng-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ng-lilac); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 700 0.8125rem/1.4 var(--ng-text); letter-spacing: 0.14em; color: var(--ng-gold); }

    /* The foot: the texture again, under a gold hairline, ending in the
       double rule. */
    .page > .site-foot {
      margin-top: 3em;
      padding-block: 28px 34px;
      font: 700 0.75rem/2 var(--ng-text);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-align: center;
      color: var(--ng-gold);
      border-top: 1px solid var(--ng-gold);
      background: var(--ng-double) 0 100% / 100% 6px no-repeat, var(--ng-studs), var(--ng-field);
    }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--ng-gold); }

    /* Narrow screens: tighter navigation; a date or a reading time never
       breaks in two. */
    :is(.post-meta, .post-summary-meta) > * { white-space: nowrap; }
    @media (max-width: 480px) {
      .masthead { padding-top: 26px; }
      .site-nav ul { gap: 2px 16px; }
      .site-nav a { letter-spacing: 0.1em; }
      :is(.post-meta, .post-summary-meta) { letter-spacing: 0.12em; }
    }

    @media (forced-colors: active) {
      .masthead::before { display: none; }
    }
  }
}
/*
  Petal Lace. Green, golden yellow and green bands, parted by holographic
  strips carrying a key-fret line; a gold dotted lace of petal outlines
  across the green; a painted peach blossom in the yellow; the name heavy and
  slanted, red outlined in white. The flower is the theme's own: no lotus, no
  plaque, no calligraphy. See docs/themes/petal-lace.md.
*/
@font-face {
  font-family: "Sansita";
  src: url("../themes/petal-lace/fonts/sansita-800-italic.woff2") format("woff2");
  font-weight: 800;
  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("../themes/petal-lace/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  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("../themes/petal-lace/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  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 Sans 3";
  src: url("../themes/petal-lace/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  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;
}

@layer theme {
  :root[data-theme="petal-lace"] {
    --pl-green: #3f7d33;
    --pl-deep: #2b6428;
    --pl-yellow: #e2c252;
    --pl-cream: #f8f2de;
    --pl-panel: #f3e8bf;
    --pl-highlight: #efe1a8;
    --pl-gold: #d8b66c;
    --pl-gold-ink: #7a5d1e;
    --pl-red: #cf2a2c;
    --pl-link: #b3262a;
    --pl-ink: #1e281b;
    --pl-white: #f4f4ef;
    --ft-strip: var(--pl-gold);
    --pl-title: "Sansita", "Trebuchet MS", sans-serif;
    --pl-text: "Source Serif 4", Georgia, serif;
    --pl-label: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    /* The holographic strip: a key-fret line over shifting pale colour. */
    --pl-fret: url("../themes/petal-lace/img/fret.svg");
    --pl-shimmer: linear-gradient(90deg, #bcd2e6, #dccbe8, #c2e3d6, #e6ddb6, #bcd2e6);
    --pl-strip-h: 14px;
    /* The yellow band is never taller than the green title block above it. */
    --pl-band: clamp(96px, 13vw, 176px);

    color-scheme: light;
    background: var(--pl-cream);
    color: var(--pl-ink);
    font: 400 1.125rem/1.65 var(--pl-text);

    body { background: var(--pl-cream); }

    a { color: var(--pl-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { color: var(--pl-deep); }
    :focus-visible { outline-color: var(--pl-deep); }

    .bar { background: var(--pl-deep); }
    .bar :focus-visible { outline-color: var(--pl-white); }
    .bar-next {
      padding: 0 12px;
      font: 700 0.8125rem/1 var(--pl-label);
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--pl-white);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--pl-white);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 700 0.8125rem/1.3 var(--pl-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-white); }

    .page { padding: 0; }
    .page > :not(.deco) { max-width: 42rem; margin-inline: auto; padding-inline: 22px; }
    .page > :is(.masthead, .site-foot) { max-width: none; padding-inline: 0; }

    /* The lid: white, deep green and white stripes along the top, then the
       gold lace over green, holding the name. */
    .masthead {
      padding-top: 44px;
      text-align: center;
      background:
        linear-gradient(var(--pl-white) 0 4px, var(--pl-deep) 4px 6px, var(--pl-white) 6px 10px, transparent 10px) 0 0 / 100% 10px no-repeat,
        url("../themes/petal-lace/img/lace.svg") 0 10px / 120px 104px,
        var(--pl-green);
    }
    .site-name { margin: 0; padding-inline: 16px; font: italic 800 clamp(2.5rem, 9vw, 5.25rem)/1.05 var(--pl-title); color: var(--pl-red); -webkit-text-stroke: 0.15em var(--pl-white); paint-order: stroke fill; text-wrap: balance; }
    .site-name a { color: inherit; text-decoration: none; }
    .masthead :focus-visible { outline-color: var(--pl-white); }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 24px; margin: 14px 0 0; padding: 0 16px 30px; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0; font: 700 0.875rem/1.3 var(--pl-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pl-white); text-decoration-color: var(--pl-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
    /* Then a strip, the golden-yellow band with the blossom scaled to fit,
       and another strip. */
    .masthead::after {
      content: "";
      display: block;
      height: calc(var(--pl-band) + var(--pl-strip-h) * 2);
      background:
        var(--pl-fret) 0 0 / 24px var(--pl-strip-h) repeat-x,
        var(--pl-shimmer) 0 0 / 100% var(--pl-strip-h) no-repeat,
        var(--pl-fret) 0 100% / 24px var(--pl-strip-h) repeat-x,
        var(--pl-shimmer) 0 100% / 100% var(--pl-strip-h) no-repeat,
        url("../themes/petal-lace/img/peach-blossom.svg") 50% 50% / auto calc(var(--pl-band) - 12px) no-repeat,
        var(--pl-yellow);
    }

    .main { margin-top: 36px; }
    .main:focus { outline: none; }

    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.35em; font: italic 800 clamp(2rem, 6vw, 2.9rem)/1.1 var(--pl-title); color: var(--pl-deep); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4em; margin: 0; font: 700 0.8125rem/1.6 var(--pl-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--pl-gold-ink); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 10px 0 0; padding: 0; font: 700 0.8125rem/1.6 var(--pl-label); letter-spacing: 0.14em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.6em 0 0.35em; font: italic 800 1.9rem/1.15 var(--pl-title); color: var(--pl-deep); }
    .post-body h3 { margin: 1.4em 0 0.3em; font: italic 800 1.4rem/1.2 var(--pl-title); color: var(--pl-deep); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 700 0.875rem/1.5 var(--pl-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pl-deep); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--pl-deep); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 700 0.875rem/1.6 var(--pl-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-deep); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 3px solid var(--pl-gold); }
    .post-body blockquote blockquote { border-left-color: var(--pl-green); }
    /* A section break: a short holographic strip. */
    .post-body hr { width: 6rem; height: var(--pl-strip-h); margin: 2.2em auto; border: 0; background: var(--pl-fret) 0 0 / 24px var(--pl-strip-h) repeat-x, var(--pl-shimmer); }

    .code { margin: 0 0 1.3em; background: var(--pl-panel); border-left: 4px solid var(--pl-green); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 700 0.75rem/1.4 var(--pl-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pl-deep); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--pl-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--pl-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--pl-deep); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--pl-link); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--pl-gold-ink); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--pl-panel); }

    .table-scroll table { font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--pl-gold); }
    .table-scroll th { font: 700 0.75rem/1.4 var(--pl-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-deep); border-bottom: 2px solid var(--pl-green); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font-style: italic; font-size: 1rem; text-align: center; }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 1rem; border-top: 1px solid var(--pl-gold); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 700 0.75rem/1.4 var(--pl-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--pl-gold-ink); }

    /* Home: each post centred, parted by a short strip. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 4.5rem; height: var(--pl-strip-h); margin: 0 auto 1.6em; background: var(--pl-fret) 0 0 / 24px var(--pl-strip-h) repeat-x, var(--pl-shimmer); }
    .post-summary-title { margin: 0 0 0.25em; font: italic 800 1.7rem/1.15 var(--pl-title); text-wrap: balance; }
    .post-summary-title a { color: var(--pl-deep); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 700 0.75rem/1.6 var(--pl-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--pl-gold-ink); }
    .post-summary-meta .post-reading { margin-left: 1em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 700 0.875rem/1.4 var(--pl-label); letter-spacing: 0.1em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; font-size: 1.0625rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 700 0.8125rem/1.4 var(--pl-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pl-deep); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; white-space: nowrap; font: 700 0.6875rem/1 var(--pl-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pl-gold-ink); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 700 0.8125rem/1.4 var(--pl-label); letter-spacing: 0.14em; color: var(--pl-deep); }

    /* The base: deep green under a strip, with white capitals. */
    .page > .site-foot {
      margin-top: 3.5em;
      padding: calc(var(--pl-strip-h) + 26px) 16px 32px;
      font: 700 0.75rem/2 var(--pl-label);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-align: center;
      color: var(--pl-white);
      background:
        var(--pl-fret) 0 0 / 24px var(--pl-strip-h) repeat-x,
        var(--pl-shimmer) 0 0 / 100% var(--pl-strip-h) no-repeat,
        var(--pl-deep);
    }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--pl-white); }
    .site-foot :focus-visible { outline-color: var(--pl-white); }

    /* Narrow screens: tighter navigation; a date or a reading time never
       breaks in two. */
    :is(.post-meta, .post-summary-meta) > * { white-space: nowrap; }
    @media (max-width: 480px) {
      .masthead { padding-top: 34px; }
      .site-nav ul { gap: 2px 16px; padding-bottom: 24px; }
      .site-nav a { letter-spacing: 0.08em; }
      :is(.post-meta, .post-summary-meta) { letter-spacing: 0.12em; }
    }
  }
}
/*
  Plain: the fallback, for readers without JavaScript and for printing.
  Never offered as a choice (DECISIONS.md F9). Inherited from Turrible Takes'
  Not Bad. A book, not a startup. Built from book typography (Butterick, Bringhurst):
  one text face, first-line indents instead of paragraph gaps, a 33em
  measure, real italics, an asterism for section breaks. No cards, pills,
  gradients, shadows, accent colour or eyebrow labels (docs/SMELL.md).
  See docs/themes/plain.md.
*/
@font-face {
  font-family: "Literata";
  src: url("../themes/plain/fonts/literata-roman.woff2") format("woff2");
  font-weight: 200 900;
  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: "Literata";
  src: url("../themes/plain/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  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;
}

@layer theme {
  :root[data-theme="plain"] {
    --pl-paper: #ffffff;
    --pl-ink: #1b1b1b;
    --pl-rule: #8c8c8c;
    --pl-hl: #fff3c4;
    --pl-str: #2b5d34;
    --pl-com: #5e5e5e;
    --pl-num: #8a2a1e;
    --pl-line: 1.45;
    --pl-measure: 33em;

    color-scheme: light dark;
    background: var(--pl-paper);
    color: var(--pl-ink);
    font-family: "Literata", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    line-height: var(--pl-line);
    font-optical-sizing: auto;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;

    @media (prefers-color-scheme: dark) {
      --pl-paper: #151514;
      --pl-ink: #e8e6e1;
      --pl-rule: #7a7874;
      --pl-hl: #3d3620;
      --pl-str: #9fd0a6;
      --pl-com: #a9a7a2;
      --pl-num: #f0a597;
    }

    body { background: var(--pl-paper); }

    a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { text-decoration-thickness: 2px; }

    .page {
      max-width: calc(var(--pl-measure) + 2.5rem);
      margin: 0 auto;
      padding: 0 1.25rem 4rem;
    }

    /* The bar: a quiet strip. Readers see it here only on posts that stay
       plain, or before any pack theme exists. */
    .bar {
      background: var(--pl-paper);
      border-bottom: 1px solid var(--pl-rule);
    }
    /* The floor pins the bar's row edge to edge; line Fresh pack up with the
       text column instead. */
    .bar-next { margin-left: max(1.25rem - 8px, (100% - 33rem) / 2 - 8px); }
    .bar-next {
      background: none;
      border: 0;
      padding: 0.25em 0;
      font-style: italic;
      font-size: 0.9em;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 0.18em;
      cursor: pointer;
    }
    .bar-plain { margin: 0 0 0 max(1.25rem - 8px, (100% - 33rem) / 2 - 8px); font-style: italic; font-size: 0.9em; }

    /* Running head. */
    .masthead {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.25em 1.5em;
      padding: 1.5em 0 0;
    }
    .site-name { margin: 0; font-size: 1em; font-weight: 400; font-style: italic; }
    .site-name a { text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.1em; margin: 0; padding: 0; list-style: none; font-size: 0.9em; }
    .site-nav a { text-decoration: none; }
    .site-nav a:hover { text-decoration: underline; }

    .main { padding-top: 3em; }
    .main:focus { outline: none; }

    /* Titles. */
    .post-title, .listing-title {
      margin: 0 0 0.4em;
      font-size: 2em;
      font-weight: 500;
      line-height: 1.15;
      text-wrap: balance;
    }
    .post-meta { margin: 0; font-style: italic; font-variant-numeric: oldstyle-nums; }
    .post-reading::before { content: "· "; }
    .post-tags { display: flex; flex-wrap: wrap; gap: 0 0.6em; margin: 0.2em 0 0; font-size: 0.9em; }
    .post-tags li:not(:last-child)::after { content: ","; }
    .post-head { margin-bottom: 2.4em; }

    /* The text block. */
    .post-body {
      hyphens: auto;
      font-variant-numeric: oldstyle-nums proportional-nums;
    }
    .post-body > * { margin-top: 0; margin-bottom: 0; }
    .post-body p { margin: 0; text-wrap: pretty; }
    .post-body p + p { text-indent: 1.5em; }
    .post-body > :is(ul, ol, dl, blockquote, figure, .table-scroll, .footnotes) { margin-top: calc(var(--pl-line) * 1em); margin-bottom: calc(var(--pl-line) * 1em); }

    .post-body :is(h2, h3, h4) { line-height: 1.25; text-wrap: balance; }
    .post-body h2 { margin-top: 2.2em; margin-bottom: 0.6em; font-size: 1.2em; font-weight: 600; }
    .post-body h3 { margin-top: 1.8em; margin-bottom: 0.5em; font-size: 1em; font-weight: 400; font-style: italic; }
    .post-body h4 { margin-top: 1.5em; margin-bottom: 0.4em; font-size: 1em; font-weight: 600; }
    .h-anchor { opacity: 0; margin-left: 0.2em; font-weight: 400; text-decoration: none; }
    :is(h2, h3, h4):hover .h-anchor, .h-anchor:focus { opacity: 0.6; }

    .post-body :is(ul, ol) { padding-left: 1.5em; }
    .post-body li + li { margin-top: 0.2em; }
    .post-body li > :is(ul, ol) { margin-top: 0.2em; }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.5em; }
    .post-body li > input[type="checkbox"] { margin: 0 0.5em 0 0; }
    .post-body dt { font-style: italic; }
    .post-body dd { margin: 0 0 0.4em 1.5em; }

    .post-body blockquote { margin-left: 1.5em; margin-right: 0; font-size: 0.95em; }
    .post-body blockquote p + p { text-indent: 1.5em; }
    .post-body blockquote blockquote { margin: 0.6em 0 0 1.5em; }

    /* Section break: an asterism, as in a book. */
    .post-body hr { border: 0; margin: 2em 0; text-align: center; height: auto; }
    .post-body hr::after { content: "⁂"; font-size: 1.4em; }

    /* Code, set like a book sets it: no box, no window, no badge. */
    .post-body code { font-size: 0.85em; hyphens: none; }
    .code { position: relative; }
    .code-lang { margin: 0 0 0.25em; font-size: 0.75em; font-style: italic; }
    .code pre {
      margin: 0;
      padding: 0.1em 0 0.3em 1em;
      border-left: 1px solid var(--pl-rule);
      font-size: 0.8em;
      line-height: 1.5;
      background: none;
      font-variant-numeric: lining-nums;
    }
    .code pre code { font-size: 1em; }
    .chroma .line.hl { display: block; background: var(--pl-hl); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--pl-str); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--pl-com); font-style: italic; }
    .chroma :is(.m, .mb, .mf, .mh, .mi, .il, .mo) { color: var(--pl-num); }

    /* Tables in the booktabs style: three rules, no grid. */
    .table-scroll { font-size: 0.9em; font-variant-numeric: lining-nums tabular-nums; }
    .table-scroll table { border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
    .table-scroll thead th { border-bottom: 0.75px solid currentColor; text-align: left; font-weight: 600; }
    .table-scroll :is(th, td) { padding: 0.3em 0.9em 0.3em 0; vertical-align: top; }

    .fig figcaption { margin-top: 0.5em; font-size: 0.85em; font-style: italic; }

    .footnotes { font-size: 0.85em; }
    .footnotes hr { width: 6em; margin: 0 0 1em; border: 0; border-top: 1px solid var(--pl-rule); text-align: left; }
    .footnotes hr::after { content: none; }
    .footnotes ol { padding-left: 1.25em; }
    .footnote-ref { text-decoration: none; }
    .footnote-ref::before { content: ""; }
    .footnote-backref { text-decoration: none; }

    .post-foot { margin-top: 3em; }
    .post-nav { display: grid; gap: 0.5em; }
    .post-nav p { margin: 0; }
    .post-nav-label { font-style: italic; }
    .post-nav-label::after { content: ":"; }

    /* Lists of posts, set as a table of contents with dot leaders. */
    .post-list { margin: 0; }
    .post-item + .post-item { margin-top: 1.1em; }
    .post-summary { display: flex; flex-wrap: wrap; align-items: baseline; }
    .post-summary::before {
      content: "";
      order: 1;
      flex: 1 1 2em;
      min-width: 2em;
      margin: 0 0.5em;
      border-bottom: 2px dotted var(--pl-rule);
      align-self: baseline;
      height: 0.2em;
    }
    .post-summary-title { order: 0; margin: 0; font-size: 1em; font-weight: 600; max-width: 100%; }
    .post-summary-meta { order: 2; margin: 0; font-variant-numeric: oldstyle-nums; }
    .post-summary-meta .post-reading { display: none; }
    .post-summary-desc { order: 3; flex-basis: 100%; margin: 0.1em 0 0; font-style: italic; }
    @media (max-width: 30em) {
      .post-summary::before { display: none; }
      .post-summary-meta { flex-basis: 100%; }
    }
    .term-list { display: grid; gap: 0.3em; }
    .listing-404 { margin-top: 2em; }

    /* The rails become a quiet colophon after the article. */
    .rail { font-size: 0.9em; margin-top: 3em; }
    .rail-title { margin: 0 0 0.4em; font-size: 1em; font-weight: 400; font-style: italic; }
    .rail-section + .rail-section { margin-top: 1.6em; }
    .rail ul { margin: 0; padding-left: 0; list-style: none; }
    .rail li + li { margin-top: 0.15em; }
    .rail-date { font-style: italic; font-variant-numeric: oldstyle-nums; }
    .rail-date::before { content: "· "; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 0.6em; }
    .tag-cloud li + li { margin-top: 0; }
    .tag-count { font-variant-numeric: oldstyle-nums; }
    .rail-archive, .rail-about { display: none; }
    &:has(.listing-home) .rail-recent { display: none; }
    .rail-a { border-top: 1px solid var(--pl-rule); padding-top: 2em; }
    .rail-b { margin-top: 1.6em; }

    .site-foot { margin-top: 3em; font-size: 0.85em; font-style: italic; }
    .site-foot p { margin: 0; }

    @media print {
      font-size: 11pt;
      .bar, .rail, .h-anchor, .post-nav { display: none; }
      .page { max-width: none; padding: 0; }
      a.ext::after { content: " (" attr(href) ")"; font-size: 0.85em; }
    }
  }
}
/*
  Roundel. A white field between thin red stripes; rings in red, white,
  olive gold and navy, cropped by the top of the page so they hang over the
  name and never hold a word; heavy condensed gothic capitals in navy; thin
  geometric capitals, widely tracked; everything on the face centred. See
  docs/themes/roundel.md.
*/
@font-face {
  font-family: "Francois One";
  src: url("../themes/roundel/fonts/francois-one.woff2") format("woff2");
  font-weight: 400;
  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: "League Spartan";
  src: url("../themes/roundel/fonts/league-spartan.woff2") format("woff2");
  font-weight: 100 900;
  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: "Libre Franklin";
  src: url("../themes/roundel/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  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: "Libre Franklin";
  src: url("../themes/roundel/fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@layer theme {
  :root[data-theme="roundel"] {
    --rd-white: #fbfaf7;
    --rd-warm: #f1efe9;
    --rd-highlight: #e6e2d6;
    --rd-red: #d4151d;
    --rd-link: #b3121a;
    --rd-gold: #93855a;
    --rd-olive: #665c3a;
    --rd-navy: #1d2535;
    --rd-ink: #232a38;
    --rd-hair: #c9c6bd;
    --ft-strip: var(--rd-gold);
    --rd-gothic: "Francois One", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
    --rd-caps: "League Spartan", "Futura", "Century Gothic", sans-serif;
    --rd-text: "Libre Franklin", "Franklin Gothic Book", Arial, sans-serif;
    /* The pack's rings, from the outside in: navy 6% of the radius, olive
       gold 6.5%, white 11%, then the red disc. */
    --rd-rings: radial-gradient(circle closest-side, var(--rd-red) 0 76%, var(--rd-white) 76% 87%, var(--rd-gold) 87% 93.5%, var(--rd-navy) 93.5% 100%, transparent 100%);
    --rd-ring-size: min(80%, 32.5rem);
    /* The doubled stripe at the foot of the pack. */
    --rd-double: linear-gradient(var(--rd-red) 0 4px, transparent 4px 7px, var(--rd-red) 7px 10px, transparent 10px);

    color-scheme: light;
    background: var(--rd-white);
    color: var(--rd-ink);
    font: 400 1.125rem/1.65 var(--rd-text);

    body { background: var(--rd-white); }
    /* The foot of the pack: the doubled red stripe, the page's full width. */
    body::after { content: ""; display: block; height: 22px; background: linear-gradient(var(--rd-red) 0 6px, transparent 6px 9px, var(--rd-red) 9px 13px, transparent 13px); }

    a { color: var(--rd-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
    a:hover { color: var(--rd-navy); }
    :focus-visible { outline-color: var(--rd-navy); }

    /* The top of the pack: white, ending in the red band. */
    .bar { background: var(--rd-white); border-bottom: 6px solid var(--rd-red); }
    .bar-next {
      padding: 0 12px;
      font: 500 0.8125rem/1 var(--rd-caps);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--rd-navy);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--rd-navy);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 500 0.8125rem/1.3 var(--rd-caps); letter-spacing: 0.24em; text-transform: uppercase; color: var(--rd-navy); }

    .page { padding: 0; }
    .page > :not(.deco) { max-width: 44rem; margin-inline: auto; padding-inline: 20px; }

    /* The rings hang from the top edge, cut off by it: never the whole
       circle, and nothing inside them. Percentages in both the size and the
       margin are of the masthead's width, so they scale together. */
    .masthead { padding-bottom: 6px; overflow: clip; text-align: center; }
    .masthead::before {
      content: "";
      display: block;
      width: var(--rd-ring-size);
      aspect-ratio: 1;
      margin: calc(var(--rd-ring-size) * -0.62) auto 20px;
      border-radius: 50%;
      background: var(--rd-rings);
    }
    .site-name { margin: 0; font: 400 clamp(2.75rem, 10vw, 5.75rem)/1 var(--rd-gothic); letter-spacing: 0.01em; text-transform: uppercase; color: var(--rd-navy); text-wrap: balance; }
    .site-name a { color: inherit; text-decoration: none; }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; margin: 14px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 6px 0 6px 0.3em; font: 500 0.875rem/1.3 var(--rd-caps); letter-spacing: 0.3em; text-transform: uppercase; text-underline-offset: 5px; }

    .main { margin-top: 34px; }
    .main:focus { outline: none; }

    /* The post's head, centred like the face. */
    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.35em; font: 400 clamp(2rem, 6vw, 3rem)/1.06 var(--rd-gothic); letter-spacing: 0.01em; text-transform: uppercase; color: var(--rd-navy); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.6em; margin: 0; font: 500 0.8125rem/1.6 var(--rd-caps); letter-spacing: 0.3em; text-transform: uppercase; color: var(--rd-navy); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 10px 0 0; padding: 0; font: 500 0.8125rem/1.6 var(--rd-caps); letter-spacing: 0.22em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.6em 0 0.4em; font: 400 1.875rem/1.1 var(--rd-gothic); letter-spacing: 0.01em; text-transform: uppercase; color: var(--rd-navy); }
    .post-body h3 { margin: 1.4em 0 0.35em; font: 700 1.3125rem/1.25 var(--rd-text); color: var(--rd-navy); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 600 0.875rem/1.5 var(--rd-caps); letter-spacing: 0.22em; text-transform: uppercase; color: var(--rd-navy); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--rd-red); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 600 0.875rem/1.6 var(--rd-caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--rd-navy); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 3px solid var(--rd-red); }
    .post-body blockquote blockquote { border-left-color: var(--rd-gold); }
    /* A section break: the doubled stripe, short. */
    .post-body hr { width: 5rem; height: 10px; margin: 2.2em auto; border: 0; background: var(--rd-double); }

    .code { margin: 0 0 1.3em; background: var(--rd-warm); border-left: 4px solid var(--rd-red); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 600 0.75rem/1.4 var(--rd-caps); letter-spacing: 0.24em; text-transform: uppercase; color: var(--rd-navy); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--rd-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--rd-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--rd-navy); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--rd-link); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--rd-olive); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--rd-warm); }

    .table-scroll table { font-size: 1rem; font-variant-numeric: tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--rd-hair); }
    .table-scroll th { font: 600 0.75rem/1.4 var(--rd-caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rd-navy); border-bottom: 2px solid var(--rd-navy); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig figcaption { margin-top: 8px; font: italic 0.9375rem/1.5 var(--rd-text); text-align: center; }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 0.95rem; border-top: 1px solid var(--rd-navy); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 600 0.75rem/1.4 var(--rd-caps); letter-spacing: 0.24em; text-transform: uppercase; color: var(--rd-navy); }

    /* Home: each post centred, parted by the doubled stripe. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 3.5rem; height: 10px; margin: 0 auto 1.6em; background: var(--rd-double); }
    .post-summary-title { margin: 0 0 0.25em; font: 400 1.75rem/1.1 var(--rd-gothic); letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
    .post-summary-title a { color: var(--rd-navy); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 500 0.75rem/1.6 var(--rd-caps); letter-spacing: 0.28em; text-transform: uppercase; color: var(--rd-navy); }
    .post-summary-meta .post-reading { margin-left: 1.2em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 500 0.875rem/1.4 var(--rd-caps); letter-spacing: 0.2em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; font-size: 1rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 600 0.8125rem/1.4 var(--rd-caps); letter-spacing: 0.26em; text-transform: uppercase; color: var(--rd-navy); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; white-space: nowrap; font: 500 0.6875rem/1 var(--rd-caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--rd-navy); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 600 0.8125rem/1.4 var(--rd-caps); letter-spacing: 0.2em; color: var(--rd-navy); }

    /* The descriptor line at the foot, like the pack's. */
    .site-foot { margin-top: 3.5em; padding-bottom: 22px; font: 500 0.8125rem/2 var(--rd-caps); letter-spacing: 0.3em; text-transform: uppercase; text-align: center; color: var(--rd-navy); }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--rd-navy); }

    /* Narrow screens: tighter tracking, so the navigation holds one line and
       a date or a reading time never breaks in two. */
    :is(.post-meta, .post-summary-meta) > * { white-space: nowrap; }
    @media (max-width: 480px) {
      .site-nav ul { gap: 2px 14px; }
      .site-nav a { padding-left: 0.2em; letter-spacing: 0.2em; }
      :is(.post-meta, .post-summary-meta) { letter-spacing: 0.2em; }
    }
  }
}
/*
  Sun Cured. Butter yellow deepening to sand gold, on a rounded face inside
  a maroon frame; the name in heavy swashed capitals on an upward arch,
  silver blue-grey inside a navy outline (the arch is drawn by theme.js);
  bold umber and navy capitals, everything on the face centred. No scene,
  no columns, no stamp. See docs/themes/sun-cured.md.
*/
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../themes/sun-cured/fonts/cinzel-decorative-900.woff2") format("woff2");
  font-weight: 900;
  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: "Alegreya SC";
  src: url("../themes/sun-cured/fonts/alegreya-sc-700.woff2") format("woff2");
  font-weight: 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: "Alegreya";
  src: url("../themes/sun-cured/fonts/alegreya.woff2") format("woff2");
  font-weight: 400 900;
  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: "Alegreya";
  src: url("../themes/sun-cured/fonts/alegreya-italic.woff2") format("woff2");
  font-weight: 400 900;
  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;
}

@layer theme {
  :root[data-theme="sun-cured"] {
    --sc-maroon: #6b2a2a;
    --sc-butter: #f3e3a0;
    --sc-straw: #f0d98a;
    --sc-gold: #e9c460;
    --sc-pale: #f8eebf;
    --sc-highlight: #edd17a;
    --sc-silver: #b4bdcc;
    --sc-navy: #222b4a;
    --sc-umber: #6a4407;
    --sc-hair: #b8903a;
    --sc-rust: #7a2814;
    --sc-ink: #3a2410;
    --ft-strip: var(--sc-butter);
    --sc-wordmark: "Cinzel Decorative", "Trajan Pro", serif;
    --sc-caps: "Alegreya SC", "Palatino Linotype", Palatino, serif;
    --sc-text: "Alegreya", "Palatino Linotype", Palatino, Georgia, serif;
    /* The maroon below the face, where the footer sits. */
    --sc-foot: 7.5rem;

    color-scheme: light;
    background: var(--sc-maroon);
    color: var(--sc-ink);
    font: 400 1.1875rem/1.62 var(--sc-text);

    body { background: var(--sc-maroon); }

    a { color: var(--sc-rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.17em; }
    a:hover { color: var(--sc-navy); }
    :focus-visible { outline-color: var(--sc-navy); }

    /* The top band, on the maroon. */
    .bar { background: var(--sc-maroon); }
    .bar :focus-visible { outline-color: var(--sc-butter); }
    .bar-next {
      padding: 0 14px;
      font: 700 0.9375rem/1 var(--sc-caps);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--sc-butter);
      background: none;
      border: 0;
      border-bottom: 2px solid var(--sc-butter);
      cursor: pointer;
    }
    .bar-plain { margin: 0; font: 700 0.9375rem/1.3 var(--sc-caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-butter); }

    /* The face: a rounded panel, yellow deepening to gold, with a maroon
       line just inside its edge. It stops short of the footer, which sits
       on the maroon below it. */
    .page { position: relative; isolation: isolate; margin-inline: 8px; padding: 0; }
    .page::before {
      content: "";
      position: absolute;
      inset: 6px 0 var(--sc-foot);
      z-index: -1;
      border-radius: 22px;
      background: linear-gradient(var(--sc-butter), var(--sc-straw) 55%, var(--sc-gold));
      outline: 1.5px solid var(--sc-maroon);
      outline-offset: -7px;
    }
    .page > :not(.deco) { max-width: 44rem; margin-inline: auto; padding-inline: 24px; }
    .page > .masthead { max-width: 52rem; }

    /* The name, centred. Straight until theme.js adds the arch. */
    .masthead { padding-top: 30px; text-align: center; }
    .site-name {
      margin: 0;
      font: 900 clamp(2rem, 8vw, 4rem)/1.1 var(--sc-wordmark);
      letter-spacing: 0.03em;
      text-transform: uppercase;
      color: var(--sc-silver);
      -webkit-text-stroke: 0.07em var(--sc-navy);
      paint-order: stroke fill;
    }
    .site-name a { display: inline-block; color: inherit; text-decoration: none; }
    /* With the arch in place, the link's own text stays for screen readers
       and copying, but takes no room. */
    .site-name a:has(> .sc-arch[data-fit]) { display: block; width: min(100%, 46rem); margin-inline: auto; font-size: 0; line-height: 0; -webkit-text-stroke: 0; }
    .sc-arch { display: block; width: 100%; height: auto; overflow: visible; }
    .sc-arch:not([data-fit]) { position: absolute; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
    .sc-arch text {
      font: 900 100px var(--sc-wordmark);
      letter-spacing: 0.03em;
      fill: var(--sc-silver);
      stroke: var(--sc-navy);
      stroke-width: 9px;
      stroke-linejoin: round;
      paint-order: stroke fill;
    }
    /* The navigation tucks into the hollow under the arch, like the
       descriptor on the pack, once the arch is wide enough to hold it. A
       percentage margin follows the arch's width. */
    @media (min-width: 720px) {
      .masthead:has(.sc-arch[data-fit]) .site-nav ul { margin-top: -7%; }
    }
    .site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 12px 0 0; padding: 0; list-style: none; }
    .site-nav a { display: inline-block; padding: 5px 0; font: 700 1rem/1.3 var(--sc-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-navy); text-underline-offset: 4px; }

    .main { margin-top: 32px; }
    .main:focus { outline: none; }

    /* The post's head, centred like the face. */
    .post-head { margin: 0 0 1.8em; text-align: center; }
    .post-title, .listing-title { margin: 0 0 0.4em; font: 800 clamp(1.9rem, 5.5vw, 2.6rem)/1.15 var(--sc-text); color: var(--sc-navy); text-wrap: balance; }
    .listing-title { text-align: center; }
    .post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.2em; margin: 0; font: 700 0.9375rem/1.5 var(--sc-caps); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-umber); }
    .post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 10px 0 0; padding: 0; font: 700 0.9375rem/1.5 var(--sc-caps); letter-spacing: 0.08em; text-transform: uppercase; }
    .post-tags a { display: inline-block; padding: 4px 0; }

    .post-body { max-width: 36em; }
    .post-body > * { margin: 0 0 1em; }
    .post-body h2 { margin: 1.6em 0 0.4em; font: 800 1.75rem/1.2 var(--sc-text); color: var(--sc-navy); }
    .post-body h3 { margin: 1.4em 0 0.35em; font: 800 1.375rem/1.25 var(--sc-text); color: var(--sc-navy); }
    .post-body :is(h4, h5, h6) { margin: 1.4em 0 0.35em; font: 700 1rem/1.45 var(--sc-caps); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-umber); }
    .post-body :is(ul, ol) { padding-left: 1.3em; }
    .post-body li::marker { color: var(--sc-umber); }
    .post-body li:has(> input[type="checkbox"]) { list-style: none; }
    .post-body dt { font: 700 1rem/1.5 var(--sc-caps); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-navy); }
    .post-body dd { margin: 0 0 0.6em 1.4em; }
    .post-body blockquote { margin: 0 0 1.2em; padding: 0.1em 0 0.1em 1.1em; font-style: italic; border-left: 3px solid var(--sc-umber); }
    .post-body blockquote blockquote { border-left-color: var(--sc-hair); }
    /* A section break: a short double hairline, the face's own line. */
    .post-body hr { width: 5rem; height: 6px; margin: 2.2em auto; border: 0; border-block: 1.5px solid var(--sc-maroon); background: none; }

    .code { margin: 0 0 1.3em; background: var(--sc-pale); border: 1px solid var(--sc-maroon); }
    .code-lang { margin: 0; padding: 8px 14px 0; font: 700 0.875rem/1.4 var(--sc-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-umber); }
    .code pre { margin: 0; padding: 8px 14px 12px; font: 0.9375rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--sc-ink); background: none; }
    .code pre code { font: inherit; }
    .chroma .line.hl { display: block; background: var(--sc-highlight); }
    .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: var(--sc-navy); font-weight: 700; }
    .chroma :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) { color: var(--sc-rust); }
    .chroma :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) { color: var(--sc-umber); font-style: italic; }
    .post-body :not(pre) > code { padding: 0 0.25em; font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; background: var(--sc-pale); }

    .table-scroll table { font-size: 1.0625rem; font-variant-numeric: lining-nums tabular-nums; }
    .table-scroll :is(th, td) { padding: 6px 14px 6px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--sc-hair); }
    .table-scroll th { font: 700 0.875rem/1.35 var(--sc-caps); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-navy); border-bottom: 2px solid var(--sc-umber); }
    .table-scroll .align-right { text-align: right; }
    .table-scroll .align-center { text-align: center; }

    .fig img { padding: 3px; background: var(--sc-pale); border: 1px solid var(--sc-maroon); }
    .fig figcaption { margin-top: 8px; font-style: italic; font-size: 1rem; text-align: center; }

    .footnotes { margin-top: 2.5em; padding-top: 1em; font-size: 1rem; border-top: 1px solid var(--sc-umber); }
    .footnotes hr { display: none; }

    .post-foot { margin-top: 2.5em; }
    .post-nav { display: grid; gap: 10px; }
    .post-nav p { margin: 0; }
    .post-nav-label { display: block; font: 700 0.875rem/1.4 var(--sc-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-umber); }

    /* Home: each post centred, parted by a short umber rule. */
    .post-list { margin: 0; }
    .post-item { margin: 0 0 1.6em; text-align: center; }
    .post-item + .post-item::before { content: ""; display: block; width: 3rem; margin: 0 auto 1.6em; border-top: 2px solid var(--sc-umber); }
    .post-summary-title { margin: 0 0 0.25em; font: 800 1.55rem/1.2 var(--sc-text); text-wrap: balance; }
    .post-summary-title a { color: var(--sc-navy); text-decoration: none; }
    .post-summary-title a:hover { text-decoration: underline; }
    .post-summary-meta { margin: 0 0 0.3em; font: 700 0.875rem/1.5 var(--sc-caps); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-umber); }
    .post-summary-meta .post-reading { margin-left: 0.8em; }
    .post-summary-desc { margin: 0; }

    .term-list { display: grid; gap: 4px; margin: 0; padding: 0; }
    .term-list a { display: inline-block; padding: 4px 0; font: 700 1rem/1.4 var(--sc-caps); letter-spacing: 0.06em; text-transform: uppercase; }

    .rail { margin-top: 2.8em; font-size: 1.0625rem; }
    .rail-section { margin: 0 0 1.6em; }
    .rail-title { margin: 0 0 0.5em; font: 700 0.9375rem/1.4 var(--sc-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-umber); }
    .rail ul { margin: 0; padding: 0; list-style: none; }
    .rail li { padding: 2px 0; }
    .rail a { display: inline-block; padding: 3px 0; }
    .rail-date { margin-left: 6px; font: 700 0.8125rem/1 var(--sc-caps); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-umber); }
    .rail p { margin: 0 0 0.5em; }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .archive-year-label { font: 700 0.9375rem/1.4 var(--sc-caps); letter-spacing: 0.08em; color: var(--sc-navy); }

    /* The bottom band, on the maroon below the face. */
    .page > .site-foot {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: var(--sc-foot);
      margin-top: 3rem;
      font: 700 0.9375rem/1.8 var(--sc-caps);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: var(--sc-butter);
    }
    .site-foot p { margin: 0; }
    .site-foot a { color: var(--sc-butter); }
    .site-foot :focus-visible { outline-color: var(--sc-butter); }

    @media (max-width: 600px) {
      .page { margin-inline: 6px; }
      .page::before { border-radius: 16px; outline-offset: -5px; }
      .page > :not(.deco) { padding-inline: 18px; }
      .masthead { padding-top: 22px; }
      .sc-arch text { stroke-width: 14px; }
    }

    /* Under forced colours, the plain name instead of the arch. */
    @media (forced-colors: active) {
      .sc-arch { display: none; }
      .site-name a:has(> .sc-arch[data-fit]) { display: inline-block; width: auto; font-size: inherit; line-height: inherit; }
    }
  }
}
/*
  The floor: tier 1 of docs/RULES.md, as CSS. This is the last layer, so it
  beats every theme. Don't weaken it to make a theme work; change the theme.
*/
@layer floor {
  /* Global effects belong on .page, never on html or body, because they
     would reach the bar. */
  html, body {
    filter: none;
    transform: none;
    opacity: 1;
    mix-blend-mode: normal;
    zoom: 1;
  }

  /* Nothing pushes the page sideways. */
  body { overflow-wrap: anywhere; }
  img, video, svg, canvas, iframe, embed, object { max-width: 100%; }
  img { height: auto; }
  pre { max-width: 100%; overflow-x: auto; overflow-wrap: normal; }
  .table-scroll { max-width: 100%; overflow-x: auto; }
  .table-scroll table { overflow-wrap: normal; }

  /* Article text stays selectable. */
  .post-body, .post-body * { -webkit-user-select: text; user-select: text; }

  /* Keyboard focus is always visible. */
  :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

  .skip {
    position: absolute;
    left: 8px;
    top: -200px;
    z-index: 2147483647;
    padding: 12px 16px;
    background: #fff;
    color: #000;
    font: 700 16px/1.2 Arial, sans-serif;
  }
  .skip:focus { top: 8px; }

  /* The bar: always at the top, always visible, never transformed. Its
     inner row is locked edge to edge, so Fresh pack sits in the same place
     in every theme. */
  :root:not([data-js]) .bar { display: none; }
  .bar {
    position: sticky;
    top: 0;
    z-index: 2147483000;
    display: block;
    transform: none;
    filter: none;
    opacity: 1;
    visibility: visible;
    clip-path: none;
    mask: none;
    mix-blend-mode: normal;
    direction: ltr;
  }
  .bar-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    min-height: 52px;
    margin: 0;
    padding: 4px 8px;
    transform: none;
    filter: none;
    opacity: 1;
    visibility: visible;
  }
  /* Fresh pack can be restyled, but never hidden, shrunk or wrapped. */
  .bar-next {
    order: 0;
    min-height: 44px;
    min-width: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
    visibility: visible;
    opacity: 1;
  }
  .bar-next[hidden] { display: none; }

  /* The live region speaks to screen readers ("The design changed.") and is
     never seen, in any theme. */
  .sr-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  /* The theme index is linked from every theme's footer, and no theme can
     hide the link. */
  .site-foot-designs { display: block; visibility: visible; opacity: 1; }
  .site-foot .designs-link { display: inline-block; visibility: visible; opacity: 1; }

  /* Anything a theme script injects carries data-ft-deco. The plain theme
     (and so printing) never shows it, even before the script cleans up. */
  :root[data-theme="plain"] [data-ft-deco] { display: none; }

  /* Reduced motion means nothing moves. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none;
      transition: none;
      scroll-behavior: auto;
    }
  }

}
