/* Notes: long-form pages. Loaded after /assets/home.css, which supplies the
   palette, header, footer and theme toggle. */
:root { --code-bg: #ebe7dc; --mono: ui-monospace, "SF Mono", Menlo, monospace; }
:root[data-theme="dark"] { --code-bg: #2b2f28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --code-bg: #2b2f28; } }
.header-links .current { font-size: 12px; font-weight: 600; }
.notes-main { max-width: 760px; padding: 48px 0 64px; }
.notes-main a:not(.note-link) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.notes-main a:focus-visible { outline-offset: 3px; }
.notes-main h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -1.6px; }
.notes-main h2 { margin: 48px 0 14px; font: 500 28px/1.2 var(--serif); letter-spacing: -.6px; }
.notes-main h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.notes-main p, .notes-main ul, .notes-main ol { margin: 0 0 16px; font-size: 17px; line-height: 1.65; }
.notes-main li + li { margin-top: 6px; }
.notes-main .byline { margin-top: 14px; color: var(--muted); font-size: 13px; }
.notes-main .lede { margin: 22px 0 0; color: var(--muted); }
.summary { margin: 32px 0 0; padding: 20px 22px 4px; border: 1px solid var(--rule); border-radius: 3px; }
.notes-main .summary h2 { margin: 0 0 10px; font: 500 10px/1 var(--sans); text-transform: uppercase; letter-spacing: 1.65px; }
.summary.agents { border-style: dashed; }
.summary.agents ul { font: 13px/1.7 var(--mono); padding-left: 18px; overflow-wrap: anywhere; }
code { font: .88em var(--mono); background: var(--code-bg); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
pre { margin: 0 0 18px; padding: 16px 18px; background: var(--code-bg); border-radius: 3px; overflow-x: auto; font: 13px/1.6 var(--mono); }
pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.table-scroll { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; line-height: 1.5; }
caption { padding: 12px 14px; text-align: left; color: var(--muted); font-size: 13px; }
th, td { padding: 10px 14px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { font-weight: 600; }
tbody th { font-weight: 500; color: var(--muted); }
figure { margin: 8px 0 24px; }
figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.notes-main .note-list { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.note-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.note-link { display: block; padding: 24px 0; }
.note-link time { color: var(--muted); font-size: 12px; }
.note-link h2 { margin: 6px 0 8px; }
.note-link p { margin: 0; color: var(--muted); font-size: 15px; }
@media (hover: hover) {
  .note-link:hover h2, .header-links a:hover { color: var(--accent); }
}
.note-link:focus-visible h2 { color: var(--accent); }
@media (max-width: 760px) {
  .notes-main { padding: 34px 0 48px; }
  .notes-main h2 { font-size: 24px; }
  .notes-main p, .notes-main ul, .notes-main ol { font-size: 16px; }
}
