:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #fffefa;
  --ink: #17251f;
  --muted: #66736a;
  --line: #dce3db;
  --accent: #236b4d;
  --accent-dark: #164a36;
  --soft: #e8f0e6;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: #cbe5d3; color: var(--ink); }
.shell { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(247, 247, 242, .94); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--serif); font-size: 29px; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3.2vw, 42px); }
.site-nav a { color: #43564a; font-size: 14px; font-weight: 600; transition: color .18s ease; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav .lang-switch { padding-left: 18px; border-left: 1px solid var(--line); color: var(--accent); }
.main-content { min-height: 58vh; }
.eyebrow, .project-number { margin: 0; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 58px; align-items: stretch; padding: 88px 0 96px; }
.hero-copy { align-self: center; }
.signal { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #47a872; box-shadow: 0 0 0 5px #d8ecdd; vertical-align: 1px; }
.hero h1 { margin: 23px 0 24px; font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); font-weight: 700; letter-spacing: -.065em; line-height: 1.13; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 565px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; min-height: 49px; padding: 10px 18px; font-size: 14px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); color: #fff; }
.button-text { padding-left: 0; color: var(--accent); }
.hero-aside { display: flex; min-height: 435px; flex-direction: column; justify-content: space-between; padding: 26px 30px 24px; background: #dfece0; border: 1px solid #d2e1d3; overflow: hidden; }
.aside-top, .aside-bottom { display: flex; justify-content: space-between; gap: 12px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.aside-mark { align-self: center; color: var(--accent-dark); font-family: var(--serif); font-size: clamp(160px, 16vw, 200px); font-weight: 700; letter-spacing: -.11em; line-height: .75; transform: rotate(-8deg); }
.aside-mark span { color: #67a77d; }
.hero-aside p { margin: 0 0 18px; color: #315b43; font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.55; }
html[lang="en"] .hero-aside .aside-mark { font-size: 135px; }
html[lang="en"] .hero-aside p { font-size: 20px; line-height: 1.45; }

.section { padding: 62px 0 75px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-heading h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(32px, 3.5vw, 44px); letter-spacing: -.04em; line-height: 1.25; }
.section-link { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.section-link span { margin-left: 8px; }
.section-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-list { border-top: 1px solid var(--line); }
.post-card { position: relative; display: block; padding: 24px 70px 27px 0; border-bottom: 1px solid var(--line); transition: padding-left .18s ease, background .18s ease; }
.post-card:hover { padding-left: 12px; background: rgba(255, 255, 255, .46); }
.post-meta { display: flex; gap: 18px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.post-meta span { color: var(--accent); }
.post-card h2, .post-card h3 { margin: 8px 0 5px; font-family: var(--serif); font-size: clamp(21px, 2.25vw, 27px); letter-spacing: -.025em; line-height: 1.4; }
.post-card p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.card-arrow { position: absolute; top: 50%; right: 10px; color: var(--accent); font-size: 22px; transform: translateY(-50%); }
.projects-section { padding-bottom: 100px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-height: 200px; flex-direction: column; align-items: flex-start; padding: 26px 29px; background: var(--surface); border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease; }
.project-card:hover { border-color: #8eb69b; transform: translateY(-3px); }
.project-card h2, .project-card h3 { display: flex; width: 100%; justify-content: space-between; gap: 12px; margin: 24px 0 8px; font-family: var(--serif); font-size: 27px; letter-spacing: -.03em; line-height: 1.25; }
.project-card h2 span, .project-card h3 span { color: var(--accent); font-family: var(--sans); font-size: 20px; font-weight: 400; }
.project-card p { margin: auto 0 0; color: var(--muted); font-size: 14px; }
.closing-note { display: flex; align-items: center; gap: 27px; margin-bottom: 96px; padding: 30px 35px; background: var(--ink); color: #f3f7f0; }
.closing-note > span { color: #8ccd9c; font-size: 30px; }
.closing-note p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.closing-note p strong { font-weight: 700; }
.closing-note a { margin-left: auto; color: #b9e4bf; font-size: 13px; font-weight: 700; white-space: nowrap; }

.page-header { padding: 86px 0 54px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 12px 0; font-family: var(--serif); font-size: clamp(47px, 6vw, 74px); letter-spacing: -.055em; line-height: 1.2; }
.page-header > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 17px; }
.archive-list { margin-bottom: 120px; border-top: 0; }
.archive-list .post-card { padding-top: 30px; padding-bottom: 32px; }
.project-page-grid { padding-top: 36px; }
.book-list { display: grid; gap: 18px; padding: 36px 0 55px; }
.book-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 30px; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.book-cover { display: flex; min-height: 154px; align-items: end; padding: 16px; background: var(--soft); color: var(--accent-dark); font-family: var(--serif); font-size: 31px; font-weight: 700; line-height: 1.1; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card h2 { margin: 8px 0 5px; font-family: var(--serif); font-size: 27px; line-height: 1.35; }
.book-original { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.book-description { margin: 0 0 17px; color: #2e3b33; font-size: 14px; line-height: 1.85; }
.book-meta { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.book-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.book-links a { color: var(--accent); font-size: 13px; font-weight: 700; }
.book-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reviewed-section .book-list { padding: 0 0 30px; }
.page-outro { margin: 25px 0 115px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 70px; padding: 35px 0 120px; }
.about-aside { align-self: start; padding: 25px; background: var(--soft); border: 1px solid #d8e7d9; }
.about-aside p { margin: 16px 0 23px; font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.about-aside a { color: var(--accent); font-size: 13px; font-weight: 700; }

.article { max-width: 790px; margin: 0 auto; padding: 67px 0 120px; }
.back-link { color: var(--muted); font-size: 13px; font-weight: 650; }
.article-header { margin: 50px 0 45px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 15px 0 20px; font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; line-height: 1.25; }
.article-deck { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.prose { color: #2e3b33; font-size: 16px; line-height: 2; overflow-wrap: break-word; }
.prose h2 { margin: 2.1em 0 .65em; color: var(--ink); font-family: var(--serif); font-size: 28px; letter-spacing: -.03em; line-height: 1.35; }
.prose h3 { margin: 1.8em 0 .6em; color: var(--ink); font-size: 19px; }
.prose p { margin: 0 0 1.3em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: #9dc5aa; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 3px solid #91b99e; color: var(--muted); }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow-x: auto; padding: 20px; background: #1c2c23; color: #e6f1e6; border-radius: 4px; font-size: 13px; line-height: 1.7; }
.prose :not(pre) > code { padding: 2px 5px; background: var(--soft); border-radius: 3px; font-size: .88em; }
.article-end { display: flex; justify-content: space-between; gap: 16px; margin-top: 65px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.article-end a { color: var(--accent); font-weight: 700; }
.not-found { padding: 135px 0 160px; }
.not-found h1 { margin: 15px 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); letter-spacing: -.05em; }
.not-found p:not(.eyebrow) { color: var(--muted); }
.not-found .button { margin-top: 20px; }

.site-footer { border-top: 1px solid var(--line); background: #eff2ec; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 42px 0 50px; }
.footer-brand { font-size: 25px; }
.footer-inner p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; gap: 20px 28px; flex-wrap: wrap; justify-content: flex-end; padding-top: 6px; }
.footer-inner nav a { color: #516258; font-size: 12px; }
.footer-inner nav a:hover { color: var(--accent); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 69px 0 80px; }
  .hero-aside { min-height: 275px; }
  .aside-mark { font-size: 145px; }
  .hero-aside p { align-self: end; font-size: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 36px, 1120px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; gap: 7px 18px; padding: 15px 0 13px; }
  .brand { font-size: 25px; }
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 12px; }
  .site-nav .lang-switch { padding-left: 12px; }
  .site-nav a[aria-current="page"] { text-underline-offset: 6px; }
  .hero { padding: 59px 0 69px; }
  .hero h1 { margin: 18px 0; font-size: clamp(52px, 13vw, 68px); }
  .hero-description { font-size: 15px; }
  .hero-aside { min-height: 220px; padding: 20px; }
  .aside-mark { display: none; }
  .hero-aside p { align-self: flex-start; margin: auto 0 18px; font-size: 18px; }
  .section { padding: 47px 0 55px; }
  .section-heading { align-items: end; }
  .section-heading h2 { font-size: 32px; }
  .section-link { font-size: 12px; }
  .post-card { padding-right: 35px; }
  .post-card h2, .post-card h3 { font-size: 21px; }
  .card-arrow { right: 2px; font-size: 17px; }
  .project-grid { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; }
  .book-card { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .book-cover { min-height: 105px; padding: 10px; font-size: 20px; }
  .book-card h2 { font-size: 21px; }
  .project-card { min-height: 175px; }
  .closing-note { align-items: flex-start; gap: 15px; flex-wrap: wrap; margin: 15px 0 75px; padding: 25px; }
  .closing-note a { width: 100%; margin-left: 44px; }
  .page-header { padding: 58px 0 40px; }
  .page-header h1 { font-size: 46px; }
  .page-header > p:last-child { font-size: 15px; }
  .article { padding: 47px 0 85px; }
  .article-header { margin: 37px 0 30px; }
  .article-header h1 { font-size: 39px; }
  .article-deck { font-size: 16px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 25px; }
  .footer-inner { flex-direction: column; gap: 25px; }
  .footer-inner nav { justify-content: flex-start; padding: 0; }
}

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

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #111b16; --surface: #1b2921; --ink: #eaf3e9; --muted: #aab9ac; --line: #34473a; --accent: #85cda0; --accent-dark: #b2e1bd; --soft: #263a2d; }
  .site-header { background: rgba(17, 27, 22, .94); }
  .site-nav a, .footer-inner nav a { color: #bdcbbf; }
  .hero-aside { background: #21392a; border-color: #355742; }
  .aside-top, .aside-bottom, .hero-aside p, .aside-mark { color: #d5edd9; }
  .aside-mark span { color: #79bc91; }
  .button-primary { color: #102116; background: #a1dcb3; }
  .button-primary:hover { color: #102116; background: #bce9c7; }
  .post-card:hover { background: rgba(255, 255, 255, .04); }
  .closing-note { background: #263e2e; }
  .prose { color: #d5dfd6; }
  .book-description { color: #d5dfd6; }
  .site-footer { background: #17241b; }
}
