/* The reading pages share the homepage's quiet editorial character. */
.notes-page { --content-max: 1120px; --signature-accent: #bd7056; --rule: rgb(32 37 41 / 20%); --shadow: none; --shadow-hover: none; background-image: none; }
html[data-theme="dark"] .notes-page { --rule: rgb(241 243 244 / 20%); background-image: none; }
.notes-page .top-bar { position: sticky; top: 0; z-index: 95; padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: none; }
.notes-page .top-bar__inner { gap: 24px; align-items: center; }
.notes-page .site-signature { margin-right: auto; font: italic 700 2rem var(--font-display); letter-spacing: -.08em; }
.notes-page .site-signature span, .notes-footer__signature span { color: var(--signature-accent); }
.notes-page .pref-btn, .notes-page .lang-picker__trigger, .notes-page .controls-trigger { box-shadow: none; }
.notes-page .controls-panel .lang-picker__trigger, .notes-page .controls-panel .pref-btn { box-shadow: none; }
.notes-main { width: min(100% - var(--gutter) * 2, 1040px); margin: 0 auto; padding: clamp(28px, 4vw, 48px) 0 64px; }
.notes-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.notes-hero h1 { font: 400 clamp(2.4rem, 5vw, 3.25rem)/1.1 var(--font-display); letter-spacing: -.045em; overflow-wrap: anywhere; min-width: 0; }
.notes-hero > div { min-width: 0; }
.notes-hero__intro { color: var(--mute); max-width: 35em; margin-top: 20px; font-size: 1rem; }
.notes-feed-link, .notes-back, .note-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-text); font-size: .8125rem; }
.notes-back { font-size: .875rem; }
.notes-feed-link { flex: 0 0 auto; }
.notes-feed-link svg { width: 16px; height: 16px; }
.notes-feed-link:hover, .notes-back:hover, .note-share:hover { text-decoration: underline; text-underline-offset: 5px; }
.notes-list { list-style: none; }
.note-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 28px; padding: 26px 0; border-top: 1px solid var(--rule); }
.note-card__date { color: var(--mute); font-size: .8125rem; line-height: 1.7; padding-top: 4px; }
.note-card__link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; border-radius: 3px; }
.note-card__link--photo { grid-template-columns: minmax(0, 1fr) 208px; }
.note-card__copy { display: block; min-width: 0; }
.note-card__link > picture { display: block; }
.note-card__link:active { transform: scale(.995); }
.note-card__title { font: 400 1.6rem/1.3 var(--font-display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.note-card__link:hover .note-card__title { color: var(--accent-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.note-card__excerpt { color: var(--mute); font-size: .875rem; line-height: 1.7; margin-top: 8px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-card__image { display: block; width: 100%; height: auto; max-height: 138px; object-fit: contain; border-radius: 8px; }
.note-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--mute); font-size: .75rem; }
.note-categories { display: flex; flex-wrap: wrap; gap: 8px; font-size: .75rem; color: var(--mute); }
.note-categories > * { padding: 3px 9px; border: 1px solid var(--rule); border-radius: 5px; }
.note-categories a { color: var(--accent-text); }
.note-card > .note-categories { grid-column: 2; margin-top: 0; }
.note-header .note-categories { margin-top: 12px; }
.note-lifetime { margin: 4px 0 16px; color: var(--mute); font-size: .75rem; line-height: 1.6; }
.note-lifetime time { white-space: nowrap; }
.note-expired { max-width: 720px; margin: 0 auto; }
.note-expired h1 { margin-top: 28px; font: 400 clamp(1.8rem, 5vw, 2.5rem)/1.2 var(--font-display); }
.note-expired p { margin-top: 16px; color: var(--mute); }
html[data-note-expired] .notes-post { display: none; }
html[data-note-expired] .note-expired { display: block; }
.notes-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.notes-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 20px; font-size: .8125rem; }
.notes-topics [aria-current] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.note-return { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin-bottom: 12px; }
.note-return .notes-back { margin-bottom: 0; }
.note-return [data-note-site-return] { color: var(--mute); font-size: .8125rem; }
.notes-site-return { margin-bottom: 16px; }
.note-contents { margin-bottom: 20px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .8125rem; }
.note-contents summary { cursor: pointer; font-weight: 600; color: var(--mute); }
.note-contents ol { list-style: none; padding: 12px 0 0; }
.note-contents li + li { margin-top: 8px; }
.note-contents a { display: block; padding: 4px 0; color: var(--accent-text); }
.note-body h2[id] { scroll-margin-top: 8px; }
.note-body h2[id]:focus { outline: none; }
.note-body h2[id]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 5px; }
@media (min-width: 1200px) {
  .notes-page .notes-post--long { max-width: none; }
  .notes-post--long > :not(.note-reading-layout) { max-width: 720px; }
  .note-reading-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 210px); gap: 48px; align-items: start; }
  .note-reading-layout > .note-body { grid-column: 1; grid-row: 1; }
  .note-contents { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top-bar-h) + 28px); margin-top: 0; }
}
.note-contents [aria-current] { color: var(--ink); background: var(--accent-soft); border-radius: 4px; padding-inline: 8px; margin-inline: -8px; }
.note-card__more { color: var(--accent-text); }
.notes-empty { padding: 48px 0 64px; border-top: 1px solid var(--rule); }
.notes-empty__mark { display: inline-flex; padding: 16px; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent-text); margin-bottom: 24px; }
.notes-empty h2 { font: 400 1.75rem/1.3 var(--font-display); margin-bottom: 12px; }
.notes-empty p { color: var(--mute); font-size: .9375rem; }
.notes-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 24px; border-top: 1px solid var(--rule); }
.notes-pagination a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-text); font-size: .875rem; }
.notes-post { max-width: 720px; margin: 0 auto; }
.notes-back { margin-bottom: 28px; }
.note-header { margin-bottom: 16px; }
.note-header__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; }
.note-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.note-like { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: .8125rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.note-like[hidden] { display: none; }
.note-like svg { flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; }
.note-like[aria-pressed="true"] svg { fill: currentColor; color: #ab3654; }
[data-theme="dark"] .note-like[aria-pressed="true"] svg { color: #f685a1; }
.note-like:active svg { transform: scale(.89); }
.note-like-status { margin-top: 10px; color: var(--mute); font-size: .8125rem; }
.note-like-status:empty { margin: 0; }
@media (hover: hover) { .note-like:hover { text-decoration: underline; text-underline-offset: 5px; } }
@media (prefers-reduced-motion: no-preference) { .note-like svg { transition: transform 120ms ease, color 120ms ease; } }
.note-header__date { font-size: .8125rem; color: var(--mute); }
.note-header__language { white-space: nowrap; }
.note-header h1 { margin-top: 10px; font: 400 clamp(2rem, 6vw, 3.4rem)/1.16 var(--font-display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.note-header__summary { margin-top: 8px; color: var(--mute); font-size: 1.125rem; line-height: 1.6; }
.note-language { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); color: var(--mute); font-size: .75rem; }
.note-language a { min-height: 32px; display: inline-flex; align-items: center; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.note-language [aria-current] { font-weight: 600; text-decoration: none; color: var(--ink); }
.note-body { font-size: 1.0625rem; line-height: 1.85; overflow-wrap: anywhere; }
.note-body > * + * { margin-top: 1.4em; }
.note-body p + p { margin-top: 1.2em; }
.note-body h2, .note-body h3, .note-body h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.3; margin-top: 1.75em; }
.note-body h2 { font-size: 1.8rem; }.note-body h3 { font-size: 1.4rem; }.note-body h4 { font-size: 1.2rem; }
.note-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.note-body ul, .note-body ol { padding-left: 1.4em; }
.note-body li + li { margin-top: .4em; }
.note-body blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent-text); color: var(--mute); font-family: var(--font-display); font-size: 1.15em; }
.note-body blockquote > * + * { margin-top: .7em; }
.note-body pre { padding: 20px; overflow-x: auto; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 6px; font-size: .8125rem; }
.note-body code { font-family: var(--font-mono); font-size: .9em; }
.note-body :not(pre) > code { padding: .1em .3em; border-radius: 3px; background: var(--bg-card); }
.note-body pre code { font-size: inherit; line-height: 1.7; white-space: pre; overflow-wrap: normal; }
.note-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin-block: 28px; border: 1px solid var(--rule); border-radius: 6px; }
.note-table:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.note-table table { width: 100%; border-collapse: collapse; font: inherit; font-size: .875em; line-height: 1.65; }
.note-table caption { text-align: start; padding: 14px 16px; font-weight: 600; color: var(--ink); }
.note-table th, .note-table td { min-width: 8ch; padding: 12px 16px; text-align: start; vertical-align: top; border-top: 1px solid var(--rule); }
.note-table th { font-weight: 600; background: var(--bg-card); }
.note-table tbody tr:last-child td { border-bottom: 0; }
html[data-lightweight] .note-table { border-radius: 0; }
html[data-lightweight] .note-table th, html[data-lightweight] .note-table td { padding: 8px; }
.note-body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 40px; }
.note-body img { max-width: 100%; height: auto; }
.note-media { margin-block: 32px; }
.note-media img, .note-media video { width: 100%; height: auto; border-radius: 6px; display: block; }
.note-media video { max-height: 75vh; background: #111; }
.note-media figcaption { margin-top: 10px; color: var(--mute); font-size: .8125rem; line-height: 1.7; }
.note-media__link { display: inline-flex; min-height: 40px; align-items: center; font-size: .8125rem; }
.note-media details { color: var(--mute); font-size: .875rem; margin-top: 8px; }.note-media summary { cursor: pointer; min-height: 40px; }
.note-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.note-end .notes-back { margin: 0; }.note-share { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }.note-share svg { flex: 0 0 20px; }.note-share:active { transform: scale(.97); }
.note-share-fallback { display: block; width: 100%; margin-top: 16px; color: var(--mute); font-size: .8125rem; }.note-share-fallback input { display: block; width: 100%; margin-top: 8px; padding: 10px; color: var(--ink); background: var(--bg-card); border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
.notes-footer { padding-top: 0; border-top: 0; }.notes-footer .footer__inner { border-top: 1px solid var(--rule); padding-top: 32px; }.notes-footer__signature { font: 400 1.5rem var(--font-display); }
.notes-page :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 5px; }
@media (max-width: 767px) {
  .notes-page .top-bar__inner { gap: 16px; }
  .notes-hero { align-items: center; flex-direction: row; gap: 12px; margin-bottom: 28px; }
  .notes-main { padding-top: 40px; }.note-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 28px; }
  .note-card__title { font-size: 1.4rem; }.note-card__image { max-height: 110px; }.note-body { font-size: 1rem; }
  .note-card__link--photo { grid-template-columns: minmax(0, 1fr) 144px; gap: 16px; }
  .note-card > .note-categories { grid-column: 1; margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) { .note-card__link, .note-share { transition: transform 100ms ease; } }
html[data-lightweight] .notes-main { padding-top: 24px; } html[data-lightweight] .notes-hero h1 { font-size: 2rem; }
html[data-lightweight] .notes-hero { gap: 8px; }.notes-page [data-host-pref] { display: none; }
html[data-lightweight] .notes-hero { align-items: start; flex-direction: column; }
html[data-lightweight] .note-header h1 { font-size: 1.7rem; } html[data-lightweight] .note-body { font-size: .9375rem; }
html[data-lightweight] .note-card__image { max-height: 180px; } html[data-lightweight] .note-media { margin-block: 20px; }
@media (max-width: 480px) { .note-card__link--photo { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }.note-card__title { font-size: 1.25rem; } }
html[data-lightweight] .note-card__link { grid-template-columns: minmax(0, 1fr); }
html[data-lightweight] .note-card__link > picture, html[data-lightweight] .note-card__link > .note-card__image { display: none; }
html[data-lightweight] .notes-main { padding-top: 12px; }
html[data-lightweight] .notes-back { margin-bottom: 12px; min-height: 36px; }
html[data-lightweight] .note-return { margin-bottom: 12px; }
html[data-lightweight] .note-return .notes-back { margin-bottom: 0; }
html[data-lightweight] .note-header { margin-bottom: 16px; }
html[data-lightweight] .note-header h1 { margin-top: 8px; }
html[data-lightweight] .note-header__summary { font-size: 1rem; }
html[data-lightweight] .note-header__language { white-space: normal; }
html[data-lightweight] .note-end { margin-top: 24px; }

/* Author-selected reading fonts use local faces, including script-specific fallbacks. */
.notes-post[data-note-font="sans"] .note-body { font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, sans-serif; }
.notes-post[data-note-font="serif"] .note-body { font-family: Georgia, "Iowan Old Style", "Songti SC", "Songti TC", "Hiragino Mincho ProN", "Noto Serif CJK JP", Batang, serif; }
.notes-post[data-note-font="mono"] .note-body { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9375rem; }
.notes-post:not([data-note-font="default"]) .note-body :is(h2, h3, h4, blockquote) { font-family: inherit; }
.notes-follow { max-width: 640px; margin-inline: auto; }
.notes-follow .notes-hero { margin-bottom: 28px; }
.notes-follow > p, .notes-follow__steps { color: var(--mute); line-height: 1.8; }
.notes-follow__steps { padding-left: 22px; margin-block: 24px 32px; }
.notes-follow__steps li + li { margin-top: 12px; }
.notes-follow__label { display: block; font-size: .8125rem; margin-bottom: 10px; }
.notes-follow__copy { display: flex; flex-wrap: wrap; gap: 12px; }
.notes-follow__copy input { flex: 1 1 240px; min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); background: var(--bg-card); font: 400 .875rem/1.5 var(--font); }
.notes-follow__copy button { min-height: 44px; padding: 12px 18px; border: 1px solid var(--rule); border-radius: 6px; color: var(--accent-text); background: var(--bg-card); font: inherit; font-size: .8125rem; cursor: pointer; }
.notes-follow__copy button[hidden], .notes-page [hidden] { display: none !important; }
.notes-follow__status { min-height: 24px; margin-top: 10px; font-size: .8125rem; }

@media (max-width: 767px) {
  .notes-post .note-header h1 { margin-top: 8px; }
  .notes-post .note-header { margin-bottom: 14px; }
  .notes-post .note-language { margin-bottom: 14px; }
  .notes-post .note-contents { padding-block: 6px; margin-bottom: 16px; }
}

.notes-recovery-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.note-card__image--crop{aspect-ratio:3/2;object-fit:cover}.notes-year{margin-top:32px}.notes-year>h2{font:400 1.15rem/1.5 var(--font-display);color:var(--mute);margin-bottom:12px}.notes-search{margin:0 0 24px;border-bottom:1px solid var(--rule);padding-bottom:14px}.notes-search>summary{cursor:pointer;color:var(--accent-text);font-size:.875rem;min-height:44px;align-content:center}.notes-search input{width:min(100%,480px);background:var(--bg);color:var(--ink);border:1px solid var(--rule);border-radius:8px;padding:12px;font:inherit;margin-top:12px}.notes-search input:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}.notes-search__status{font-size:.8125rem;color:var(--mute);margin-top:12px}.notes-search__results{list-style:none;padding:0}.notes-search__results li{border-top:1px solid var(--rule);padding:16px 0}.notes-search__results a{color:var(--accent-text);text-decoration:underline;text-underline-offset:4px}.notes-search__results p{font-size:.875rem;line-height:1.6;color:var(--mute);margin-top:6px}

.note-license { margin-top: 16px; color: var(--mute); font-size: .6875rem; line-height: 1.6; }
.note-license a { text-underline-offset: 3px; }

.note-comments { max-width: 42rem; margin-block: clamp(32px, 6vw, 60px) 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.note-comments[hidden], .note-comments [hidden] { display: none; }
.note-comments h2 { font: 400 clamp(1.45rem, 4vw, 2rem)/1.2 var(--font-display); margin-bottom: 14px; }
.note-comments__list ol { padding: 0; list-style: none; }
.note-comments__list li { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.note-comments__list li > p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; }
.note-comments__byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 4px; }
.note-comments__byline bdi { font-weight: 600; overflow-wrap: anywhere; }
.note-comments__byline time, .note-comments__muted { color: var(--mute); font-size: .8125rem; }
.note-comments__form { display: grid; gap: 6px; margin-top: 24px; }
.note-comments__form label { font-size: .875rem; font-weight: 600; }
.note-comments__form :is(input, textarea) { width: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-card); color: var(--ink); font: inherit; }
.note-comments__form input[name="name"] { max-width: 19rem; min-height: 44px; margin-bottom: 8px; }
.note-comments__form textarea { resize: vertical; }
.note-comments__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.note-comments__submit button, .note-comments__quiet { min-height: 44px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-card); color: var(--accent-text); font: inherit; font-size: .8125rem; cursor: pointer; }
.note-comments__quiet { margin-top: 8px; }
.note-comments__submit a { color: var(--accent-text); font-size: .8125rem; text-underline-offset: .2em; }
.note-comments__submit button[aria-disabled="true"], .note-comments__quiet[aria-disabled="true"] { opacity: .65; cursor: wait; }
[data-comments-status]:not(:empty) { margin-top: 10px; }
