body {
    margin: 0;
    min-height: 100vh;
    padding: clamp(32px, 6vw, 60px) clamp(16px, 4vw, 24px) 60px;
    font-family: var(--font-mono);
    line-height: 1.7;
}

.note-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.note-header {
    margin-bottom: 44px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.note-kicker,
.note-byline {
    color: var(--faint-text);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.note-kicker {
    margin: 0 0 10px;
}

h1 {
    margin: 0 0 14px;
    color: var(--heading-color);
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    font-weight: 400;
    line-height: 1.25;
}

.note-deck {
    max-width: 620px;
    margin: 0;
    color: var(--muted-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
}

.note-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    margin-top: 20px;
}

.note-byline span {
    position: relative;
}

.note-byline span:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -13px;
    color: var(--faint-text);
}

.note-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.note-topics li {
    padding: 3px 7px;
    border: 1px solid var(--border-color);
    color: var(--subtle-text);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.note-body {
    color: var(--muted-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.76;
}

.note-body h2,
.note-body h3 {
    color: var(--heading-color);
    font-family: var(--font-mono);
    font-weight: 400;
}

.note-body h2 {
    margin: 42px 0 14px;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.note-body h3 {
    margin: 32px 0 12px;
    font-size: 1rem;
}

.note-body p {
    margin: 0 0 22px;
}

.note-body a,
.note-return a {
    color: var(--link-color);
    text-underline-offset: 3px;
}

.note-body a:hover,
.note-body a:focus-visible,
.note-return a:hover,
.note-return a:focus-visible {
    color: var(--hover-color);
}

.note-body a:focus-visible,
.note-return a:focus-visible {
    outline: 1px solid var(--hover-color);
    outline-offset: 3px;
}

.note-body blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 22px;
    border-left: 1px solid var(--blockquote-border);
    color: var(--page-text);
}

.note-body ol,
.note-body ul {
    margin: 0 0 24px;
    padding-left: 26px;
}

.note-body li {
    margin-bottom: 8px;
}

.note-body code {
    padding: 0.08em 0.28em;
    background: rgba(127, 127, 127, 0.08);
    color: var(--page-text);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.note-body pre {
    overflow-x: auto;
    margin: 28px 0;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.note-body pre code {
    padding: 0;
    background: transparent;
}

.note-body figure {
    margin: 32px 0;
}

.note-body img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

.note-body figcaption {
    margin-top: 10px;
    color: var(--faint-text);
    font-size: 0.78rem;
    line-height: 1.5;
}

.note-body mjx-container[display="true"] {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1.4em 0 !important;
    padding: 0.3em 0;
}

.note-return {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

@media (max-width: 520px) {
    .note-body blockquote {
        padding-left: 16px;
    }
}
