:root { color-scheme: light; --ink: #292923; --rule: #9c9982; }
* { box-sizing: border-box; }
html { background: white; color: var(--ink); }
body { margin: 0; padding: 32px 20px 60px; font-family: Georgia, 'Times New Roman', serif; }
a { color: #0000aa; text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: #663399; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.page { width: min(1040px, 100%); margin: 0 auto; padding: 5px; position: relative; }
.page-inner { position: relative; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; font: 12px/1.5 'Courier New', monospace; }
.breadcrumbs span:last-child { margin-left: auto; }
header { padding: 46px 24px 26px; text-align: center; }
h1 { margin: 0; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; font-weight: normal; letter-spacing: -.035em; }
.article-section { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 620px) minmax(90px, 1fr); align-items: center; }
.article-section > .prose { grid-column: 2; grid-row: 1; min-width: 0; padding: 0 18px; }
.prose { font-size: 19px; line-height: 1.6; overflow-wrap: anywhere; }
.prose ol { margin: 0; padding-left: 2.1em; }
.prose li { padding: 11px 0 13px 7px; }
.prose li::marker { font: 12px 'Courier New', monospace; color: #716e5e; }
.prose p { margin: .7em 0; }
/* Paragraph margins cannot collapse across the grid section boundaries. */
.article-section:has(> .prose > p:last-child) + .article-section > .prose > p:first-child { margin-top: 0; }
.prose li p { margin: 0; }

/* Keep the Notion figures centered on the reading column, including wide charts. */
.prose > p:has(> img:only-child[src^="/assets/posts/jimfund-intern-ai-progress/"]) {
  display: flex;
  justify-content: center;
  padding-block: clamp(.5rem, 1.4vw, 1rem);
  break-inside: avoid;
}
.prose img[src^="/assets/posts/jimfund-intern-ai-progress/"] {
  display: block;
  flex: none;
  max-width: 100%;
  height: auto;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--rule) 12%, transparent);
}
@media screen and (min-width: 761px) {
  .article-section:not(:has(.decoration)) .prose img[src^="/assets/posts/jimfund-intern-ai-progress/"] {
    max-width: min(50rem, calc(100vw - 5rem));
  }
}

.prose h2 { font-size: 25px; line-height: 1.25; }
.prose blockquote {
  margin: 1.2em 0;
  padding: .7em clamp(.85rem, 3vw, 1.5rem);
  border-inline-start: 3px solid var(--rule);
  background: color-mix(in srgb, var(--rule) 10%, transparent);
}
.prose blockquote > :first-child { margin-block-start: 0; }
.prose blockquote > :last-child { margin-block-end: 0; }

/* Carry the rule through consecutive quotations, even across article sections. */
.prose > blockquote:has(+ blockquote),
.article-section:has(+ .article-section > .prose > blockquote:first-child) > .prose > blockquote:last-child {
  margin-block-end: 0;
  padding-block-end: .3em;
}
.prose > blockquote + blockquote,
.article-section:has(> .prose > blockquote:last-child) + .article-section > .prose > blockquote:first-child {
  margin-block-start: 0;
  padding-block-start: .3em;
}
.decoration { margin: 0; padding: 12px 7px; grid-row: 1; align-self: center; }
.decoration.left { grid-column: 1; }
.decoration.right { grid-column: 3; }
.decoration img { width: 100%; height: auto; max-height: 265px; object-fit: contain; display: block; }
.decoration:nth-child(2n) { transform: rotate(-3deg); }
.decoration:nth-child(2n+1) { transform: rotate(3deg); }
footer { margin: 36px 20px 0; padding: 18px 0; font: 12px/1.5 'Courier New', monospace; text-align: center; }
@media (max-width: 760px) {
  body { padding: 16px 10px 36px; }
  header { padding: 32px 12px 24px; }
  .article-section { position: relative; grid-template-columns: 1fr; }
  .article-section > .prose { grid-column: 1 / -1; grid-row: 1; padding: 0 14px; }
  .prose { font-size: 18px; }
  .article-section > .decoration { position: absolute; top: 50%; width: 45%; padding: 0; }
  .article-section > .decoration.left { left: 0; }
  .article-section > .decoration.right { right: 0; }
  .decoration img { height: auto; opacity: .3; }
  .breadcrumbs { padding: 10px 12px; }
}
@media print {
  body { background: white; padding: 0; }
  .page, .page-inner { border: 0; box-shadow: none; }
  .breadcrumbs { background: transparent; }
  .prose { font-size: 12pt; }
  .prose li { break-inside: avoid; }
  a, a:visited { color: inherit; }
}

.decoration { position: relative; translate: var(--move-x, 0px) var(--move-y, 0px); }
.decoration img { pointer-events: auto; }
.decoration.movable { pointer-events: none; }
.decoration.movable img { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.decoration.dragging { z-index: 2; }
.decoration.dragging img { cursor: grabbing; }
.layout-error { font: 12px/1.5 'Courier New', monospace; color: #a02020; }
.decoration.selected img { outline: 1px dashed #aaa; outline-offset: 5px; }

.directory { max-width: 720px; }
.post-directory { list-style: none; margin: 0; padding: 0 20px 30px; font-size: 20px; line-height: 1.5; }
.post-directory li { margin: 0 0 18px; }
.post-directory a { display: flex; align-items: baseline; gap: 20px; }
.post-number { flex: none; font: 12px/1.5 'Courier New', monospace; }

.publication-date { display: block; margin-top: 14px; color: #716e5e; font: 12px/1.5 'Courier New', monospace; }
.post-summary { min-width: 0; }
.post-summary .publication-date { margin-top: 4px; }

.prose img[src^="/article-images/"] { max-width: 100%; height: auto; }
