:root {
  --paper: #f5f2ea;
  --paper-deep: #ebe6d9;
  --surface: #fbfaf5;
  --ink: #16262b;
  --ink-soft: #334a4f;
  --muted: #6a7878;
  --line: #d9d2c2;
  --line-strong: #bcb19d;
  --accent: #1f6b5c;
  --accent-dark: #154d43;
  --accent-soft: #dfeae4;
  --warm: #b66b42;
  --warm-soft: #f0e0d2;
  --danger: #9d3d33;
  --dark: #14262a;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow: 0 18px 50px rgba(22, 38, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
}

.shell {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.button-danger {
  background: transparent;
  border-color: rgba(157, 61, 51, 0.5);
  color: var(--danger);
}

.button-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 7px;
}

.brand-mark svg,
.admin-brand-mark svg,
.login-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark rect,
.admin-brand-mark rect,
.login-mark rect {
  fill: var(--ink);
}

.brand-mark .mark-accent,
.admin-brand-mark .mark-accent,
.login-mark .mark-accent {
  fill: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav > a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a:not(.nav-search)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--accent);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-search {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.nav-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(31, 107, 92, 0.11), transparent 34%),
    linear-gradient(180deg, #f8f5ed 0%, var(--paper) 100%);
  padding: 82px 0 86px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background-image:
    linear-gradient(rgba(22, 38, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 38, 43, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  -webkit-mask-image: linear-gradient(to right, transparent, #000 50%);
  mask-image: linear-gradient(to right, transparent, #000 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  background-image: linear-gradient(transparent 72%, rgba(31, 107, 92, 0.14) 72%);
}

.hero-lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 36px;
}

.hero-meta {
  display: flex;
  max-width: 620px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-meta li {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.hero-meta li + li {
  padding-left: 20px;
}

.hero-meta li:last-child {
  border-right: 0;
}

.hero-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.hero-board {
  position: relative;
  border: 1px solid var(--line-strong);
  background: rgba(251, 250, 245, 0.92);
  box-shadow: 12px 12px 0 rgba(31, 107, 92, 0.08);
  padding: 30px 30px 28px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin-bottom: 24px;
}

.board-grid span {
  aspect-ratio: 1;
  background: var(--line);
}

.board-grid span:nth-child(3n + 2) {
  background: var(--line-strong);
}

.board-grid span:nth-child(5) {
  background: var(--accent);
}

.board-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero-board h2 {
  margin-bottom: 16px;
  font-size: 29px;
  line-height: 1.35;
}

.board-text {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.board-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-stats strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

.board-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 7px;
  font-size: 38px;
  letter-spacing: -0.02em;
}

.section-head-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 23px 22px 19px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.post-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(22, 38, 43, 0.07);
  transform: translateY(-3px);
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.post-category {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post-card-title {
  margin: 17px 0 11px;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.post-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-summary {
  flex: 1;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.post-card-tags {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category panels */
.section-categories {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-panel {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 32px;
}

.category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.category-head h2 {
  margin: 7px 0 8px;
  font-size: 32px;
}

.category-head p:not(.eyebrow) {
  max-width: 330px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.arrow-link {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.arrow-link:hover {
  color: var(--accent);
}

.category-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.category-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.category-item:last-child {
  border-bottom: 0;
}

.category-item:hover {
  color: var(--accent);
}

.category-item-date {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.category-item-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item-arrow {
  color: var(--line-strong);
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-item:hover .category-item-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Resource preview */
.resource-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.resource-preview {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.resource-preview h3 {
  font-size: 25px;
}

.resource-preview > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.resource-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-preview li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.resource-preview li a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.resource-preview li a:hover {
  color: var(--accent);
}

.resource-preview li > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.resource-preview li a span {
  display: inline;
  margin: 0;
  color: var(--line-strong);
  font-size: 11px;
}

/* About strip */
.section-about-strip {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(31, 107, 92, 0.06), transparent 55%),
    var(--paper-deep);
  padding: 66px 0;
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: center;
}

.about-strip h2 {
  margin: 8px 0 14px;
  font-size: 34px;
}

.about-strip p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.about-strip-side {
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.about-strip-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.about-mail {
  display: inline-block;
  margin: 8px 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.about-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #d6d0c3;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr) minmax(180px, 0.6fr);
  gap: 52px;
  padding: 60px 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  color: #f6efdf;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.08em;
}

.footer-tagline {
  margin-top: 2px;
  color: rgba(246, 239, 223, 0.58);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-desc {
  max-width: 360px;
  margin-top: 18px;
  color: rgba(214, 208, 195, 0.65);
  font-size: 12px;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.footer-nav a {
  color: rgba(214, 208, 195, 0.78);
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  font-size: 12px;
}

.footer-contact a {
  color: rgba(246, 239, 223, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-label {
  margin: 0 0 4px;
  color: rgba(214, 208, 195, 0.42);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-label + p,
.footer-contact a + .footer-label {
  margin-top: 18px;
}

.footer-contact p {
  color: rgba(214, 208, 195, 0.7);
}

.footer-legal {
  padding: 25px 20px 30px;
  text-align: center;
}

.footer-statement {
  max-width: 840px;
  margin: 0 auto 13px;
  color: rgba(214, 208, 195, 0.46);
  font-size: 10px;
  line-height: 1.8;
}

.footer-copy {
  color: rgba(214, 208, 195, 0.6);
  font-size: 11px;
}

.footer-icp {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.footer-icp a {
  color: #f3e8d2;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 232, 210, 0.32);
  padding-bottom: 1px;
}

.footer-icp a:hover {
  color: #fff;
  border-color: #fff;
}

.footer-sep {
  margin: 0 7px;
  color: rgba(214, 208, 195, 0.35);
}

/* Page intro */
.page-intro {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(31, 107, 92, 0.055), transparent 52%),
    var(--paper);
  padding: 62px 0 46px;
}

.page-intro-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-intro h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 5vw, 58px);
  letter-spacing: -0.025em;
}

.page-lede {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.page-count {
  flex: none;
  padding-bottom: 4px;
  text-align: right;
}

.page-count strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.page-count span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Archive */
.section-archive {
  padding-top: 56px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: start;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-list .post-card {
  min-height: 0;
  padding: 26px 28px 22px;
}

.archive-list .post-card-title {
  font-size: 26px;
}

.search-summary {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}

.search-summary strong {
  color: var(--ink);
}

.archive-side {
  position: sticky;
  top: 112px;
}

.side-block {
  margin-bottom: 32px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.side-block h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.search-form {
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.search-form input::placeholder {
  color: #9b9d93;
}

.search-form button {
  flex: none;
  padding: 0 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--accent-dark);
}

.side-hint {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud a,
.article-tags a {
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-cloud a:hover,
.article-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.side-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.side-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.side-note .text-link {
  margin-top: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.pagination-arrow {
  color: var(--ink-soft);
  text-decoration: none;
}

.pagination-arrow:hover {
  color: var(--accent);
}

.pagination-arrow.is-disabled {
  color: #b7b5aa;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-pages a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}

.pagination-pages a:hover,
.pagination-pages a.is-current {
  background: var(--ink);
  color: #fff;
}

/* Article */
.article-page {
  padding: 34px 0 88px;
}

.breadcrumb {
  display: flex;
  max-width: 790px;
  align-items: center;
  gap: 8px;
  margin: 0 auto 32px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb a {
  flex: none;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  flex: none;
}

.breadcrumb span[aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article {
  max-width: 790px;
  margin: 0 auto;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.article-kicker a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.article-kicker time {
  font-family: var(--mono);
  font-size: 10px;
}

.article-header h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 4.2vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.article-summary {
  max-width: 720px;
  padding-left: 15px;
  border-left: 2px solid var(--warm);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.article-body {
  padding: 36px 0 10px;
  color: #263b3e;
  font-size: 16px;
  line-height: 1.98;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 19px;
}

.article-body h2 {
  margin: 42px 0 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 29px;
  line-height: 1.4;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.article-body h4 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 1.45em;
}

.article-body li {
  margin-bottom: 7px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(31, 107, 92, 0.35);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

.article-body blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-soft);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 2px 5px;
  background: var(--paper-deep);
  color: #70412c;
  font-size: 0.88em;
}

.article-body pre {
  position: relative;
  margin: 24px 0;
  padding: 20px;
  overflow-x: auto;
  background: #14262a;
  color: #e9e4d6;
  font-size: 12px;
  line-height: 1.8;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.code-copy {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f5efe3;
  font-family: var(--sans);
  font-size: 9px;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.article-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--paper-deep);
  font-weight: 600;
}

.article-body hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-footer p {
  max-width: 520px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.post-nav {
  display: grid;
  max-width: 790px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 38px auto 0;
}

.post-nav-item {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.post-nav-item-next {
  text-align: right;
}

.post-nav-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.post-nav-item strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.post-nav-item:hover strong {
  color: var(--accent);
}

.related-section {
  max-width: 1040px;
  margin: 70px auto 0;
  padding-top: 10px;
}

.post-grid-related .post-card-title {
  font-size: 20px;
}

.preview-banner {
  border-bottom: 1px solid #d8b98a;
  background: #f4e3c5;
  color: #5e3d17;
  font-size: 12px;
}

.preview-banner .shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.preview-banner span {
  color: #7d5e35;
}

/* Resources page */
.resource-groups {
  max-width: 980px;
}

.resource-group {
  margin-bottom: 50px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.resource-group-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.resource-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}

.resource-group h2 {
  margin-bottom: 7px;
  font-size: 31px;
}

.resource-group-head p {
  color: var(--muted);
  font-size: 12px;
}

.resource-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-item {
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.resource-item h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.resource-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.resource-item h3 a:hover {
  color: var(--accent);
}

.resource-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.resource-disclaimer {
  max-width: 980px;
  padding: 18px 20px;
  border-left: 2px solid var(--warm);
  background: var(--warm-soft);
}

.resource-disclaimer strong {
  font-size: 12px;
}

.resource-disclaimer p {
  margin-top: 4px;
  color: #6a5444;
  font-size: 11px;
  line-height: 1.8;
}

/* About page */
.page-intro-about {
  background:
    radial-gradient(circle at 88% 40%, rgba(182, 107, 66, 0.12), transparent 28%),
    linear-gradient(110deg, rgba(31, 107, 92, 0.06), transparent 52%),
    var(--paper);
}

.about-stamp {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  transform: rotate(-6deg);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

.prose-block {
  margin-bottom: 44px;
}

.prose-block h2 {
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 29px;
}

.prose-block > p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

.check-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "—";
}

.notice-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.about-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-scope article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.scope-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.about-scope h3 {
  margin: 12px 0 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.about-scope p {
  min-height: 68px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.about-scope strong {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.about-facts {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.about-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.about-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.about-side {
  position: sticky;
  top: 112px;
}

.side-card {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--surface);
}

.side-card h2 {
  margin: 6px 0 12px;
  font-size: 24px;
}

.side-card > p:not(.eyebrow):not(.filing-number) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.side-card .text-link {
  margin-top: 14px;
}

.side-card-muted {
  border-top-color: var(--line-strong);
}

.filing-number {
  margin: 16px 0 4px;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.filing-number a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.filing-number a:hover {
  color: var(--accent);
}

/* Privacy */
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

.privacy-layout .prose-block {
  max-width: 740px;
}

.privacy-layout .prose-block h2 {
  margin-top: 34px;
  font-size: 24px;
}

.privacy-layout .prose-block h2:first-child {
  margin-top: 0;
}

.privacy-side {
  position: sticky;
  top: 112px;
}

.privacy-contact {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}

/* Status */
.status-page {
  display: flex;
  min-height: 58vh;
  align-items: center;
  padding: 70px 0;
}

.status-inner {
  max-width: 760px;
}

.status-code {
  color: var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(90px, 17vw, 190px);
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.status-inner h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 4vw, 46px);
}

.status-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Empty state */
.empty-state {
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(251, 250, 245, 0.55);
  text-align: center;
}

.empty-state-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
}

.empty-state .text-link,
.empty-state .button {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 44px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    gap: 34px;
  }

  .about-layout,
  .privacy-layout {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero-board {
    max-width: 560px;
    box-shadow: 8px 8px 0 rgba(31, 107, 92, 0.07);
  }

  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-preview-grid {
    gap: 26px;
  }

  .about-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .about-strip-side {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .archive-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .side-block {
    margin-bottom: 0;
  }

  .about-layout,
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-side,
  .privacy-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .about-side .side-card,
  .privacy-side .side-card {
    margin-bottom: 0;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }

  .footer-contact {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 36px, 1160px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    z-index: 80;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .site-nav > a:last-child {
    border-bottom: 0;
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav .nav-search {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    padding: 54px 0 58px;
  }

  .hero::before {
    width: 100%;
    opacity: 0.65;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 50px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
    border-top: 0;
    padding-top: 0;
  }

  .hero-meta li {
    padding: 0 14px 0 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .hero-meta li + li {
    padding-left: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 22px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .section-head-note {
    margin-top: 10px;
    text-align: left;
  }

  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card {
    min-height: 0;
  }

  .post-card-title {
    font-size: 22px;
  }

  .category-panel {
    padding: 24px 20px;
  }

  .category-head h2 {
    font-size: 28px;
  }

  .category-item {
    grid-template-columns: 70px minmax(0, 1fr) 16px;
  }

  .resource-preview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .page-intro {
    padding: 48px 0 34px;
  }

  .page-intro-inner {
    display: block;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  .page-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
    text-align: left;
  }

  .page-count strong {
    font-size: 30px;
  }

  .page-count span {
    margin-top: 0;
  }

  .archive-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-prose,
  .article {
    min-width: 0;
  }

  .article-page {
    padding-top: 22px;
  }

  .breadcrumb {
    margin-bottom: 22px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.95;
  }

  .article-body h2 {
    font-size: 25px;
  }

  .article-footer {
    display: block;
  }

  .article-footer .text-link {
    margin-top: 14px;
  }

  .post-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .post-nav-item-next {
    text-align: left;
  }

  .related-section {
    margin-top: 48px;
  }

  .resource-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-stamp {
    display: none;
  }

  .about-scope {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-scope article {
    min-height: 0;
  }

  .about-scope p {
    min-height: 0;
  }

  .about-side,
  .privacy-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 44px 0 32px;
  }

  .footer-nav {
    max-width: 360px;
  }

  .footer-legal {
    padding-right: 18px;
    padding-left: 18px;
  }

  .preview-banner .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions .button {
    flex: 1;
  }

  .hero-board {
    padding: 22px 20px;
  }

  .board-grid {
    margin-bottom: 18px;
  }

  .hero-board h2 {
    font-size: 25px;
  }

  .board-text {
    font-size: 11px;
  }

  .footer-icp {
    font-size: 11px;
  }

  .article-header h1 {
    font-size: 30px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .post-nav,
  .related-section,
  .article-tags,
  .article-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .article-page {
    padding: 0;
  }

  .article {
    max-width: none;
  }
}
