/* Onyx Outpost: journal */

:root {
  color-scheme: light;
  --bg: #ffffff; --bg-soft: #f7f7f5; --bg-muted: #efefec; --bg-raised: #ffffff;
  --fg: #1c1d1f; --fg-muted: #565b61; --fg-faint: #6b7076;
  --border: #e3e3df; --border-strong: #cfcfca;
  --accent-ink: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --mark: #fff1a8; --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 8px 24px rgb(0 0 0 / 7%);
  --c-blue: #2563c9; --c-green: #1f7a4d; --c-orange: #b35400; --c-red: #c22f2f; --c-purple: #7247c4; --c-cyan: #08758a; --c-gray: #5d6168;
  --code-bg: #f5f5f2; --code-fg: #24292f;
  --t-comment: #5c636c; --t-keyword: #b8325a; --t-string: #1f7a4d; --t-number: #8a5200; --t-function: #6f42c1; --t-type: #0b6e8a; --t-punct: #57606a;
  --radius: 10px; --radius-sm: 6px;
  --header-h: 3.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "D2Coding", "Noto Sans Mono CJK KR", monospace;
  --font-body: var(--font-sans);
  --font-heading: var(--font-sans);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-color="light"]) {
    color-scheme: dark;
    --bg: #141619; --bg-soft: #1a1d21; --bg-muted: #23272c; --bg-raised: #1d2025;
    --fg: #e7e7e4; --fg-muted: #a9adb3; --fg-faint: #9298a0;
    --border: #2b3036; --border-strong: #3a4047;
    --accent-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
    --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
    --mark: #6b5a12; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 45%);
    --c-blue: #7aa7ff; --c-green: #5cc792; --c-orange: #f0a24f; --c-red: #ff8080; --c-purple: #b79cff; --c-cyan: #5ccbe0; --c-gray: #a3a8af;
    --code-bg: #1b1e22; --code-fg: #dfe3e8;
    --t-comment: #8b949e; --t-keyword: #ff7b9c; --t-string: #7ee2a8; --t-number: #ffb86b; --t-function: #c7a6ff; --t-type: #6fd6ef; --t-punct: #a7b0ba;
  }
}
:root[data-color="dark"] {
  color-scheme: dark;
  --bg: #141619; --bg-soft: #1a1d21; --bg-muted: #23272c; --bg-raised: #1d2025;
  --fg: #e7e7e4; --fg-muted: #a9adb3; --fg-faint: #9298a0;
  --border: #2b3036; --border-strong: #3a4047;
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --mark: #6b5a12; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 45%);
  --c-blue: #7aa7ff; --c-green: #5cc792; --c-orange: #f0a24f; --c-red: #ff8080; --c-purple: #b79cff; --c-cyan: #5ccbe0; --c-gray: #a3a8af;
  --code-bg: #1b1e22; --code-fg: #dfe3e8;
  --t-comment: #8b949e; --t-keyword: #ff7b9c; --t-string: #7ee2a8; --t-number: #ffb86b; --t-function: #c7a6ff; --t-type: #6fd6ef; --t-punct: #a7b0ba;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1rem/1.7 var(--font-body);
  font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: anywhere;
}
:lang(ko) body, html:lang(ko) { line-height: 1.75; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
img, video { max-width: 100%; height: auto; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.skip-link { position: absolute; left: 1rem; top: .75rem; transform: translateY(-300%); z-index: 100; padding: .5rem 1rem; background: var(--bg-raised); color: var(--fg); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }

.icon { display: inline-block; width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.icon-search { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'11'%20cy%3D'11'%20r%3D'7'%2F%3E%3Cpath%20d%3D'm20%2020-3.5-3.5'%2F%3E%3C%2Fsvg%3E"); }
.icon-contrast { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M12%203a9%209%200%200%201%200%2018z'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E"); }
.icon-menu { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%207h16M4%2012h16M4%2017h16'%2F%3E%3C%2Fsvg%3E"); }
.icon-copy { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'9'%20y%3D'9'%20width%3D'11'%20height%3D'11'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M5%2015V6a2%202%200%200%201%202-2h8'%2F%3E%3C%2Fsvg%3E"); }
.icon-check { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm5%2012%205%205%209-10'%2F%3E%3C%2Fsvg%3E"); }
.icon-close { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%206l12%2012M18%206%206%2018'%2F%3E%3C%2Fsvg%3E"); }
.icon-chevron { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%206%206%206-6%206'%2F%3E%3C%2Fsvg%3E"); }

.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; gap: .75rem; height: 100%; padding: 0 clamp(1rem, 3vw, 1.75rem); }
.site-name { font: 650 1.02rem/1.2 var(--font-heading); letter-spacing: -0.01em; color: var(--fg); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: .45rem; height: 2.25rem; min-width: 2.25rem; justify-content: center; padding: 0 .55rem; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--fg-muted); font: inherit; font-size: .875rem; cursor: pointer; }
.tool:hover { background: var(--bg-muted); color: var(--fg); }
.search-open { border-color: var(--border); background: var(--bg-soft); min-width: 12rem; justify-content: flex-start; color: var(--fg-faint); }
.search-open kbd { margin-left: auto; font: 500 .75rem/1 var(--font-mono); padding: .2rem .4rem; border: 1px solid var(--border); border-radius: 4px; color: var(--fg-faint); background: var(--bg); }
.tool-link { color: var(--fg-muted); text-decoration: none; font-size: .9rem; padding: .4rem .6rem; border-radius: 8px; }
.tool-link:hover { color: var(--fg); background: var(--bg-muted); }
.nav-toggle { display: none; }
@media (max-width: 40rem) { .search-open { min-width: 2.25rem; } .search-open .tool-label, .search-open kbd { display: none; } }

.page { min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; font-size: .84rem; color: var(--fg-faint); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .55; }
.note-header { margin-bottom: 2rem; }
.note-title { font: 700 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/1.18 var(--font-heading); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0 0; color: var(--fg-faint); font-size: .9rem; }
.note-meta .dot { opacity: .6; }
:lang(ko) .note-lede { font-style: normal; }
.note-lede { margin: .9rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.note-tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .82em; line-height: 1.6; text-decoration: none; white-space: nowrap; }
.tag:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.note-body { font-size: 1.0625rem; }
.note-body > :first-child { margin-top: 0; }
.note-body p, .note-body ul, .note-body ol, .note-body blockquote, .note-body table, .note-body pre, .note-body figure, .note-body details, .note-body .callout, .note-body .note-embed { margin: 0 0 1.15em; }
.note-body p { text-wrap: pretty; }
.note-body h1, .note-body h2, .note-body h3, .note-body h4, .note-body h5, .note-body h6 { font-family: var(--font-heading); line-height: 1.3; letter-spacing: -0.015em; margin: 2em 0 .6em; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 1rem); }
.note-body h1 { font-size: 1.85rem; } .note-body h2 { font-size: 1.5rem; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.note-body h3 { font-size: 1.22rem; } .note-body h4 { font-size: 1.05rem; } .note-body h5, .note-body h6 { font-size: .95rem; color: var(--fg-muted); }
.note-body ul, .note-body ol { padding-left: 1.5em; }
.note-body li { margin: .25em 0; }
.note-body li > ul, .note-body li > ol { margin: .25em 0; }
.note-body li::marker { color: var(--fg-faint); }
.note-body ul.contains-task-list { list-style: none; padding-left: .25em; }
.note-body .task-list-item { display: block; }
.note-body .task-list-item input { margin: 0 .55em 0 0; vertical-align: -0.1em; accent-color: var(--accent); width: 1em; height: 1em; }
.note-body .task-list-item.is-checked { color: var(--fg-faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--fg-faint) 60%, transparent); }
.note-body td .onyx-cell-list, .note-body th .onyx-cell-list { margin: 0; padding-left: 1.25em; }
.note-body .onyx-cell-task { display: block; margin-left: -1.25em; }
.note-body .onyx-cell-task input { margin: 0 .55em 0 0; vertical-align: -0.1em; accent-color: var(--accent); width: 1em; height: 1em; }
.note-body .onyx-cell-heading { font-family: var(--font-heading); font-weight: 650; line-height: 1.3; }
.note-body .onyx-cell-heading[data-heading="1"] { font-size: 1.3rem; } .note-body .onyx-cell-heading[data-heading="2"] { font-size: 1.15rem; }
.note-body .onyx-cell-heading[data-heading="3"] { font-size: 1.05rem; }
.note-body .list-bullet { display: none; }
.note-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.25em 0; }
.note-body blockquote { margin-left: 0; padding: .1em 0 .1em 1.1em; border-left: 3px solid var(--border-strong); color: var(--fg-muted); }
.note-body mark { background: var(--mark); color: inherit; padding: 0 .15em; border-radius: 3px; }
.note-body mark[data-highlight="red"] { background: color-mix(in srgb, var(--c-red) 22%, transparent); }
.note-body mark[data-highlight="orange"] { background: color-mix(in srgb, var(--c-orange) 22%, transparent); }
.note-body mark[data-highlight="green"] { background: color-mix(in srgb, var(--c-green) 22%, transparent); }
.note-body mark[data-highlight="blue"] { background: color-mix(in srgb, var(--c-blue) 22%, transparent); }
.note-body mark[data-highlight="purple"] { background: color-mix(in srgb, var(--c-purple) 22%, transparent); }
.note-body del { color: var(--fg-faint); }
.note-body .internal-link { text-decoration-style: solid; }
.note-body .external-link::after { content: "↗"; font-size: .75em; margin-left: .15em; vertical-align: .15em; text-decoration: none; display: inline-block; }
.note-body .unresolved-link { color: var(--fg-muted); border-bottom: 1px dashed var(--border-strong); }
.note-body .attachment { display: inline-flex; gap: .4em; padding: .25em .7em; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; background: var(--bg-soft); }
.note-body img { border-radius: var(--radius-sm); }
.note-body audio { width: 100%; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .875em; }
.note-body :not(pre) > code { padding: .12em .38em; border-radius: 5px; background: var(--bg-muted); color: var(--code-fg); word-break: break-word; }
.note-body pre { position: relative; overflow: auto; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); color: var(--code-fg); line-height: 1.6; font-size: .86rem; tab-size: 2; word-break: normal; overflow-wrap: normal; }
.note-body pre code { font-size: inherit; background: none; padding: 0; white-space: pre; }
.note-body pre[data-lang]::before { content: attr(data-lang); position: absolute; top: .45rem; right: 2.9rem; font: 500 .7rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-faint); }
.copy-button { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-raised); color: var(--fg-muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .copy-button, .copy-button:focus-visible { opacity: 1; }
.copy-button.is-done { color: var(--c-green); }
.copy-button.is-done .icon { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm5%2012%205%205%209-10'%2F%3E%3C%2Fsvg%3E"); }
@media (hover: none) { .copy-button { opacity: 1; } }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--t-comment); font-style: italic; }
.token.keyword, .token.atrule, .token.important, .token.selector, .token.tag, .token.deleted { color: var(--t-keyword); }
.token.string, .token.char, .token.attr-value, .token.inserted, .token.url { color: var(--t-string); }
.token.number, .token.boolean, .token.constant, .token.symbol, .token.entity { color: var(--t-number); }
.token.function, .token.method, .token.attr-name { color: var(--t-function); }
.token.class-name, .token.builtin, .token.property, .token.namespace, .token.variable { color: var(--t-type); }
.token.punctuation, .token.operator { color: var(--t-punct); }
.token.bold { font-weight: 700; } .token.italic { font-style: italic; }

.note-body .math { font-family: var(--font-mono); font-size: .9em; color: var(--fg-muted); }
.note-body .math-inline { padding: .05em .3em; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); }
.note-body .math-block { display: block; overflow-x: auto; padding: .9rem 1.1rem; margin: 0 0 1.15em; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); white-space: pre; text-align: center; }

.note-body .el-table, .note-body table { display: block; max-width: 100%; overflow-x: auto; }
.note-body table { border-collapse: collapse; font-size: .94rem; line-height: 1.5; width: max-content; min-width: 100%; }
.note-body th, .note-body td { padding: .55em .85em; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.note-body th { font-weight: 600; border-bottom-width: 2px; border-bottom-color: var(--border-strong); background: var(--bg-soft); }
.note-body th[align="center"], .note-body td[align="center"] { text-align: center; }
.note-body th[align="right"], .note-body td[align="right"] { text-align: right; }
.note-body tbody tr:hover { background: var(--bg-soft); }

.note-body .callout { --c: var(--c-blue); padding: .85rem 1.1rem; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); border-left: 4px solid var(--c); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c) 6%, var(--bg)); }
.note-body .callout-title { display: flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--c); line-height: 1.45; }
.note-body summary.callout-title { cursor: pointer; list-style: none; }
.note-body summary.callout-title::-webkit-details-marker { display: none; }
.note-body summary.callout-title::after { content: ""; margin-left: auto; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%206%206%206-6%206'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%206%206%206-6%206'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; transition: transform .15s; }
.note-body details[open] > summary.callout-title::after { transform: rotate(90deg); }
.note-body .callout-content { margin-top: .5rem; }
.note-body .callout-content > :last-child { margin-bottom: 0; }
.note-body .callout[data-callout="tip"], .note-body .callout[data-callout="hint"], .note-body .callout[data-callout="important"], .note-body .callout[data-callout="success"], .note-body .callout[data-callout="check"], .note-body .callout[data-callout="done"] { --c: var(--c-green); }
.note-body .callout[data-callout="warning"], .note-body .callout[data-callout="caution"], .note-body .callout[data-callout="attention"], .note-body .callout[data-callout="question"], .note-body .callout[data-callout="help"], .note-body .callout[data-callout="faq"] { --c: var(--c-orange); }
.note-body .callout[data-callout="danger"], .note-body .callout[data-callout="error"], .note-body .callout[data-callout="bug"], .note-body .callout[data-callout="failure"], .note-body .callout[data-callout="fail"], .note-body .callout[data-callout="missing"] { --c: var(--c-red); }
.note-body .callout[data-callout="example"] { --c: var(--c-purple); }
.note-body .callout[data-callout="abstract"], .note-body .callout[data-callout="summary"], .note-body .callout[data-callout="tldr"] { --c: var(--c-cyan); }
.note-body .callout[data-callout="quote"], .note-body .callout[data-callout="cite"] { --c: var(--c-gray); }

.note-body .note-embed { padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.note-body .note-embed-title { font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .5rem; }
.note-body .note-embed-title a { color: var(--fg-muted); text-decoration: none; }
.note-body .note-embed-body > :last-child { margin-bottom: 0; }
.note-body .embed-unpublished { padding: .75rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--fg-faint); font-size: .9rem; margin: 0 0 1.15em; }
.note-body figure { margin-left: 0; margin-right: 0; }
.note-body figure.diagram { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff; text-align: center; overflow-x: auto; }
.note-body figure.diagram img { border-radius: 0; }

.note-body .footnote-ref a { text-decoration: none; font-size: .8em; padding: 0 .1em; }
.note-body section.footnotes { margin-top: 3rem; font-size: .9rem; color: var(--fg-muted); }
.note-body section.footnotes hr { margin: 0 0 1.25rem; }
.note-body .footnote-backref { text-decoration: none; margin-left: .25em; }

.backlinks { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.aside-title { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 .75rem; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.link-list a { text-decoration: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); transition: border-color .15s, background .15s; }
.pager a:hover { border-color: var(--accent-ink); background: var(--accent-soft); }
.pager .pager-next { grid-column: 2; text-align: right; }
.pager-label { font-size: .78rem; color: var(--fg-faint); }
.pager-title { font-weight: 600; color: var(--accent-ink); }
@media (max-width: 30rem) { .pager { grid-template-columns: 1fr; } .pager .pager-next { grid-column: 1; } }

.listing-title { font-size: 1.1rem; margin: 2.25rem 0 .75rem; }
.listing-title a { color: inherit; text-decoration: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.card { position: relative; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-title { font-weight: 650; font-size: 1.05rem; color: var(--fg); text-decoration: none; }
.card-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.card-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: .3rem 0 0; font-size: .84rem; color: var(--fg-faint); }
.card-desc { margin: .45rem 0 0; color: var(--fg-muted); font-size: .95rem; }
.card-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; }
.tag-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud .count { margin-left: .4em; color: var(--fg-faint); }
.home-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.noscript { color: var(--fg-faint); font-size: .9rem; }

.search-dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(36rem, 80vh); margin: 10vh auto auto; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); color: var(--fg); box-shadow: var(--shadow); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgb(10 12 15 / 45%); backdrop-filter: blur(2px); }
.search-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem 1rem; border-bottom: 1px solid var(--border); color: var(--fg-faint); }
.search-input { flex: 1; min-width: 0; height: 2.5rem; border: 0; background: none; color: var(--fg); font: inherit; font-size: 1.05rem; outline: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-status { margin: 0; padding: 0 1rem; color: var(--fg-faint); font-size: .9rem; }
.search-status:not(:empty) { padding: 1rem; }
.search-results { list-style: none; margin: 0; padding: .4rem; overflow: auto; }
.search-results a { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--fg); }
.search-results a:hover, .search-results a:focus { background: var(--accent-soft); outline: none; }
.result-title { font-weight: 600; }
.result-snippet { font-size: .85rem; color: var(--fg-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.site-footer { padding: 2.5rem clamp(1rem, 3vw, 1.75rem) 3rem; color: var(--fg-faint); font-size: .85rem; text-align: center; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-nav, .toc, .backlinks, .pager, .site-footer, .copy-button, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block !important; max-width: none !important; padding: 0 !important; }
  .note-body a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .note-body pre, .note-body .callout, .note-body table { break-inside: avoid; }
}


:root { --font-heading: var(--font-serif); }
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header-inner { max-width: calc(var(--measure) + 4rem); margin: 0 auto; }
.site-name { font: 700 1.15rem/1.2 var(--font-serif); letter-spacing: -0.01em; }
.layout { display: block; max-width: calc(var(--measure) + 4rem); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.site-nav, .toc { display: none !important; }
.page { padding: clamp(2rem, 6vw, 4.5rem) 0 3rem; }
.breadcrumb { justify-content: center; }
.note-header { text-align: center; margin-bottom: 2.75rem; }
.note-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.02em; }
.note-meta { justify-content: center; }
.note-lede { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; }
.note-body { font-size: 1.1rem; }
.note-body h2 { border-bottom: 0; padding-bottom: 0; }
.home .note-header { text-align: left; margin-bottom: 1rem; }
.home .note-meta { justify-content: flex-start; }
.listing-title { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); font-family: var(--font-sans); margin-top: 2.5rem; }
.cards { gap: 0; }
.card { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 1.4rem 0; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 1.5rem; }
.card:hover { box-shadow: none; border-color: var(--border); }
.card:hover .card-title { color: var(--accent-ink); }
.card > * { grid-column: 2; }
.card-meta { grid-column: 1; grid-row: 1 / span 3; margin: .25rem 0 0; flex-direction: column; gap: .2rem; font-variant-numeric: tabular-nums; }
.card-title { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; }
.card-desc { font-size: 1rem; }
.pager a { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 1rem 0; }
.pager a:hover { background: none; }
@media (max-width: 40rem) {
  .card { grid-template-columns: 1fr; }
  .card > *, .card-meta { grid-column: 1; grid-row: auto; }
  .card-meta { flex-direction: row; order: -1; margin: 0 0 .35rem; }
}

:root { --accent: #3b5bdb; --measure: 43rem; --font-body: var(--font-mono); --chev: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%206%206%206-6%206'%2F%3E%3C%2Fsvg%3E"); }
