/* 小红书运营手册 · Editorial system */
:root {
  color-scheme: light;
  --paper: #f7f2ea;
  --paper-deep: #efe7db;
  --surface: #fffdf8;
  --surface-soft: rgba(255, 253, 248, 0.78);
  --ink: #191712;
  --ink-soft: #3f3a32;
  --muted: #655d52;
  --faint: #6e675d;
  --line: rgba(37, 32, 25, 0.13);
  --line-strong: rgba(37, 32, 25, 0.24);
  --clay: #c8613e;
  --clay-deep: #9d4228;
  --clay-soft: #f1ded2;
  --sage: #77806c;
  --cream: #fff8ec;
  --night: #191713;
  --night-soft: #29251f;
  --success: #52664f;
  --warning: #9b5b27;
  --danger: #963f31;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "New York", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-soft: 0 24px 70px rgba(46, 35, 24, 0.08);
  --shadow-lift: 0 18px 48px rgba(46, 35, 24, 0.13);
  --max: 1160px;
  --measure: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -8%, rgba(200, 97, 62, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(119, 128, 108, 0.12), transparent 32rem),
    linear-gradient(180deg, #faf6ef 0%, var(--paper) 42%, #f3ecdf 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(25, 23, 18, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 18, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

::selection {
  color: var(--cream);
  background: var(--clay-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

strong {
  color: var(--ink);
  font-weight: 650;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-size: 14px;
  transform: translateY(-72px);
  transition: transform 180ms var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 242, 234, 0.76);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 239, 0.88);
  box-shadow: 0 12px 32px rgba(51, 39, 27, 0.05);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-seal {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(46, 35, 24, 0.08));
  transform-origin: 50% 58%;
  transition: transform 320ms var(--ease), filter 320ms ease;
}

.brand:hover .brand-seal {
  filter: drop-shadow(0 7px 14px rgba(46, 35, 24, 0.12));
  transform: rotate(-3deg) scale(1.035);
}

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

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--night);
  color: var(--cream);
}

main {
  position: relative;
}

.page-shell,
.hero,
.page-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: clamp(48px, 7vw, 112px);
  padding: clamp(80px, 11vw, 152px) 0 clamp(56px, 8vw, 96px);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--clay-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before,
.card-kicker::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.display-title {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 560;
  letter-spacing: -0.064em;
  line-height: 1.06;
  text-wrap: balance;
}

.display-title .accent {
  color: var(--clay-deep);
  font-style: normal;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.lede strong {
  color: var(--clay-deep);
  font-weight: 620;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.hero-aside {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.88), rgba(244, 236, 224, 0.72));
  box-shadow: var(--shadow-soft);
}

.hero-aside::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 7px rgba(200, 97, 62, 0.12);
  content: "";
}

.aside-label {
  margin: 0 0 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.aside-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.aside-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.aside-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.aside-list strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.page-shell {
  padding-bottom: 32px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(64px, 9vw, 112px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-l);
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 28px 80px rgba(25, 23, 18, 0.2);
}

.intro-panel .card-kicker {
  color: #d8cabb;
}

.intro-panel h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.intro-panel p {
  margin: 0;
  color: rgba(255, 248, 236, 0.72);
  font-size: 16px;
  line-height: 1.72;
}

.intro-panel p + p {
  margin-top: 16px;
}

.intro-panel strong {
  color: #fff8ec;
}

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

.chapter-card {
  position: relative;
  display: grid;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-soft);
  box-shadow: 0 12px 38px rgba(46, 35, 24, 0.05);
  transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms var(--ease), background 320ms ease;
}

.chapter-card::after {
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(200, 97, 62, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 97, 62, 0.08), transparent 62%);
  content: "";
  transition: transform 420ms var(--ease), opacity 420ms ease;
}

.chapter-card:hover {
  border-color: rgba(200, 97, 62, 0.28);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.chapter-card:hover::after {
  opacity: 0.9;
  transform: scale(1.22) translate(-8px, -8px);
}

.chapter-card:focus-visible {
  outline-offset: 6px;
}

.chapter-number {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.chapter-card h2 {
  margin: 46px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 560;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

.chapter-card p {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.chapter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.chapter-link span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--clay-deep);
  transition: background 220ms ease, color 220ms ease, transform 320ms var(--ease);
}

.chapter-card:hover .chapter-link span:last-child {
  background: var(--clay-deep);
  color: var(--cream);
  transform: translateX(4px);
}

.content-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 104px;
  align-self: start;
  min-width: 0;
}

.section-number {
  display: block;
  margin-bottom: 14px;
  color: var(--clay-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.section-body {
  max-width: var(--measure);
  min-width: 0;
}

.section-body > p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.rule-card,
.soft-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-soft);
  box-shadow: 0 14px 42px rgba(46, 35, 24, 0.05);
}

.rule-list {
  display: grid;
}

.rule-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  min-height: 64px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

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

.rule-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.rule-value {
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.58;
  letter-spacing: -0.014em;
}

.rule-value small,
.value-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.rule-item.is-total {
  align-items: center;
  background: linear-gradient(90deg, rgba(200, 97, 62, 0.08), transparent);
}

.rule-item.is-total .rule-label,
.rule-item.is-total .rule-value {
  color: var(--clay-deep);
  font-weight: 680;
}

.rule-item.is-total .rule-value {
  font-size: 19px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(200, 97, 62, 0.18);
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay-deep);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
  vertical-align: 2px;
  white-space: nowrap;
}

.badge.neutral {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
}

.badge.sage {
  border-color: rgba(82, 102, 79, 0.18);
  background: rgba(119, 128, 108, 0.13);
  color: var(--success);
}

.note {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(200, 97, 62, 0.42);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.note strong {
  color: var(--ink-soft);
}

.callout {
  margin: 24px 0 0;
  padding: 24px 26px;
  border: 1px solid rgba(200, 97, 62, 0.2);
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(241, 222, 210, 0.72), rgba(255, 253, 248, 0.78));
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.callout.dark {
  border-color: rgba(255, 248, 236, 0.1);
  background: var(--night);
  color: rgba(255, 248, 236, 0.76);
  box-shadow: 0 22px 56px rgba(25, 23, 18, 0.18);
}

.callout.dark strong {
  color: var(--cream);
}

.callout-title {
  display: block;
  margin-bottom: 8px;
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.callout.dark .callout-title {
  color: #dfb39f;
}

.plain-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li {
  position: relative;
  min-height: 52px;
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.64;
}

.plain-list li::before {
  position: absolute;
  top: 25px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.plain-list.with-space {
  margin-top: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 253, 248, 0.64);
}

.stat-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.stat-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.tier-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tier-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 253, 248, 0.66);
}

.tier-card.is-featured {
  border-color: rgba(200, 97, 62, 0.28);
  background: linear-gradient(135deg, rgba(241, 222, 210, 0.68), rgba(255, 253, 248, 0.82));
}

.tier-name {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tier-value {
  color: var(--ink);
  font-size: 17px;
  font-weight: 640;
  line-height: 1.48;
}

.compare-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-soft);
}

.compare-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.compare-value {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.compare-value strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.principle-stack {
  display: grid;
  gap: 14px;
}

.principle {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 253, 248, 0.64);
}

.principle-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.principle p strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-soft);
  box-shadow: 0 14px 42px rgba(46, 35, 24, 0.05);
}

.table-scroll {
  overflow-x: auto;
  scrollbar-color: rgba(25, 23, 18, 0.22) transparent;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.58;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(239, 231, 219, 0.42);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
}

td:first-child {
  color: var(--ink);
  font-weight: 620;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.subtle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

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

.split-block .soft-card {
  padding: 26px;
}

.soft-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.soft-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.page-turner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.turn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 253, 248, 0.58);
  transition: transform 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.turn-link:hover {
  border-color: rgba(200, 97, 62, 0.28);
  background: var(--surface);
  transform: translateY(-3px);
}

.turn-link small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turn-link strong {
  font-size: 16px;
}

.turn-arrow {
  color: var(--clay-deep);
  font-family: var(--serif);
  font-size: 26px;
}

.page-footer {
  padding: 44px 0 max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.footer-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.footer-mark {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-shell,
  .page-shell,
  .hero,
  .page-footer {
    width: min(100% - 36px, var(--max));
  }

  .nav-shell {
    min-height: 66px;
    gap: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 70px;
  }

  .hero-aside {
    max-width: 620px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 734px) {
  body {
    font-size: 17px;
    line-height: 1.58;
  }

  body::before {
    background-size: 34px 34px;
  }

  .site-header {
    background: rgba(247, 242, 234, 0.9);
  }

  .nav-shell {
    width: 100%;
    padding-left: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 15px;
  }

  .nav-links {
    justify-content: flex-start;
    padding-right: 18px;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
  }

  .nav-links a {
    min-height: 44px;
    padding: 0 11px;
    font-size: 13px;
  }

  .nav-links a[aria-current="page"] {
    order: -1;
  }

  .page-shell,
  .hero,
  .page-footer {
    width: calc(100% - 32px);
  }

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

  .eyebrow,
  .section-kicker,
  .card-kicker {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .display-title {
    font-size: clamp(40px, 11.5vw, 56px);
    letter-spacing: -0.056em;
    line-height: 1.08;
  }

  .lede {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.64;
  }

  .hero-meta {
    gap: 8px;
    margin-top: 26px;
  }

  .meta-pill {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .hero-aside {
    padding: 22px;
    border-radius: 26px;
  }

  .aside-title {
    font-size: 24px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .intro-panel h2 {
    font-size: clamp(31px, 9vw, 44px);
  }

  .chapter-grid,
  .split-block,
  .page-turner,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    min-height: 244px;
    padding: 24px;
    border-radius: 28px;
  }

  .chapter-card h2 {
    margin-top: 38px;
  }

  .content-section {
    padding: 48px 0;
  }

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

  .rule-item,
  .compare-row,
  .tier-card {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px 20px;
  }

  .rule-item {
    min-height: 0;
  }

  .rule-value {
    font-size: 15px;
  }

  .rule-item.is-total .rule-value {
    font-size: 17px;
  }

  .callout {
    padding: 20px;
  }

  .plain-list li {
    padding: 14px 0 14px 22px;
    font-size: 15px;
  }

  .plain-list li::before {
    top: 23px;
  }

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

  .principle {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .principle-index {
    width: 36px;
    height: 36px;
  }

  .table-card {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-scroll {
    padding: 0 16px;
  }

  table {
    min-width: 640px;
    font-size: 14px;
  }

  th,
  td {
    padding: 15px 16px;
  }

  .soft-card {
    border-radius: 24px;
  }

  .footer-grid {
    display: block;
  }

  .footer-mark {
    display: block;
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .brand-text span {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .display-title {
    font-size: 40px;
  }

  .chapter-card,
  .rule-card,
  .compare-list,
  .table-card,
  .soft-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  body::before,
  body::after,
  .site-header,
  .page-turner {
    display: none;
  }

  .hero,
  .content-section,
  .page-footer {
    width: 100%;
    padding: 24px 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
    break-inside: avoid;
  }

  .rule-card,
  .soft-card,
  .compare-list,
  .table-card,
  .chapter-card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
