@charset "UTF-8";

:root {
  --paper: #f8f5ed;
  --paper-deep: #efe9dd;
  --ink: #282622;
  --muted: #7d776d;
  --line: rgba(40, 38, 34, .14);
  --accent: #c86d61;
  --accent-soft: #efd0c8;
  --green: #788475;
  --code-bg: #eee8dc;
  --code-ink: #302d28;
  --code-comment: #898176;
  --code-green: #66765d;
  --code-blue: #55727a;
  --code-gold: #a36f38;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #201f1c;
  --paper-deep: #292721;
  --ink: #eee8dc;
  --muted: #aaa397;
  --line: rgba(238, 232, 220, .15);
  --accent: #df8879;
  --accent-soft: #69433c;
  --green: #9aa794;
  --code-bg: #292721;
  --code-ink: #eee8dc;
  --code-comment: #9d968a;
  --code-green: #aabd9c;
  --code-blue: #9bb9bf;
  --code-gold: #d0a36e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--paper); }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(135, 101, 64, .035) 0 1px, transparent 1.2px),
    var(--paper);
  background-size: 6px 6px;
  font-family: var(--serif);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  transition: color .25s ease, background-color .25s ease;
}
body.search-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, summary { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--ink); background: var(--accent-soft); }

/* Desktop page scrollbar */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 58%, var(--accent) 42%) var(--paper);
  }
  html::-webkit-scrollbar { width: 12px; height: 12px; }
  html::-webkit-scrollbar-track { background: var(--paper); box-shadow: inset 1px 0 var(--line); }
  html::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 3px solid var(--paper);
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 58%, var(--accent) 42%);
    background-clip: padding-box;
    transition: background-color .18s ease;
  }
  html::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 78%, var(--muted)); }
  html::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
  html::-webkit-scrollbar-button { width: 0; height: 0; display: none; }
  html::-webkit-scrollbar-corner { background: var(--paper); }
}

.site-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
.wrap { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 5px 22px rgba(50, 41, 30, .035); }
.header-inner { min-height: 74px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand strong { font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.brand span { color: var(--accent); font-size: 14px; transform: rotate(-12deg); transition: transform .25s ease; }
.brand:hover span { transform: rotate(18deg) scale(1.12); }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font: 500 12px/1 var(--sans); }
.desktop-nav-item { position: relative; display: flex; align-items: center; }
.desktop-nav-item.has-children::after { content: ""; position: absolute; top: 100%; left: -10px; width: calc(100% + 20px); height: 12px; }
.desktop-nav-item > a { position: relative; padding: 8px 0; color: var(--muted); transition: color .2s ease, transform .2s ease; }
.desktop-nav-item > a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: var(--accent); transition: left .2s ease, right .2s ease; }
.desktop-nav-item > a:hover { color: var(--ink); transform: translateY(-1px); }
.desktop-nav-item > a:hover::after { left: 0; right: 0; }
.desktop-nav-item > a.current, .desktop-nav-item > a.parent-current { color: var(--accent); }
.desktop-submenu-toggle { width: 20px; height: 28px; margin: 0 -7px 0 1px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.nav-chevron { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease, color .2s ease; }
.desktop-nav-item.is-open .nav-chevron, .desktop-nav-item:hover .nav-chevron, .desktop-nav-item:focus-within .nav-chevron { color: var(--accent); transform: translateY(1px) rotate(225deg); }
.desktop-submenu { position: absolute; z-index: 5; top: calc(100% + 10px); left: -20px; min-width: 176px; padding: 11px 9px 9px; visibility: hidden; opacity: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: 0 16px 35px rgba(46, 37, 27, .12); transform: translateY(-7px) rotate(-.35deg); transform-origin: top left; transition: opacity .18s ease, visibility .18s ease, transform .2s ease; }
.desktop-submenu::before { content: ""; position: absolute; top: -6px; left: 28px; width: 42px; height: 11px; background: rgba(203, 177, 128, .42); transform: rotate(2deg); }
.desktop-nav-item.is-open .desktop-submenu, .desktop-nav-item:hover .desktop-submenu, .desktop-nav-item:focus-within .desktop-submenu { visibility: visible; opacity: 1; transform: translateY(0) rotate(-.35deg); }
.desktop-submenu a { position: relative; min-height: 38px; padding: 10px 12px 10px 22px; display: flex; align-items: center; border-radius: 4px; color: var(--muted); line-height: 1.45; white-space: nowrap; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.desktop-submenu a::before { content: ""; position: absolute; left: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--line); transition: background-color .18s ease, transform .18s ease; }
.desktop-submenu a:hover, .desktop-submenu a:focus-visible, .desktop-submenu a.current, .desktop-submenu a.parent-current { color: var(--accent); background: var(--paper-deep); transform: translateX(2px); outline: none; }
.desktop-submenu a:hover::before, .desktop-submenu a:focus-visible::before, .desktop-submenu a.current::before, .desktop-submenu a.parent-current::before { background: var(--accent); transform: scale(1.35); }
.header-tools { display: flex; align-items: center; gap: 9px; margin-left: 25px; }
.search-button, .theme-toggle { height: 34px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.search-button { width: 34px; display: grid; place-items: center; }
.search-glyph { position: relative; display: block; width: 14px; height: 14px; }
.search-glyph::before { content: ""; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border: 1.4px solid currentColor; border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; width: 5px; height: 1.4px; left: 9px; top: 10px; border-radius: 999px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.theme-toggle { display: flex; align-items: center; gap: 6px; padding: 0 11px; font: 500 10px/1 var(--sans); }
.search-button:hover, .theme-toggle:hover { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-2px) rotate(-3deg); box-shadow: 0 5px 13px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-toggle > span:first-child { display: inline-block; transition: transform .35s ease; }
.theme-toggle:hover > span:first-child { transform: rotate(180deg); }
.desktop-nav-item > a:focus-visible, .desktop-submenu-toggle:focus-visible, .search-button:focus-visible, .theme-toggle:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mobile-menu { display: none; }

/* PJAX */
.pjax-progress { position: fixed; z-index: 80; top: 73px; left: 0; width: 100%; height: 2px; opacity: 0; pointer-events: none; background: var(--accent); box-shadow: 0 1px 7px color-mix(in srgb, var(--accent) 45%, transparent); transform: scaleX(0); transform-origin: left center; }
body.ato-pjax-loading .pjax-progress { opacity: 1; animation: ato-pjax-progress 1.15s cubic-bezier(.2, .7, .25, 1) forwards; }
body.ato-pjax-loading .pjax-progress.is-finishing { opacity: 0; transform: scaleX(1); animation: none; transition: opacity .18s ease .08s, transform .18s ease; }
[data-ato-pjax-main] { transition: opacity .16s ease, transform .2s ease; }
body.ato-pjax-leaving [data-ato-pjax-main] { opacity: .45; transform: translateY(5px); }
[data-ato-pjax-main].ato-pjax-entering { animation: ato-pjax-paper-in .28s cubic-bezier(.2, .75, .25, 1); }
[data-ato-pjax-main][tabindex="-1"]:focus { outline: none; }

/* Search paper */
.search-panel { position: fixed; z-index: 100; inset: 0; display: grid; place-items: start center; padding-top: min(22vh, 190px); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(25, 23, 20, .48); cursor: default; backdrop-filter: blur(4px); }
.search-paper { position: relative; width: min(560px, calc(100% - 36px)); padding: 31px 34px 29px; background: var(--paper); box-shadow: 0 22px 70px rgba(0, 0, 0, .22); transform: rotate(-.35deg) translateY(-10px); transition: transform .22s ease; }
.search-panel.is-open .search-paper { transform: rotate(-.35deg) translateY(0); }
.search-paper::before { content: ""; position: absolute; top: -9px; left: 42%; width: 76px; height: 18px; background: rgba(203, 177, 128, .5); transform: rotate(2deg); }
.search-paper label { display: block; margin-bottom: 18px; font-size: 23px; }
.search-paper > div { display: flex; border-bottom: 1px solid var(--ink); }
.search-paper input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 14px/1.5 var(--sans); }
.search-paper button { padding: 0 2px 0 18px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: 600 11px/1 var(--sans); }
.search-paper small { display: block; margin-top: 15px; color: var(--muted); font: 500 9px/1 var(--sans); }

/* Home */
.blog-main { padding-block: 80px 120px; }
.hello { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 250px; gap: 30px; align-items: center; margin: 0 auto 105px; }
.little-mark { display: inline-block; margin-bottom: 18px; color: var(--accent); font: 600 11px/1 var(--sans); letter-spacing: .08em; }
.hello h1 { margin: 0 0 25px; font-size: clamp(38px, 6vw, 58px); line-height: 1.2; font-weight: 500; letter-spacing: -.045em; }
.hello-copy > p { max-width: 570px; margin: 0; font-size: 16px; line-height: 2; }
.hello-copy .hello-soft { margin-top: 12px; color: var(--muted); font-size: 14px; }
.hello-soft[data-hitokoto] { display: flex; max-width: 550px; margin-top: 17px; padding-left: 14px; flex-direction: column; gap: 5px; border-left: 2px solid color-mix(in srgb, var(--accent) 58%, transparent); line-height: 1.9; }
.hello-soft [data-hitokoto-text] { display: block; overflow-wrap: anywhere; }
.hello-soft small { display: block; max-width: 80%; margin: 0 4px 0 auto; color: color-mix(in srgb, var(--muted) 84%, var(--ink)); font: 500 11px/1.7 var(--sans); text-align: right; overflow-wrap: anywhere; }
.hello-postcard { width: 250px; margin: 0; padding: 10px 10px 32px; background: #f4efe4; box-shadow: 0 15px 35px rgba(69, 53, 37, .12); transform: rotate(2.2deg); }
:root[data-theme="dark"] .hello-postcard { background: #343028; }
.hello-postcard img { width: 100%; height: 285px; object-fit: cover; object-position: 63% 58%; filter: saturate(.72) contrast(.96); }
.hello-postcard figcaption { margin-top: 10px; color: var(--muted); font: 500 9px/1.4 var(--sans); text-align: center; }
.hello::after { content: "✦"; position: absolute; right: 264px; bottom: 20px; color: var(--accent); font-size: 16px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 640px) 210px; gap: 70px; align-items: start; }
.stream-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.stream-heading h2 { margin: 0; font-size: 25px; font-weight: 600; }
.stream-heading span { color: var(--muted); font: 500 10px/1 var(--sans); }
.post-entry { padding: 37px 0 39px; border-bottom: 1px solid var(--line); }
.post-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font: 500 10px/1.5 var(--sans); }
.meta-category, .meta-category a { color: var(--accent); }
.post-entry h2 { margin: 14px 0 12px; font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; }
.post-entry h2 a { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; transition: background-size .25s ease; }
.post-entry h2 a:hover { background-size: 100% 1px; }
.post-excerpt, .post-excerpt p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.diary-slip { display: block; position: relative; margin-top: 27px; padding: 24px 28px 22px; background: var(--paper-deep); transform: rotate(-.35deg); transition: transform .2s ease; }
.diary-slip:hover { transform: rotate(.15deg) translateY(-2px); }
.diary-slip::before { content: ""; position: absolute; width: 74px; height: 18px; left: 42%; top: -10px; background: rgba(204, 179, 132, .38); transform: rotate(1.5deg); }
.diary-slip > span { color: var(--accent); font: 600 9px/1 var(--sans); letter-spacing: .1em; }
.diary-slip blockquote, .diary-slip blockquote p { margin: 16px 0; font-size: 17px; line-height: 1.8; white-space: pre-line; }
.diary-slip b { font: 600 10px/1 var(--sans); }
.blog-sidebar { position: sticky; top: 105px; }
.now-note { display: block; position: relative; margin: 8px 0 48px; padding: 28px 22px 22px; background: #e9e4d5; color: #36332e; transform: rotate(1.2deg); box-shadow: 0 9px 24px rgba(69, 53, 37, .08); }
:root[data-theme="dark"] .now-note { background: #353229; color: #eee8dc; }
.tape { position: absolute; width: 58px; height: 17px; left: 50%; top: -9px; background: rgba(203, 177, 128, .5); transform: translateX(-50%) rotate(-3deg); }
.now-note small { color: var(--accent); font: 700 9px/1 var(--sans); letter-spacing: .1em; }
.now-note p { margin: 14px 0 20px; font-size: 13px; line-height: 1.85; }
.now-note time { color: var(--muted); font: 500 9px/1 var(--sans); }
.now-note-link { transition: transform .22s ease, box-shadow .22s ease; }
.now-note-link:hover { transform: rotate(.35deg) translateY(-4px); box-shadow: 0 15px 30px rgba(69, 53, 37, .13); }
.now-note-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.now-note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.now-note-foot b { color: var(--accent); font: 600 9px/1 var(--sans); }
.side-section { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); }
.side-section h2 { margin: 0 0 17px; font: 600 12px/1 var(--sans); }
.category-list { display: flex; flex-direction: column; }
.category-list a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: 13px; }
.category-list a:hover { color: var(--accent); }
.category-list span { font: 500 9px/1.8 var(--sans); }
.side-about-main { display: block; border-radius: 2px; }
.side-about-main h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-about-main h2 span { color: var(--accent); font-size: 14px; transition: transform .2s ease; }
.side-about p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.side-about-main:hover h2 { color: var(--accent); }
.side-about-main:hover h2 span { transform: translateX(4px); }
.side-about-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 15px; font: 500 13px/1.4 var(--sans); }
.side-links a { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 0 3px; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.side-links a:hover { color: var(--accent); border-color: var(--accent); }
.side-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Archive and paging */
.archive-page { width: min(760px, calc(100% - 40px)); padding-block: 45px 110px; }
.archive-header { margin-bottom: 35px; padding-bottom: 30px; border-bottom: 1px solid var(--ink); }
.archive-header h1 { margin: 0 0 15px; font-size: clamp(34px, 6vw, 48px); line-height: 1.3; font-weight: 500; letter-spacing: -.04em; }
.archive-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.page-nav { margin-top: 40px; }
.page-nav ol, .page-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; font: 500 11px/1 var(--sans); }
.page-nav a, .page-nav span { display: grid; min-width: 34px; height: 34px; padding-inline: 9px; place-items: center; border: 1px solid var(--line); border-radius: 999px; }
.page-nav a:hover, .page-nav .current a, .page-nav .current { color: #fff; border-color: var(--accent); background: var(--accent); }
.empty-paper { margin-top: 35px; padding: 36px; background: var(--paper-deep); transform: rotate(-.2deg); }
.empty-paper h2 { margin: 0 0 12px; font-size: 22px; }
.empty-paper p { margin: 0; color: var(--muted); line-height: 1.8; }

/* Reading page */
.reading-page { width: min(920px, calc(100% - 40px)); padding-block: 45px 110px; display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }
.reading-column { width: min(720px, 100%); min-width: 0; }
.reading-page.has-toc { position: relative; justify-content: start; }
.back-link { display: inline-block; margin-bottom: 55px; color: var(--muted); font: 500 11px/1 var(--sans); }
.back-link:hover { color: var(--accent); }
.diary-header { text-align: left; }
.diary-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font: 500 10px/1.5 var(--sans); }
.diary-meta a { color: var(--accent); }
.diary-header h1 { max-width: 720px; margin: 20px 0 22px; font-size: clamp(34px, 5.1vw, 48px); line-height: 1.38; font-weight: 500; letter-spacing: -.035em; }
.diary-header > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.page-article .diary-header { margin-bottom: 55px; }
.page-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font: 600 11px/1.5 var(--sans); letter-spacing: .04em; }
.page-breadcrumb a { color: var(--accent); transition: color .18s ease; }
.page-breadcrumb a:hover { color: var(--ink); }
.page-breadcrumb > span[aria-hidden] { color: var(--line); }
.page-breadcrumb > span[aria-current] { color: color-mix(in srgb, var(--muted) 82%, var(--ink)); }
.diary-photo { margin: 55px 0 60px; }
.diary-photo img { width: 100%; max-height: 520px; object-fit: cover; filter: saturate(.78) contrast(.96); }
.diary-photo figcaption { margin-top: 11px; color: var(--muted); font: 500 9px/1.5 var(--sans); text-align: center; }
.diary-content { width: 100%; margin: 52px 0 0; overflow-wrap: anywhere; }
.diary-content > p { margin: 0 0 28px; font-size: 17px; line-height: 2.05; }
.diary-content.has-drop-cap > p:first-of-type::first-letter { float: left; margin: .12em .13em 0 0; color: var(--accent); font-size: 3.15em; line-height: .78; font-weight: 500; }
.diary-content h2 { margin: 68px 0 25px; font-size: 27px; line-height: 1.5; font-weight: 600; }
.diary-content h3 { margin: 45px 0 20px; font-size: 21px; line-height: 1.6; }
.diary-content h2[id], .diary-content h3[id] { scroll-margin-top: 110px; }
.diary-content a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.diary-content blockquote { position: relative; margin: 55px 15px; padding: 20px 30px; color: var(--accent); font-size: 20px; line-height: 1.85; text-align: center; }
.diary-content blockquote::before, .diary-content blockquote::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.diary-content blockquote::before { top: 0; }
.diary-content blockquote::after { bottom: 0; }
.diary-content blockquote p { margin: 0; }
.diary-content ul, .diary-content ol { margin: 0 0 28px; padding-left: 1.5em; font-size: 16px; line-height: 2; }
.diary-content li + li { margin-top: 7px; }
.diary-content pre { margin: 34px 0; padding: 22px; overflow-x: auto; border: 1px solid var(--line); background: var(--paper-deep); font: 13px/1.8 Consolas, Monaco, monospace; }
.diary-content code { padding: .12em .35em; border-radius: 3px; background: var(--paper-deep); font: .88em/1.6 Consolas, Monaco, monospace; }
.diary-content pre code { padding: 0; background: transparent; }
.diary-content table { width: 100%; margin: 35px 0; border-collapse: collapse; font-size: 14px; }
.diary-content th, .diary-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.diary-content th { background: var(--paper-deep); }
.diary-content hr { margin: 55px 0; border: 0; border-top: 1px solid var(--line); }

/* Article image gallery */
.diary-content .ato-lightbox { position: relative; width: fit-content; max-width: 100%; margin: 36px auto; display: table; border: 0; cursor: zoom-in; line-height: 0; }
.diary-content p > .ato-lightbox:only-child { margin-block: 36px; }
.diary-content .ato-lightbox .ato-gallery-image { max-width: 100%; height: auto; margin: 0; transition: filter .24s ease, transform .24s ease; }
.diary-content .ato-lightbox::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 50%; background-color: color-mix(in srgb, var(--paper) 90%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d27364' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m14.7 14.7 4 4'/%3E%3C/svg%3E"); background-position: calc(50% - 1px) calc(50% - 1px); background-repeat: no-repeat; background-size: 17px 17px; box-shadow: 0 4px 15px rgba(55, 42, 29, .12); opacity: .82; transition: opacity .2s ease, transform .2s ease, background-color .2s ease; backdrop-filter: blur(5px); }
.diary-content .ato-lightbox:hover .ato-gallery-image { filter: saturate(.94) brightness(.98); transform: scale(.997); }
.diary-content .ato-lightbox:hover::after, .diary-content .ato-lightbox:focus-visible::after { opacity: 1; transform: scale(1.06); background-color: var(--paper); }
.diary-content .ato-lightbox:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 5px; }

.goverlay { background: color-mix(in srgb, var(--ink) 88%, #000); }
.glightbox-container .gslide { font-family: var(--sans); }
.glightbox-container .gslide-image img { max-height: calc(100vh - 120px); max-width: min(92vw, 1500px); box-shadow: 0 18px 60px rgba(0, 0, 0, .28); }
.glightbox-container .gslide-description { background: var(--paper); color: var(--ink); }
.glightbox-container .gdesc-inner { padding: 15px 20px 17px; }
.glightbox-container .gslide-title { margin: 0; color: var(--ink); font: 500 13px/1.75 var(--sans); text-align: center; }
.glightbox-container .gslide-desc { color: var(--muted); }
.glightbox-container .gbtn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: color-mix(in srgb, var(--accent) 78%, transparent); opacity: .9; transition: opacity .2s ease, transform .2s ease, background-color .2s ease; }
.glightbox-container .gbtn:hover, .glightbox-container .gbtn:focus-visible { background: var(--accent); opacity: 1; transform: translateY(-1px); outline: none; }
.glightbox-container .gbtn.disabled { opacity: .25; }
.glightbox-container .gclose { top: 22px; right: 22px; }
.glightbox-container .gnext { right: 22px; }
.glightbox-container .gprev { left: 22px; }

@media (max-width: 760px) {
  .diary-content .ato-lightbox, .diary-content p > .ato-lightbox:only-child { margin-block: 30px; }
  .diary-content .ato-lightbox::after { right: 10px; bottom: 10px; }
  .glightbox-container .gslide-image img { max-height: calc(100vh - 150px); max-width: 94vw; }
  .glightbox-container .gclose { top: max(13px, env(safe-area-inset-top)); right: 13px; }
  .glightbox-container .gnext { right: 10px; }
  .glightbox-container .gprev { left: 10px; }
  .glightbox-container .gdesc-inner { padding: 13px 18px calc(14px + env(safe-area-inset-bottom)); }
}

.diary-footer { width: 100%; margin: 52px 0 0; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font: 500 10px/1.5 var(--sans); }
.tags a { color: var(--accent); margin-right: 8px; }
.like-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font: 500 10px/1 var(--sans); transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.like-button:hover, .like-button.is-liked { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
.simple-next { margin-top: 85px; padding-block: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; border-block: 1px solid var(--line); }
.simple-next > div { display: flex; flex-direction: column; gap: 9px; }
.simple-next small { color: var(--muted); font: 500 9px/1 var(--sans); }
.simple-next span { font-size: 15px; line-height: 1.6; }
.simple-next a:hover { color: var(--accent); }
.next-link { text-align: right; }
.page-children { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-children-label { display: block; margin-bottom: 17px; color: var(--accent); font: 650 10px/1.5 var(--sans); letter-spacing: .09em; }
.page-children > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.page-children a { position: relative; min-height: 78px; padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-deep) 66%, var(--paper)); box-shadow: 0 7px 18px rgba(69, 53, 37, .045); transform: rotate(-.15deg); transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.page-children a:nth-child(even) { transform: rotate(.15deg); }
.page-children a::before { content: ""; position: absolute; top: -5px; left: 26px; width: 38px; height: 10px; background: rgba(203, 177, 128, .34); transform: rotate(-2deg); }
.page-children strong { font-size: 15px; line-height: 1.55; font-weight: 600; }
.page-children a > span { flex: 0 0 auto; padding-top: 3px; color: var(--muted); font: 500 10px/1.5 var(--sans); }
.page-children a i { color: var(--accent); font-style: normal; }
.page-children a:hover, .page-children a:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: 0 11px 25px rgba(69, 53, 37, .08); transform: translateY(-2px) rotate(0); outline: none; }

/* Comments */
.comments-area { margin-top: 75px; }
.comments-heading { display: flex; align-items: baseline; justify-content: space-between; }
.comments-heading h2 { margin: 0; font-size: 23px; }
.comments-heading span, .comments-empty, .comments-closed { color: color-mix(in srgb, var(--muted) 78%, var(--ink)); font: 500 13px/1.7 var(--sans); }
.comment-list, .comment-list ol { margin: 30px 0 0; padding: 0; list-style: none; }
.comment-item + .comment-item { margin-top: 22px; }
.comment-card { padding: 22px 24px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-deep) 52%, transparent); }
.comment-card header { display: flex; align-items: center; gap: 12px; }
.comment-card header img { width: 42px; height: 42px; border-radius: 50%; filter: saturate(.7); }
.comment-card header > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.comment-card strong { font-size: 14px; }
.comment-card time { color: color-mix(in srgb, var(--muted) 78%, var(--ink)); font: 500 12px/1.35 var(--sans); }
.comment-reply { color: var(--accent); font: 600 12px/1.35 var(--sans); }
.comment-text { margin-top: 15px; font-size: 15px; line-height: 1.85; }
.comment-text p { margin: 0; }
.comment-emote-image { display: inline-block; width: 32px; height: 32px; margin: 0 2px; border-radius: 0; vertical-align: -.55em; filter: none; object-fit: contain; }
.comment-emote { display: inline-block; width: 32px; height: 32px; margin: 0 2px; overflow: hidden; vertical-align: -.55em; }
.comment-emote img { display: block; width: 32px; max-width: none; height: auto; border-radius: 0; filter: none; transform: translateY(0); }
.comment-emote.is-animated:hover img, .comment-image-emote-grid button:hover .comment-emote.is-animated img, .comment-image-emote-grid button:focus-visible .comment-emote.is-animated img { animation: ato-emote-play var(--emote-duration) steps(var(--emote-frames)) infinite; }
.comment-children { margin: 15px 0 0 34px; }
.comment-by-author > .comment-card { border-left: 2px solid var(--accent); }
.comment-nav { margin-top: 22px; font: 500 12px/1.4 var(--sans); }
.respond-paper { position: relative; margin-top: 34px; padding: 28px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.respond-paper::before { display: none; }
.cancel-comment-reply { margin-bottom: 12px; color: var(--accent); font: 500 12px/1.4 var(--sans); }
.comment-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.comment-fields label, .comment-textarea-label { display: flex; flex-direction: column; gap: 6px; color: color-mix(in srgb, var(--muted) 78%, var(--ink)); font: 500 11px/1.4 var(--sans); }
.comment-fields label > span { color: var(--muted); }
.comment-fields input, .respond-paper textarea { width: 100%; outline: 0; color: var(--ink); font: 15px/1.6 var(--sans); transition: border-color .18s ease, background-color .18s ease; }
.comment-fields input { padding: 8px 1px 9px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.respond-paper textarea { margin-top: 22px; min-height: 148px; padding: 15px 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-deep) 45%, var(--paper)); resize: vertical; }
.comment-fields input:focus, .respond-paper textarea:focus { border-color: var(--accent); background-color: color-mix(in srgb, var(--paper-deep) 58%, var(--paper)); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.comment-emote-tools { position: relative; flex: 1 1 auto; min-width: 0; font-family: var(--sans); }
.comment-emote-toggle { display: inline-flex; min-height: 36px; padding: 0 12px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.comment-emote-toggle > span, .comment-emote-toggle b, .comment-emote-toggle i { display: inline-flex; height: 16px; align-items: center; justify-content: center; line-height: 16px; }
.comment-emote-toggle .comment-emote-face { width: 16px; flex: 0 0 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23d27364' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M5.65 9.15c.5 1 1.25 1.5 2.35 1.5s1.85-.5 2.35-1.5'/%3E%3Ccircle cx='6.1' cy='6.45' r='.45' fill='%23d27364' stroke='none'/%3E%3Ccircle cx='9.9' cy='6.45' r='.45' fill='%23d27364' stroke='none'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 16px 16px; }
.comment-emote-toggle b { font: 600 12px/16px var(--sans); }
.comment-emote-toggle i { width: 11px; color: var(--accent); font: 600 13px/16px var(--sans); font-style: normal; transform: translateY(-1px); transition: transform .2s ease; }
.comment-emote-toggle:hover, .comment-emote-tools.is-open .comment-emote-toggle { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 42%, transparent); transform: translateY(-1px); }
.comment-emote-tools.is-open .comment-emote-toggle i { transform: translateY(-1px) rotate(45deg); }
.comment-emote-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.comment-emote-popover { width: min(720px, calc(100vw - 32px)); margin-top: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, var(--paper-deep)); box-shadow: 0 14px 34px rgba(50, 41, 30, .09); }
.comment-emote-popover[hidden] { display: none; }
.comment-emote-tabs { display: flex; gap: 5px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.comment-emote-tabs button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 600 12px/1 var(--sans); transition: color .18s ease, background-color .18s ease; }
.comment-emote-tabs button[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); }
.comment-emote-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comment-emote-grid { display: grid; max-height: 238px; padding: 12px; overflow-x: hidden; overflow-y: auto; gap: 7px; scrollbar-width: thin; }
.comment-emote-grid[hidden] { display: none; }
.comment-kaomoji-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.comment-kaomoji-grid button { min-height: 38px; padding: 6px 9px; overflow: hidden; border: 1px solid transparent; border-radius: 4px; background: var(--paper-deep); color: var(--ink); cursor: pointer; font: 500 13px/1.35 var(--sans); text-overflow: ellipsis; white-space: nowrap; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.comment-image-emote-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.comment-image-emote-grid button { display: grid; min-width: 42px; height: 42px; padding: 5px; place-items: center; overflow: hidden; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.comment-image-emote-grid button > img { width: 32px; height: 32px; border-radius: 0; filter: none; object-fit: contain; }
.comment-image-emote-grid .comment-emote { margin: 0; vertical-align: baseline; }
.comment-emote-grid button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 42%, transparent); transform: translateY(-1px); }
.comment-emote-grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.comment-emote-popover > small { display: block; padding: 9px 13px 11px; border-top: 1px solid var(--line); color: var(--muted); font: 500 11px/1.4 var(--sans); text-align: right; }
.comment-submit { flex: 0 0 auto; min-height: 36px; padding: 0 17px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; font: 600 12px/1 var(--sans); }
.logged-in-note { margin: 0 0 16px; color: color-mix(in srgb, var(--muted) 78%, var(--ink)); font: 500 13px/1.7 var(--sans); }
.logged-in-note a { color: var(--accent); }

/* Article table of contents */
.article-toc { position: absolute; top: 125px; bottom: 110px; left: 762px; width: 200px; }
.article-toc-inner { position: sticky; top: 108px; max-height: calc(100vh - 145px); padding: 5px 0 5px 18px; overflow-x: hidden; overflow-y: auto; border-left: 1px solid var(--line); scrollbar-width: thin; }
.article-toc-inner > span { color: var(--ink); font: 650 11px/1 var(--sans); letter-spacing: .08em; }
.article-toc nav { min-width: 0; margin-top: 16px; display: flex; align-items: stretch; flex-direction: column; gap: 0; }
.article-toc a { position: relative; min-width: 0; max-width: 100%; color: var(--muted); font: 500 12px/1.55 var(--sans); overflow-wrap: anywhere; word-break: break-word; transition: color .18s ease; }
.article-toc a.toc-level-2 { margin-top: 2px; padding: 6px 0; }
.article-toc a.toc-level-2::before { content: ""; position: absolute; left: -22px; top: calc(6px + .775em); width: 6px; height: 6px; border: 2px solid var(--paper); border-radius: 50%; background: var(--line); transform: translateY(-50%); transition: background-color .18s ease, box-shadow .18s ease; }
.article-toc a.toc-level-3 { margin-left: 14px; padding: 5px 0 5px 10px; color: color-mix(in srgb, var(--muted) 88%, var(--paper)); font-size: 11px; line-height: 1.6; }
.article-toc a.toc-level-3::before { content: ""; position: absolute; left: -32px; top: calc(5px + .8em); width: 34px; height: 1px; border-radius: 999px; background: var(--line); transform: translateY(-50%); transition: background-color .18s ease; }
.article-toc a.toc-level-2 + a.toc-level-3, .article-toc a.toc-level-3 + a.toc-level-3 { margin-top: -1px; }
.article-toc a.toc-level-3 + a.toc-level-2 { margin-top: 8px; }
.article-toc a:hover, .article-toc a.is-active { color: var(--accent); }
.article-toc a.toc-level-2.is-active::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.article-toc a.toc-level-3:hover::before, .article-toc a.toc-level-3.is-active::before { background: var(--accent); }

@media (max-width: 1279px) {
  .article-toc { display: none; }
}

/* Now timeline */
.now-page { width: min(920px, calc(100% - 40px)); padding-block: 45px 115px; display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }
.now-page > .back-link, .friends-page > .back-link { justify-self: start; }
.now-page-header { position: relative; max-width: 680px; margin-bottom: 76px; }
.now-page-header::after { content: "✦"; position: absolute; right: 18px; bottom: -12px; color: var(--accent); font-size: 17px; transform: rotate(9deg); }
.now-page-header h1 { margin: 0 0 22px; font-size: clamp(42px, 7vw, 62px); line-height: 1.2; font-weight: 500; letter-spacing: -.05em; }
.now-page-intro { max-width: 590px; color: var(--muted); font-size: 15px; line-height: 2; }
.now-page-intro > :first-child { margin-top: 0; }
.now-page-intro > :last-child { margin-bottom: 0; }
.now-page-intro p { margin: 0 0 12px; }
.now-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 500 9px/1 var(--sans); }
.now-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); animation: now-pulse 2.4s ease-in-out infinite; }
.moment-timeline { position: relative; width: min(720px, 100%); }
.moment-timeline::before { content: ""; position: absolute; left: 113px; top: 10px; bottom: 12px; width: 1px; background: var(--line); }
.moment-entry { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 62px; margin-bottom: 44px; }
.moment-date { padding-top: 19px; text-align: right; }
.moment-date strong, .moment-date span { display: block; }
.moment-date strong { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.moment-date span { margin-top: 5px; color: var(--muted); font: 500 9px/1 var(--sans); }
.moment-dot { position: absolute; z-index: 1; left: 107px; top: 24px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.moment-entry.is-current .moment-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.moment-paper { position: relative; padding: 26px 29px 28px; border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--paper-deep) 78%, var(--paper)); box-shadow: 0 8px 25px rgba(69, 53, 37, .045); transform: rotate(-.18deg); }
.moment-entry:nth-child(even) .moment-paper { transform: rotate(.18deg); }
.moment-paper::before { content: ""; position: absolute; left: 34px; top: -8px; width: 53px; height: 15px; background: rgba(203, 177, 128, .32); transform: rotate(-2deg); }
.moment-tag { color: var(--accent); font: 700 9px/1 var(--sans); letter-spacing: .12em; }
.moment-paper h2 { margin: 12px 0; font-size: 20px; line-height: 1.55; font-weight: 600; }
.moment-paper h2 a { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: color .2s ease, background-size .25s ease; }
.moment-paper h2 a:hover { color: var(--accent); background-size: 100% 1px; }
.moment-paper.has-no-title .moment-body, .moment-paper.has-no-title > p { margin-top: 14px; }
.moment-paper p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.moment-body { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.moment-body > :first-child { margin-top: 0; }
.moment-body > :last-child { margin-bottom: 0; }
.moment-body p { margin: 0 0 13px; }
.moment-body h2, .moment-body h3, .moment-body h4 { margin: 24px 0 11px; color: var(--ink); font-size: 17px; line-height: 1.6; }
.moment-body ul, .moment-body ol { margin: 13px 0; padding-left: 1.45em; }
.moment-body li + li { margin-top: 5px; }
.moment-body blockquote { margin: 17px 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.moment-body img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 2px; }
.moment-body pre { max-width: 100%; margin: 18px 0; padding: 15px 17px; overflow: auto; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 72%, var(--paper-deep)); font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.moment-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.moment-foot { display: flex; margin-top: 22px; padding-top: 15px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px dashed var(--line); color: var(--muted); font: 550 10px/1.5 var(--sans); }
.moment-foot a { transition: color .18s ease; }
.moment-foot a:first-child { color: var(--accent); }
.moment-foot a:hover { color: var(--accent); }
.moment-timeline > .empty-paper { margin-left: 144px; }
.murmur-page-nav { width: min(576px, calc(100% - 144px)); margin-left: 144px; }
.timeline-ending { max-width: 576px; margin: 72px 0 0 144px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.timeline-ending span { margin-left: 9px; color: var(--accent); }
@keyframes now-pulse { 0%, 100% { opacity: .72; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }

/* 404 */
.not-found { width: min(720px, calc(100% - 40px)); min-height: calc(100vh - 74px); padding-block: 76px 115px; display: grid; align-items: center; }
.lost-paper { position: relative; min-height: 440px; padding: 67px 270px 62px 58px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 85%, var(--ink)); background: color-mix(in srgb, var(--paper-deep) 72%, var(--paper)); box-shadow: 0 18px 48px rgba(69, 53, 37, .09); transform: rotate(-.18deg); }
.lost-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; opacity: .45; background: linear-gradient(135deg, transparent 4px, var(--paper) 4px) 0 0 / 8px 8px repeat-x; }
.lost-tape { position: absolute; z-index: 2; width: 84px; height: 19px; left: 50%; top: -9px; background: rgba(203, 177, 128, .45); transform: translateX(-50%) rotate(2deg); }
.lost-number { position: absolute; right: 35px; top: 29px; color: color-mix(in srgb, var(--accent-soft) 72%, transparent); font: 500 clamp(104px, 15vw, 165px)/1 Georgia, var(--serif); letter-spacing: -.09em; transform: rotate(4deg); user-select: none; }
.lost-copy { position: relative; z-index: 1; }
.lost-copy .little-mark { margin-bottom: 20px; }
.lost-copy h1 { margin: 0 0 19px; font-size: clamp(39px, 5.4vw, 52px); line-height: 1.3; font-weight: 500; letter-spacing: -.045em; }
.lost-copy > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
.lost-search { margin-top: 35px; display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); }
.lost-search input { min-width: 0; flex: 1; padding: 12px 3px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 13px/1.5 var(--sans); }
.lost-search input::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.lost-search button { padding: 0 3px 0 18px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: 650 11px/1 var(--sans); white-space: nowrap; }
.lost-search:focus-within { border-color: var(--accent); }
.lost-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; font: 600 11px/1 var(--sans); }
.lost-actions a { display: inline-flex; min-height: 36px; align-items: center; gap: 5px; color: var(--muted); transition: color .18s ease, transform .18s ease; }
.lost-actions a:hover { color: var(--accent); transform: translateY(-1px); }
.lost-actions a:focus-visible, .lost-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lost-actions .lost-home { padding: 0 15px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; }
.lost-actions .lost-home:hover { color: #fff; box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 22%, transparent); }
.lost-doodle { position: absolute; right: 58px; bottom: 58px; width: 145px; height: 86px; opacity: .68; transform: rotate(-5deg); }
.lost-doodle i { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left center; }
.lost-doodle i:nth-child(1) { top: 13px; width: 124px; transform: rotate(4deg); }
.lost-doodle i:nth-child(2) { top: 39px; width: 103px; transform: rotate(-2deg); }
.lost-doodle i:nth-child(3) { top: 65px; width: 132px; transform: rotate(2deg); }
.lost-doodle span { position: absolute; right: -1px; top: 16px; color: var(--accent); font-size: 38px; font-style: italic; transform: rotate(10deg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-main { min-height: 154px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-main > p { margin: 0; font-size: 18px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font: 500 11px/1.55 var(--sans); }
.filing-strip { border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--paper-deep) 34%, transparent); }
.filing-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font: 500 11px/1.5 var(--sans); letter-spacing: .015em; }
.filing-label { opacity: .92; }
.filing-links { display: flex; align-items: center; gap: 20px; }
.filing-links a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s ease; }
.filing-links a + a::before { content: "·"; margin-right: 13px; color: var(--line); }
.filing-links a:hover { color: var(--accent); }
.filing-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.filing-links i { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 620px); }
  .site-header { z-index: 50; backdrop-filter: blur(12px); }
  .pjax-progress { top: 63px; }
  .header-inner { min-height: 64px; }
  .desktop-nav, .theme-label { display: none; }
  .header-tools { margin-left: auto; }
  .search-button, .theme-toggle { width: 40px; height: 40px; }
  .theme-toggle { padding: 0; justify-content: center; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { min-width: 70px; height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--sans); transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::marker { content: ""; }
  .menu-glyph { position: relative; width: 15px; height: 12px; flex: 0 0 15px; color: var(--accent); }
  .menu-glyph::before, .menu-glyph::after { content: ""; position: absolute; left: 0; width: 15px; height: 1.5px; border-radius: 999px; background: currentColor; transform-origin: center; transition: top .25s ease, transform .25s ease, color .2s ease; }
  .menu-glyph::before { top: 3px; }
  .menu-glyph::after { top: 8px; }
  .mobile-menu summary:active { transform: scale(.94); }
  .mobile-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .mobile-menu[open] summary { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-1px); box-shadow: 0 5px 13px color-mix(in srgb, var(--accent) 25%, transparent); }
  .mobile-menu[open] .menu-glyph { color: #fff; }
  .mobile-menu[open] .menu-glyph::before, .mobile-menu[open] .menu-glyph::after { top: 5px; }
  .mobile-menu[open] .menu-glyph::before { transform: rotate(45deg); }
  .mobile-menu[open] .menu-glyph::after { transform: rotate(-45deg); }
  .mobile-menu nav { position: absolute; right: 0; top: 47px; width: min(238px, calc(100vw - 28px)); max-height: calc(100vh - 75px); max-height: calc(100dvh - 75px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding: 8px; display: flex; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); transform-origin: top right; animation: mobile-menu-reveal .22s cubic-bezier(.2, .75, .25, 1); }
  .mobile-menu nav a { min-height: 38px; padding: 8px 12px; display: flex; align-items: center; border-radius: 4px; font: 500 13px/1.45 var(--sans); overflow-wrap: break-word; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible, .mobile-menu nav a.current { color: var(--accent); background: var(--paper-deep); transform: translateX(3px); outline: none; }
  .mobile-menu nav a.parent-current { color: var(--accent); }
  .mobile-nav-group { display: flex; flex-direction: column; }
  .mobile-subpages { margin: 0 7px 6px 10px; display: flex; flex-direction: column; }
  .mobile-menu nav .mobile-subpages a { position: relative; min-height: 34px; padding: 7px 10px 7px 26px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .mobile-menu nav .mobile-subpages a::before { content: ""; position: absolute; top: 50%; left: 5px; width: 8px; height: 7px; border-bottom: 2px solid var(--line); border-left: 2px solid var(--line); border-radius: 0 0 0 2px; transform: translateY(-72%); }
  .mobile-menu nav .mobile-subpages a.current { color: var(--accent); background: var(--paper-deep); font-weight: 600; }
  .blog-main { padding-block: 55px 60px; }
  .hello { display: flex; flex-direction: column; align-items: flex-start; gap: 45px; margin-bottom: 80px; }
  .hello h1 { font-size: 40px; }
  .hello-postcard { align-self: center; width: min(280px, 85%); transform: rotate(1.5deg); }
  .hello-postcard img { height: 300px; }
  .hello::after { display: none; }
  .home-layout { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
  .post-stream { order: 0; }
  .blog-sidebar { display: contents; }
  .now-note { order: -1; width: min(300px, 90%); margin: 0 auto 68px; }
  .blog-sidebar .side-section { order: 1; margin-top: 30px; padding-top: 18px; }
  .post-stream .post-entry:last-of-type { padding-bottom: 30px; }
  .post-stream + .blog-sidebar .side-section:first-of-type { margin-top: 32px; }
  .stream-heading span { display: none; }
  .post-entry h2 { font-size: 21px; }
  .footer-main { min-height: 142px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .footer-main > div { align-items: flex-start; }
  .filing-inner { min-height: 82px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 9px; padding-block: 16px; }
  .filing-links { flex-wrap: wrap; gap: 8px 14px; }
  .filing-links a + a::before { margin-right: 6px; }
  .reading-page { width: min(100% - 32px, 720px); padding-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .archive-page { width: min(100% - 32px, 680px); padding-top: 32px; }
  .now-page { width: min(100% - 32px, 720px); padding-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .not-found { width: min(100% - 32px, 720px); min-height: calc(100vh - 64px); padding-block: 48px 85px; }
  .lost-paper { min-height: 0; padding: 59px 38px 50px; }
  .lost-number { right: 24px; top: 25px; font-size: 92px; opacity: .74; }
  .lost-copy { max-width: 510px; }
  .lost-copy .little-mark { padding-right: 120px; }
  .lost-copy h1 { max-width: 430px; font-size: 39px; }
  .lost-doodle { display: none; }
  .back-link { margin-bottom: 42px; }
  .diary-header h1 { font-size: 32px; line-height: 1.45; letter-spacing: -.025em; }
  .page-breadcrumb { gap: 7px; }
  .page-children { margin-top: 56px; }
  .page-children > div { grid-template-columns: 1fr; }
  .diary-photo { margin-block: 42px 48px; }
  .diary-content > p { font-size: 16px; }
  .diary-content.has-drop-cap > p:first-of-type::first-letter { font-size: 2.8em; }
  .diary-content blockquote { margin-inline: 0; padding-inline: 12px; font-size: 18px; }
  .diary-footer { align-items: flex-start; flex-direction: column; }
  .simple-next { grid-template-columns: 1fr; }
  .next-link { text-align: left; }
  .comment-fields { grid-template-columns: 1fr; gap: 18px; }
  .respond-paper { padding-block: 24px 20px; }
  .respond-paper textarea { margin-top: 20px; min-height: 135px; }
  .comment-actions { gap: 10px; }
  .comment-children { margin-left: 16px; }
  .now-page-header { margin-bottom: 58px; }
  .now-page-header h1 { font-size: 42px; }
  .now-page-header::after { right: 4px; }
  .moment-timeline::before { left: 9px; }
  .moment-entry { display: block; padding-left: 31px; margin-bottom: 36px; }
  .moment-date { padding: 0 0 12px; text-align: left; }
  .moment-date strong, .moment-date span { display: inline; }
  .moment-date span { margin-left: 8px; }
  .moment-dot { left: 3px; top: 3px; }
  .moment-paper { padding: 24px 23px 25px; }
  .moment-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .moment-timeline > .empty-paper { margin-left: 31px; }
  .murmur-page-nav { width: calc(100% - 31px); margin-left: 31px; }
  .timeline-ending { max-width: calc(100% - 31px); margin: 58px 0 0 31px; }
}

@keyframes mobile-menu-reveal {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ato-pjax-progress {
  from { transform: scaleX(.035); }
  58% { transform: scaleX(.68); }
  to { transform: scaleX(.88); }
}

@keyframes ato-pjax-paper-in {
  from { opacity: .18; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ato-emote-play {
  from { transform: translateY(0); }
  to { transform: translateY(var(--emote-shift)); }
}

@media (max-width: 420px) {
  .brand strong { font-size: 18px; }
  .hello h1, .now-page-header h1 { font-size: 36px; }
  .search-paper { padding-inline: 24px; }
  .respond-paper { padding-inline: 18px; }
  .comment-emote-tabs button { flex: 1; padding-inline: 7px; font-size: 11px; }
  .comment-kaomoji-grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); }
  .filing-links { flex-direction: column; align-items: flex-start; }
  .filing-links a + a::before { display: none; }
  .lost-paper { padding: 54px 24px 42px; }
  .lost-number { right: 18px; top: 22px; font-size: 76px; }
  .lost-copy .little-mark { max-width: 190px; padding-right: 0; line-height: 1.45; }
  .lost-copy h1 { font-size: 34px; }
  .lost-search { align-items: stretch; flex-direction: column; border-bottom: 0; gap: 9px; }
  .lost-search input { min-height: 44px; padding-inline: 12px; border: 1px solid var(--line); background: var(--paper); }
  .lost-search button { min-height: 40px; padding: 0 13px; border: 1px solid var(--accent); border-radius: 999px; }
  .lost-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* Paper code blocks */
.diary-content .code-paper { position: relative; margin: 38px 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 86%, var(--ink)); border-radius: 3px; background: var(--code-bg); box-shadow: 0 13px 30px rgba(65, 50, 34, .075); }
.diary-content .code-paper::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 3px; background: color-mix(in srgb, var(--accent) 82%, transparent); }
.code-paper-toolbar { min-height: 43px; padding: 0 13px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 56%, var(--code-bg)); font-family: var(--sans); }
.code-language { display: inline-flex; align-items: center; gap: 9px; color: color-mix(in srgb, var(--muted) 72%, var(--ink)); font: 700 10px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.code-language::before { content: "◆"; color: var(--accent); font-size: 7px; transform: rotate(8deg); }
.code-copy { min-height: 29px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 600 11px/1 var(--sans); transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.code-copy:hover, .code-copy:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent-soft) 35%, transparent); outline: 0; transform: translateY(-1px); }
.code-copy.is-copied { color: #fff; border-color: var(--accent); background: var(--accent); }
.diary-content .code-paper pre { margin: 0; padding: 23px 25px 25px; overflow-x: auto; border: 0; background: transparent; color: var(--code-ink); font: 13.5px/1.82 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; tab-size: 4; scrollbar-color: color-mix(in srgb, var(--muted) 56%, transparent) transparent; scrollbar-width: thin; }
.diary-content .code-paper pre::-webkit-scrollbar { height: 7px; }
.diary-content .code-paper pre::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--muted) 56%, transparent); background-clip: padding-box; }
.diary-content .code-paper pre code { display: block; min-width: max-content; padding: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.hljs-comment, .hljs-quote { color: var(--code-comment); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-section, .hljs-link { color: var(--accent); }
.hljs-string, .hljs-doctag, .hljs-regexp, .hljs-template-variable, .hljs-addition { color: var(--code-green); }
.hljs-title, .hljs-title.class_, .hljs-title.function_, .hljs-selector-id, .hljs-selector-class, .hljs-attribute { color: var(--code-blue); }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-variable, .hljs-template-tag, .hljs-deletion { color: var(--code-gold); }
.hljs-built_in, .hljs-type, .hljs-meta, .hljs-name { color: color-mix(in srgb, var(--accent) 70%, var(--code-blue)); }
.hljs-attr, .hljs-params, .hljs-subst { color: var(--code-ink); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* QQ comment contact */
.comment-fields label small { color: var(--muted); font: 500 10px/1.5 var(--sans); transition: color .18s ease; }
.comment-contact-field.is-qq input { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); }
.comment-contact-field.is-qq small { color: var(--accent); }
.comment-contact-field.is-email input { border-color: color-mix(in srgb, var(--green) 66%, var(--line)); }
.comment-contact-field.is-email small { color: var(--green); }
.comment-card .avatar-qq { background: var(--paper-deep); object-fit: cover; }

/* Friends page */
.friends-page { width: min(1100px, calc(100% - 40px)); padding-block: 45px 115px; display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }
.friends-page-header { width: min(720px, 100%); margin-bottom: 46px; }
.friends-page-header h1 { margin: 0 0 23px; font-size: clamp(42px, 7vw, 60px); line-height: 1.2; font-weight: 500; letter-spacing: -.05em; }
.friends-page-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.friends-page-lead p { max-width: 690px; margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.friends-page-lead > span { flex: 0 0 auto; padding-bottom: 5px; color: var(--accent); font: 650 10px/1 var(--sans); letter-spacing: .06em; }
.friend-groups { width: min(720px, 100%); display: grid; gap: 46px; }
.friend-group { min-width: 0; }
.friend-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.friend-group-head::after { content: ""; height: 1px; flex: 1; background: color-mix(in srgb, var(--line) 82%, transparent); }
.friend-group-head h2 { margin: 0; font: 650 13px/1.3 var(--sans); letter-spacing: .04em; }
.friend-group-head h2::before { content: ""; display: inline-block; width: 3px; height: 13px; margin-right: 9px; border-radius: 2px; background: var(--accent); vertical-align: -2px; }
.friend-group-head span { order: 2; color: var(--muted); font: 600 10px/1 var(--sans); }
.friend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 17px; }
.friend-card { position: relative; min-width: 0; min-height: 94px; padding: 17px 74px 16px 19px; display: flex; align-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 88%, transparent); border-radius: 2px; background: color-mix(in srgb, var(--paper-deep) 42%, var(--paper)); box-shadow: 0 7px 18px rgba(69, 53, 37, .035); transition: color .24s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease, transform .24s ease; }
.friend-card::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--accent); opacity: .18; transform: scaleY(.36); transform-origin: center; transition: opacity .24s ease, transform .24s ease; }
.friend-avatar { position: absolute; z-index: 1; width: 52px; height: 52px; right: 13px; top: 50%; display: grid; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 88%, var(--accent)); border-radius: 50%; background: color-mix(in srgb, var(--accent-soft) 38%, var(--paper)); color: var(--accent); transform: translateY(-50%); transition: border-color .24s ease, box-shadow .24s ease, transform .28s cubic-bezier(.2,.75,.25,1); }
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(.98); }
.friend-avatar b { font-size: 19px; font-weight: 500; }
.friend-copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.friend-copy strong { overflow: hidden; color: var(--ink); font-size: 15px; line-height: 1.4; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: color .22s ease; }
.friend-copy > span { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.friend-corner { position: absolute; right: 7px; top: 7px; color: var(--muted); font: 400 10px/1 var(--sans); font-style: normal; opacity: 0; transform: translate(-3px, 3px); transition: color .22s ease, opacity .22s ease, transform .22s ease; }
.friend-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 56%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 18%, var(--paper)); box-shadow: 0 12px 27px rgba(69, 53, 37, .085); transform: translateY(-3px); }
.friend-card:hover::before { opacity: .9; transform: scaleY(1); }
.friend-card:hover .friend-avatar { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 6px 14px rgba(69, 53, 37, .12); transform: translateY(-50%) translateX(-3px) rotate(-3deg) scale(1.035); }
.friend-card:hover .friend-copy strong { color: var(--accent); }
.friend-card:hover .friend-corner { color: var(--accent); opacity: .75; transform: translate(0, 0); }
.friend-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; transform: translateY(-2px); }
.friend-empty { width: min(720px, 100%); margin-bottom: 0; }
.friend-note { width: min(720px, 100%); margin: 76px auto 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.friend-note-head { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.friend-note-head span { color: var(--accent); font: 700 10px/1 var(--sans); letter-spacing: .12em; }
.friend-note-head h2 { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 600; }
.friend-note .diary-content { margin-top: 0; }
.friend-note .diary-content > p { font-size: 15px; line-height: 1.95; }
.friend-note .diary-content blockquote { margin: 32px 0 0; padding: 18px 20px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent-soft) 22%, transparent); color: var(--ink); font-size: 14px; line-height: 1.9; text-align: left; }
.friend-note .diary-content blockquote::before, .friend-note .diary-content blockquote::after { display: none; }
.friend-note .diary-content blockquote p + p { margin-top: 8px; }
.friends-page > .comments-area { width: min(720px, 100%); margin-inline: auto; }

@media (max-width: 760px) {
  .friends-page { width: min(100% - 32px, 720px); padding-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .friends-page-header h1 { font-size: 40px; }
  .friends-page-lead { align-items: flex-start; flex-direction: column; gap: 14px; }
  .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .friend-card { min-height: 90px; }
  .friend-note { margin-top: 58px; }
  .diary-content .code-paper { margin-inline: -2px; }
  .diary-content .code-paper pre { padding: 19px 20px 21px; font-size: 12.5px; }
}

@media (max-width: 520px) {
  .friend-groups { gap: 38px; }
  .friend-grid { grid-template-columns: 1fr; gap: 11px; }
  .friend-card { min-height: 86px; padding-block: 14px; }
  .friend-note-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .code-paper-toolbar { padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
