:root {
  --ink: #22201d;
  --muted: #6d675f;
  --paper: #f6f1e7;
  --paper-deep: #ebe1d1;
  --white: #fffdf8;
  --red: #8f2f28;
  --red-dark: #66221e;
  --green: #4e6255;
  --line: rgba(52, 43, 34, .18);
  --shadow: 0 22px 60px rgba(55, 39, 24, .10);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.75; }
a { color: inherit; text-decoration-color: rgba(143, 47, 40, .4); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 8px 14px; color: white; background: var(--red); }
.skip:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(246, 241, 231, .93); backdrop-filter: blur(18px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: .08em; }
.brand small { display: block; font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff8ed; background: var(--red); border-radius: 4px 14px 4px 14px; font-size: 23px; }
#site-nav { display: flex; gap: 28px; align-items: center; }
#site-nav a { color: #403b36; font-size: 14px; font-weight: 650; text-decoration: none; }
#site-nav a:hover { color: var(--red); }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 7px 12px; border-radius: 4px; }
.locale-switch { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.locale-switch button { min-width: 30px; padding: 3px 7px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.locale-switch button[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: rgba(143,47,40,.08); font-weight: 700; }

.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.home-hero { min-height: 650px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 24%, rgba(143,47,40,.10), transparent 28%), linear-gradient(135deg, #f8f3e9, #eee4d4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 90px; align-items: center; padding-block: 88px; }
.home-hero h1, .page-hero h1, .article-hero h1 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; }
.home-hero h1 { font-size: clamp(48px, 7vw, 88px); }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: #554e47; font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 20px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.34); font-size: 14px; font-weight: 700; text-decoration: none; }
.button:hover { border-color: var(--red); color: var(--red); }
.button.primary { border-color: var(--red); color: white; background: var(--red); }
.button.primary:hover { background: var(--red-dark); }
.manifesto { position: relative; padding: 38px 34px; border: 1px solid rgba(143,47,40,.25); background: rgba(255,253,248,.62); box-shadow: var(--shadow); }
.manifesto::before { content: "“"; position: absolute; right: 25px; top: -25px; color: rgba(143,47,40,.16); font-family: Georgia, serif; font-size: 110px; line-height: 1; }
.manifesto > span { color: var(--red); font-size: 12px; font-weight: 750; letter-spacing: .18em; }
.manifesto blockquote { margin: 24px 0; font-family: var(--serif); font-size: 25px; line-height: 1.65; }
.manifesto p { margin: 0; color: var(--muted); font-size: 12px; }

.section { padding-block: 100px; }
.paper { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr); gap: 70px; align-items: end; margin-bottom: 44px; }
.section-head h2, .method-band h2, .closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 54px); line-height: 1.3; letter-spacing: -.025em; }
.section-head > p { margin: 0; color: var(--muted); }
.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.question-card { min-height: 210px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.18); text-decoration: none; transition: .2s ease; }
.question-card:hover { transform: translateY(-3px); color: var(--red); background: var(--white); box-shadow: var(--shadow); }
.question-card small { color: var(--red); font-weight: 750; letter-spacing: .16em; }
.question-card strong { margin-top: 25px; font-family: var(--serif); font-size: 23px; line-height: 1.5; }
.question-card span { margin-top: auto; color: var(--muted); font-size: 12px; }

.essay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.essay-card { display: flex; flex-direction: column; min-height: 330px; overflow: hidden; padding: 0 28px 28px; border: 1px solid var(--line); background: var(--paper); }
.essay-card[hidden] { display: none; }
.essay-card-visual { display: block; margin: 0 -28px 24px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.essay-card-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.essay-card-visual:hover img { transform: scale(1.015); }
.essay-card h2 { margin: 24px 0 14px; font-family: var(--serif); font-size: 25px; line-height: 1.42; }
.essay-card h2 a { text-decoration: none; }
.essay-card h2 a:hover { color: var(--red); }
.essay-card p { margin: 0; color: var(--muted); font-size: 14px; }
.read-link { margin-top: auto; padding-top: 24px; color: var(--red); font-size: 13px; font-weight: 750; text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 3px 9px; border: 1px solid rgba(78,98,85,.25); border-radius: 999px; color: var(--green); font-size: 11px; font-weight: 650; }
.center { margin: 44px 0 0; text-align: center; }

.method-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.method-band ol { list-style: none; margin: 0; padding: 0; counter-reset: method; }
.method-band li { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: method; }
.method-band li::before { content: "0" counter(method); grid-column: 1 / -1; color: var(--red); font-family: Georgia, serif; font-size: 12px; }
.method-band li strong { font-family: var(--serif); font-size: 20px; }
.method-band li span { color: var(--muted); }
.closing { padding-block: 120px; color: #f4eadb; background: #292b27; text-align: center; }
.closing .eyebrow { color: #d98a7f; }
.closing p:last-child { color: #bbb5aa; }

.page-hero, .article-hero { padding-block: 100px 60px; }
.page-hero h1 { font-size: clamp(43px, 6vw, 70px); }
.page-hero > p:last-child { color: var(--muted); font-family: var(--serif); font-size: 19px; }
.article-hero h1 { font-size: clamp(40px, 5.5vw, 66px); }
.dek { margin: 28px 0; color: #554e47; font-family: var(--serif); font-size: 20px; }
.article-meta { color: var(--muted); font-size: 12px; }
.article-map { margin-bottom: 54px; }
.article-map img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; border: 1px solid var(--line); background: var(--white); }
.article-map figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 70px; justify-content: center; align-items: start; padding-bottom: 90px; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 9px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 18px; }
.toc strong { margin-bottom: 8px; color: var(--red); font-size: 12px; letter-spacing: .14em; }
.toc a { color: var(--muted); font-size: 12px; line-height: 1.45; text-decoration: none; }
.toc a:hover { color: var(--red); }
.prose { font-family: var(--serif); font-size: 18px; line-height: 2; }
.prose h2 { margin: 2.2em 0 .75em; padding-top: .3em; font-size: 30px; line-height: 1.45; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.article-inline-figure { margin: 2.1em 0 2.3em; }
.article-inline-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--white); }
.article-inline-figure figcaption { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 12px; line-height: 1.6; }
.prose ol, .prose ul { margin: 0 0 1.7em; padding-left: 1.45em; }
.prose li { margin: .45em 0; padding-left: .35em; }
.prose a { color: var(--red-dark); overflow-wrap: anywhere; }
.prose code { padding: .08em .35em; background: var(--paper-deep); font-family: ui-monospace, monospace; font-size: .85em; }
.standalone { padding-top: 20px; padding-bottom: 100px; }
.article-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 40px 90px; border-top: 1px solid var(--line); }
.article-next a { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); font-family: var(--serif); text-decoration: none; }
.article-next a:last-child { text-align: right; }
.article-next small { margin-bottom: 8px; color: var(--red); font-family: var(--sans); }

.search { display: block; max-width: 620px; }
.search span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.search input { width: 100%; min-height: 54px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font: inherit; }
.search input:focus { outline: 2px solid rgba(143,47,40,.3); border-color: var(--red); }
.search-count { color: var(--muted); font-size: 12px; }
.all-essays { margin-top: 28px; }
.question-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 30px; }
.question-group { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.question-group h2 { margin: 0 0 20px; font-family: var(--serif); }
.question-group h2 small { margin-left: 10px; color: var(--muted); font: 11px var(--sans); }
.question-group > div { display: flex; flex-direction: column; gap: 10px; }
.question-group a { color: var(--muted); text-decoration: none; }
.question-group a:hover { color: var(--red); }
.notice { padding: 24px; border: 1px solid var(--line); background: var(--white); }
.notice p { margin-bottom: 0; }
.notice dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 18px 0; font-family: var(--sans); font-size: 13px; line-height: 1.6; }
.notice dl div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.notice dt { color: var(--muted); font-weight: 700; }
.notice dd { margin: 0; }
.account-page { padding-top: 20px; }
.account-card { max-width: 520px; margin: 0 auto 24px; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.account-card h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 30px; }
.account-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.account-card label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
.account-card input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font: inherit; }
.account-card input:focus { outline: 2px solid rgba(143,47,40,.3); border-color: var(--red); }
.account-error { min-height: 22px; margin: 10px 0 0; color: var(--red); font-size: 13px; }
.account-switch { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.account-switch button { border: 0; padding: 0; color: var(--red); background: transparent; font: inherit; cursor: pointer; text-decoration: underline; }
.account-user { display: grid; gap: 16px; }
.account-user > p { margin: 0; }
.account-session-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-tools { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-tools h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.account-tools > p { margin: 0; color: var(--muted); font-size: 13px; }
.account-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button.danger { border-color: #79251f; color: #fff; background: #79251f; }
.button.danger:hover { border-color: #541a16; background: #541a16; }
.account-notice { max-width: 760px; margin-inline: auto; }
.subscribe-form { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.subscribe-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.subscribe-form > div { display: flex; gap: 10px; }
.subscribe-form input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; }
.subscribe-form p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.site-footer { padding-block: 50px; border-top: 1px solid rgba(255,255,255,.08); color: #d8d0c5; background: #20211f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer-grid strong { font-family: var(--serif); font-size: 21px; }
.footer-grid p { margin: 7px 0 0; color: #9e9991; font-size: 13px; }
.footer-grid > div:nth-child(2) { display: flex; gap: 18px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.copyright { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .hero-grid, .section-head, .method-band { grid-template-columns: 1fr; gap: 40px; }
  .question-grid, .essay-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: grid; grid-template-columns: 1fr 1fr; max-height: none; padding: 20px; border: 1px solid var(--line); }
  .toc strong { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 66px; }
  .nav-toggle { display: block; }
  #site-nav { position: absolute; inset: 66px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .locale-switch { justify-content: flex-end; margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .home-hero { min-height: auto; }
  .hero-grid { padding-block: 65px; }
  .home-hero h1 { font-size: 46px; }
  .manifesto { padding: 28px 24px; }
  .section { padding-block: 70px; }
  .question-grid, .essay-grid, .question-list, .article-next { grid-template-columns: 1fr; }
  .question-card { min-height: 180px; }
  .essay-card { min-height: 290px; }
  .method-band li { grid-template-columns: 1fr; gap: 8px; }
  .article-hero, .page-hero { padding-block: 65px 35px; }
  .article-hero h1, .page-hero h1 { font-size: 40px; }
  .prose { font-size: 17px; line-height: 1.9; }
  .prose h2 { font-size: 25px; }
  .toc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(2) { flex-wrap: wrap; }
  .subscribe-form > div { flex-direction: column; }
  .notice dl { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

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