:root {
  color-scheme: light;
  --paper: #f9f8f4;
  --ink: #242923;
  --muted: #61645a;
  --line: #d8d8cd;
  --accent: #a63819;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "STIX Two Text", Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid #a63819; outline-offset: 3px; }
.skip-link {
  position: absolute;
  left: 8px;
  top: -90px;
  z-index: 2;
  padding: 8px 16px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 8px; }
.shell { width: calc(100% - 36px); max-width: 960px; margin: 0 auto; }
.masthead { border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); }
.masthead-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: inline-flex; gap: 8px; align-items: center; font-size: 25px; font-weight: 750; line-height: 1; letter-spacing: -1.8px; }
.signal { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 29px; height: 29px; background: var(--accent); }
.site-description { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.quiet-action, .source-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 4px 0 4px 8px; background: transparent; color: var(--muted); font-size: 14px; }
.feed { padding: 26px 0 56px; }
.page-heading { margin: 0; font: 700 38px/1.2 var(--serif); letter-spacing: -.045em; }
.categories {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
}
.categories a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; overflow-wrap: anywhere; }
.categories a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.stories { list-style: none; margin: 0; padding: 0; }
.stories li { border-bottom: 1px solid var(--line); }
.story { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 0; }
.story-copy { min-width: 0; }
.story-label, .error-code { color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: .035em; overflow-wrap: anywhere; }
.story h2 { margin: 6px 0 9px; font: 700 21px/1.4 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.lead h2 { font-size: 25px; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.source { font-weight: 600; }
.byline span + span::before { content: "·"; margin-right: 10px; }
.story-image { width: 24%; max-width: 176px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eeede5; flex-shrink: 0; border-radius: 2px; }
.pagination { display: flex; justify-content: center; margin-top: 26px; }
.outline-button, .primary-button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 3px; padding: 8px 18px; font-weight: 600; font-size: 15px;
}
.outline-button { border: 1px solid var(--ink); }
.primary-button { color: white; background: var(--ink); border: 1px solid var(--ink); }
.empty-state { margin: 40px 0; color: var(--muted); }
.account-panel { width: calc(100% - 36px); max-width: 390px; margin: 65px auto; }
.panel-rule { width: 40px; height: 4px; background: var(--accent); margin-bottom: 24px; }
.login-form { display: grid; gap: 8px; margin-top: 32px; }
.login-form label { font-size: 14px; font-weight: 600; }
.login-form input[type=password] { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #8c8f82; border-radius: 3px; background: #fff; color: var(--ink); }
.login-form .primary-button { margin-top: 10px; }
.error-text { color: var(--accent); margin: 0; }
.error-code { margin: 0 0 6px; }
.error-heading { margin: 0 0 28px; font: bold 30px/1.45 var(--serif); overflow-wrap: anywhere; }
.reader { width: calc(100% - 36px); max-width: 700px; margin: 0 auto; padding: 30px 0 48px; }
.article-heading { padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.reader-title { margin: 8px 0 12px; font: bold 32px/1.28 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.original-title { margin: 0 0 12px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 0; gap: 8px; }
.language-control { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; }
.language-control button { padding: 7px 12px; min-height: 38px; border: 0; color: var(--muted); background: transparent; font-size: 14px; }
.language-control button[aria-pressed=true] { background: var(--ink); color: #fff; }
.language-control[aria-busy=true] { opacity: .7; }
.source-link { margin-left: auto; }
.reader-status { color: var(--accent); font-size: 14px; margin: 0 0 16px; }
.reader-status:empty { display: none; }
.prose { font: 18px/1.9 var(--serif); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose figure, .prose pre, .prose table { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.45; margin: 1.4em 0 .45em; }
.prose h1, .prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.23em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .14em; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 1.25em 0; color: var(--muted); }
.prose figcaption { color: var(--muted); font: 14px/1.5 var(--sans); }
.prose pre, .prose table { max-width: 100%; overflow: auto; }
.prose table { display: block; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 5px 8px; }
.prose pre { background: #efeee8; padding: 12px; font-size: .85em; }
.reader-footer { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.reader-footer a { display: inline-block; padding: 10px 0; font-size: 14px; }
@media (hover: hover) {
  .story:hover h2, .quiet-action:hover, .source-link:hover, .reader-footer a:hover { color: var(--accent); }
  .categories a:hover, .outline-button:hover { border-color: var(--accent); }
}
@media (min-width: 600px) {
  .shell { width: calc(100% - 80px); }
  .masthead-inner { min-height: 78px; }
  .feed { padding-top: 40px; }
  .page-heading { font-size: 48px; }
  .categories { padding: 24px 0; }
  .story { padding: 26px 0; gap: 32px; }
  .story h2 { font-size: 27px; }
  .lead h2 { font-size: 34px; }
  .reader { width: calc(100% - 80px); padding-top: 42px; }
  .reader-title { font-size: 44px; }
  .prose { font-size: 20px; }
  .account-panel { margin-top: 100px; }
}

/* V1.1 shared footer and public discovery controls. */
.header-actions { display:flex; align-items:center; gap:16px; }
.window-note, .page-count { color:var(--muted, #66645f); font-size:13px; }
.pagination { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.site-footer { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:14px 0; margin-top:0; color:var(--muted); font-size:12px; line-height:1.8; }
.site-footer p { margin:0; }
.footer-identity { display:flex; align-items:center; gap:12px; flex:0 0 auto; min-width:0; text-align:left; white-space:nowrap; }
.footer-brand { display:inline-block; color:var(--ink); font-size:20px; font-weight:750; letter-spacing:-.7px; line-height:1.3; }
.footer-brand:hover { color:var(--accent); }
.footer-curator { font-size:12px; color:#777a70; }
.footer-disclaimer { flex:1 1 auto; min-width:0; color:#85887e; font-size:11px; line-height:1.8; text-align:right; }
.footer-disclaimer p { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.site-footer [hidden] { display:none !important; }
@media (max-width:599px) {
  .header-actions { gap:10px; }
}
@media (max-width:767px) {
  .site-footer { flex-direction:column; gap:8px; padding:14px 0; text-align:center; }
  .footer-identity { flex-direction:column; gap:4px; width:100%; white-space:normal; text-align:center; }
  .footer-curator { max-width:100%; overflow-wrap:anywhere; }
  .footer-disclaimer { width:100%; text-align:center; }
  .footer-disclaimer p { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
}
