:root {
  --bg: #f6f3ec;
  --paper: #fbf9f4;
  --ink: #1d1b18;
  --muted: #6b655b;
  --rule: #d9d2c3;
  --accent: #b2361f;
  --accent-soft: #f1ddd5;
  --code: #ece6d9;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
}
:root[lang="en"] {
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", "Songti SC", serif;
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --paper: #1c1b18;
    --ink: #e9e4d8;
    --muted: #a39b8b;
    --rule: #3a362f;
    --accent: #e0694f;
    --accent-soft: #3a231c;
    --code: #2a2722;
  }
}
:root[data-theme="dark"] {
  --bg: #161513;
  --paper: #1c1b18;
  --ink: #e9e4d8;
  --muted: #a39b8b;
  --rule: #3a362f;
  --accent: #e0694f;
  --accent-soft: #3a231c;
  --code: #2a2722;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
:root[lang="en"] body { line-height: 1.7; font-size: 18px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:target { scroll-margin-top: 4.5rem; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 14px; line-height: 1;
}
.bar-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 1rem; height: 3.25rem;
}
.bar .mark { font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.bar nav { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: .4rem 0; }
.bar nav a:hover { color: var(--ink); }
.lang { color: var(--ink); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .7rem; white-space: nowrap; }
.lang:hover { border-color: var(--ink); }
@media (max-width: 720px) { .bar .mark { display: none; } }

/* hero */
.hero {
  max-width: 72rem; margin: 0 auto; padding: 5rem 16px 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.15; font-weight: 700; margin: 0; letter-spacing: .01em; }
.hero .sub { font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.4; margin: .9rem 0 0; color: var(--muted); font-style: italic; }
.hero .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 2rem; margin: 3rem 0 0; padding: 0;
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
}
.hero .facts div { border-top: 2px solid var(--ink); padding-top: .7rem; }
.hero .facts dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.hero .facts dd { margin: 0; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; font-family: var(--sans); font-size: 15px; }
.btn {
  display: inline-block; text-decoration: none; padding: .75rem 1.2rem; border-radius: 4px; line-height: 1.2;
  border: 1px solid var(--ink); color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* sections */
main { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
section.block { padding: 4rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; }
section.block > header h2 { font-size: 1.5rem; line-height: 1.3; margin: 0; position: sticky; top: 4.5rem; }
section.block > header h2 small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: .4rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25em; text-align: justify; text-justify: inter-character; }
:root[lang="en"] .prose p { text-align: left; hyphens: auto; }
.prose h3 { font-size: 1.25rem; line-height: 1.45; margin: 3rem 0 .2rem; }
.prose h3 + .en-title { text-align: left; margin: 0 0 1.2rem; color: var(--muted); font-style: italic; line-height: 1.5; }
.prose .lede { font-size: 1.12em; }
@media (max-width: 860px) {
  section.block { grid-template-columns: 1fr; gap: 1rem; padding: 3rem 0; }
  section.block > header h2 { position: static; }
}

/* forum overview cards */
.forums { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.5rem; }
.card h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.card .tag { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.card p { margin: .6rem 0 0; font-size: .95em; line-height: 1.75; }
.card .tbd { color: var(--muted); }

/* panels */
.panel { border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 3rem; }
.panel:first-of-type { margin-top: 1rem; }
.panel .num { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.panel h3 { margin-top: .3rem; }
.subtopics { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 2px solid var(--accent-soft); }
.subtopics li { padding: .45rem 0 .45rem 1rem; line-height: 1.7; font-size: .96em; }
.subtopics .field { font-family: var(--sans); font-size: 12.5px; color: var(--muted); display: block; letter-spacing: .03em; }
.subtopics-label { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 1.8rem 0 0; }
.mail { display: inline-block; margin-top: 1.25rem; font-family: var(--sans); font-size: 14px; }

/* dates */
.dates { list-style: none; padding: 0; margin: 0 0 2rem; font-family: var(--sans); }
.dates li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--rule); line-height: 1.5; }
.dates time { font-weight: 600; font-variant-numeric: tabular-nums; }
.dates li.key time { color: var(--accent); }
@media (max-width: 480px) { .dates li { grid-template-columns: 1fr; gap: .1rem; } }
.reqs { padding-left: 1.2em; }
.reqs li { margin-bottom: .6em; }
.inbox { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.2rem 1.4rem; margin: 1.5rem 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.inbox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: .1em .35em; border-radius: 3px; font-size: .95em; overflow-wrap: anywhere; }
.inbox .addr { font-size: 1.15rem; font-weight: 600; display: block; margin: .3rem 0 .6rem; word-break: break-all; }

/* committee */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .25rem 2rem; }
.people li { padding: .55rem 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.people span { display: block; color: var(--muted); font-size: .88em; font-family: var(--sans); }
.convener { margin: 0 0 1.5rem; }

/* citations */
.cite { font-family: var(--sans); font-size: .62em; line-height: 0; vertical-align: super; white-space: nowrap; }
.cite a { text-decoration: none; color: var(--muted); border-bottom: 1px dotted currentColor; padding: 0 .1em; }
.cite a:hover, .cite a:focus { color: var(--accent); }
a.inref { text-decoration: none; border-bottom: 1px dotted currentColor; }
.pop {
  position: absolute; z-index: 20; max-width: min(26rem, calc(100vw - 32px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: .8rem 1rem;
  font-family: var(--serif); font-size: 14.5px; line-height: 1.6;
}
.pop a { word-break: break-all; }

/* bibliography */
.bib h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 1rem; }
.bib h3 ~ h3 { margin-top: 2.5rem; }
.bib ol { list-style: none; padding: 0; margin: 0; }
.bib li { padding-left: 2em; text-indent: -2em; margin: 0 0 .9em; line-height: 1.65; font-size: .95em; }
.bib li:target { background: var(--accent-soft); border-radius: 3px; }
.bib li a { word-break: break-all; }
.bib .back { font-family: var(--sans); font-size: .8em; text-decoration: none; margin-left: .3em; }

footer.site { max-width: 72rem; margin: 0 auto; padding: 3rem 16px 4rem; font-family: var(--sans); font-size: 13.5px; color: var(--muted); line-height: 1.7; }
footer.site p { margin: 0 0 .4rem; }
