body[data-page="blog"], body[data-page="post"] { background: #080808; color-scheme: dark; }
.journal {
  color-scheme: dark;
  color: #f7f7f7;
  background: #080808;
  --reading-width: 800px;
  --reading-gutter: clamp(20px, 5vw, 72px);
  --copy: #ccc;
  --rule: #494949;
}
.journal :is(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.journal .breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-block: 13px; color: #bababa; font-size: 14px; line-height: 1.5;
}
.breadcrumbs a:hover { color: var(--accent-light); text-decoration: underline; }
.journal .breadcrumbs [aria-current] { color: #eee; }
.journal-banner {
  position: relative; isolation: isolate;
  display: flex; align-items: center; min-height: clamp(250px, 22vw, 370px);
  padding-block: 48px;
  background-color: #101010;
}
.journal-banner > .fiber-field {
  --fiber-y: 47%;
  --fiber-shade: linear-gradient(90deg, #0c0908 5%, #0c0908e6 30%, #0d090726 80%);
}
.journal-banner h1 {
  margin: 0; font-size: clamp(36px, 3.5vw, 60px); line-height: 1.15;
  letter-spacing: -.035em; font-weight: 650;
}
.journal-banner p { margin-top: 18px; color: #eee; font-size: clamp(16px, 1.35vw, 21px); }
.journal .catalog { min-height: 44vh; padding-block: clamp(40px, 4vw, 72px) 80px; }
.catalog-tools {
  display: flex; justify-content: space-between; align-items: center;
  gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.catalog-tools[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-button {
  min-height: 44px; padding: 8px 17px; border: 1px solid #686868;
  color: #eee; background: #101010; font: inherit; font-size: 15px; cursor: pointer;
}
.filter-button:hover { background: #242424; border-color: var(--accent-light); }
.filter-button[aria-pressed="true"] { color: #0a0a0a; border-color: var(--accent); background: var(--accent); }
.search-label {
  display: flex; gap: 12px; align-items: center; border: 1px solid #777;
  padding-inline: 12px; background: #141414; color: white;
}
.search-label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-label span { width: 15px; height: 15px; position: relative; border: 1.5px solid currentColor; border-radius: 50%; }
.search-label span::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg); }
.search-label input {
  width: clamp(135px, 15vw, 220px); min-width: 0; min-height: 44px; padding: 5px 0;
  background: transparent; color: white; border: 0; font: inherit; font-size: 16px;
}
.journal .search-label input:focus-visible { outline: none; }
.search-label input::placeholder { color: #b8b8b8; }
.catalog-entry {
  display: grid; grid-template-columns: minmax(115px, .6fr) minmax(0, 2.4fr) auto;
  gap: clamp(22px, 3.5vw, 56px); align-items: baseline;
  padding-block: clamp(22px, 2.5vw, 40px); border-bottom: 1px solid var(--rule); overflow-wrap: anywhere;
}
.journal .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #bdbdbd; }
.journal .meta .category { color: #ededed; font-weight: 600; }
.journal .meta time { color: #bdbdbd; font-variant-numeric: tabular-nums; }
.journal .meta time::before { display: none; }
.catalog-entry .meta { display: grid; justify-items: start; gap: 5px; }
.catalog-entry h2 {
  margin: 0; color: white; font-size: clamp(21px, 1.85vw, 30px); line-height: 1.4; letter-spacing: -.025em; font-weight: 650;
}
.catalog-entry:hover h2 { color: var(--accent-light); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.catalog-entry .summary { max-width: 780px; margin: 7px 0 0; color: var(--copy); font-size: 16px; line-height: 1.65; }
.catalog-entry .arrow { align-self: center; color: var(--accent); }
.journal .feedback { color: var(--copy); padding-block: 26px; }
.journal.article-shell { min-height: 70vh; padding: 0 0 60px; }
.article-shell .article, .article-shell .article-status { max-width: none; margin: 0; }
.article-head, .article-shell .article-status {
  padding: clamp(36px, 4.5vw, 74px) max(var(--reading-gutter), calc((100% - var(--reading-width)) / 2));
  margin: 0; background: #141414; border-block: 1px solid #272727;
}
.article-head .meta { gap: 14px; }
.article-head .meta time { border-left: 1px solid #727272; padding-left: 14px; }
.article h1, .article-status h1 {
  margin: 14px 0 0; max-width: 100%; color: white; overflow-wrap: anywhere;
  font-size: clamp(30px, 3.15vw, 52px); line-height: 1.23; font-weight: 650; letter-spacing: -.035em;
}
.article-status h1 { margin-top: 0; }
.article-head .summary, .article-status .summary { margin-top: 16px; color: #d4d4d4; font-size: 18px; line-height: 1.65; }
.article-cover, .prose {
  width: min(calc(100% - var(--reading-gutter) * 2), var(--reading-width));
  margin-inline: auto;
}
.article-cover { display: block; height: auto; max-height: 520px; object-fit: contain; margin-top: 40px; }
.prose { padding-top: 12px; overflow-wrap: anywhere; color: #dedede; font-size: 17px; line-height: 1.9; }
.prose h2, .prose h3, .prose h4 {
  margin: 36px 0 10px; font-size: clamp(22px, 2vw, 30px); line-height: 1.4;
  font-weight: 650; letter-spacing: -.025em; color: white;
}
.prose h3, .prose h4 { font-size: 21px; }
.prose p, .prose ol, .prose ul { margin-block: 14px; }
.prose p { white-space: normal; }
.prose ol, .prose ul { padding-left: 1.7em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.prose a:hover { color: var(--accent-light); }
.prose code, .prose pre { color: #f6f6f6; background: #232323; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 16px; }
.prose code { padding: .1em .25em; font-size: .92em; }
.prose pre code { padding: 0; }
.prose blockquote { margin: 22px 0; padding-left: 18px; border-left: 2px solid #888; }
.journal .back-link {
  display: flex; align-items: center; gap: 12px; width: fit-content; margin: 38px auto 0;
  padding: 9px 0; color: var(--accent); font-size: 15px; border-bottom: 1px solid currentColor;
}
@media (max-width: 760px) {
  .catalog-tools { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .search-label input { width: 100%; }
  .catalog-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .catalog-entry .meta { display: flex; grid-column: 1 / -1; gap: 12px; align-items: center; }
}
@media (max-width: 600px) {
  .journal-banner { min-height: 215px; }
  .journal-banner > .fiber-field { --fiber-x: 62%; --fiber-y: 50%; }
  .journal .breadcrumbs { padding-block: 10px; }
  .journal .catalog { padding-bottom: 46px; }
  .filters { gap: 6px; }
  .filter-button { font-size: 14px; padding-inline: 12px; }
  .article-head .summary, .article-status .summary, .prose { font-size: 16px; }
}
