.note-page { padding-top: 56px; }
.note-wrap { width: min(760px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: clamp(48px, 8vw, 100px) 0 0; }
.back, .note-end { color: var(--dim); font-size: 11px; }
.back:hover, .note-end a:hover { color: var(--accent); }
.note-header { border-bottom: 1px solid var(--line-2); padding: 42px 0 28px; }
.notes-index .note-header { border-bottom: 0; padding-bottom: 0; }
.notes-index .filters { margin-top: 32px; }
.note-header h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 400; letter-spacing: -.04em; text-transform: lowercase; }
.note-subtitle { margin: -6px 0 18px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--dim); font-size: 11px; }
.case-toggle { margin-left: auto; color: var(--fg-2); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 4px; }
.case-toggle:hover { color: var(--accent); }
.audio-player { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px; border: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.audio-play { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--fg); }
.audio-player label { margin-left: auto; } .audio-player select { color: var(--fg); background: var(--bg); border: 0; font: inherit; }
.note-content { padding: 32px 0 60px; line-height: 1.8; color: var(--fg-2); overflow-wrap: anywhere; --text-case: lowercase; --heading-case: lowercase; }
.note-content p, .note-content li, .note-content blockquote, .note-content figcaption, .note-content td, .note-content th { text-transform: var(--text-case); }
.note-content h1, .note-content h2, .note-content h3, .note-content h4, .note-content h5, .note-content h6 { text-transform: var(--heading-case); font-family: var(--mono); font-weight: 400; color: var(--fg); line-height: 1.4; margin: 2.4em 0 .8em; }
.note-content h2 { font-size: 22px; } .note-content h3 { font-size: 17px; }
.note-content p { margin: 0 0 1.3em; }
.note-content a { color: var(--fg); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.note-content a:hover { color: var(--accent); }
.note-content strong { color: var(--fg); font-weight: 550; }
.note-content blockquote { margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 1px solid var(--accent); color: var(--dim); }
.note-content ul, .note-content ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.note-content li { padding-left: .25em; margin: .35em 0; }
.note-content li::marker { color: var(--accent); }
.note-content img, .note-content video { display: block; max-width: 100%; height: auto; margin: 1.8em auto; border-radius: 4px; }
.note-content figure { margin: 1.5em 0; } .note-content figcaption { color: var(--dim); font: 11px var(--mono); margin: 0 0 8px; }
.note-content pre { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); padding: 18px; line-height: 1.55; font-size: 12px; }
.note-content code { font-family: var(--mono); font-size: .88em; } .note-content :not(pre) > code { color: var(--fg); background: rgba(var(--fg-rgb),.07); padding: 2px 4px; }
.note-content .hljs-comment, .note-content .hljs-quote { color: #8b949e; }
.note-content .hljs-keyword, .note-content .hljs-selector-tag, .note-content .hljs-literal { color: #ff7b72; }
.note-content .hljs-string, .note-content .hljs-title, .note-content .hljs-section { color: #a5d6ff; }
.note-content .hljs-number, .note-content .hljs-built_in, .note-content .hljs-attr { color: #79c0ff; }
.note-content .hljs-function, .note-content .hljs-title.function_ { color: #d2a8ff; }
.note-content .hljs-params, .note-content .hljs-variable { color: #ffa657; }
.note-content table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: 13px; }
.note-content th, .note-content td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; }
.tweet-card { display: block; border: 1px solid var(--line-2); border-radius: 8px; margin: 24px auto; padding: 16px; max-width: 560px; font-size: 14px; line-height: 1.55; }
.tweet-card-head { display: flex; gap: 10px; align-items: center; color: var(--fg); }
.tweet-card-head img { width: 36px; height: 36px; border-radius: 50%; margin: 0; }
.tweet-card-head small, .tweet-card-stats { color: var(--dim); font-size: 11px; }
.tweet-card-copy { margin: 12px 0; white-space: pre-wrap; }
.note-content .tweet-card-media { width: 100%; max-height: 420px; object-fit: cover; margin: 12px 0; }
.tweet-card-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
.tweet-card-action { white-space: nowrap; }
.note-end { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0 80px; }
@media(max-width:700px) { .note-wrap { padding-top: 40px; } .note-header { padding-top: 28px; } .note-page .nav-links { display: none; } }

:root[data-theme="light"] .note-content .hljs-comment, :root[data-theme="light"] .note-content .hljs-quote { color: #746e63; }
:root[data-theme="light"] .note-content .hljs-keyword, :root[data-theme="light"] .note-content .hljs-selector-tag, :root[data-theme="light"] .note-content .hljs-literal { color: #a52e26; }
:root[data-theme="light"] .note-content .hljs-string, :root[data-theme="light"] .note-content .hljs-title, :root[data-theme="light"] .note-content .hljs-section { color: #286043; }
:root[data-theme="light"] .note-content .hljs-number, :root[data-theme="light"] .note-content .hljs-built_in, :root[data-theme="light"] .note-content .hljs-attr { color: #225e86; }
:root[data-theme="light"] .note-content .hljs-function, :root[data-theme="light"] .note-content .hljs-title.function_ { color: #74489a; }
:root[data-theme="light"] .note-content .hljs-params, :root[data-theme="light"] .note-content .hljs-variable { color: #925018; }
