:root {
  --paper: #f6f1e8;
  --paper-raised: #fcf9f3;
  --paper-sunken: #efe7d8;
  --ink: #1c1915;
  --ink-soft: #3c372f;
  --ink-muted: #6d665c;
  --rule: #e0d5c4;
  --rule-strong: #1c1915;
  --rubric: #9a3d30;
  --forest: #2d4a3e;
  --chip: #efe7d8;
  --chip-active: #1c1915;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 36px rgba(28, 25, 21, 0.07);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure: 74rem;
  --page: 74rem;
  --timeline-rail: 11.25rem;
  --timeline-gap: 2.25rem;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(28, 25, 21, 0.11) 0.45px, transparent 0.65px),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(28, 25, 21, 0.028) 31px,
      rgba(28, 25, 21, 0.028) 32px
    ),
    radial-gradient(1100px 420px at 50% -12%, rgba(255, 255, 255, 0.72), transparent 62%);
  background-size: 18px 18px, auto, auto;
  background-attachment: fixed;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.05rem;
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(154, 61, 48, 0.16);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.masthead {
  padding: 1.6rem 0 0;
}

.masthead-inner {
  text-align: center;
  padding-top: 0.55rem;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rubric);
}

.wordmark {
  margin: 0.15rem 0 0.05rem;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.wordmark a {
  text-decoration: none;
}

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.15rem;
}

.issue-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.85rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.issue-line::before,
.issue-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
  opacity: 0.35;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  max-width: none;
  margin: 1.35rem 0 0;
  padding: 0.45rem max(1.25rem, calc((100% - var(--page)) / 2)) 0.55rem;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(14px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.lede-block {
  max-width: none;
  margin: 2.2rem 0 1.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.lede-block h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lede-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.catalog-tools {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.15rem 0.75rem 2.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: rgba(252, 249, 243, 0.72);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search input:focus {
  border-color: rgba(154, 61, 48, 0.55);
  box-shadow: 0 0 0 4px rgba(154, 61, 48, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(28, 25, 21, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: rgba(28, 25, 21, 0.28);
  color: var(--ink);
  background: var(--paper-raised);
}

.chip.is-active {
  background: var(--chip-active);
  border-color: var(--chip-active);
  color: var(--paper);
}

.chip-count {
  margin-left: 0.35rem;
  opacity: 0.7;
}

.result-meta {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

body.is-topic-catalog #catalog-shell {
  width: 100%;
  max-width: none;
}

body.is-topic-catalog #catalog-shell > .lede-block,
body.is-topic-catalog #catalog-shell > .catalog-tools,
body.is-topic-catalog #catalog-shell > .result-meta {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.timeline-layout {
  display: grid;
  width: 100%;
  padding-bottom: 3.5rem;
  grid-template-columns: minmax(0, 1fr) min(var(--page), calc(100% - 2.5rem)) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}

.timeline-layout > .journal-timeline {
  grid-column: 1;
  justify-self: end;
  width: min(var(--timeline-rail), 100%);
  padding-right: var(--timeline-gap);
  position: sticky;
  top: 1.5rem;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.timeline-layout > .journal-timeline::-webkit-scrollbar {
  width: 5px;
}

.timeline-layout > .journal-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-layout > .journal-timeline::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 3px;
}

.timeline-layout > .journal-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.timeline-layout > .timeline-main {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.timeline-main .paper {
  width: 100%;
  margin-inline: 0;
}

@media (max-width: 1400px) {
  .timeline-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-layout > .journal-timeline {
    display: none;
  }

  .timeline-layout > .timeline-main {
    grid-column: 1;
    width: min(var(--page), calc(100% - 2.5rem));
    margin-inline: auto;
  }
}

.journal-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journal-timeline__item {
  position: relative;
  margin: 0;
  padding: 0 0 1.45rem 1.35rem;
}

.journal-timeline__item:last-child {
  padding-bottom: 0;
}

.journal-timeline__dot {
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  z-index: 1;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.journal-timeline__line {
  position: absolute;
  left: 4px;
  top: 0.95rem;
  bottom: 0.1rem;
  width: 1px;
  background: var(--rule-strong);
  pointer-events: none;
}

.journal-timeline__item:last-child .journal-timeline__line {
  display: none;
}

.journal-timeline__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.journal-timeline__link:hover .journal-timeline__title,
.journal-timeline__link:focus-visible .journal-timeline__title {
  color: var(--rubric);
}

.journal-timeline__date {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.journal-timeline__title {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-soft);
  overflow-wrap: break-word;
  transition: color 160ms ease;
}

.journal-timeline__item.is-active .journal-timeline__dot,
.journal-timeline__item.is-current .journal-timeline__dot {
  background: var(--rubric);
  border-color: var(--rubric);
  box-shadow: 0 0 0 3px rgba(154, 61, 48, 0.14);
}

.journal-timeline__item.is-active .journal-timeline__title,
.journal-timeline__item.is-current .journal-timeline__title {
  color: var(--ink);
}

.timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-entry {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1.25rem;
}

.timeline-entry:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.timeline-entry__stamp {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.timeline-entry__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.2;
}

.timeline-entry__title a {
  text-decoration: none;
}

.timeline-entry__title a:hover,
.timeline-entry__title a:focus-visible {
  color: var(--rubric);
}

.timeline-entry__abstract {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  color: var(--ink-soft);
}

.timeline-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.timeline-entry__read {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.timeline-entry__read a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 3.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: rgba(252, 249, 243, 0.72);
  border: 1px solid rgba(28, 25, 21, 0.2);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    inset 0 0 0 5px rgba(28, 25, 21, 0.04),
    0 1px 0 rgba(28, 25, 21, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(28, 25, 21, 0.07);
  pointer-events: none;
  z-index: 1;
}

.card:hover,
.card:focus-visible {
  background: rgba(252, 249, 243, 0.96);
  border-color: rgba(28, 25, 21, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 0 5px rgba(28, 25, 21, 0.07),
    0 12px 32px rgba(28, 25, 21, 0.09);
}

.card:focus-visible {
  outline: 2px solid rgba(154, 61, 48, 0.45);
  outline-offset: 3px;
}

.card-lead {
  grid-column: 1 / -1;
  border-top-width: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 0 0 6px rgba(28, 25, 21, 0.05),
    0 2px 0 rgba(28, 25, 21, 0.06);
}

.card-lead::after {
  inset: 7px;
  border-color: rgba(28, 25, 21, 0.1);
}

.card-title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-sunken);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.card:hover .card-cover img,
.card:focus-visible .card-cover img {
  transform: scale(1.04);
}

.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1;
}

.card-topic {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rubric);
}

.card-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.card-abstract {
  margin: 0;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.mini-tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
  padding: 0.05rem 0;
}

.card-date {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 2.4rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.paper {
  width: min(var(--page), calc(100% - 2.5rem));
  margin: 1.6rem auto 4.5rem;
  padding: 0.2rem 0 2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.running-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0.4rem 0 1.7rem;
  padding: 0.35rem 0 0.55rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.running-head::after {
  content: "Vol. 1 · 2026";
  flex: 0 0 auto;
  color: var(--ink);
}

.paper-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rubric);
}

.paper h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.abstract {
  margin: 0 0 1.2rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.toc {
  margin: 0 0 2.2rem;
  padding: 0.2rem 0 0.4rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  columns: 2;
  column-gap: 2rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
}

.toc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover {
  border-bottom-color: var(--rule);
}

.paper-body {
  font-size: 1.2rem;
  line-height: 1.65;
}

.paper-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.08em 0 0;
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 0.78;
  color: var(--ink);
}

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

.paper-body h2 {
  margin: 2.6rem 0 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  break-after: avoid;
}

.paper-body h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin: 0 0 0.55rem;
  background: var(--rubric);
}

.paper-body h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.15rem;
}

.paper-body p,
.paper-body ul,
.paper-body ol {
  margin: 0 0 1rem;
}

@media (min-width: 720px) {
  .paper-body > p:not(.plain-note) {
    text-align: justify;
    hyphens: auto;
  }
}

.paper-body a {
  color: var(--forest);
  text-underline-offset: 0.15em;
}

.paper-body pre {
  position: relative;
  margin: 1.4rem 0;
  padding: 1rem 1.1rem 1.1rem;
  overflow-x: auto;
  background: #f7f2ea;
  border: 1px solid rgba(28, 25, 21, 0.08);
  border-radius: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.paper-body :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-sunken);
  padding: 0.08em 0.28em;
}

.paper-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.paper-body th,
.paper-body td {
  border-bottom: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.paper-body blockquote {
  margin: 1.3rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-soft);
}

.paper-body .plain-note {
  margin: 1.1rem 0 1.35rem;
  padding: 0.75rem 0 0.75rem 1.05rem;
  border-left: 3px solid var(--rubric);
  font-family: var(--sans);
  font-size: 0.97rem;
  line-height: 1.58;
  color: var(--ink-soft);
  background: rgba(252, 249, 243, 0.55);
}

.paper-body .plain-note strong {
  font-weight: 600;
  color: var(--ink);
}

.paper-body.imported-chatgpt .katex-display {
  margin: 1rem 0 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
}

.paper-body.imported-chatgpt .plate.thumb .plate-frame,
.paper-body.imported-chatgpt .plate.grid-thumb .plate-frame,
.paper-body.imported-chatgpt .plate.gen-thumb .plate-frame,
.paper-body.imported-chatgpt .plate.favicon .plate-frame {
  max-width: none;
  margin-inline: 0;
  padding: 0.35rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: rgba(252, 249, 243, 0.65);
}

.paper-body.imported-chatgpt img.cite-favicon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 0.2rem 0 0;
  vertical-align: -0.15em;
  object-fit: contain;
}

.paper-body.imported-chatgpt .plate.thumb {
  margin: 0.85rem 0;
  max-width: 14rem;
}

.paper-body.imported-chatgpt .plate.thumb .plate-frame img {
  max-height: 9rem;
  width: 100%;
  object-fit: cover;
}

.paper-body.imported-chatgpt .thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 1rem 0 1.25rem;
  max-width: 36rem;
}

.paper-body.imported-chatgpt .plate.grid-thumb {
  margin: 0;
  flex: 0 0 auto;
  width: 7.25rem;
}

.paper-body.imported-chatgpt .plate.grid-thumb .plate-frame img {
  width: 7.25rem;
  height: 4.5rem;
  object-fit: cover;
}

.paper-body.imported-chatgpt .thumb-grid-duo {
  max-width: 44rem;
  gap: 0.75rem 1rem;
}

.paper-body.imported-chatgpt .thumb-grid-duo .plate.grid-thumb {
  width: 11.5rem;
}

.paper-body.imported-chatgpt .thumb-grid-duo .plate.grid-thumb .plate-frame img {
  width: 11.5rem;
  height: 7.25rem;
}

.paper-body.imported-chatgpt .gen-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1rem 0 1.35rem;
  max-width: 40rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.paper-body.imported-chatgpt .gen-card {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.paper-body.imported-chatgpt .gen-card:last-child {
  border-bottom: none;
}

.paper-body.imported-chatgpt .gen-card .plate.gen-thumb {
  margin: 0;
}

.paper-body.imported-chatgpt .plate.gen-thumb .plate-frame img {
  width: 9.5rem;
  height: 5.75rem;
  object-fit: cover;
}

.paper-body.imported-chatgpt .gen-card-body p {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.5;
}

.paper-body.imported-chatgpt .gen-card-body p:first-child {
  font-weight: 600;
  color: var(--ink);
}

.paper-body.imported-chatgpt .resource-card {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 0.9rem 1.1rem;
  align-items: start;
  margin: 1rem 0;
  max-width: 44rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: var(--paper-raised);
}

.paper-body.imported-chatgpt a.resource-link {
  color: inherit;
  text-decoration: none;
}

.paper-body.imported-chatgpt a.resource-link:hover .resource-body p:first-child,
.paper-body.imported-chatgpt a.resource-link:focus-visible .resource-body p:first-child {
  text-decoration: underline;
}

.paper-body.imported-chatgpt .resource-card .plate.feature {
  margin: 0;
}

.paper-body.imported-chatgpt .plate.feature .plate-frame img {
  width: 100%;
  max-height: 14.5rem;
  object-fit: cover;
}

.paper-body.imported-chatgpt a.inline-cite {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
  vertical-align: baseline;
  text-decoration: none;
}

.paper-body.imported-chatgpt a.inline-cite .cite-favicon {
  margin: 0;
  width: 1rem;
  height: 1rem;
}

.paper-body.imported-chatgpt a.inline-cite:hover .cite-favicon,
.paper-body.imported-chatgpt a.inline-cite:focus-visible .cite-favicon {
  opacity: 0.75;
}

.paper-body.imported-chatgpt .resource-body p {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.5;
}

.paper-body.imported-chatgpt .resource-body p:first-child {
  font-weight: 600;
  color: var(--ink);
}

.paper-body.imported-chatgpt .cite-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.55rem 0;
  max-width: 44rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.48;
}

.paper-body.imported-chatgpt .cite-line .cite-favicon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.paper-body.imported-chatgpt .cite-line-text {
  flex: 1;
}

.paper-body.imported-chatgpt .loop-steps {
  display: grid;
  gap: 0;
  margin: 1.15rem 0 1.4rem;
  max-width: 38rem;
  position: relative;
  padding-left: 0.2rem;
}

.paper-body.imported-chatgpt .loop-steps::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  bottom: 2.4rem;
  width: 1px;
  background: var(--ink);
}

.paper-body.imported-chatgpt .loop-step {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  column-gap: 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 0;
  border: none;
  background: transparent;
}

.paper-body.imported-chatgpt .loop-step::before {
  content: attr(data-step);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  grid-column: 1;
  grid-row: 1 / span 3;
}

.paper-body.imported-chatgpt .loop-step > * {
  grid-column: 2;
}

.paper-body.imported-chatgpt .loop-step-title {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.95rem;
}

.paper-body.imported-chatgpt .loop-step-detail {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.paper-body.imported-chatgpt .loop-note {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.paper-body.imported-chatgpt .timeline-section {
  margin: 1.35rem 0 1.7rem;
}

.paper-body.imported-chatgpt .era-timeline {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.15rem 0 0.35rem;
  max-width: 42rem;
  border: 1px solid rgba(28, 25, 21, 0.16);
  background: var(--paper-raised);
  position: relative;
}

.paper-body.imported-chatgpt .era-timeline::before {
  content: "";
  position: absolute;
  left: 10.35rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 1px;
  background: var(--ink);
}

.paper-body.imported-chatgpt .era-row {
  display: grid;
  grid-template-columns: 9.4rem 1.1rem 1fr;
  gap: 0.15rem 0.55rem;
  padding: 0.85rem 1.1rem 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.paper-body.imported-chatgpt .era-row:last-child {
  border-bottom: none;
}

.paper-body.imported-chatgpt .era-marker {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  border: 1.5px solid var(--rubric);
  background: var(--paper);
  justify-self: center;
  z-index: 1;
}

.paper-body.imported-chatgpt .era-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.paper-body.imported-chatgpt .era-body p {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.48;
}

.paper-body.imported-chatgpt .synthesis-section {
  margin: 1.2rem 0 1.5rem;
}

.paper-body.imported-chatgpt .synthesis-blocks {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
  max-width: 44rem;
  counter-reset: shift;
}

.paper-body.imported-chatgpt .shift-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(28, 25, 21, 0.16);
  background: rgba(252, 249, 243, 0.72);
  border-left: 3px solid var(--rubric);
}

.paper-body.imported-chatgpt .shift-card p {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.52;
}

.paper-body.imported-chatgpt .shift-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.paper-body.imported-chatgpt .ref-list {
  list-style: none;
  margin: 0.75rem 0 1.2rem;
  padding: 0;
  max-width: 42rem;
  border-top: 1px solid var(--ink);
}

.paper-body.imported-chatgpt .ref-list > li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.paper-body.imported-chatgpt .plate.favicon {
  margin: 0;
}

.paper-body.imported-chatgpt .plate.favicon .plate-frame {
  padding: 0.2rem;
}

.paper-body.imported-chatgpt .plate.favicon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.paper-body.imported-chatgpt .ref-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 0.94rem;
}

.paper-body.imported-chatgpt .ref-body p {
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.paper-body.imported-chatgpt .flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0;
  max-width: 36rem;
}

.paper-body.imported-chatgpt .flow-cell {
  flex: 1 1 7rem;
  min-width: 6.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: rgba(252, 249, 243, 0.6);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.paper-body.imported-chatgpt .flow-cell p {
  margin: 0;
}

.paper-body.imported-chatgpt .flow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
  margin: 1.15rem 0 1.35rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid rgba(28, 25, 21, 0.12);
  background: linear-gradient(
    135deg,
    rgba(45, 74, 62, 0.05) 0%,
    rgba(252, 249, 243, 0.75) 45%,
    rgba(154, 107, 63, 0.06) 100%
  );
}

.paper-body.imported-chatgpt .flow-pipeline-step {
  position: relative;
  flex: 1 1 9.5rem;
  min-width: 8.5rem;
  max-width: 14rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border: 1px solid rgba(28, 25, 21, 0.16);
  background: rgba(252, 249, 243, 0.92);
  box-shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
}

.paper-body.imported-chatgpt .flow-pipeline-step::after {
  content: "→";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translate(50%, -50%);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  pointer-events: none;
}

.paper-body.imported-chatgpt .flow-pipeline-step:last-child::after {
  content: none;
}

.paper-body.imported-chatgpt .flow-pipeline-step .step-title {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

.paper-body.imported-chatgpt .flow-pipeline-step .step-detail {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .paper-body.imported-chatgpt .flow-pipeline-step::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -0.45rem;
    transform: translate(50%, 50%);
  }

  .paper-body.imported-chatgpt .flow-pipeline-step {
    flex: 1 1 100%;
    max-width: none;
  }
}

.paper-body.imported-chatgpt table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.paper-body.imported-chatgpt th,
.paper-body.imported-chatgpt td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  text-align: left;
}

.paper-body.imported-chatgpt th {
  background: rgba(252, 249, 243, 0.85);
  font-weight: 600;
}

.paper-body.imported-chatgpt .plain-note.reader-guide {
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-left-color: var(--forest);
  background: rgba(45, 74, 62, 0.06);
}

.paper-body.imported-chatgpt .plain-note.math-plain {
  margin: 0.65rem 0 0.35rem;
  padding: 0.55rem 0 0.55rem 0.95rem;
  font-size: 0.93rem;
  border-left-color: var(--ink-muted);
  background: rgba(252, 249, 243, 0.85);
}

.paper-body.imported-chatgpt .plain-note.example-note {
  border-left-color: #9a6b3f;
  background: rgba(154, 107, 63, 0.09);
}

.paper-body.imported-chatgpt .plain-note.list-followup {
  margin-top: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.6rem 0 0.6rem 0.95rem;
  font-size: 0.94rem;
  border-left-color: var(--forest);
  background: rgba(45, 74, 62, 0.05);
}

.paper-body.imported-chatgpt .plain-note.eq-followup {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0 0.6rem 0.95rem;
  font-size: 0.94rem;
  border-left-color: var(--ink-muted);
  background: rgba(28, 25, 21, 0.04);
}

.paper-body.imported-chatgpt > h2 {
  margin-top: 2.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink);
}

.paper-body.imported-chatgpt > h2.section-num {
  font-size: 1.42rem;
  letter-spacing: -0.015em;
}

.paper-body.imported-chatgpt h3.subhead-num {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 650;
  margin: 1.55rem 0 0.65rem;
}

.paper-body.imported-chatgpt .section-lead {
  font-size: 1.06rem;
}

.paper-body.imported-chatgpt .idea-list,
.paper-body.imported-chatgpt .term-list,
.paper-body.imported-chatgpt .enum-list {
  list-style: none;
  margin: 0.7rem 0 1.15rem;
  padding: 0;
  max-width: 42rem;
}

.paper-body.imported-chatgpt .idea-list > li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.2rem;
}

.paper-body.imported-chatgpt .idea-list > li::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.78em;
  width: 0.38rem;
  height: 0.38rem;
  border: 1.5px solid var(--rubric);
  transform: rotate(45deg);
}

.paper-body.imported-chatgpt .term-list {
  border-top: 1px solid var(--ink);
}

.paper-body.imported-chatgpt .term-list > li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 12.5rem) 1fr;
  gap: 0.45rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.paper-body.imported-chatgpt .term-list .term {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.92rem;
}

.paper-body.imported-chatgpt .term-list .defn {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.paper-body.imported-chatgpt .enum-list {
  counter-reset: enum;
  display: grid;
  gap: 0.5rem;
}

.paper-body.imported-chatgpt .enum-list > li {
  counter-increment: enum;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: var(--paper-raised);
}

.paper-body.imported-chatgpt .enum-list > li::before {
  content: counter(enum);
  font-family: var(--mono);
  font-size: 0.82rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-body.imported-chatgpt .indent-block {
  margin: 0.95rem 0 1.2rem;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 3px solid var(--forest);
  max-width: 42rem;
}

.paper-body.imported-chatgpt .indent-lead {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.paper-body.imported-chatgpt .indent-block .idea-list,
.paper-body.imported-chatgpt .indent-block .term-list,
.paper-body.imported-chatgpt .indent-block .enum-list {
  margin-bottom: 0.15rem;
}

.paper-body.imported-chatgpt .pair-notes {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
  max-width: 44rem;
}

.paper-body.imported-chatgpt .note-card {
  margin: 0.7rem 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: rgba(252, 249, 243, 0.72);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
}

.paper-body.imported-chatgpt .pair-notes .note-card {
  margin: 0;
}

.paper-body.imported-chatgpt .note-plus {
  border-left: 3px solid var(--forest);
}

.paper-body.imported-chatgpt .note-limit {
  border-left: 3px solid var(--rubric);
}

.paper-body.imported-chatgpt .note-kicker {
  display: block;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.paper-body.imported-chatgpt .filter-stages {
  margin: 1rem 0 1.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(28, 25, 21, 0.16);
  background: var(--paper-raised);
  max-width: 44rem;
}

.paper-body.imported-chatgpt .filter-stages .indent-lead,
.paper-body.imported-chatgpt .filter-stages .stage-label {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.88rem;
}

.paper-body.imported-chatgpt .filter-stages .stage-math {
  margin: 0 0 0.85rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--rule);
}

.paper-body.imported-chatgpt .filter-stages .stage-math:last-child {
  margin-bottom: 0;
}

.paper-body.imported-chatgpt .eq-shell,
.paper-body.imported-chatgpt .imported-eq {
  margin: 1.1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(252, 249, 243, 0.65);
  max-width: 46rem;
}

.paper-body.imported-chatgpt .stage-stack {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
  max-width: 44rem;
  counter-reset: stage;
}

.paper-body.imported-chatgpt .stage-card {
  padding: 0.85rem 1rem 0.9rem 1.05rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: var(--paper-raised);
  border-left: 3px solid var(--ink);
}

.paper-body.imported-chatgpt .stage-title {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
}

.paper-body.imported-chatgpt .stage-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.paper-body.imported-chatgpt .frontier-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
  max-width: 46rem;
}

.paper-body.imported-chatgpt .frontier-card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: var(--paper-raised);
}

.paper-body.imported-chatgpt .frontier-card::before {
  content: attr(data-letter);
  font-family: var(--mono);
  font-size: 1.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.paper-body.imported-chatgpt .frontier-card > * {
  grid-column: 2;
}

.paper-body.imported-chatgpt .frontier-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.paper-body.imported-chatgpt .frontier-card p {
  margin: 0 0 0.45rem;
}

.paper-body.imported-chatgpt .frontier-card p:last-child {
  margin-bottom: 0;
}

.paper-body.imported-chatgpt .shift-card {
  position: relative;
  padding-left: 3.2rem;
}

.paper-body.imported-chatgpt .shift-card::before {
  content: attr(data-shift);
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 1.5px solid var(--rubric);
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-body.imported-chatgpt .gen-stack {
  background: var(--paper-raised);
  padding: 0 1rem;
}

@media (max-width: 640px) {
  .paper-body.imported-chatgpt .gen-card,
  .paper-body.imported-chatgpt .resource-card,
  .paper-body.imported-chatgpt .ref-list > li,
  .paper-body.imported-chatgpt .term-list > li,
  .paper-body.imported-chatgpt .frontier-card {
    grid-template-columns: 1fr;
  }

  .paper-body.imported-chatgpt .era-row {
    grid-template-columns: 1.1rem 1fr;
  }

  .paper-body.imported-chatgpt .era-timeline::before {
    left: 1.42rem;
  }

  .paper-body.imported-chatgpt .era-date {
    grid-column: 2;
  }

  .paper-body.imported-chatgpt .frontier-card::before,
  .paper-body.imported-chatgpt .frontier-card > * {
    grid-column: 1;
  }

  .paper-body.imported-chatgpt .plate.gen-thumb .plate-frame img,
  .paper-body.imported-chatgpt .media-row .plate.gen-thumb .plate-frame img {
    width: 100%;
    max-width: 12rem;
  }
}

.plate {
  margin: 1.5rem 0 1.7rem;
}

.paper-body h2,
.paper-body h3,
.paper-body .eq-block,
.paper-body .eq-shell,
.paper-body .data-table-wrap,
.paper-body .card-grid,
.paper-body .step-list,
.paper-body .plate.wide,
.paper-body .mag-timeline {
  clear: both;
}

@media (min-width: 860px) {
  .paper-body .plate.aside-left,
  .paper-body .plate.aside-right {
    width: min(19rem, 42%);
    margin-top: 0.3rem;
    margin-bottom: 0.65rem;
  }

  .paper-body .plate.aside-right {
    float: right;
    margin-left: 1.35rem;
    margin-right: 0;
  }

  .paper-body .plate.aside-left {
    float: left;
    margin-right: 1.35rem;
    margin-left: 0;
  }

  .paper-body .plate.aside-left .plate-frame,
  .paper-body .plate.aside-right .plate-frame {
    max-width: none;
  }

  .paper-body .plate.aside-left .plate-frame img,
  .paper-body .plate.aside-right .plate-frame img {
    width: 100%;
    max-height: 16rem;
    object-fit: contain;
  }

  .paper-body .plate.aside-left figcaption,
  .paper-body .plate.aside-right figcaption {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

.plate-frame {
  max-width: 100%;
  margin-inline: auto;
  background: rgba(252, 249, 243, 0.7);
  border: 1px solid rgba(28, 25, 21, 0.16);
  border-radius: 0;
  padding: 0.55rem;
  overflow: hidden;
}

.plate-frame img,
.plate-frame video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin-inline: auto;
  background: var(--paper);
}

.paper-body img.is-zoomable {
  cursor: zoom-in;
}

.paper-body .plate-frame--zoomable {
  position: relative;
}

.paper-body .plate-frame--zoomable::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 2px;
  background-color: rgba(28, 25, 21, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcf9f3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.paper-body .plate-frame--zoomable:hover::after,
.paper-body .plate-frame--zoomable:focus-within::after {
  opacity: 1;
}

.paper-body img.is-zoomable:hover {
  filter: brightness(0.97);
}

dialog.image-lightbox {
  margin: auto;
  padding: 0;
  border: none;
  width: min(96vw, 86rem);
  max-height: 94vh;
  background: transparent;
  overflow: visible;
}

dialog.image-lightbox::backdrop {
  background: rgba(22, 20, 17, 0.78);
  backdrop-filter: blur(3px);
}

.image-lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  border: 1px solid rgba(252, 249, 243, 0.2);
  background: var(--paper-raised);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.image-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(28, 25, 21, 0.2);
  background: rgba(252, 249, 243, 0.95);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: var(--paper);
}

.image-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 4.5rem);
  object-fit: contain;
  background: var(--paper);
}

.image-lightbox__caption {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.paper-body.imported-chatgpt .plate-frame img {
  max-height: none;
}

.plate-frame canvas {
  width: 100%;
  background: var(--paper);
}

.plate.wide .plate-frame {
  max-width: 100%;
}

.plate.wide .plate-frame img {
  max-height: none;
}

.plate.photo .plate-frame {
  max-width: 30rem;
}

.plate.paper .plate-frame {
  max-width: 22rem;
}

.plate.paper .plate-frame img {
  max-height: none;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  max-width: 52rem;
  margin: 1.2rem 0 1.6rem;
}

.figure-pair .plate {
  margin: 0;
}

.figure-pair .plate-frame {
  max-width: none;
}

.figure-pair .plate-frame img {
  max-height: 16rem;
}

.thumb-list {
  list-style: none;
  margin: 1rem 0 1.3rem;
  padding: 0;
}

.thumb-list li {
  margin: 0;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}

.thumb-list li.has-thumb {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.9rem;
  align-items: center;
}

.thumb-list .shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.thumb-list img {
  display: block;
  width: 100%;
  height: 5.2rem;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(28, 25, 21, 0.16);
  background: #f7f1e6;
}

.thumb-list li.has-thumb > img {
  width: 11rem;
  height: 7rem;
}

.mark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: end;
  margin: 0.3rem 0 1.2rem;
}

.mark-row figure {
  margin: 0;
  width: 5.4rem;
}

.mark-row img {
  display: block;
  width: 5.4rem;
  height: 2.7rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(28, 25, 21, 0.12);
  padding: 0.25rem;
}

.mark-row figcaption {
  margin-top: 0.28rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.plate figcaption,
.listing figcaption {
  margin: 0.65rem 0 0;
  max-width: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.eq {
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.85;
}

.eq i {
  font-style: italic;
}

.listing pre {
  margin: 0;
  font-family: var(--mono);
}

.eq-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0.75rem 0.2rem;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.eq-num {
  font-family: var(--sans);
  color: var(--ink-muted);
}

.data-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.data-table thead th {
  font-weight: 650;
  background: var(--paper-sunken);
}

.listing {
  margin: 1.8rem 0;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  min-height: 32px;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.72rem;
  cursor: pointer;
}

/* Floating "Go to top" button for note views */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  background: var(--paper-raised);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(28, 25, 21, 0.09), 0 1px 3px rgba(28, 25, 21, 0.05);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  user-select: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--paper);
  border-color: var(--rubric);
  color: var(--rubric);
  box-shadow: 0 6px 18px rgba(154, 61, 48, 0.16), 0 2px 5px rgba(28, 25, 21, 0.08);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
  transition: transform 160ms ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    height: 2.15rem;
    padding: 0 0.7rem;
    font-size: 0.72rem;
  }
}

.viz-root {
  width: 100%;
  min-height: 280px;
}

.viz-demo {
  display: grid;
  gap: 0.7rem;
  padding: 0.15rem 0.1rem 0.2rem;
}

.viz-demo canvas {
  width: 100%;
  display: block;
  background: var(--paper-raised);
}

.viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
}

.viz-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 7.5rem;
}

.viz-controls label span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.viz-controls input[type="range"] {
  width: 9.5rem;
  accent-color: var(--rubric);
}

.viz-controls select {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.4rem;
}

.viz-btn {
  min-height: 32px;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.viz-btn.is-on {
  background: var(--ink);
  color: var(--paper-raised);
}

.viz-readout {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.paper-body .card-grid {
  padding-bottom: 0;
  margin: 1rem 0 1.35rem;
}

.paper-body .frontier-card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 25, 21, 0.14);
  background: var(--paper-raised);
}

.paper-body .frontier-card::before {
  content: attr(data-letter);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 1.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.paper-body .frontier-card > * {
  grid-column: 2;
}

.paper-body .frontier-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.paper-body .frontier-card p {
  margin: 0 0 0.45rem;
}

.paper-body .frontier-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .paper-body .frontier-card {
    grid-template-columns: 1fr;
  }

  .paper-body .frontier-card::before,
  .paper-body .frontier-card > * {
    grid-column: 1;
  }
}

.scene-root {
  width: 100%;
  height: min(52vw, 420px);
  background: #efe8da;
}

.scene-root canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.abstract,
.paper-body p {
  overflow-wrap: break-word;
}

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1d1914;
}

.film-scan {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(243, 238, 228, 0.08) 50%, transparent 58% 100%),
    repeating-linear-gradient(90deg, #2a241c 0 12px, #1d1914 12px 14px);
  animation: scan 4.5s linear infinite;
}

.film-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  color: #f3eee4;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

@keyframes scan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 180px, -80px 0; }
}

@media (min-width: 740px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-lead {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .card-lead .card-cover {
    aspect-ratio: auto;
    min-height: 340px;
  }

  .card-lead .card-cover img {
    height: 100%;
    min-height: 340px;
  }

  .card-lead .card-body {
    padding: 1.5rem 1.4rem 1.4rem;
  }

  .card-lead .card-title {
    font-size: clamp(2.2rem, 3.2vw, 3.15rem);
  }

  .card-lead .card-abstract {
    -webkit-line-clamp: 5;
    font-size: 1.12rem;
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .shell,
  .paper {
    width: min(var(--page), calc(100% - 1.5rem));
  }

  .paper {
    padding: 0.2rem 0 2rem;
  }

  .toc {
    columns: 1;
  }

  .figure-pair,
  .thumb-list li.has-thumb {
    grid-template-columns: 1fr;
  }

  .timeline-layout {
    grid-template-columns: 1fr;
  }

  .timeline-layout > .journal-timeline {
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    padding-right: 0;
    position: static;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  .timeline-layout > .timeline-main {
    grid-column: 1;
  }

  .journal-timeline__list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .journal-timeline__item {
    flex: 0 0 auto;
    width: 9.5rem;
    padding: 0 0 0 1.1rem;
  }

  .journal-timeline__line {
    display: none;
  }

  .thumb-list li.has-thumb > img,
  .thumb-list .shots {
    width: 11rem;
  }

  .wordmark {
    font-size: 3.3rem;
  }
}

/* Magazine blocks — same classes on every note. Full paper width. */
.paper-body .indent-block,
.paper-body .callout,
.paper-body .plain-note,
.paper-body .step-list,
.paper-body .progress,
.paper-body .mag-timeline,
.paper-body .era-timeline,
.paper-body .eq-shell,
.paper-body .stage-stack,
.paper-body .term-list,
.paper-body .flow-pipeline,
.paper-body .filter-stages,
.paper-body .pair-notes,
.paper-body .synthesis-blocks,
.paper-body .ref-list,
.paper-body .mag-bars,
.paper-body.imported-chatgpt .indent-block,
.paper-body.imported-chatgpt .era-timeline,
.paper-body.imported-chatgpt .eq-shell,
.paper-body.imported-chatgpt .stage-stack,
.paper-body.imported-chatgpt .term-list,
.paper-body.imported-chatgpt .idea-list,
.paper-body.imported-chatgpt .enum-list,
.paper-body.imported-chatgpt .flow-pipeline,
.paper-body.imported-chatgpt .filter-stages,
.paper-body.imported-chatgpt .pair-notes,
.paper-body.imported-chatgpt .synthesis-blocks,
.paper-body.imported-chatgpt .ref-list {
  max-width: none;
}

.paper-body .indent-block {
  margin: 1.15rem 0 1.4rem;
  padding: 0.15rem 0 0.2rem 1.15rem;
  border-left: 3px solid var(--ink);
}

.paper-body .indent-lead {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rubric);
}

.paper-body .callout {
  margin: 1.2rem 0 1.45rem;
  padding: 0.85rem 1rem 0.95rem 1.05rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(252, 249, 243, 0.72);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.paper-body .callout .indent-lead,
.paper-body .plain-note strong {
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.paper-body .callout-aside {
  border-top-color: var(--forest);
}

.paper-body .callout-example {
  border-top-color: #9a6b3f;
}

.paper-body .step-list {
  list-style: none;
  margin: 1.15rem 0 1.45rem;
  padding: 0;
  counter-reset: mag-step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.paper-body .step-list > li {
  counter-increment: mag-step;
  position: relative;
  padding: 0.85rem 0 0.85rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.paper-body .step-list > li::before {
  content: counter(mag-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--rubric);
}

.paper-body .progress {
  margin: 1.15rem 0 1.45rem;
  padding-top: 0.35rem;
}

.paper-body .progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.paper-body .progress-track {
  height: 3px;
  background: var(--rule);
}

.paper-body .progress-track > span {
  display: block;
  height: 100%;
  width: var(--progress, 50%);
  background: var(--ink);
}

.paper-body .mag-timeline,
.paper-body .era-timeline {
  list-style: none;
}

.paper-body .mag-timeline {
  margin: 1.15rem 0 1.5rem;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.paper-body .mag-timeline > li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem 1.25rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.paper-body .mag-timeline time,
.paper-body .mag-timeline .when {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rubric);
}

.paper-body .mag-timeline p {
  margin: 0;
}

/* Parallel cards: briefs, photo cards, pairs, stages. Pipelines and plots stay one column. */
@media (min-width: 900px) {
  .paper-body .card-grid,
  .paper-body.imported-chatgpt .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.15rem;
    row-gap: 0.9rem;
    max-width: none;
    align-items: stretch;
  }

  .paper-body.imported-chatgpt .resource-grid a.resource-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  .paper-body.imported-chatgpt .resource-grid .resource-card {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .paper-body.imported-chatgpt .resource-grid .plate.feature .plate-frame img {
    width: 100%;
    height: 10rem;
    max-height: none;
    object-fit: cover;
  }

  .paper-body.imported-chatgpt .gen-stack .gen-card {
    grid-template-columns: 1fr;
  }

  .paper-body.imported-chatgpt .gen-stack .plate.gen-thumb .plate-frame img {
    width: 100%;
    height: 13rem;
    object-fit: cover;
  }
}

.paper-body .mag-bars ul {
  list-style: none;
  margin: 0.35rem 0 0.85rem;
  padding: 0.35rem 0 0;
  border-top: 3px solid var(--ink);
}

.paper-body .mag-bars li {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) 3.4rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.paper-body .mag-bars .bar-name {
  grid-column: 1;
  grid-row: 1;
}

.paper-body .mag-bars li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  height: 0.45rem;
  width: var(--bar, 50%);
  background: var(--ink);
}

.paper-body .mag-bars .bar-val {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: right;
}

@media (max-width: 640px) {
  .paper-body .mag-bars li {
    grid-template-columns: 1fr auto;
  }

  .paper-body .mag-bars li::after {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media print {
  .masthead nav,
  .nav-toggle,
  .catalog-tools,
  .copy-btn,
  .back-to-top,
  .site-footer,
  .skip-link,
  .tag-row,
  .journal-timeline,
  .timeline-layout > .journal-timeline {
    display: none !important;
  }

  body,
  html {
    background: white;
  }

  .paper,
  .is-article {
    --page: 100%;
  }

  .paper {
    width: 100%;
    margin: 0;
  }

  .paper-body > p:not(.plain-note) {
    text-align: justify;
    hyphens: auto;
  }

  .paper-body h2,
  .paper-body h3,
  .eq-block,
  .eq-shell,
  figure,
  .plate,
  table,
  .plain-note,
  pre {
    break-inside: avoid;
  }

  .paper-body h2 {
    break-before: auto;
  }

  a {
    text-decoration: none;
  }
}
