:root {
  --paper: #111111;
  --ink: #e8e0cf;
  --faded: #aaa59b;
  --rule: #57544d;
  --red: #dc665b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.masthead {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-family: "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
}
.masthead .name { font-size: 16px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.masthead nav { display: flex; gap: 28px; }
main { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.opening { min-height: 72vh; padding: 12vh 0 7vh; position: relative; }
.kicker, .eyebrow, .serial, .note-meta, time, footer {
  font-family: "Noto Sans CJK SC", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker { margin: 0 0 28px; color: var(--red); font-size: 12px; font-weight: 800; }
h1 { margin: 0; max-width: 980px; font-size: clamp(58px, 10.5vw, 148px); line-height: .96; letter-spacing: -.075em; font-weight: 600; }
.opening-note { position: absolute; right: 0; bottom: 7vh; width: min(360px, 40%); border-top: 1px solid; padding-top: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 15px; }
.opening-note span { color: var(--red); font-family: sans-serif; }
.opening-note p { margin: 0; line-height: 1.75; font-size: 15px; }
.lead-note { display: grid; grid-template-columns: 1fr 3fr; gap: 6vw; padding: 70px 0 100px; border-top: 4px solid; }
.note-meta { display: flex; flex-direction: column; gap: 16px; font-size: 11px; color: var(--faded); }
.stamp { width: fit-content; padding: 5px 8px 4px; color: var(--red); border: 1px solid var(--red); }
.serial { color: var(--red); font-size: 12px; }
.title-link { text-decoration: none; }
h2 { margin: 8px 0 30px; max-width: 920px; font-size: clamp(38px, 6vw, 74px); line-height: 1.09; letter-spacing: -.045em; font-weight: 600; }
.deck { max-width: 790px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.7; }
.finding { margin: 52px 0 38px; padding: 26px 0; display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.finding b { color: var(--red); font-family: "Noto Sans CJK SC", sans-serif; font-size: clamp(64px, 10vw, 126px); line-height: .9; letter-spacing: -.07em; }
.finding p { margin: 0; max-width: 580px; align-self: center; line-height: 1.8; }
.boundary { max-width: 790px; color: var(--faded); line-height: 1.8; }
.notes { border-top: 1px solid var(--ink); }
.note { display: grid; grid-template-columns: 90px 1fr 72px; gap: 26px; padding: 44px 0 52px; border-bottom: 1px solid var(--rule); }
.note-index { color: var(--red); font: 700 34px/1 "Noto Sans CJK SC", sans-serif; }
.note h3 { margin: 6px 0 15px; max-width: 830px; font-size: clamp(27px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.035em; }
.note h3 a { text-decoration: none; }
.note p:not(.eyebrow) { max-width: 760px; line-height: 1.8; }
.eyebrow { margin: 0; color: var(--faded); font-size: 11px; }
.note time { text-align: right; font-size: 11px; color: var(--faded); }
.verdict { font-size: 14px; color: var(--faded); }
.verdict span { margin-right: 12px; padding-bottom: 2px; color: var(--red); border-bottom: 2px solid var(--red); font: 800 11px "Noto Sans CJK SC", sans-serif; letter-spacing: .08em; }
.links { display: flex; gap: 20px; font-size: 14px; font-family: "Noto Sans CJK SC", sans-serif; }
.method { padding: 110px 0; }
.method blockquote { margin: 20px 0 60px; max-width: 980px; font-size: clamp(38px, 6.8vw, 88px); line-height: 1.12; letter-spacing: -.05em; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid; padding-top: 20px; }
.method-grid p { margin: 0; line-height: 1.7; }
.method-grid b { font-family: "Noto Sans CJK SC", sans-serif; color: var(--red); }
footer { padding: 20px 24px; display: flex; justify-content: space-between; color: var(--faded); background: var(--paper); border-top: 1px solid var(--rule); font-size: 10px; }

.archive { width: min(1040px, calc(100% - 96px)); min-height: calc(100vh - 120px); padding: 6vh 0 14vh; }
.archive-title { margin: 0 0 16px; color: var(--faded); font: 700 12px/1 "Noto Sans CJK SC", sans-serif; letter-spacing: .12em; }
.archive-list { width: 100%; border: 1px solid var(--rule); }
.archive-row { display: block; padding: 17px 20px 16px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color 120ms ease, background-color 120ms ease; }
.archive-row:last-child { border-bottom: 0; }
.archive-row h2 { margin: 0; max-width: none; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.38; letter-spacing: -.008em; font-weight: 500; }
.archive-row:hover, .archive-row:focus-visible { color: var(--paper); background: var(--ink); outline: none; }

.post-shell { max-width: 900px; padding: 6vh 0 90px; }
.post-header { padding-bottom: 38px; border-bottom: 3px solid var(--ink); }
.post-header h1 { margin: 16px 0 20px; max-width: 840px; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.23; letter-spacing: -.024em; }
.post-header .deck { max-width: 810px; margin-bottom: 0; font-size: clamp(16px, 1.4vw, 19px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: var(--faded); font: 11px "Noto Sans CJK SC", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.post-body { max-width: 810px; margin: 34px auto 0; font-size: 16.5px; line-height: 1.76; }
.post-body h2 { margin: 38px 0 12px; font-size: 25px; line-height: 1.32; letter-spacing: -.015em; }
.post-body h3 { margin: 32px 0 12px; font-size: 21px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 19px; }
.post-body li { margin: 8px 0; }
.post-body strong { color: var(--ink); }
.post-body code { padding: 2px 5px; color: var(--ink); background: #242424; font-size: .88em; }
.post-body pre { margin: 34px 0; padding: 20px; overflow-x: auto; border: 1px solid var(--rule); background: #0b0b0b; line-height: 1.55; }
.post-body pre code { padding: 0; background: transparent; }
.post-body blockquote { margin: 0 0 32px; padding: 14px 18px; color: var(--faded); border-left: 3px solid var(--red); font-size: 15px; line-height: 1.7; letter-spacing: 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body table { display: block; width: 100%; max-width: 100%; margin: 30px 0; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.post-body th { font-family: "Noto Sans CJK SC", sans-serif; font-size: 12px; letter-spacing: .03em; }
.post-body th.align-right, .post-body td.align-right { text-align: right; }
.post-body th.align-center, .post-body td.align-center { text-align: center; }
.post-body img { display: block; width: 100%; height: auto; margin: 30px 0; border: 1px solid var(--rule); }
.data-disclosure { margin: 22px 0 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.data-disclosure summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 2px; cursor: pointer; color: var(--ink); font: 700 13px/1.4 "Noto Sans CJK SC", sans-serif; letter-spacing: .025em; list-style-position: inside; }
.data-disclosure summary::after { content: "SHOW"; flex: none; color: var(--red); font-size: 10px; letter-spacing: .12em; }
.data-disclosure[open] summary::after { content: "HIDE"; }
.data-disclosure summary:hover, .data-disclosure summary:focus-visible { color: var(--red); outline: none; }
.data-disclosure-body { padding: 2px 0 20px; }
.data-disclosure-body > p { color: var(--faded); font-size: 13px; }
.data-disclosure-scroll { max-height: 600px; overflow: auto; border: 1px solid var(--rule); }
.post-body .data-disclosure table { display: table; width: 100%; margin: 0; white-space: nowrap; }
.data-disclosure thead { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.data-disclosure-nested { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--rule); }
.data-disclosure-nested > .data-disclosure { margin: 0 0 14px; }
.evidence-box { margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--faded); line-height: 1.8; }
.evidence-box p { margin: 0 0 10px; }
.back-link { display: inline-block; margin-top: 54px; font-family: "Noto Sans CJK SC", sans-serif; font-size: 13px; }
.not-found { min-height: 75vh; display: grid; align-content: center; }
.not-found h1 { color: var(--red); }
.not-found p { font-size: 22px; }

button, input, textarea { font: inherit; }
button {
  padding: 8px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
}
button:hover, button:focus-visible { color: var(--paper); background: var(--ink); outline: none; }
button:disabled { opacity: .45; cursor: wait; }
input, textarea {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: #181818;
  border: 1px solid var(--rule);
  border-radius: 0;
}
input:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }

.discussion { margin-top: 78px; padding-top: 20px; border-top: 3px solid var(--ink); }
.discussion-header { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 22px; }
.discussion-header h2 { margin: 3px 0 0; font-size: 25px; }
.discussion-label { margin: 0; color: var(--red); font: 800 10px/1 "Noto Sans CJK SC", sans-serif; letter-spacing: .12em; }
.discussion-identity { color: var(--faded); font: 12px/1.6 "Noto Sans CJK SC", sans-serif; text-align: right; }
.discussion-identity button { margin-left: 9px; padding: 4px 8px; font-size: 11px; }
.discussion-notice { margin: 14px 0; padding: 10px 12px; color: var(--ink); border-left: 3px solid var(--red); background: #1b1b1b; font-size: 13px; }
.discussion-notice[data-kind="error"] { color: #f1a39c; }
.discussion-compose { margin: 20px 0 28px; padding: 16px; border: 1px solid var(--rule); }
.comment-form { display: grid; gap: 10px; }
.comment-form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.comment-form input[type="file"] { max-width: 390px; padding: 6px; font-size: 12px; }
.comment-form-note, .upload-list { margin: 0; color: var(--faded); font: 11px/1.55 "Noto Sans CJK SC", sans-serif; }
.comment-tree { border-top: 1px solid var(--rule); }
.comment-empty { margin: 0; padding: 26px 0; color: var(--faded); }
.comment-branch { margin-left: calc(var(--depth, 0) * 18px); border-left: 1px solid var(--rule); }
.comment-card { padding: 15px 0 14px 14px; border-bottom: 1px solid var(--rule); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; color: var(--faded); font: 10px/1.45 "Noto Sans CJK SC", sans-serif; letter-spacing: .04em; }
.comment-author { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.comment-role { color: var(--red); }
.comment-body { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.comment-tombstone { color: var(--faded); font-style: italic; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.comment-actions button { padding: 0; color: var(--faded); border: 0; font-size: 11px; }
.comment-actions button:hover, .comment-actions button:focus-visible { color: var(--ink); background: transparent; text-decoration: underline; }
.comment-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.comment-attachments a { display: block; border: 1px solid var(--rule); }
.comment-attachments img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #0b0b0b; }
.attachment-keep { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.attachment-keep input { width: auto; }

.account-shell { max-width: 1040px; min-height: calc(100vh - 120px); padding: 7vh 0 12vh; }
.account-header { padding-bottom: 26px; border-bottom: 3px solid var(--ink); }
.account-header h1 { margin: 10px 0 16px; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.035em; }
.account-header p:last-child { max-width: 620px; color: var(--faded); line-height: 1.7; }
.account-current { padding: 18px 0; font: 13px/1.6 "Noto Sans CJK SC", sans-serif; }
.account-current button { margin-left: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.account-panel { padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.account-panel h2, .recovery-result h2 { margin: 0 0 18px; font-size: 20px; }
.account-panel form { display: grid; gap: 13px; }
.account-panel label { display: grid; gap: 6px; color: var(--faded); font: 11px/1.4 "Noto Sans CJK SC", sans-serif; }
.field-note { margin: -5px 0 2px; color: var(--faded); font-size: 11px; line-height: 1.55; }
.recovery-result { margin-top: 24px; padding: 22px; border: 1px solid var(--red); }
.recovery-result code { display: block; margin: 18px 0; padding: 13px; overflow-wrap: anywhere; color: var(--ink); background: #080808; font-size: 17px; letter-spacing: .08em; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .masthead, main { width: min(100% - 30px, 1220px); }
  .masthead nav { gap: 14px; }
  .masthead nav a:first-child, .masthead nav a:last-child { display: none; }
  .opening { min-height: 620px; padding-top: 11vh; }
  .opening-note { width: 78%; left: 0; right: auto; }
  .lead-note { grid-template-columns: 1fr; padding-top: 45px; }
  .note-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .finding { grid-template-columns: 1fr; }
  .note { grid-template-columns: 48px 1fr; gap: 15px; }
  .note time { grid-column: 2; grid-row: 1; text-align: left; margin-bottom: 28px; }
  .note > div:nth-child(2) { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: 1fr; gap: 22px; }
  footer { flex-direction: column; gap: 8px; }
  .account-grid { grid-template-columns: 1fr; }
  .discussion-header { display: block; }
  .discussion-identity { margin-top: 13px; text-align: left; }
  .comment-branch { margin-left: calc(var(--depth, 0) * 8px); }
  .comment-attachments { grid-template-columns: 1fr; }
}
