/* April's digital garden: frosted surfaces, quiet color, and a little source code. */
:root {
  --paper: #f4f8fb;
  --ink: #26354c;
  --muted: #64748b;
  --accent: #5065ce;
  --accent-dark: #384ead;
  --mint: #def4eb;
  --lavender: #e8eafd;
  --line: rgba(101, 126, 155, .14);
  --glass: rgba(255, 255, 255, .66);
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex='0']:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #d9dffa; color: #26354c; }
[hidden] { display: none !important; }
.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; }
.skip { position: fixed; top: -80px; left: 12px; background: white; z-index: 30; padding: 12px; border-radius: 12px; }
.skip:focus { top: 12px; }
.glass { background: var(--glass); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 8px 32px rgba(65,84,119,.045), inset 0 0 0 1px rgba(106,128,159,.045); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.backdrop { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 12% 3%, #e1eafb 0, transparent 45%), radial-gradient(ellipse at 95% 26%, #e1f3ed 0, transparent 42%), #f4f8fb; }
.backdrop span { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(65px); background: #c4d4f5; opacity: .32; top: 50px; left: 38%; }
.backdrop span:nth-child(2) { width: 350px; height: 350px; background: #c0ecdf; left: 75%; top: 460px; opacity: .38; }
.backdrop span:nth-child(3) { width: 400px; height: 400px; background: #e0d9fb; left: -170px; top: 650px; opacity: .35; }
.header { max-width: 1200px; margin: 24px auto 0; padding: 13px 22px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 16px; z-index: 10; background: rgba(255,255,255,.79); }
.brand { display: inline-flex; align-items: center; font-size: 28px; font-weight: 750; letter-spacing: -1.2px; line-height: 1; }
.brand-mark { display: inline-grid; place-items: center; position: relative; width: 38px; height: 38px; background: var(--lavender); color: var(--accent-dark); border-radius: 12px; font-size: 30px; font-weight: 700; margin-right: 11px; }
.brand-mark span { position: absolute; font-size: 15px; right: -3px; bottom: -2px; color: #5b8b79; }
.brand-dot { color: var(--accent); }
.brand-caption { font: 11px/1.3 var(--mono); letter-spacing: -.3px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; margin-left: 20px; }
.header nav { display: flex; align-items: center; gap: 8px; }
.header nav > a { font-size: 13px; padding: 8px 17px; border-radius: 10px; color: #536176; transition: background .18s, color .18s; }
.header nav > a:hover, .header nav > a.active { background: #edf0fb; color: var(--accent-dark); }
.search-open { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(247,249,253,.75); padding: 7px 10px; margin-left: 18px; font-size: 12px; color: #647187; }
kbd { font: 10px/1.6 var(--mono); border: 1px solid #dae1e9; background: #fff9; padding: 0 4px; border-radius: 4px; margin-left: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #488770; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.hero { max-width: 1200px; margin: auto; padding: 76px 22px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-copy { min-width: 0; }
.hello { margin: 0 0 22px; font: 14px/1.7 var(--mono); display: flex; align-items: center; gap: 10px; }
.hello-wave { color: #6d8d7c; margin-left: 2px; font-size: 23px; }
.hero h1 { font-size: clamp(36px, 3.5vw, 48px); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: -1.7px; }
.hero-description { font-size: 14px; color: var(--muted); line-height: 2; margin: 20px 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: white; font-weight: 500; font-size: 13px; box-shadow: 0 6px 16px #5065ce20, inset 0 1px 0 #ffffff35; transition: background .2s, box-shadow .2s; }
.button:hover { background: var(--accent-dark); box-shadow: 0 8px 22px #5065ce30; }
.button span { font-size: 19px; }
.quiet-link { font-size: 12px; color: #56677f; }
.quiet-link span { margin-left: 6px; }
.quiet-link:hover { color: var(--accent); }
.hero-footnote { margin-top: 37px; display: flex; align-items: center; gap: 8px; font-size: 10px; color: #718096; flex-wrap: wrap; }
.hero-footnote > span { font-size: 16px; color: #73839c; }
.hero-footnote code { font: 10px var(--mono); margin-left: 3px; }
.editor-scene { position: relative; padding: 6px 5px 14px; min-width: 0; }
.editor { position: relative; border-radius: 18px; background: rgba(255,255,255,.67); overflow: hidden; transform: rotate(1.5deg); box-shadow: 0 18px 50px #637aab15, inset 0 0 0 1px #fff; }
.editor-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 17px; font: 10px/1.5 var(--mono); color: #6b7b91; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; background: #e9a59e; border-radius: 50%; }
.window-dots i:nth-child(2) { background: #e5c284; }
.window-dots i:nth-child(3) { background: #91c7ac; }
.editor-tabs { display: flex; background: rgba(236,241,248,.46); border-bottom: 1px solid var(--line); }
.editor-tabs button { border: 0; border-right: 1px solid var(--line); padding: 10px 17px; background: transparent; color: #738198; font: 11px/1.5 var(--mono); display: flex; align-items: center; gap: 8px; }
.editor-tabs button[aria-selected='true'] { background: #ffffff8c; color: var(--ink); box-shadow: inset 0 2px var(--accent); }
.editor-tabs button:focus-visible { outline-offset: -4px; }
.file-icon { font: 700 9px var(--mono); color: #456ab8; }
.editor-code { padding: 20px 18px 22px 0; font: 12px/1.9 var(--mono); overflow-x: auto; min-height: 293px; }
.editor-code > div { display: flex; }
.editor-code code { font: inherit; white-space: pre; color: #47546c; }
.line-number { width: 43px; flex-shrink: 0; text-align: right; padding-right: 16px; color: #94a0b2; user-select: none; }
.syntax-comment { color: #728675 !important; }
.syntax-keyword { color: #8c57ad; }
.syntax-string { color: #32836b; }
.syntax-number { color: #bd7850; }
.editor-readme { padding: 24px; min-height: 293px; }
.editor-readme > span { font: 12px var(--mono); }
.editor-readme h2 { font-size: 23px; margin-top: 24px; }
.editor-readme p { font-size: 13px; color: var(--muted); line-height: 2; }
.editor-readme a { color: var(--accent-dark); font-size: 12px; }
.hero-terminal { background: rgba(231,239,247,.45); border-top: 1px solid var(--line); }
.terminal-bar { padding: 9px 17px 0; display: flex; align-items: center; justify-content: space-between; color: #6b7a91; font: 10px/1.6 var(--mono); }
.terminal-language { margin-left: 12px; color: #45556e; }
.terminal-line { display: flex; align-items: baseline; padding: 10px 17px 15px; font: 12px/1.7 var(--mono); color: #4359a4; min-height: 45px; white-space: nowrap; }
.terminal-line code { font: inherit; }
.terminal-prompt { color: #47866f; margin-right: 10px; }
.typing-cursor { color: var(--accent); animation: cursor-blink 1s step-end infinite; }
.typing-toggle { border: 0; background: none; color: #6b7a91; font: 10px/1.6 var(--sans); padding: 2px 0 2px 8px; }
.typing-toggle:hover { color: var(--accent-dark); }
.typing-paused .typing-cursor { animation: none; opacity: .55; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.editor-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 15px; font: 9px/1.6 var(--mono); color: #6a7a91; border-top: 1px solid var(--line); background: #ffffff40; }
.editor-status .status-dot { width: 4px; height: 4px; margin-inline: 10px 4px; }
.scene-orbit { position: absolute; width: 80%; aspect-ratio: 1; border: 1px solid #b5c9df44; border-radius: 50%; top: -20px; left: 10%; transform: scaleX(1.05); }
.floating-symbol { position: absolute; right: -20px; top: -39px; font: 52px var(--mono); letter-spacing: -11px; color: #91a3c157; transform: rotate(12deg); }
.floating-note { position: absolute; bottom: -3px; right: -12px; border-radius: 10px; padding: 9px 16px; font: 10px/1.6 var(--mono); transform: rotate(-4deg); color: #546e64; background: #f2faf4c7; }
.floating-note > span { font-size: 16px; margin-right: 7px; }
.discovery-grid { max-width: 1200px; padding: 0 22px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr .82fr; gap: 18px; }
.discovery-card { position: relative; padding: 22px 25px; border-radius: 19px; min-width: 0; overflow: hidden; min-height: 204px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.discovery-card:hover { border-color: #becde5; box-shadow: 0 12px 35px #52678012; }
.card-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #617389; z-index: 1; }
.card-label .status-dot { margin-right: 6px; width: 5px; height: 5px; }
.card-label time { font: 11px var(--mono); }
.discovery-card h2 { font-size: 21px; line-height: 1.65; margin: 17px 0; font-weight: 600; position: relative; z-index: 1; }
.featured-card { background: #ffffff82; }
.featured-card h2 { max-width: 90%; font-size: 21px; }
.feature-decoration { position: absolute; right: 8px; top: 40px; font: 95px var(--mono); letter-spacing: -12px; color: #a2b7d21a; transform: rotate(-12deg); }
.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; color: #617389; z-index: 1; }
.round-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #c1d1d766; color: #3f6470; font-size: 15px; }
.topic-card { background: rgba(222,244,235,.62); }
.topic-card h2 { color: #395e51; }
.topic-orbits { position: absolute; right: -28px; top: 40px; width: 160px; height: 160px; }
.topic-orbits i { position: absolute; inset: 10px; border: 1px solid #83bba64f; border-radius: 50%; transform: rotate(-35deg) scaleX(.55); }
.topic-orbits i:nth-child(2) { transform: rotate(35deg) scaleX(.55); }
.topic-orbits i:nth-child(3) { transform: rotate(90deg) scaleX(.55); }
.github-card { background: rgba(232,234,253,.56); }
.github-icon { width: 25px; height: 25px; color: #596caa; }
.github-card h2 { font-size: 18px; color: #4e5b7c; margin-top: 17px; }
.content-grid, .reading-grid { max-width: 1200px; padding: 0 22px; margin: 66px auto 80px; display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 32px; align-items: start; }
.posts { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-caption { font-size: 11px; color: #718096; margin: 0 0 4px; }
.section-heading h2 { font-size: 27px; letter-spacing: -.6px; margin: 0; font-weight: 650; line-height: 1.5; }
.heading-dot { color: var(--accent); }
.section-heading > a { font-size: 11px; color: var(--muted); padding-bottom: 5px; }
.section-heading > a:hover { color: var(--accent-dark); }
.category-nav { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 20px; }
.category-nav a { font-size: 11px; padding: 5px 12px; border-radius: 8px; color: #61718b; border: 1px solid transparent; }
.category-nav a.active { background: #fff9; border-color: #fff; color: var(--accent-dark); box-shadow: 0 2px 8px #667a9810; }
.category-nav a:hover { background: #e9eff8; color: var(--accent-dark); }
.post-card { border-radius: 17px; display: grid; grid-template-columns: 174px minmax(0,1fr); padding: 10px; gap: 20px; margin-bottom: 18px; min-height: 211px; transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: #bfcee8; box-shadow: 0 10px 30px #52678012; }
.post-art { position: relative; min-height: 185px; border-radius: 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.art-ai { --art-ink: #788cc8; background: linear-gradient(135deg,#ecedfc,#d9e5f7); }
.art-java { --art-ink: #599486; background: linear-gradient(135deg,#e2f0e9,#d2e8e2); }
.art-python { --art-ink: #bb9262; background: linear-gradient(135deg,#f7eedf,#f1e0c9); }
.art-ops { --art-ink: #7194b4; background: linear-gradient(135deg,#e3eff8,#d4e4f1); }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff50 1px,transparent 1px), linear-gradient(90deg,#ffffff50 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(135deg,black,transparent); }
.art-orbit { position: absolute; width: 130px; height: 130px; border: 1px solid #ffffff9c; border-radius: 32px; transform: rotate(-24deg); box-shadow: 0 0 0 14px #ffffff20, 0 0 0 28px #ffffff18; }
.code-art { font: 500 50px var(--mono); letter-spacing: -4px; color: var(--art-ink); z-index: 1; text-shadow: 0 2px 0 #fff7; }
.art-ai .art-orbit { border-radius: 50%; transform: scaleX(.8) rotate(-30deg); }
.art-caption { position: absolute; bottom: 19px; left: 0; right: 0; text-align: center; font: 9px var(--mono); color: #546681; }
.post-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-info { min-width: 0; padding: 10px 10px 8px 0; display: flex; flex-direction: column; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 10px; color: #728097; }
.meta time { font-family: var(--mono); }
.meta > span { padding: 2px 7px; color: #53688d; background: #eaf0fa; border-radius: 5px; font-size: 9px; }
.meta > .category-java { color: #3f7865; background: #e7f2eb; }
.meta > .category-python { color: #946d3e; background: #f8efdf; }
.post-info h3 { font-size: 18px; line-height: 1.65; margin: 10px 0 5px; font-weight: 600; overflow-wrap: anywhere; }
.post-info h3 a:hover { color: var(--accent-dark); }
.post-info p { font-size: 11px; line-height: 1.85; color: var(--muted); margin: 3px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-bottom { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: auto; }
.post-tags { display: flex; gap: 11px; flex-wrap: wrap; font-size: 10px; color: #728097; }
.post-tags a:hover { color: var(--accent-dark); }
.read-link { font-size: 10px; white-space: nowrap; color: #5b6e8d; }
.read-link span { margin-left: 8px; font-size: 15px; }
.sidebar { min-width: 0; padding-top: 6px; }
.panel { border-radius: 18px; padding: 22px; margin-bottom: 19px; }
.panel-title { font-size: 13px; margin: 0 0 16px; font-weight: 600; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; color: #6a7e93; }
.panel-heading .panel-title { color: var(--ink); }
.profile { padding: 24px 22px 19px; }
.profile-head { display: flex; align-items: center; gap: 13px; }
.avatar { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; background: linear-gradient(135deg,#e1e8fb,#f1eefb); font: 500 29px var(--mono); color: #687eb6; border: 1px solid #fff; }
.avatar > span { position: absolute; right: -4px; bottom: -6px; font-size: 21px; color: #6e9e85; }
.profile-head h2 { font-size: 20px; margin: 0; line-height: 1.3; }
.profile-head h2 .status-dot { margin-left: 8px; width: 5px; height: 5px; }
.profile-head p { margin: 5px 0 0; font: 8px/1.5 var(--mono); color: #66758c; }
.profile > p { font-size: 12px; color: #62728a; line-height: 2; margin: 21px 0; }
.stats { display: flex; justify-content: space-between; padding: 14px 0; border-block: 1px solid var(--line); }
.stats a, .stats > div { display: flex; flex-direction: column; text-align: center; padding: 0 8px; }
.stats b { font: 600 23px/1.5 var(--mono); color: #4e6284; }
.stats span { font-size: 9px; color: #6a7a91; }
.github-link { display: flex; justify-content: space-between; font-size: 11px; color: #5c7091; margin-top: 15px; }
.github-link:hover { color: var(--accent-dark); }
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-links a { font-size: 11px; color: #64758d; white-space: nowrap; }
.social-links a:hover { color: var(--accent-dark); }
.profile-links { margin-top: 17px; gap: 7px; }
.profile-links a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff60; font-size: 10px; }
.profile-links a:hover { background: #edf1fc; border-color: #b7c7e1; }
.footer-links { gap: 18px; }
.activity-summary { font-size: 10px; color: #677b8e; margin: -4px 0 15px; }
.activity-summary b { color: #3d7a62; font-weight: 600; }
.activity-grid { display: grid; grid-template-rows: repeat(7,1fr); grid-auto-flow: column; grid-template-columns: repeat(14,minmax(0,1fr)); gap: 4px; }
.activity-cell { aspect-ratio: 1; background: #e6efeb; border-radius: 2px; border: 1px solid #7caa8e0a; }
.activity-cell.level-1 { background: #b8dcc9; }
.activity-cell.level-2 { background: #7cb897; }
.activity-cell.level-3 { background: #4c8c6a; }
.activity-legend { margin-top: 10px; font: 7px/1.5 var(--mono); color: #6c7d8c; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.activity-legend > span:last-child { display: flex; align-items: center; gap: 3px; }
.activity-legend i { width: 7px; height: 7px; border-radius: 1px; background: #e6efeb; }
.activity-legend i:nth-of-type(2) { background: #b8dcc9; }
.activity-legend i:nth-of-type(3) { background: #7cb897; }
.activity-legend i:nth-of-type(4) { background: #4c8c6a; }
.activity-link { display: block; font-size: 9px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: #62798b; }
.activity-link:hover { color: var(--accent-dark); }
.category-list { display: flex; flex-direction: column; gap: 13px; }
.category-list a { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #5b6c83; }
.category-list a > span:last-child { color: #728097; font: 10px var(--mono); }
.category-list i { margin-left: 6px; font-style: normal; color: #8b9bb0; }
.category-list a:hover { color: var(--accent-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags a { font: 9px/1.7 var(--mono); border: 1px solid #d9e2eb; padding: 3px 8px; border-radius: 6px; color: #64758b; background: #ffffff40; }
.tags a:hover { border-color: #96afd1; color: var(--accent-dark); background: #edf1fc; }
.quote { padding: 13px 18px; }
.quote > span { font-size: 28px; color: #83a496; }
.quote p { font-size: 15px; line-height: 1.9; color: #5e746a; margin: 3px 0 12px; }
.quote code { font: 8px var(--mono); color: #738d80; }
.pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; }
.pagination:empty, .pagination:has(>.current:only-child) { display: none; }
.pagination > * { padding: 6px 13px; border: 1px solid #dce4ef; border-radius: 8px; color: #697c94; background: #ffffff60; }
.pagination .current { background: var(--accent); color: white; border-color: var(--accent); }
.pagination a:hover { border-color: #9ab0d2; color: var(--accent-dark); }
footer { max-width: 1156px; margin: 0 auto; padding: 28px 0 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .brand { font-size: 23px; }
footer p, footer > a { font-size: 11px; color: #64758d; margin: 0; }
footer small { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #708098; flex-basis: 100%; }
footer small code { font: 9px var(--mono); margin-left: auto; }
.archive-head, .reading-head { max-width: 1200px; padding: 0 22px; margin: 55px auto 25px; }
.archive-head h1, .reading-head h1 { font-size: clamp(29px,4vw,46px); line-height: 1.5; letter-spacing: -1px; font-weight: 650; overflow-wrap: anywhere; margin: 18px 0; }
.archive-head h1 > span { display: block; font: 12px/1.8 var(--mono); letter-spacing: 0; color: #72839a; margin-top: 12px; }
.archive-head p, .reading-head > p, .reading-head > a { font-size: 12px; color: #687b93; }
.archive-head + .content-grid { margin-top: 34px; }
.reading-head .meta { margin-top: 28px; }
.tag { display: inline-block; color: var(--accent-dark); margin: 0 12px 8px 0; font-size: 11px; }
.reading-grid { margin-top: 32px; }
.prose { min-width: 0; background: #ffffffbd; border: 1px solid white; border-radius: 18px; padding: 36px; color: #36465d; overflow-wrap: anywhere; line-height: 1.95; font-size: 15px; box-shadow: 0 8px 30px #52678005; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 25px; line-height: 1.6; border-bottom: 1px solid #dce5ed; padding-bottom: 10px; margin-top: 38px; font-weight: 600; }
.prose h3 { font-size: 20px; margin-top: 28px; font-weight: 600; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote { border-left: 3px solid #a0b8e2; margin: 25px 0; padding: 10px 20px; background: #eff4fa; color: #657893; border-radius: 0 9px 9px 0; }
.prose pre { overflow: auto; }
.prose code { font: 13px var(--mono); background: #edf1f7; color: #506384; padding: 2px 5px; border-radius: 4px; }
.prose figure.highlight { margin: 25px 0; background: #eef3f9; border: 1px solid #dfe7f1; border-radius: 10px; color: #465873; padding: 40px 16px 16px; overflow: auto; position: relative; line-height: 1.6; }
.highlight table { width: 100%; border-collapse: collapse; }
.highlight td { border: 0 !important; padding: 0 !important; }
.highlight .gutter { width: 34px; color: #94a1b6; user-select: none; }
.highlight pre { margin: 0; font: 12px/1.8 var(--mono); }
.highlight .string { color: #2b7b65; }
.highlight .keyword { color: #8b53ab; }
.highlight .number { color: #ab6634; }
.highlight .comment { color: #738374; }
.copy-code { position: absolute; right: 10px; top: 7px; font-size: 10px; background: #ffffff9c; color: #617697; border: 1px solid #d4deeb; border-radius: 5px; padding: 3px 10px; }
.prose > table { display: block; overflow: auto; border-collapse: collapse; }
.prose > table td, .prose > table th { padding: 9px 14px; border: 1px solid #d8e2ed; font-size: 13px; }
.prose > table th { background: #edf2fa; }
.prose .headerlink { font-size: 0; }
.prose .headerlink:focus-visible:before { content: '#'; font-size: 16px; }
.reading-toc { position: sticky; top: 110px; background: #ffffffb5; font-size: 11px; max-height: calc(100vh - 130px); overflow: auto; }
.reading-toc ol { padding-left: 14px; list-style: none; }
.reading-toc > ol { padding-left: 0; }
.reading-toc li { margin-block: 7px; }
.reading-toc a:hover { color: var(--accent-dark); }
.back-link { display: block; margin-top: 22px; color: var(--accent-dark); }
.post-neighbors { border-top: 1px solid #dce5ed; margin-top: 35px; padding-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
dialog { background: #f8fbf9ed; color: var(--ink); border: 1px solid white; border-radius: 20px; width: min(650px,90vw); padding: 28px; box-shadow: 0 25px 90px #283b6430; max-height: 80vh; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
dialog::backdrop { background: #33496e3d; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog form { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
dialog h2 { font-size: 23px; margin: 0 0 16px; }
dialog .close { font-size: 29px; background: transparent; color: #687c96; border: 0; padding: 0 8px; margin-bottom: 16px; }
dialog label { font-size: 12px; color: #6b7d94; }
dialog input { display: block; width: 100%; padding: 12px 15px; border: 1px solid #cbd8e8; border-radius: 10px; background: #ffffffb5; color: var(--ink); margin-top: 8px; }
#search-status { font-size: 12px; color: #64768e; }
#search-results a { display: block; padding: 16px 0; border-top: 1px solid #dce5ed; }
#search-results strong { font-size: 15px; font-weight: 600; }
#search-results a:hover strong { color: var(--accent-dark); }
#search-results p { font-size: 11px; color: #6b7b93; margin: 5px 0; overflow-wrap: anywhere; }
.top-button { position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px; border: 1px solid white; border-radius: 12px; background: #ffffffc7; color: var(--accent); font-size: 21px; box-shadow: 0 5px 20px #536b9e12; backdrop-filter: blur(12px); z-index: 5; }
@media (min-width: 900px) { .hero { animation: arrive .65s ease-out both; } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1250px) {
  .header { margin-inline: 28px; }
  .hero, .discovery-grid, .content-grid, .reading-grid, .archive-head, .reading-head { padding-inline: 36px; }
  footer { margin-inline: 36px; }
  .hero { gap: 36px; }
  .floating-symbol { right: 0; }
}
@media (max-width: 1000px) {
  .brand-caption { display: none; }
  .hero { gap: 25px; padding-block: 62px; }
  .hero h1 { font-size: 36px; }
  .editor-code { font-size: 10px; min-height: 250px; }
  .editor-readme { min-height: 250px; }
  .hero-actions { gap: 15px; }
  .content-grid, .reading-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
  .panel { padding: 20px; }
  .post-card { grid-template-columns: 132px minmax(0,1fr); gap: 15px; }
  .post-info h3 { font-size: 16px; }
  .post-art { min-height: 190px; }
  .discovery-card { padding: 20px; }
  .discovery-card h2 { font-size: 18px; }
  .github-card h2 { font-size: 16px; }
  .hero-footnote code { flex-basis: 100%; margin-left: 24px; }
  .profile-head { gap: 10px; }
  .profile-head p { font-size: 7px; }
  .activity-grid { gap: 3px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .header { top: 10px; margin: 14px 18px 0; padding: 10px 14px; border-radius: 15px; gap: 10px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 30px; height: 30px; font-size: 24px; border-radius: 9px; margin-right: 8px; }
  .brand-mark span { font-size: 12px; }
  .header nav { gap: 2px; }
  .header nav > a { padding: 7px 10px; font-size: 11px; }
  .search-open { border: 0; margin-left: 5px; padding: 7px 5px; background: none; }
  .search-open span, .search-open kbd { display: none; }
  .hero { padding: 43px 26px 38px; grid-template-columns: 1fr; gap: 35px; }
  .hero h1 { font-size: clamp(33px,7vw,45px); letter-spacing: -1px; line-height: 1.5; }
  .hello { font-size: 12px; margin-bottom: 14px; }
  .hello-wave { font-size: 19px; }
  .hero-description { margin-top: 15px; font-size: 12px; }
  .button { padding: 10px 17px; font-size: 12px; }
  .hero-actions { gap: 21px; }
  .hero-footnote { margin-top: 24px; font-size: 9px; }
  .hero-footnote code { flex-basis: auto; margin-left: 2px; font-size: 9px; }
  .editor-scene { padding: 0 5px 13px; max-width: 540px; width: 100%; justify-self: center; }
  .editor { transform: rotate(1deg); border-radius: 15px; }
  .scene-orbit { width: 75%; height: 100%; top: -8px; }
  .floating-symbol { display: none; }
  .editor-code { font-size: clamp(9px,2.3vw,12px); min-height: 265px; }
  .editor-readme { min-height: 265px; }
  .editor-titlebar { padding-block: 12px; }
  .floating-note { right: 0; font-size: 9px; bottom: -4px; padding: 7px 12px; }
  .terminal-line { font-size: clamp(9px,2.5vw,12px); }
  .discovery-grid { padding-inline: 23px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .featured-card { grid-column: 1 / -1; min-height: 167px; }
  .discovery-card { min-height: 184px; padding: 19px; border-radius: 15px; }
  .featured-card h2 { max-width: 87%; font-size: 19px; margin: 12px 0 17px; }
  .github-card h2 { font-size: 15px; }
  .topic-card h2 { font-size: 18px; }
  .card-label { font-size: 10px; }
  .card-bottom { font-size: 9px; gap: 7px; }
  .content-grid, .reading-grid { padding-inline: 23px; margin: 42px auto 48px; grid-template-columns: 1fr; gap: 30px; }
  .section-heading h2 { font-size: 25px; }
  .section-caption { font-size: 10px; }
  .section-heading > a { font-size: 10px; }
  .category-nav { gap: 4px; }
  .category-nav a { padding: 5px 8px; font-size: 10px; }
  .post-card { grid-template-columns: 105px minmax(0,1fr); gap: 13px; padding: 8px; border-radius: 13px; min-height: 194px; }
  .post-art { min-height: 176px; border-radius: 8px; }
  .post-info { padding: 6px 5px 4px 0; }
  .post-info h3 { font-size: 15px; line-height: 1.7; margin-top: 7px; }
  .post-info p { font-size: 10px; margin-bottom: 8px; }
  .meta { font-size: 8px; gap: 7px; }
  .meta > span { font-size: 8px; padding: 2px 5px; }
  .code-art { font-size: 38px; }
  .art-orbit { width: 90px; height: 90px; border-radius: 25px; }
  .art-caption { font-size: 7px; bottom: 20px; }
  .post-tags { font-size: 8px; gap: 5px; }
  .read-link { font-size: 9px; }
  .read-link span { margin-left: 2px; }
  .post-bottom { gap: 4px; }
  .sidebar { padding-top: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .sidebar .panel { margin: 0; padding: 21px; }
  .sidebar .profile { grid-column: 1 / -1; }
  .profile > p { font-size: 12px; }
  .profile-head p { font-size: 9px; }
  .profile-head { gap: 15px; }
  .sidebar .activity-panel, .sidebar .tags-panel, .quote { grid-column: 1 / -1; }
  .sidebar .panel:has(.category-list) { grid-column: 1 / -1; }
  .activity-grid { gap: 5px; }
  .activity-legend { flex-direction: row; justify-content: space-between; font-size: 8px; }
  .activity-summary { font-size: 11px; }
  .quote { padding-top: 5px; }
  .quote p { font-size: 15px; }
  footer { margin-inline: 23px; padding-top: 23px; gap: 14px; }
  footer p { flex-basis: 100%; order: 2; font-size: 10px; }
  footer small { order: 3; flex-wrap: wrap; }
  footer small code { font-size: 8px; }
  .reading-head, .archive-head { padding-inline: 24px; margin-top: 34px; }
  .reading-head h1 { font-size: 30px; }
  .prose { padding: 24px; font-size: 14px; border-radius: 14px; }
  .prose h2 { font-size: 23px; }
  .reading-toc { position: static; grid-row: 1; max-height: 245px; margin-bottom: 0; }
  .top-button { right: 16px; bottom: 16px; width: 36px; height: 36px; }
  dialog { padding: 22px; border-radius: 15px; }
}
@media (max-width: 380px) {
  .header { margin-inline: 12px; padding-inline: 10px; }
  .header nav > a { padding-inline: 8px; }
  .hero { padding-inline: 22px; }
  .hero h1 { font-size: 31px; }
  .hero-actions { gap: 15px; }
  .quiet-link { font-size: 11px; }
  .post-card { grid-template-columns: 80px minmax(0,1fr); gap: 10px; }
  .art-caption { font-size: 6px; }
  .post-info h3 { font-size: 14px; }
  .discovery-card { padding: 16px; }
  .topic-card h2 { font-size: 16px; }
  .github-card h2 { font-size: 14px; }
  .editor-code { padding-right: 10px; }
  .line-number { width: 34px; padding-right: 12px; }
}
@supports not (backdrop-filter: blur(20px)) { .glass, dialog { background-color: #f9fbfd; } .topic-card { background-color: #e5f3ed; } .github-card { background-color: #eef0fb; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .backdrop, .sidebar, .reading-toc, .top-button, footer, dialog { display: none; } body { background: white; } .reading-grid { display: block; margin: 0; } .prose { padding: 0; border: 0; box-shadow: none; } }
