@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-italic.woff2") format("woff2"); }

  :root { --bg: #0b0b0b; --fg: #e6e3dc; --dim: #85817a; --faint: #2a2825; --gold: #EDBB45; --gold-dim: #b8913a;
          --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
          --mark: 54px; /* wordmark height; the waterline sits at 66.07% of it */ }
  * { box-sizing: border-box; }
  html { background: var(--bg); color: var(--fg); }
  body { margin: 0; font: 15.5px/1.75 var(--mono); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: underline; text-decoration-color: #4a4742; text-underline-offset: 3px; }
  a:hover { text-decoration-color: var(--gold); }

  .page { max-width: 78ch; margin: 0 auto; padding-inline: 24px; }

  /* The waterline: one gold line across the whole page, through the gaps
     in the wordmark, with the navigation sitting on it. */
  .mast { position: relative; margin-top: 64px; margin-bottom: 36px; height: var(--mark); }
  .mast::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--mark) * .6607 - 1px); height: 2px; background: var(--gold); }
  .mast .page { position: relative; height: 100%; }
  .mast svg { position: relative; height: var(--mark); width: auto; display: block; margin-left: -5px; }
  .mast nav { position: absolute; right: 12px; top: calc(var(--mark) * .6607 - 11px); line-height: 22px; font-size: 13.5px;
              background: var(--bg); padding: 0 12px; letter-spacing: .03em; }
  .mast nav a { text-decoration: none; color: var(--dim); margin: 0 9px; }
  .mast nav a:hover { color: var(--gold); }

  /* Keep the header gap independent of the content container's padding. */
  main { display: flow-root; }
  h2 { font: 500 13px/1 var(--mono); letter-spacing: .18em; color: var(--fg); margin: 46px 0 14px; }
  h2:first-child { margin-top: 0; }
  .body { padding-left: 7ch; }
  p { margin: 0 0 14px; }
  .dim { color: var(--dim); }
  em { font-style: italic; color: #f2efe8; }

  pre { margin: 0 0 14px; padding: 0; font: 14px/1.7 var(--mono); color: #cfccc4; overflow-x: auto; }
  .k { color: var(--gold-dim); }

  ul.plain { list-style: none; margin: 0 0 14px; padding: 0; }
  ul.plain li { padding-left: 3ch; text-indent: -3ch; }
  ul.plain li::before { content: "-  "; color: var(--dim); white-space: pre; }
  ul.plain .next { color: var(--dim); }

  /* Screenshot carousel: CSS scroll-snap. */
  .shots { margin: 0 0 14px; }
  .track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
  .frame { aspect-ratio: 16 / 10; border: 1px solid var(--faint);
           background: repeating-linear-gradient(0deg, transparent 0 31px, #141412 31px 32px),
                       repeating-linear-gradient(90deg, transparent 0 31px, #141412 31px 32px), #0e0e0d;
           display: grid; place-items: center; color: #4b4843; font-size: 13px; letter-spacing: .1em; }
  .shot figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }
  .dots { display: flex; gap: 10px; padding-top: 6px; }
  .dots a { width: 22px; height: 2px; background: var(--faint); text-decoration: none; }
  .dots a:hover, .dots a:focus { background: var(--gold); }

  .news { list-style: none; margin: 0; padding: 0; }
  .news li { display: flex; gap: 3ch; }
  .news time { color: var(--dim); font-variant-numeric: tabular-nums; }

  footer { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px;
           margin-top: 64px; padding: 18px 0 40px; border-top: 1px solid var(--faint); }
  footer a { text-decoration: none; }
  .badge { display: block; width: 78px; margin: 0 auto 56px; text-decoration: none; }
  .badge img { display: block; width: 78px; height: 51px; }

  @media (max-width: 640px) {
    body { font-size: 14px; }
    :root { --mark: 40px; }
    .mast { margin-top: 40px; }
    .mast nav { right: 4px; padding: 0 6px; font-size: 12.5px; }
    .mast nav a { margin: 0 5px; }
    .body { padding-left: 0; }
    pre { font-size: 12px; }
  }

/* Shared page and accessibility details. */
a:focus-visible, .track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.brand { text-decoration: none; }
.skip { position: absolute; left: 12px; top: -100px; padding: 8px; background: var(--bg); z-index: 2; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 { font: 500 22px/1.5 var(--mono); margin: 0 0 28px; }
.news { margin-top: 0; }
.news li { align-items: baseline; }
.news time { flex-shrink: 0; }
.draft, .note, .byline, .back { font-size: 12px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--dim); }
.post h1 { margin-bottom: 8px; }
.post .byline { margin-bottom: 36px; }
.prose h2 { line-height: 1.5; }
.prose p { margin-bottom: 20px; }
pre code { font: inherit; }
.frame { display: block; width: 100%; height: auto; object-fit: contain; }
footer { gap: 16px; }
.mast nav a[aria-current] { color: var(--fg); }
@media (max-width: 360px) {
  .mast nav { right: 8px; padding: 0 4px; font-size: 12px; }
  .mast nav a { margin: 0 4px; }
  .news li { gap: 2ch; }
  footer { font-size: 11px; }
}
