:root {
  --paper: #fbfbf8;
  --paper-deep: #f2f2ed;
  --ink: #11110f;
  --muted: #6c6c68;
  --line: #d8d8d2;
  --accent: #bb3b28;
  --green: #347455;
  --green-pale: #e4f0e8;
  --amber: #9b5a1c;
  --amber-pale: #f4e7d8;
  --shell: 1120px;
  --shell-wide: 1200px;
  --shell-narrow: 820px;
  --font-body: var(
    --gh-font-body,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif
  );
  --font-heading: var(--gh-font-heading, var(--font-body));
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .17em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell, .shell-wide, .shell-narrow {
  width: calc(100% - 80px);
  margin-inline: auto;
}
.shell { max-width: var(--shell); }
.shell-wide { max-width: var(--shell-wide); }
.shell-narrow { max-width: var(--shell-narrow); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}
.brand span { color: var(--muted); font-weight: 400; }
.site-navigation { display: flex; align-items: center; gap: 24px; }
.site-navigation .nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-navigation a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}
.site-navigation a:hover, .site-navigation .nav-current a { color: var(--accent); }
.header-access-link { color: var(--muted) !important; }
.header-admin-link span { font-size: 10px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
}
.language-switch > span { color: var(--line); }
.language-switch button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.language-switch button:hover { color: var(--accent); }
.language-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 800; }
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: transparent;
}
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

/* Index */
.index-intro { position: relative; padding: 76px 0 54px; }
.index-intro h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(64px, 9vw, 108px);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .9;
}
.index-intro > p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.index-intro > span {
  position: absolute;
  right: 0;
  bottom: 58px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.archive-intro > span {
  position: static;
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.archive-intro h1 { font-size: clamp(54px, 8vw, 94px); }
.site-directory {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--line);
}
.site-directory-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
}
.site-directory-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1;
}
.site-directory-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.site-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.site-directory-card {
  display: flex;
  min-height: 188px;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.site-directory-domain {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}
.site-directory-card strong {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.site-directory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.site-directory-arrow {
  align-self: flex-end;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 16px;
}
.site-directory-card:hover { color: var(--paper); background: var(--ink); }
.site-directory-card:hover .site-directory-domain,
.site-directory-card:hover p { color: var(--paper-deep); }
.topic-filters {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.topic-filters a {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
}
.topic-filters a:hover { color: var(--accent); border-color: var(--accent); }
.topic-filters .is-current { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.topic-filters span { margin-left: 5px; opacity: .58; }
.activity-calendar {
  padding: 24px 0 30px;
  border-top: 1px solid var(--ink);
}
.activity-calendar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.activity-calendar-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activity-calendar h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -.035em;
}
.activity-calendar-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-calendar-controls {
  display: grid;
  grid-template-columns: 32px minmax(130px, auto) 32px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}
.activity-calendar-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.activity-calendar-controls button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.activity-calendar-weekdays,
.activity-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.activity-calendar-weekdays {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}
.activity-calendar-weekdays span { padding: 9px 4px; }
.activity-calendar-day {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
}
.activity-calendar-day:nth-child(7n) { border-right: 0; }
.activity-calendar-day.is-empty { color: transparent; }
.activity-calendar-day.is-today { color: var(--ink); font-weight: 700; }
.activity-calendar-day:not(.has-updates):not(.is-empty):hover { background: var(--paper-deep); }
.activity-calendar-day.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.activity-calendar-day.has-updates {
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
}
.activity-calendar-day.has-updates::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}
.activity-calendar-day.has-updates:hover { background: var(--accent); }
.activity-calendar-day.has-updates:hover::after { background: var(--paper); }
.activity-calendar-detail {
  padding: 28px 0 6px;
}
.activity-calendar-detail[hidden] { display: none; }
.daily-review-header { padding-bottom: 15px; border-bottom: 1px solid var(--ink); }
.daily-review-header span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.daily-review-header h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.035em; }
.daily-review-empty, .daily-review-loading { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.daily-review-entry { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.daily-review-entry > h3 { max-width: 760px; margin: 0; font-size: 26px; letter-spacing: -.035em; line-height: 1.2; }
.daily-review-deck { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.daily-review-content { margin-top: 24px; }
.daily-review-content > * { margin-inline: 0; }
.daily-review-content h2 { font-size: 20px; }
.daily-review-link {
  display: inline-block;
  padding: 7px 0;
  margin-top: 22px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  text-decoration: none;
}
.daily-review-link:hover { color: var(--accent); border-color: var(--accent); }
[data-language-meta], [data-content-language][hidden] { display: none !important; }
.updates-table { padding-bottom: 90px; }
.updates-head, .update-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px 84px;
  gap: 20px;
}
.updates-head {
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.update-row {
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.update-row > time, .update-topic, .access-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.update-main { display: grid; gap: 7px; min-width: 0; text-decoration: none; }
.update-main strong {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.update-main small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.update-main:hover strong { color: var(--accent); }
.update-topic a { color: inherit; text-decoration: none; }
.update-topic a:hover { color: var(--accent); }
.access-label {
  justify-self: start;
  padding: 4px 6px;
  border: 1px solid currentColor;
  line-height: 1;
  text-transform: uppercase;
}
.access-label.is-public { color: var(--green); }
.access-label.is-private { color: var(--accent); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
}
.pagination a { color: var(--ink); text-decoration: none; }
.pagination a:hover { color: var(--accent); }
.empty-state { padding: 50px 0; border-bottom: 1px solid var(--ink); }
.empty-state h2 { margin: 0; font-size: 28px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); }

/* Article */
.article-shell { padding: 58px 0 84px; }
.article-breadcrumb {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
}
.article-breadcrumb a { text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-header { padding: 50px 0 32px; border-bottom: 1px solid var(--line); }
.article-header h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(46px, 7vw, 76px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .98;
}
.article-deck {
  max-width: 700px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.article-image { margin-top: 42px; }
.article-image img { width: 100%; max-height: 720px; object-fit: cover; }
.article-image figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.gh-content { margin-top: 42px; }
.gh-content > * { max-width: 700px; margin-inline: auto; }
.gh-content > * + * { margin-top: 1.35em; }
.gh-content p, .gh-content li { color: #33342f; font-size: 16px; line-height: 1.78; }
.gh-content h2, .gh-content h3, .gh-content h4 {
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.gh-content h2 { padding: 16px 0; margin-top: 52px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 24px; }
.gh-content h3 { margin-top: 42px; font-size: 20px; }
.gh-content h4 { font-size: 17px; }
.gh-content a { color: var(--accent); }
.gh-content blockquote { padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--muted); }
.gh-content blockquote p { margin: 0; color: inherit; font-size: 18px; }
.gh-content hr { margin-block: 46px; border: 0; border-top: 1px solid var(--line); }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gh-content th, .gh-content td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.gh-content pre { overflow-x: auto; padding: 20px; color: #f3f3ef; background: var(--ink); font-size: 13px; }
.gh-content code { font-family: var(--font-mono); font-size: .87em; }
.gh-content :not(pre) > code { padding: .12em .32em; background: var(--paper-deep); }
.gh-content .kg-width-wide { width: min(1040px, calc(100vw - 80px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* Ghost cards */
.kg-image-card img, .kg-gallery-image img, .kg-video-card video { margin-inline: auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-card figcaption { margin-top: 9px; color: var(--muted); font-family: var(--font-body); font-size: 11px; text-align: center; }
.kg-bookmark-container, .kg-file-card-container {
  display: flex;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
}
.kg-bookmark-content, .kg-file-card-contents { min-width: 0; flex: 1; padding: 18px; }
.kg-bookmark-title, .kg-file-card-title { font-weight: 720; }
.kg-bookmark-description, .kg-file-card-caption { margin-top: 5px; color: var(--muted); font-size: 12px; }
.kg-bookmark-thumbnail { width: 190px; flex: 0 0 auto; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-file-card-icon { display: grid; width: 72px; place-items: center; color: var(--paper); background: var(--ink); }
.kg-callout-card { padding: 20px; background: var(--paper-deep); border-left: 3px solid var(--accent); }
.kg-toggle-card { padding: 18px; border: 1px solid var(--line); }
.kg-toggle-heading-text { font-size: 15px; font-weight: 720; }
.kg-audio-card { border: 1px solid var(--line); }
.kg-card.kg-button-card a.kg-btn { color: var(--paper); background: var(--ink); border-radius: 0; font-family: var(--font-mono); font-size: 11px; }
.kg-header-card { border-radius: 0; }

/* Plan progress enhancement */
.plan-progress {
  width: min(820px, calc(100vw - 80px));
  max-width: none;
  padding: 0;
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: 50%;
  background: transparent;
  transform: translateX(-50%);
}
.plan-progress:not(.is-enhanced) > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.plan-progress-summary { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.plan-progress-summary h2 { padding: 0; margin: 0; border: 0; font-size: 24px; }
.plan-progress-summary p { margin: 5px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.plan-progress-total { color: var(--accent); font-family: var(--font-mono); font-size: 22px; }
.plan-progress-track { height: 4px; overflow: hidden; background: #e4e4df; }
.plan-progress-track span { display: block; height: 100%; background: var(--accent); }
.plan-progress-overall { margin: 22px 0; }
.plan-progress-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plan-progress-item-header { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.plan-progress-label { color: var(--ink); font-size: 14px; line-height: 1.5; }
.plan-progress-value { color: var(--ink); font-family: var(--font-mono); font-size: 11px; }
.plan-progress-item .plan-progress-track { margin-top: 13px; }
.plan-progress-status { display: inline-block; margin-top: 9px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.plan-progress-item.is-complete .plan-progress-track span { background: var(--green); }
.plan-progress-item.is-complete .plan-progress-status { color: var(--green); }
.plan-progress-item.is-blocked .plan-progress-track span { background: var(--amber); }
.plan-progress-item.is-blocked .plan-progress-status { color: var(--amber); }

/* Article footer and access */
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; margin-top: 58px; border-top: 1px solid var(--ink); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 5px 7px; color: var(--muted); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; text-decoration: none; }
.tag-list a:hover { color: var(--accent); border-color: var(--accent); }
.copy-link { padding: 6px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-family: var(--font-mono); font-size: 10px; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 90px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.post-nav-card { display: grid; gap: 6px; min-height: 110px; align-content: center; padding: 22px; border-right: 1px solid var(--line); text-decoration: none; }
.post-nav-card:last-child { border-right: 0; }
.post-nav-card span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.post-nav-card strong { font-size: 15px; line-height: 1.35; }
.post-nav-card:hover strong { color: var(--accent); }
.post-nav-next { text-align: right; }
.access-card { max-width: 700px; padding: 28px; margin: 42px auto; background: var(--paper-deep); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.access-card-kicker { margin: 0 0 8px; color: var(--accent); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.access-card h2 { padding: 0; margin: 0 0 10px; border: 0; font-size: 25px; }
.access-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.access-card-button { display: inline-block; padding: 9px 12px; color: var(--paper) !important; background: var(--ink); font-family: var(--font-mono); font-size: 10px; text-decoration: none; }

/* Page, error, footer */
.page-no-header { padding-top: 0; }
.page-no-header .gh-content { margin-top: 0; }
.error-page { min-height: 60vh; display: grid; align-content: center; justify-items: start; padding-block: 80px; }
.error-page .eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.error-page h1 { margin: 10px 0; font-size: clamp(40px, 7vw, 70px); letter-spacing: -.055em; }
.error-page > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); }
.button { display: inline-flex; padding: 9px 12px; color: var(--paper); background: var(--ink); font-family: var(--font-mono); font-size: 10px; text-decoration: none; }
.site-footer { border-top: 1px solid var(--ink); }
.site-footer-inner { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.site-footer-inner > p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.copyright { justify-self: end; text-transform: uppercase; }

@media (max-width: 760px) {
  .shell, .shell-wide, .shell-narrow { width: calc(100% - 36px); }
  .site-header-inner { min-height: 62px; }
  .menu-toggle { display: block; }
  .site-navigation {
    position: absolute;
    z-index: 20;
    top: 62px;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--ink);
  }
  .site-navigation.is-open { display: grid; }
  .site-navigation .nav { display: grid; gap: 0; }
  .site-navigation a { display: block; padding: 8px 0; }
  .language-switch { width: max-content; margin: 8px 0; }
  .index-intro { padding: 60px 0 42px; }
  .index-intro h1 { font-size: clamp(56px, 19vw, 82px); }
  .index-intro > p { margin-top: 22px; font-size: 15px; }
  .index-intro > span { position: static; display: block; margin-top: 26px; }
  .archive-intro > span { margin-top: 0; }
  .site-directory-header { grid-template-columns: 1fr; gap: 10px; }
  .site-directory-grid { grid-template-columns: 1fr; }
  .site-directory-card { min-height: 160px; }
  .activity-calendar-header { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .activity-calendar-controls { justify-self: stretch; grid-template-columns: 32px 1fr 32px; }
  .activity-calendar-day { min-height: 42px; }
  .updates-head { display: none; }
  .update-row { grid-template-columns: 1fr auto; gap: 11px 18px; }
  .update-main { grid-column: 1 / -1; grid-row: 1; }
  .update-main strong { font-size: 17px; }
  .update-row > time { grid-column: 1; grid-row: 2; }
  .update-topic { display: none; }
  .access-label { grid-column: 2; grid-row: 2; }
  .article-shell { padding-top: 38px; }
  .article-breadcrumb { align-items: flex-start; }
  .article-header { padding-top: 38px; }
  .article-header h1 { font-size: clamp(42px, 13vw, 62px); }
  .article-deck { font-size: 17px; }
  .gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100vw; }
  .plan-progress { width: calc(100vw - 36px); }
  .kg-bookmark-thumbnail { display: none; }
  .article-footer { align-items: flex-start; flex-direction: column; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .post-nav-card:last-child { border-bottom: 0; }
  .post-nav-next { text-align: left; }
  .site-footer-inner { grid-template-columns: 1fr; align-content: center; gap: 12px; padding-block: 25px; }
  .copyright { justify-self: start; }
}

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