@font-face {
  font-family: 'Blog Serif';
  src: url('./assets/fonts/blog-serif.woff2?v=4a6528a12e74') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f3eb;
  --ink: #27211d;
  --soft: #5f5349;
  --muted: #786a5e;
  --accent: #c34830;
  --line: #dfd4c7;
  --wash: #f0e6d9;
  --serif: 'Blog Serif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, serif;
  --sans: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --mono: 'Cascadia Code', Consolas, 'SFMono-Regular', monospace;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #211c18;
  --ink: #f1e6d8;
  --soft: #d2c0ae;
  --muted: #b8a493;
  --accent: #ed9678;
  --line: #493b31;
  --wash: #2b241f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--serif); }
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
svg { display: block; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.4 var(--mono); letter-spacing: -.4px; }
.brand-suffix { color: var(--muted); font-weight: 400; }
.header-actions, .site-header nav { display: flex; align-items: center; }
.header-actions { gap: 26px; }
.site-header nav { gap: 26px; }
.site-header nav a { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding-inline: 6px; font: 15px/1.6 var(--serif); color: var(--soft); transition: color 180ms ease; }
.site-header nav a:hover { color: var(--ink); }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); transition: color 180ms ease; }
.theme-toggle:hover { color: var(--accent); }
.sun-icon, [data-theme='dark'] .moon-icon { display: none; }
[data-theme='dark'] .sun-icon { display: block; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; min-height: 520px; padding-block: 120px 80px; }
.hero-copy { max-width: 670px; }
.hello { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--muted); font: 14px/1.8 var(--serif); }
.hello-divider { color: var(--accent); }
.hero h1 { margin-top: 27px; font: 900 clamp(42px, 4.7vw, 60px)/1.22 var(--serif); letter-spacing: -.02em; }
.name-mark { position: relative; display: inline-block; white-space: nowrap; }
.name-mark svg { position: absolute; left: -3%; bottom: -.12em; width: 106%; height: .3em; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.hero-description { max-width: 600px; margin-top: 32px; color: var(--soft); font: 18px/1.95 var(--serif); text-wrap: pretty; }
.hero-illustration { align-self: stretch; }
.entry-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-block: 25px 18px; }
.entry-links > a { display: flex; align-items: center; gap: 13px; min-height: 48px; width: fit-content; }
.entry-links > a > svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.entry-title { display: block; font: 16px/1.5 var(--serif); }
.entry-title > span { display: inline-block; margin-left: 7px; font: 15px var(--sans); color: var(--muted); transition: transform 180ms ease, color 180ms ease; }
.entry-links a:hover .entry-title > span { transform: translate(2px, -2px); color: var(--accent); }
.entry-description { display: block; margin-top: 2px; font: 12px/1.7 var(--serif); color: var(--muted); letter-spacing: .02em; }
.content-section { padding-top: 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-kicker { font: 12px/1.7 var(--mono); color: var(--muted); margin-bottom: 10px; }
h2 { font: 600 32px/1.5 var(--serif); letter-spacing: -.5px; }
.heading-note { color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; border-bottom: 1px solid var(--line); }
.filters button { position: relative; min-height: 48px; padding: 0 2px 12px; background: transparent; border: 0; color: var(--muted); font-size: 14px; transition: color 180ms ease; }
.filters button::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: transparent; }
.filters button.active { color: var(--ink); }
.filters button.active::after { background: var(--accent); }
.filters button:hover { color: var(--accent); }
.post-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 40px; gap: 32px; align-items: baseline; padding-block: 30px; border-bottom: 1px solid var(--line); }
.post-meta { color: var(--muted); font: 13px/1.8 var(--mono); }
.post-meta time { display: block; margin-bottom: 5px; }
.post-category { font-family: var(--serif); }
.sample-label { display: inline-block; margin-left: 9px; border: 1px solid var(--line); padding-inline: 5px; font: 12px/1.7 var(--sans); }
.post-row h3 { font: 600 22px/1.6 var(--serif); margin-bottom: 9px; transition: color 180ms ease; }
.post-row p { font-size: 15px; line-height: 1.9; color: var(--soft); max-width: 760px; }
.post-arrow { justify-self: end; font-size: 23px; color: var(--muted); transition: transform 180ms ease, color 180ms ease; }
.post-row:hover h3 { color: var(--accent); }
.post-row:hover .post-arrow { color: var(--accent); transform: translate(2px, -2px); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.project-card { display: flex; align-items: start; gap: 18px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.project-icon { width: 30px; padding-top: 5px; flex-shrink: 0; color: var(--muted); }
.project-copy { flex: 1; min-width: 0; }
.project-title { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.project-title h3 { font: 600 21px/1.5 var(--serif); transition: color 180ms ease; }
.project-label { color: var(--muted); font-size: 12px; }
.project-description { color: var(--soft); font-size: 15px; line-height: 1.9; margin-top: 9px; }
.project-action { color: var(--muted); font-size: 22px; transition: color 180ms ease, transform 180ms ease; }
.project-action.pending { font-size: 12px; white-space: nowrap; padding-top: 5px; }
.project-card[href]:hover h3, .project-card[href]:hover .project-action { color: var(--accent); }
.project-card[href]:hover .project-action { transform: translate(2px, -2px); }
.project-footnote { color: var(--muted); font-size: 12px; margin-top: 19px; }
.about-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding-bottom: 104px; }
.about-copy { padding-top: 34px; }
.about-copy > p { font: 17px/2 var(--serif); color: var(--soft); max-width: 650px; }
.interests { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 25px 0; padding: 0; color: var(--muted); font-size: 13px; }
.interests li { padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.about-copy .about-signoff { color: var(--ink); font-size: 17px; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding-block: 22px; font-size: 12px; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; align-items: center; gap: 24px; }
#main[tabindex='-1']:focus { outline: none; }
.back-top { justify-content: center; width: 44px; font-size: 21px; }
.article-view { max-width: 800px; min-height: 75vh; padding-block: 64px 88px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.text-button:hover { color: var(--accent); }
.article-header { margin-top: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.article-header h1 { font: 500 42px/1.5 var(--serif); margin-bottom: 18px; }
.article-header time { color: var(--muted); font: 13px var(--mono); }
.article-body { padding-top: 36px; font: 19px/2.1 var(--serif); }
.article-body p { margin-bottom: 26px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--paper); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.empty-state { padding-block: 36px; color: var(--muted); }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 80px); }
  .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; min-height: 480px; padding-block: 100px 72px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 18px; }
  .hello { font-size: 14px; gap: 9px; }
  .project-grid { column-gap: 36px; }
  .post-row { grid-template-columns: 150px minmax(0, 1fr) 32px; gap: 24px; }
  .about-section { gap: 48px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 80px; gap: 16px; }
  .brand { font-size: 16px; }
  .header-actions { gap: 14px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 15px; padding-inline: 3px; }
  .hero { grid-template-columns: 1fr; min-height: 430px; padding-block: 80px 64px; }
  .hero-illustration { display: none; }
  .hero h1 { font-size: 54px; }
  .hero-description { max-width: 570px; font-size: 18px; }
  .entry-links { gap: 24px; padding-block: 25px; }
  .entry-links > a { gap: 12px; }
  .entry-title { font-size: 16px; }
  .entry-description { font-size: 12px; }
  .content-section { padding-top: 72px; }
  .heading-note { display: none; }
  .post-row { grid-template-columns: 1fr 28px; gap: 12px; padding-block: 27px; }
  .post-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .post-meta time { margin: 0; }
  .sample-label { margin: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 24px; padding-bottom: 72px; }
  .about-copy { padding: 0; }
  .site-footer { flex-wrap: wrap; gap: 6px 24px; }
  .footer-links { gap: 13px; flex-shrink: 0; }
  .article-view { padding-top: 34px; }
  .article-header h1 { font-size: 34px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 80px; gap: 8px; }
  .brand { font-size: 15px; }
  .header-actions { gap: 4px; }
  .site-header nav { gap: 4px; }
  .site-header nav a { font-size: 14px; }
  .theme-toggle { width: 44px; }
  .hero { min-height: 410px; padding-block: 72px 56px; }
  .hello { font-size: 12px; gap: 8px; }
  .hero h1 { font-size: clamp(39px, 11vw, 49px); letter-spacing: -.025em; margin-top: 27px; }
  .hero-description { margin-top: 28px; font-size: 17px; line-height: 1.95; }
  .entry-links { gap: 12px; }
  .entry-links > a { align-items: start; }
  .entry-links > a > svg { display: none; }
  .entry-title { font-size: 16px; }
  .entry-title > span { font-size: 12px; margin-left: 2px; }
  .entry-description { font-size: 12px; letter-spacing: 0; }
  h2 { font-size: 28px; }
  .section-kicker { font-size: 12px; }
  .section-heading { margin-bottom: 23px; }
  .post-row h3 { font-size: 21px; }
  .project-card { gap: 14px; }
  .project-title { display: block; }
  .project-title h3 { font-size: 21px; }
  .article-header h1 { font-size: 30px; }
  .article-body { font-size: 18px; }
}
@media (max-width: 360px) {
  .brand { font-size: 13px; }
  .site-header { gap: 4px; }
  .header-actions, .site-header nav { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
