@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/Anybody-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("/assets/fonts/SplineSansMono-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #141712;
  --paper-deep: #1e221b;
  --ink: #ebe9df;
  --muted: #979d8e;
  --cobalt: #4162ff;
  --flare: #ef4e3a;
  --acid: #d3ff52;
  --fog: #979d8e;
  --rule: rgba(235, 233, 223, 0.24);
  --rule-strong: rgba(235, 233, 223, 0.62);
  --display: "Anybody", Arial, sans-serif;
  --mono: "Spline Sans Mono", Consolas, monospace;
  --gutter: clamp(1rem, 3.6vw, 4.5rem);
  --measure: 70ch;
  --accent: var(--cobalt);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--paper);
}

body.blog-page {
  min-width: 320px;
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.blog-page > main { padding-top: 4.5rem; }

body.blog-page::before {
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 25vw;
  width: 1px;
  background: var(--rule);
  box-shadow: 25vw 0 var(--rule), 50vw 0 var(--rule);
  opacity: 0.14;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select {
  border-radius: 0;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  transform: translateY(-180%);
  background: var(--acid);
  color: var(--paper);
  font: 700 0.72rem/1 var(--mono);
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  pointer-events: none;
}

.accent-cobalt,
[data-accent="cobalt"] {
  --accent: var(--cobalt);
}

.accent-fog,
[data-accent="fog"] {
  --accent: var(--fog);
}

.accent-acid,
[data-accent="acid"] {
  --accent: var(--acid);
}

.accent-flare,
[data-accent="flare"] {
  --accent: var(--flare);
}

.blog-nav {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  min-height: 5rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(20, 23, 18, 0.97);
}

.blog-nav__brand,
.blog-nav .wordmark {
  width: fit-content;
  font-weight: 850;
  font-size: clamp(0.84rem, 1.1vw, 1rem);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-nav__brand span,
.blog-nav .wordmark span {
  color: var(--accent);
}

.blog-nav__context {
  color: var(--muted);
  font: 500 0.68rem/1.25 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

.blog-nav__ops {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font: 500 0.68rem/1 var(--mono);
  text-transform: uppercase;
}

.blog-nav a:not(.blog-nav__brand):not(.wordmark) {
  color: var(--muted);
  text-decoration-color: transparent;
  text-underline-offset: 0.3rem;
}

.blog-nav a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.blog-nav time {
  min-width: 5.5rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.blog-nav__toggle,
[data-blog-menu-toggle] {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.65rem/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.notes-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(14rem, 0.9fr);
  min-height: clamp(24rem, 57vh, 42rem);
  padding: clamp(4.5rem, 11vw, 10rem) var(--gutter) 2.25rem;
  border-bottom: 1px solid var(--rule-strong);
}

.notes-hero__main {
  align-self: end;
}

.notes-hero__kicker,
.notes-hero__index,
.notes-hero__aside,
.eyebrow {
  font: 540 0.7rem/1.45 var(--mono);
  text-transform: uppercase;
}

.notes-hero__kicker,
.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent);
}

.notes-hero h1,
.notes-hero__title {
  max-width: 12ch;
  margin: 0;
  font-weight: 780;
  font-size: clamp(3.15rem, 9vw, 9rem);
  font-variation-settings: "wdth" 96;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.notes-hero__aside {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  padding-left: clamp(1.25rem, 3vw, 3rem);
  border-left: 1px solid var(--rule);
  color: var(--muted);
}

.notes-hero__aside p {
  max-width: 30ch;
  margin: 0;
}

.notes-hero__index {
  align-self: end;
  color: var(--ink);
}

.notes-filters {
  display: grid;
  grid-template-columns: minmax(11rem, 1.5fr) repeat(2, minmax(8rem, 0.75fr)) auto;
  gap: 0;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule-strong);
}

.notes-filters label {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 0.9rem 0;
  color: var(--muted);
  font: 520 0.62rem/1 var(--mono);
  text-transform: uppercase;
}

.notes-filters label + label {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.notes-filters input,
.notes-filters select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: 500 0.78rem/1 var(--mono);
}

.notes-filters select option {
  background: var(--paper-deep);
  color: var(--ink);
}

.notes-filters button {
  align-self: stretch;
  min-width: 7rem;
  padding: 1rem;
  border: 0;
  border-left: 1px solid var(--rule-strong);
  background: var(--accent);
  color: var(--paper);
  font: 750 0.67rem/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.notes-filters button:hover {
  background: var(--ink);
}

.notes-ledger,
.notes-list {
  padding: 0 var(--gutter);
}

.notes-ledger__head,
.notes-list__head {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(12rem, 0.42fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--muted);
  font: 500 0.62rem/1 var(--mono);
  text-transform: uppercase;
}
.notes-ledger__head > :last-child,
.notes-list__head > :last-child { text-align: right; }
.notes-ledger__head a,
.notes-list__head a { text-underline-offset: 0.2rem; }

.note-card {
  --card-accent: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.42fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  min-height: 14rem;
  padding: clamp(1.5rem, 3.5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--rule-strong);
  color: inherit;
  text-decoration: none;
}

.note-card.accent-cobalt,
.note-card[data-accent="cobalt"] { --card-accent: var(--cobalt); }
.note-card.accent-fog,
.note-card[data-accent="fog"] { --card-accent: var(--fog); }
.note-card.accent-acid,
.note-card[data-accent="acid"] { --card-accent: var(--acid); }
.note-card.accent-flare,
.note-card[data-accent="flare"] { --card-accent: var(--flare); }

.note-card::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--card-accent);
  content: "";
  transition: width 180ms ease-out;
}

.note-card:hover::before,
.note-card:focus-within::before {
  width: 100%;
}

.note-card__number,
.note-card__meta,
.note-card-meta,
.note-card time {
  color: var(--muted);
  font: 500 0.68rem/1.45 var(--mono);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.note-card__number {
  color: var(--card-accent);
}

.note-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}
.note-card__meta span { color: var(--card-accent); }

.note-card__main {
  align-self: start;
}

.note-card__title,
.note-card-title,
.note-card h2,
.note-card h3 {
  max-width: 19ch;
  margin: 0;
  font-weight: 720;
  font-size: clamp(1.75rem, 4vw, 4.25rem);
  font-variation-settings: "wdth" 82;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.note-card__title a,
.note-card-title a,
.note-card h2 a,
.note-card h3 a {
  text-decoration: none;
}

.note-card:hover .note-card__title,
.note-card:hover .note-card-title,
.note-card:hover h2,
.note-card:hover h3 {
  color: var(--card-accent);
}

.note-card__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.note-card__dek,
.note-card-dek,
.note-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.note-card__tags,
.note-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 500 0.63rem/1.35 var(--mono);
  text-transform: uppercase;
}

.note-card__tags li::before,
.note-card-tags li::before {
  color: var(--card-accent);
  content: "/ ";
}
.note-card__tags a,
.note-card-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration-color: transparent;
  text-underline-offset: 0.2rem;
}
.note-card__tags a:hover,
.note-card-tags a:hover { color: var(--ink); text-decoration-color: var(--card-accent); }
.note-card__read {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font: 600 0.66rem/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}
.note-card__read span { color: var(--card-accent); }

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(14rem, 0.75fr);
  min-height: min(78vh, 54rem);
  padding: clamp(5rem, 11vw, 10rem) var(--gutter) 2.5rem;
  border-bottom: 1px solid var(--rule-strong);
}

.article-hero::after {
  position: absolute;
  right: var(--gutter);
  bottom: -1px;
  width: min(30vw, 26rem);
  height: 0.5rem;
  background: var(--accent);
  content: "";
}

.article-hero__main {
  align-self: end;
}

.article-hero h1,
.article-hero__title {
  max-width: 13ch;
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.7rem, 7.7vw, 8.5rem);
  font-variation-settings: "wdth" 80;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.article-hero__dek {
  max-width: 48ch;
  margin: clamp(1.5rem, 3vw, 3rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
}

.article-meta {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.15rem;
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 3rem);
  border-left: 1px solid var(--rule);
  font: 500 0.68rem/1.45 var(--mono);
  text-transform: uppercase;
}

.article-meta div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
}

.article-meta dt {
  color: var(--muted);
}

.article-meta dd {
  margin: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 0.55fr) minmax(0, 1.65fr) minmax(8rem, 0.35fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 7rem) var(--gutter);
}

.article-toc {
  position: sticky;
  top: 2rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--accent);
  font: 500 0.67rem/1.45 var(--mono);
}

.article-toc__title,
.article-toc > strong {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  text-transform: uppercase;
}

.article-toc ol,
.article-toc ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  padding-left: 0.8rem;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a[aria-current="true"] {
  border-color: var(--accent);
  color: var(--ink);
}

.article-body {
  width: 100%;
  max-width: var(--measure);
  min-width: 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.78;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > p:first-of-type {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  position: relative;
  scroll-margin-top: 2rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 84;
  line-height: 1;
  letter-spacing: -0.035em;
}

.article-body h2 {
  margin: 4.5rem 0 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-strong);
  font-weight: 750;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  text-transform: uppercase;
}

.article-body h3 {
  margin: 3rem 0 1rem;
  color: var(--accent);
  font-weight: 680;
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
}

.article-body h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body pre,
.article-body blockquote,
.article-body table,
.article-body figure {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.article-body a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.article-body a:hover {
  background: var(--accent);
  color: var(--paper);
  text-decoration-color: transparent;
}

.article-body ul,
.article-body ol {
  padding-left: 1.55rem;
}

.article-body li {
  margin: 0.6rem 0;
  padding-left: 0.5rem;
}

.article-body li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.article-body blockquote {
  margin-right: 0;
  margin-left: 0;
  padding: 1.4rem 0 1.4rem clamp(1.2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  border-left: 0.5rem solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.article-body blockquote p {
  margin: 0;
}

.article-body code,
.article-body kbd {
  padding: 0.12em 0.32em;
  background: var(--paper-deep);
  color: var(--acid);
  font: 0.88em/1.5 var(--mono);
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--accent);
  background: #0c0e0b;
  color: var(--ink);
  tab-size: 2;
  white-space: pre;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
}

.article-body hr {
  margin: 4rem 0;
  border: 0;
  border-top: 1px solid var(--rule-strong);
}

.article-body img,
.article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
}

.article-body figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font: 500 0.68rem/1.45 var(--mono);
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font: 500 0.76rem/1.45 var(--mono);
}

.article-body th,
.article-body td {
  min-width: 8rem;
  padding: 0.8rem;
  border: 1px solid var(--rule);
  text-align: left;
}

.article-body th {
  background: var(--paper-deep);
  color: var(--accent);
  text-transform: uppercase;
}

.heading-anchor {
  position: absolute;
  right: calc(100% + 0.55rem);
  width: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.75rem/1.5 var(--mono);
  cursor: pointer;
  opacity: 0;
}

.article-body h2:hover .heading-anchor,
.article-body h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.heading-anchor[data-copied="true"] {
  color: var(--acid);
  opacity: 1;
}

.article-layout__rail {
  color: var(--muted);
  font: 500 0.63rem/1.5 var(--mono);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.article-next {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding: clamp(3rem, 8vw, 8rem) var(--gutter);
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-deep);
  color: inherit;
  text-decoration: none;
}

.article-next__label {
  color: var(--accent);
  font: 550 0.68rem/1.45 var(--mono);
  text-transform: uppercase;
}

.article-next__title,
.article-next h2 {
  max-width: 16ch;
  margin: 0;
  font-weight: 760;
  font-size: clamp(2.2rem, 6vw, 6.7rem);
  font-variation-settings: "wdth" 80;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.article-next:hover .article-next__title,
.article-next:hover h2 {
  color: var(--accent);
}

.blog-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: end;
  min-height: 11rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--rule-strong);
  color: var(--muted);
  font: 500 0.66rem/1.45 var(--mono);
  text-transform: uppercase;
}

.blog-footer > :last-child {
  text-align: right;
}

.blog-footer a {
  color: var(--ink);
  text-underline-offset: 0.25rem;
}

.empty,
.error,
.notes-empty,
.notes-error {
  margin: clamp(2rem, 7vw, 7rem) var(--gutter);
  padding: clamp(2rem, 5vw, 5rem);
  border-top: 3px solid var(--muted);
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-deep);
}

.error,
.notes-error {
  border-top-color: var(--flare);
}

.empty h1,
.empty h2,
.error h1,
.error h2,
.notes-empty h2,
.notes-error h2 {
  margin: 0 0 1rem;
  font-weight: 760;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.empty p,
.error p,
.notes-empty p,
.notes-error p {
  max-width: 55ch;
  color: var(--muted);
}

@media (max-width: 900px) {
  .blog-nav {
    grid-template-columns: 1fr auto;
  }

  .blog-nav__context {
    display: none;
  }

  .blog-nav__toggle,
  [data-blog-menu-toggle] {
    display: inline-grid;
    place-items: center;
  }

  [data-blog-menu] {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--rule-strong);
    background: var(--paper-deep);
  }

  [data-blog-menu].is-open {
    display: flex;
  }

  [data-blog-menu] a,
  [data-blog-menu] time {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .blog-nav__ops:not([data-blog-menu]) {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 0.75rem 0;
    border-top: 1px solid var(--rule);
  }

  .notes-hero,
  .article-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .notes-hero__aside,
  .article-meta {
    min-height: 10rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .notes-filters {
    grid-template-columns: 1fr 1fr;
  }

  .notes-filters label:first-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .notes-filters button {
    border-top: 1px solid var(--rule-strong);
    border-left: 0;
  }

  .notes-ledger__head,
  .notes-list__head { display: none; }

  .note-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
  }

  .note-card__side { grid-column: 1; }

  .article-layout {
    grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
  }

  .article-layout__rail {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }

  body.blog-page::before {
    left: 50vw;
    box-shadow: none;
  }

  .blog-nav {
    min-height: 4.2rem;
  }

  .notes-hero,
  .article-hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .notes-hero h1,
  .notes-hero__title {
    font-size: clamp(3rem, 19vw, 5.5rem);
  }

  .article-hero h1,
  .article-hero__title {
    font-size: clamp(2.55rem, 15vw, 5rem);
  }

  .notes-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .notes-filters label,
  .notes-filters label + label {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
    border-left: 0;
  }

  .notes-filters label:first-child { grid-column: 1 / -1; }
  .notes-filters label:nth-of-type(2) { padding-right: 0.75rem; }
  .notes-filters label:nth-of-type(3) { padding-left: 0.75rem; border-left: 1px solid var(--rule); }

  .notes-filters button {
    grid-column: 1 / -1;
    min-height: 3.5rem;
  }

  .note-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 0;
  }

  .note-card__side {
    grid-column: 1;
  }

  .article-meta div {
    grid-template-columns: 5rem 1fr;
  }

  .article-layout {
    display: block;
    padding-top: 2rem;
  }

  .article-toc {
    position: static;
    margin-bottom: 3rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .heading-anchor {
    position: static;
    display: inline;
    margin-left: 0.5rem;
    opacity: 1;
  }

  .article-next {
    grid-template-columns: 1fr;
  }

  .blog-footer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .blog-footer > :last-child {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

@media print {
  :root {
    color-scheme: light;
    --paper: #ffffff;
    --paper-deep: #ffffff;
    --ink: #111111;
    --muted: #4a4a4a;
    --rule: #b8b8b8;
    --rule-strong: #555555;
  }

  @page {
    margin: 18mm 16mm 20mm;
  }

  body.blog-page {
    background: #ffffff;
    color: #111111;
    font-size: 10.5pt;
  }

  body.blog-page::before,
  .skip-link,
  .scroll-progress,
  .blog-nav,
  .article-toc,
  .article-layout__rail,
  .article-next,
  .blog-footer,
  .heading-anchor,
  .notes-filters {
    display: none !important;
  }

  .article-hero {
    display: block;
    min-height: 0;
    padding: 0 0 10mm;
  }

  .article-hero::after {
    display: none;
  }

  .article-hero h1,
  .article-hero__title {
    max-width: none;
    font-size: 38pt;
    line-height: 0.95;
  }

  .article-meta {
    margin-top: 8mm;
    padding: 4mm 0 0;
    border-top: 1px solid #555555;
    border-left: 0;
  }

  .article-layout {
    display: block;
    padding: 10mm 0 0;
  }

  .article-body {
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .article-body h2,
  .article-body h3,
  .article-body h4 {
    break-after: avoid;
  }

  .article-body pre,
  .article-body blockquote,
  .article-body figure,
  .article-body table {
    break-inside: avoid;
  }

  .article-body a {
    color: #111111;
    text-decoration: underline;
  }

  .article-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font: 8pt/1.3 var(--mono);
  }

  .article-body pre {
    border: 1px solid #777777;
    background: #f2f2f2;
    color: #111111;
    white-space: pre-wrap;
  }
}
