:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --paper-strong: #fffefa;
  --ink: #1d1f22;
  --ink-soft: #555b63;
  --line: #d8d7d1;
  --accent: #8a2831;
  --accent-soft: #f0dede;
  --blue: #204f71;
  --brand: #096b45;
  --brand-soft: #dcefe6;
  --orange: #dc7b21;
  --reading-ink: #302e2b;
  --code: #eceae4;
  --shadow: 0 18px 50px rgba(34, 35, 37, 0.08);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --reading: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131517;
  --paper-strong: #191c1f;
  --ink: #ecebe7;
  --ink-soft: #a9afb5;
  --line: #34383d;
  --accent: #e08d96;
  --accent-soft: #352428;
  --blue: #86b9d6;
  --brand: #68c496;
  --brand-soft: #173a2b;
  --orange: #f1a14d;
  --reading-ink: #e8e5df;
  --code: #23272b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--reading);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand-copy strong,
.footer-brand {
  font-family: var(--serif);
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 48%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--brand);
  border-radius: 4px;
  color: var(--paper-strong);
  background: var(--brand);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button {
  font: inherit;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.article-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.article-header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 54px;
}

.header-topline,
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-topline {
  margin-bottom: 44px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.1rem, 4.7vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.deck {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
  line-height: 1.85;
}

.article-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
}

.article-meta span {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.article-meta span:last-child {
  border-right: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px) minmax(260px, 300px);
  justify-content: center;
  gap: 44px;
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 100px;
}

.toc-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.toc-title {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-nav {
  display: grid;
  gap: 2px;
}

.toc-group {
  display: grid;
  gap: 2px;
}

.toc-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
}

.toc-toggle {
  display: grid;
  place-items: center;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.toc-toggle::before {
  content: "+";
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  line-height: 1;
}

.toc-toggle[aria-expanded="true"]::before {
  content: "−";
}

.toc-toggle:hover,
.toc-toggle:focus-visible {
  color: var(--accent);
  outline: none;
}

.toc-children {
  display: none;
  padding: 2px 0 7px;
}

.toc-group.is-open > .toc-children {
  display: grid;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.toc-link:hover,
.toc-link:focus-visible,
.toc-link.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
  outline: none;
}

.toc-h3 {
  margin-left: 28px;
  padding-left: 12px;
  font-size: 12px;
}

.article-content {
  min-width: 0;
  padding: 0 0 40px;
  color: var(--reading-ink);
  font-family: var(--reading);
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.012em;
}

.article-content > h2 {
  margin: 3.4rem 0 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 1.9rem;
  line-height: 1.35;
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 2.3rem 0 0.8rem;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.45;
}

.article-content p {
  margin: 1rem 0;
}

.article-content strong {
  color: var(--ink);
  font-weight: 650;
}

.article-content .assessment {
  padding: 15px 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.article-content .assessment p {
  margin: 0;
}

.article-content .assessment p + p {
  margin-top: 0.85rem;
}

.article-content .intuition {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.95em;
}

.article-content .intuition strong {
  color: var(--accent);
}

.article-content blockquote {
  margin: 1.8rem 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--code);
  font-size: 0.95em;
  line-height: 1.85;
}

.article-content blockquote p {
  margin: 0;
}

.article-content blockquote > * + * {
  margin-top: 0.85rem;
}

.article-content blockquote ul,
.article-content blockquote ol {
  margin: 0.65rem 0 0;
  padding-left: 1.35rem;
}

.article-content blockquote li + li {
  margin-top: 0.4rem;
}

.article-content blockquote table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.9rem 0 0;
}

.article-content blockquote strong {
  color: var(--blue);
}

.article-content table {
  display: block;
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}

.article-content th,
.article-content td {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--ink);
  background: var(--code);
}

.article-content li {
  margin: 0.45rem 0;
}

.citation {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: super;
}

.citation:hover {
  text-decoration: underline;
}

.references-title {
  margin-top: 4rem !important;
}

.references {
  padding-left: 1.4rem;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.reference-item {
  margin: 0.65rem 0;
  padding-left: 0.25rem;
  overflow-wrap: anywhere;
}

.reference-item:target {
  border-radius: 3px;
  background: var(--accent-soft);
}

.mobile-toc {
  display: none;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mobile-toc-toggle {
  display: none;
}

.mobile-toc summary {
  padding: 13px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-toc .toc-nav {
  padding-bottom: 14px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 88px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-strong) 96%, transparent);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: #fff;
  background: var(--brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.topic-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topic-nav a,
.footer-nav a {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.topic-nav a:hover,
.topic-nav a:focus-visible,
.topic-nav a[aria-current="page"],
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  outline: none;
}

.content-width {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.home-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.home-tagline {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--brand);
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}

.home-deck {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
}

.home-topics,
.home-about {
  padding: 68px 0;
}

.home-about {
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.section-heading h2,
.about-summary h2,
.about-content h1,
.about-content h2,
.suggestion-layout h2,
.comments-heading h2 {
  margin: 0;
}

.section-heading {
  margin-bottom: 24px;
}

.topic-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic-entry {
  border-bottom: 1px solid var(--line);
}

.topic-entry > a,
.topic-entry > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 26px 0;
  color: inherit;
  text-decoration: none;
}

.topic-entry > a:hover h3,
.topic-entry > a:focus-visible h3 {
  color: var(--brand);
}

.topic-entry > a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.topic-entry h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}

.topic-entry p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
}

.about-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 52px;
}

.about-summary > div:last-child {
  color: var(--ink-soft);
  font-family: var(--sans);
  line-height: 1.9;
}

.about-summary p {
  margin: 0 0 14px;
}

.text-link {
  color: var(--brand);
  font-family: var(--sans);
  font-weight: 700;
}

.about-page {
  padding: 64px 0 100px;
}

.about-content {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
}

.about-content h1 {
  margin-bottom: 40px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.2;
}

.about-content h2 {
  margin: 3.2rem 0 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 1.65rem;
}

.about-content p,
.about-content li {
  color: var(--reading-ink);
  font-family: var(--reading);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.01em;
}

.about-content ul {
  padding-left: 1.35rem;
}

.about-content li + li {
  margin-top: 0.5rem;
}

.suggestion-section {
  margin-top: 64px;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
}

.suggestion-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
}

.suggestion-layout > div > p {
  color: var(--ink-soft);
  font-family: var(--sans);
  line-height: 1.9;
}

.feedback-form,
.comment-form {
  display: grid;
  gap: 18px;
}

.feedback-form label,
.comment-form label,
.anchored-comment-form label,
.inline-reply-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea,
.comment-form input,
.comment-form textarea,
.anchored-comment-form input,
.anchored-comment-form textarea,
.inline-reply-form input,
.inline-reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper-strong);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

.feedback-form textarea,
.comment-form textarea,
.anchored-comment-form textarea,
.inline-reply-form textarea {
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.anchored-comment-form input:focus,
.anchored-comment-form textarea:focus,
.inline-reply-form input:focus,
.inline-reply-form textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand-soft);
}

.notify-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 1.6;
  cursor: pointer;
}

.notify-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px !important;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.turnstile-slot {
  min-height: 65px;
  overflow: hidden;
}

html.human-verified .turnstile-slot {
  display: none;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.primary-button {
  justify-self: start;
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 10px 18px;
  color: #fff;
  background: var(--brand);
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--accent);
}

.form-status.is-success {
  color: var(--brand);
}

.article-content p[data-review-id] {
  position: relative;
}

.article-content p.is-review-active {
  border-radius: 3px;
  background: var(--brand-soft);
  box-shadow: -10px 0 0 var(--brand-soft), 10px 0 0 var(--brand-soft);
}

.paragraph-comment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--paper-strong);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.review-panel {
  position: sticky;
  top: 28px;
  grid-column: 3;
  align-self: start;
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.review-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.review-panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
}

.review-panel-header .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}

.review-panel-close {
  display: none;
  border: 0;
  padding: 2px 0;
  color: var(--brand);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.review-panel-quote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
}

.review-panel-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.review-panel .comment-item {
  padding: 14px 0;
}

.review-panel .comment-body {
  font-size: 14px;
  line-height: 1.75;
}

.review-panel .comment-children {
  margin-left: 10px;
  padding-left: 10px;
}

.anchored-comment-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.anchored-comment-form .form-row {
  grid-template-columns: 1fr;
}

.review-backdrop {
  display: none;
}

.comments-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px) minmax(260px, 300px);
  justify-content: center;
  gap: 44px;
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 110px;
}

.comments-heading,
.comment-form,
.comments-list {
  grid-column: 2;
}

.comments-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.7fr);
  gap: 32px;
  align-items: end;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comments-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
}

.comment-form {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-strong);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comments-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.comments-loading,
.comments-empty {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
}

.comment-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.comment-header .comment-meta {
  min-width: 0;
}

.comment-author {
  color: var(--ink);
  font-weight: 700;
}

.comment-reply-target {
  color: var(--ink-soft);
  font-weight: 500;
}

.comment-body {
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.85;
}

.comment-reply-button {
  flex: 0 0 auto;
  margin-top: 0;
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.comment-reply-button:hover,
.comment-reply-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.comment-children {
  display: grid;
  gap: 0;
  margin: 18px 0 0 22px;
  padding-left: 18px;
  border-left: 2px solid var(--brand-soft);
}

.inline-reply-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.site-footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 1321px) {
  .paragraph-comment-button {
    position: absolute;
    top: 4px;
    left: calc(100% + 12px);
  }

  .article-content p[data-review-id]:hover .paragraph-comment-button,
  .article-content p[data-review-id]:focus-within .paragraph-comment-button,
  .paragraph-comment-button.has-comments,
  .paragraph-comment-button[aria-expanded="true"] {
    opacity: 1;
    transform: translateY(0);
  }

  .paragraph-comment-button:hover,
  .paragraph-comment-button:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    outline: none;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1320px) {
  .page-layout,
  .comments-section {
    grid-template-columns: 220px minmax(0, 780px);
    justify-content: center;
    width: min(1180px, calc(100% - 48px));
    gap: 64px;
  }

  .review-panel {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 50%;
    z-index: 60;
    display: block;
    width: min(720px, 100%);
    max-height: min(82vh, 760px);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 105%);
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .review-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .review-panel-close {
    display: inline-block;
  }

  .review-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 20, 17, 0.42);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .review-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .paragraph-comment-button {
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-left: 0.45em;
    vertical-align: middle;
    border-color: transparent;
    background: transparent;
    opacity: 0.34;
    transform: none;
  }

  .paragraph-comment-button.has-comments,
  .paragraph-comment-button:focus-visible {
    border-color: var(--line);
    background: var(--paper-strong);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header-inner,
  .home-hero-inner,
  .content-width,
  .about-content,
  .comments-section {
    width: min(100% - 30px, 760px);
  }

  .comments-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .comments-heading,
  .comment-form,
  .comments-list {
    grid-column: 1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
    padding-top: 34px;
  }

  .toc-panel {
    display: none;
  }

  .mobile-toc {
    display: block;
  }

  .mobile-toc-toggle {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 45;
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    min-width: 88px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
  }

  .mobile-toc-toggle:hover,
  .mobile-toc-toggle:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    outline: none;
  }

  .mobile-toc.is-floating-open {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: block;
    max-height: 82vh;
    margin: 0;
    padding: 0 15px calc(28px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    background: var(--paper-strong);
    box-shadow: 0 -18px 50px rgba(34, 35, 37, 0.16);
    overflow: auto;
  }

  .mobile-toc.is-floating-open summary {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 16px 0;
    background: var(--paper-strong);
  }

  .suggestion-layout,
  .about-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 620px) {
  .article-header-inner,
  .page-layout,
  .site-footer-inner {
    width: min(100% - 30px, 760px);
  }

  .article-header-inner {
    padding: 26px 0 36px;
  }

  .header-topline {
    margin-bottom: 30px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .article-content {
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0.014em;
  }

  .article-content > h2 {
    font-size: 1.55rem;
  }

  .article-content h3 {
    font-size: 1.14rem;
  }

  .article-content table {
    font-size: 13px;
  }

  .back-to-top {
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 47px);
  }

  .site-header-inner {
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    display: none;
  }

  .site-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
  }

  .topic-nav {
    max-width: calc(100vw - 170px);
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 12px;
  }

  .topic-nav a {
    font-size: 12px;
  }

  .theme-toggle {
    padding: 4px 9px;
    font-size: 12px;
  }

  .home-hero-inner {
    padding: 52px 0 50px;
  }

  .home-topics,
  .home-about {
    padding: 46px 0;
  }

  .topic-entry > a,
  .topic-entry > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }


  .about-page {
    padding: 44px 0 72px;
  }

  .about-content h1 {
    margin-bottom: 30px;
  }

  .suggestion-section {
    margin-top: 48px;
    padding-top: 48px;
  }

  .comments-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comment-form {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-children {
    margin-left: 10px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .reading-progress,
  .site-header,
  .toc-panel,
  .mobile-toc,
  .theme-toggle,
  .back-to-top,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .article-header {
    border: 0;
  }

  .article-header-inner,
  .page-layout {
    width: 100%;
  }

  .page-layout {
    display: block;
    padding: 0;
  }

  .article-content {
    max-width: none;
  }

  .article-content > h2 {
    break-after: avoid;
  }

  .article-content table,
  .article-content .assessment {
    break-inside: avoid;
  }
}
