*, *::before, *::after { box-sizing: border-box; }
:root {
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --film: 'Barlow Condensed', Impact, sans-serif;
  --wide: 'Zalando Sans Expanded', 'Arial Black', sans-serif;
  --out: cubic-bezier(.19, 1, .22, 1);
  --in-out: cubic-bezier(.65, 0, .35, 1);
  font-family: var(--sans);
  font-synthesis: none;
}
html { background: var(--paper); color: var(--ink); scroll-padding-top: 1rem; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
figure, h1, h2, h3, p, ul, ol { margin: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--select, #222); color: var(--select-ink, white); }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; top: 12px; left: 12px; padding: 12px 20px; background: var(--paper); color: var(--ink); }
.micro { font: 400 .75rem/1.5 var(--mono); }
.wrap { width: min(100%, 1600px); margin-inline: auto; padding-inline: clamp(1.15rem, 4.3vw, 4.75rem); }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.publisher { display: inline-flex; align-items: center; gap: 8px; font: 700 1.14rem/1 var(--sans); letter-spacing: -.065em; text-decoration: none; }
.top-links { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 34px); }
.top-links a, .top-links button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; min-height: 40px; }
.top-links a, .top-links button, .quiet-link {
  background: none; border: 0; font: 500 .875rem/1.3 var(--sans); color: inherit;
  text-decoration: none; text-underline-offset: 4px;
}
.top-links a:hover, .top-links button:hover, .quiet-link:hover { text-decoration: underline; }
.search-glyph { display: inline-block; flex: none; width: 13px; height: 13px; margin-right: 2px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.search-glyph::after { position: absolute; content: ''; background: currentColor; width: 6px; height: 1.5px; right: -5px; bottom: -2px; transform: rotate(45deg); }
#contents { scroll-margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: .15rem 1.2rem; }
.filters button { background: none; border: 0; padding: 9px 0; color: inherit; font: 500 .875rem/1.35 var(--sans); }
.filters button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.entries { padding: 0; list-style: none; }
.entry {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(90px, 13%) 62px 20px;
  gap: clamp(6px, 1.4vw, 25px); align-items: center;
  text-decoration: none; border-top: 1px solid var(--line); min-height: 80px; padding-block: 15px;
}
.entry-title { transition: transform .28s var(--out); }
.entry-num, .entry-time, .entry-cat { font: 400 .78rem/1.4 var(--mono); }
.entry-mark { width: 10px; height: 10px; position: relative; border: solid currentColor; border-width: 1px 1px 0 0; }
.entry-mark::before { content: ''; display: block; width: 14px; height: 1px; background: currentColor; transform: rotate(-45deg); transform-origin: right; position: absolute; right: 0; top: 0; }
@media (hover:hover) { .entry:hover .entry-title { transform: translateX(5px); } }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.5rem 2.2rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem 1.8rem; }
.footer-inner a { font-size: .87rem; text-underline-offset: 4px; }
.footer-inner .publisher { font-size: 1.1rem; }
.dialog-open { overflow: hidden; }
.search-dialog { border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); background: var(--paper); color: var(--ink); width: min(610px, calc(100% - 28px)); max-height: 78vh; max-height: 78dvh; border-radius: var(--dialog-radius, 0); }
.search-dialog::backdrop { background: rgb(10 10 10 / .68); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.search-head h2 { font: var(--search-title, 500 2.4rem/1 var(--sans)); letter-spacing: -.035em; }
.close-search { border: 1px solid var(--line); background: transparent; width: 40px; height: 40px; font: 300 1.8rem/1 var(--sans); }
#journal-query { width: 100%; min-height: 49px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; border-radius: 0; font-size: 1.05rem; }
#journal-query::placeholder { color: var(--muted); }
#search-count { padding: 18px 0 10px; color: var(--muted); }
#search-results { list-style: none; padding: 0; }
#search-results a { display: grid; gap: 5px; padding: 12px 0; text-decoration: none; border-top: 1px solid var(--line); }
#search-results a:hover span { text-decoration: underline; text-underline-offset: 3px; }
#search-results small { color: var(--muted); }
.article-shell { max-width: 1440px; margin: auto; padding: 0 clamp(1.15rem, 5vw, 5.5rem) clamp(42px, 6vw, 90px); }
.article-topline { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.article-edition { font: 400 1.5rem/1 var(--serif); }
.back-link { font-size: .875rem; text-underline-offset: 4px; }
.article-head { padding: clamp(38px, 6vw, 90px) 0 clamp(32px, 4vw, 60px); }
.article-folio { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.article-head h1 { margin: .22em 0; max-width: 19ch; text-wrap: balance; }
.article-deck { max-width: 52ch; line-height: 1.45; }
.article-byline { margin-top: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .875rem; }
.article-layout { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 62ch) 1fr; gap: clamp(16px, 4vw, 68px); padding-block: clamp(32px, 4vw, 66px); border-top: 1px solid var(--line); }
.article-margin { display: flex; align-items: flex-start; gap: 8px; flex-direction: column; }
.prose { font: 400 clamp(1.08rem, 1.4vw, 1.28rem)/1.66 Georgia, serif; overflow-wrap: break-word; }
.prose h2 { margin-bottom: 1rem; text-wrap: balance; }
.prose p + p { margin-top: 1.1em; }
.prose code { font: 400 .82em/1.4 var(--mono); overflow-wrap: anywhere; }
.author-note { margin-top: 1.6rem; border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.author-note h3 { font: 600 .875rem/1.45 var(--sans); margin-bottom: .4rem; }
.author-note p { font-size: .93em; }
.read-original { display: inline-block; margin-top: 1.8em; font: 600 .95rem/1.5 var(--sans); text-underline-offset: 5px; }
.article-next { display: grid; gap: .65rem; padding-top: 1.45rem; border-top: 1px solid var(--line); }
.article-next a { width: fit-content; font-size: clamp(1.25rem, 2vw, 2rem); text-underline-offset: 5px; }
.no-script { padding: 20px; text-align: center; }
@media(max-width:720px) {
  .topbar { min-height: 53px; gap: 10px; }
  .entry { grid-template-columns: 24px minmax(0,1fr) auto; row-gap: 5px; min-height: 70px; }
  .entry-num { grid-column: 1; grid-row: 1 / 3; }
  .entry-title { grid-column: 2; grid-row: 1; }
  .entry-cat { grid-column: 2; grid-row: 2; font-size: .75rem; }
  .entry-time { grid-column: 3; grid-row: 1 / 3; font-size: .75rem; }
  .entry-mark { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-margin { flex-direction: row; align-items: center; }
  .footer-inner { align-items: baseline; }
  .footer-inner nav { gap:.75rem 1rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body[data-input="key"] *, body[data-input="key"] *::before, body[data-input="key"] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
@media(max-width:350px) {
  .topbar { gap:5px; }
  .top-links { gap:8px; }
  .top-links a, .top-links button { font-size:.8rem; }
  .top-links .search-glyph { display:none; }
  .topbar .publisher { font-size:1.02rem; }
}
