/* ═══════════ Taco 特刊 — 设计 token(见 DESIGN.md v2) ═══════════ */
:root {
  --paper: #FBF3E8;
  --raised: #FFFDF6;
  --panel: #FFF3E4;
  --ink: #2E2620;
  --ink-soft: #7C6F5E;
  --ink-faint: #A89882;
  --rule: #E7DECE;
  --accent: #FF8FB1;
  --ok: #7FB77E;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
  --maxw: 1080px;
}

/* ═══════════ base ═══════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #F6D8E2; color: var(--ink); }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--panel); padding: 2px 7px; border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ═══════════ masthead ═══════════ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
}

.wordmark .paw { width: 18px; height: 18px; fill: var(--accent); margin-left: 1px; }

.toc { display: flex; gap: 28px; margin-left: auto; }

.toc a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  transition: color 200ms ease-out;
}

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

/* ═══════════ buttons & links ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0;
  font-weight: 700;
  font-size: 16px;
  padding: 0 26px;
  transition: background-color 200ms ease-out, transform 200ms ease-out;
  cursor: pointer;
  border: 0;
}

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FF9DBC; }
.btn-primary:active { transform: translateY(1px); }

.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline:active { transform: translateY(1px); }

.link-plain {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  padding: 8px 2px;
}

.link-plain:hover { text-decoration-thickness: 2px; }

/* ═══════════ cover ═══════════ */
.cover { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 120px; }

.cover-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-soft);
  margin-bottom: 64px;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: center;
}

.cover h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.cover h1 span { display: block; font-size: 84px; }

.dek {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 24px;
}

.cover-facts {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.cover-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.cover-art { position: relative; display: flex; align-items: flex-end; }

.vertical-label {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.55em;
  color: var(--ink-faint);
  padding-bottom: 48px;
  flex-shrink: 0;
}

.silhouette { width: 100%; height: auto; display: block; }

/* ═══════════ chapters ═══════════ */
.chapter { max-width: var(--maxw); margin: 0 auto; padding: 144px 24px 0; }

.chapter-head { margin-bottom: 56px; }

.chapter-no {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.chapter-no::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--rule);
}

.chapter h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.chapter-sub { margin-top: 20px; font-size: 16px; color: var(--ink-soft); max-width: 480px; }

/* ── 卷首语 ── */
.preface-body { position: relative; max-width: 640px; }

.preface-body p { margin-bottom: 28px; }

.lead-para::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 68px;
  line-height: 0.9;
  padding: 10px 14px 0 0;
  color: var(--ink);
}

.sidenote { position: absolute; left: 100%; top: 0; margin-left: 48px; width: 200px; }

.sidenote ul { list-style: none; border-top: 1px solid var(--rule); }

.sidenote li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── 章一 ── */
.persona-body { max-width: 640px; }
.persona-body p { margin-bottom: 28px; }

blockquote {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

blockquote p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0;
}

.fact-rule { list-style: none; }
.fact-rule li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}
.fact-rule li:last-child { border-bottom: 1px solid var(--rule); }

/* ── 章二 · 心情 ── */
/* 图 1 · 应用界面(配色、布局、圆角与宫崎骏插画取自 taco/src/gui.rs) */
.app-figure { margin: 0 auto; max-width: 760px; }

.app-window {
  background: #FBF3E8;
  border: 1px solid #F0E3D2;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(122, 101, 85, 0.12);
  overflow: hidden;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #F0E3D2;
  background: #FBF3E8;
}

.app-header-brand { display: flex; align-items: center; gap: 8px; }
.app-header-word { font-family: var(--serif); font-size: 22px; font-weight: 800; color: #2E2620; line-height: 1; }
.app-header-paw { width: 15px; height: 15px; fill: #FF8FB1; }
.app-header-sub { font-size: 12px; color: #7C6F5E; }

.app-header-right { display: flex; align-items: center; gap: 8px; }
.app-header-btn { border: 0; background: none; color: #7C6F5E; font-size: 12px; cursor: default; font-family: inherit; padding: 0; }
.app-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.app-dot-ok { background: #7FB77E; }
.app-status { font-size: 12px; color: #7C6F5E; }

.app-body { display: flex; min-height: 480px; }

.app-side {
  width: 236px;
  flex-shrink: 0;
  background: #FFF3E4;
  border-right: 1px solid #F0E3D2;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-dog-card {
  position: relative;
  background: #FFFDF6;
  border: 1px solid #F0E3D2;
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(122, 101, 85, 0.08);
}

.app-dog { width: 100%; height: auto; display: block; border-radius: 14px; }

.app-bark {
  position: absolute;
  top: 16px;
  left: 55%;
  transform: translateX(-50%);
  background: #FFF9F0;
  border: 1px solid #F0E3D2;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 13px;
  color: #2E2620;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

.app-bark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #FFF9F0;
}

.app-dog-card.bark .app-bark { opacity: 1; }

.app-mood { display: flex; align-items: center; gap: 10px; }
.app-mood-badge {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FF8FB1;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.app-mood-text { min-width: 0; }
.app-mood-head { font-size: 15px; font-weight: 700; color: #2E2620; display: flex; gap: 5px; align-items: center; }
.app-mood-desc { font-size: 11.5px; color: #7C6F5E; margin-top: 1px; line-height: 1.5; }

.app-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.app-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  border-radius: 14px;
  border: 1px solid #F0E3D2;
  background: #FFFDF6;
  color: #7C6F5E;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.app-pill:hover { border-color: #D8CBB7; }
.app-pill[aria-selected="true"] { background: #FF8FB1; border-color: #FF8FB1; color: #2E2620; }

.pill-glyph { font-size: 11px; line-height: 1; }
.app-pill[data-mood="happy"] .pill-glyph { color: #FF8FB1; }
.app-pill[data-mood="excited"] .pill-glyph { color: #FFB347; }
.app-pill[data-mood="calm"] .pill-glyph { color: #8CC084; }
.app-pill[data-mood="sleepy"] .pill-glyph { color: #A9A0D0; }
.app-pill[data-mood="affectionate"] .pill-glyph { color: #F28BAA; }
.app-pill[data-mood="playful"] .pill-glyph { color: #6EC6D0; }
.app-pill[aria-selected="true"] .pill-glyph { color: #2E2620; }

.app-side-bottom { margin-top: auto; display: flex; flex-direction: column; }
.app-side-rule { height: 1px; background: #F0E3D2; margin: 10px 0; }
.app-side-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #7C6F5E; padding: 3px 0; }
.app-side-val { color: #2E2620; }
.app-caret { font-size: 10px; color: #A89882; }
.app-clear { align-self: flex-start; border: 0; background: none; color: #A89882; font-size: 12px; font-family: inherit; cursor: default; padding: 2px 0; }

.app-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-chat-head { font-family: var(--serif); font-size: 15px; font-weight: 700; color: #2E2620; padding: 14px 16px 6px; }
.app-chat-rule { height: 1px; background: #F0E3D2; margin: 0 16px; }

.app-msg-list { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }

.app-msg { display: flex; align-items: flex-start; gap: 6px; max-width: 86%; }
.app-msg.user { align-self: flex-end; }
.app-msg.taco { align-self: flex-start; }
.app-msg-inner { min-width: 0; }

.msg-paw-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #FFFDF6;
  border: 1px solid #F0E3D2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.msg-paw-avatar svg { width: 15px; height: 15px; fill: #FF8FB1; }

.bubble {
  position: relative;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  width: fit-content;
  max-width: 100%;
}

.bubble-user { background: #FFD9E8; color: #8C4A5F; border-bottom-right-radius: 4px; }
.bubble-taco { background: #FFF9F0; border: 1px solid #F0E3D2; color: #6B5648; border-bottom-left-radius: 4px; }

.app-msg-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.app-msg.user .app-msg-meta { justify-content: flex-end; }
.msg-time { font-size: 10px; color: #C8B8A5; }
.msg-copy { border: 0; background: none; color: #C8B8A5; font-size: 10px; font-family: inherit; cursor: default; padding: 0; }

#mood-reply.swap { animation: text-swap 260ms ease-out; }
@keyframes text-swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.app-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #F0E3D2;
  background: #FBF3E8;
}

.app-input-box {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #F0E3D2;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 13px;
  color: #A89882;
}

.app-send {
  border: 0;
  background: #FF8FB1;
  color: #2E2620;
  font-size: 13px;
  font-weight: 700;
  border-radius: 18px;
  padding: 8px 18px;
  cursor: default;
  font-family: inherit;
}

.app-statusbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 20px;
  border-top: 1px solid #F0E3D2;
  background: #FBF3E8;
}
.app-statusbar .app-status { font-size: 11px; }
.app-statusbar-right { margin-left: auto; font-size: 11px; color: #A89882; }

.app-figure figcaption {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-faint);
  text-align: left;
}

/* ── 章三 · 试玩(交互 Demo) ── */
.demo-window {
  max-width: 620px;
  margin: 0 auto;
  background: var(--raised);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
}
.demo-title { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.demo-tag {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 11px;
}

.demo-msgs {
  height: 320px;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.demo-msg { display: flex; align-items: flex-start; gap: 7px; max-width: 84%; }
.demo-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.demo-msg.taco { align-self: flex-start; }
.demo-paw {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.demo-bubble { border-radius: 16px; padding: 9px 14px; font-size: 14.5px; line-height: 1.6; }
.demo-bubble.bubble-user { background: #FFD9E8; color: #8C4A5F; }
.demo-bubble.bubble-taco { background: #FFF9F0; border: 1px solid var(--rule); color: #6B5648; }
.demo-typing { color: var(--ink-faint); letter-spacing: 3px; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.demo-chip {
  font: inherit; font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.demo-chip:hover { border-color: var(--ink); color: var(--ink); }

.demo-input { display: flex; gap: 10px; padding: 14px 20px 6px; }
.demo-field {
  flex: 1; font: inherit; font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.demo-field:focus { border-color: var(--accent); }
.demo-send {
  font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}
.demo-send:hover { background: #FF9DBC; }

.demo-note { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 10px 20px 16px; }

/* ── 章三 ── */
.usage { display: flex; flex-direction: column; gap: 72px; }
.usage-item { max-width: 640px; }
.usage-item:nth-child(even) { margin-left: auto; }
.usage-item h3 { font-family: var(--serif); font-weight: 900; font-size: 28px; margin-bottom: 12px; letter-spacing: 0.02em; }
.usage-item p { color: var(--ink-soft); }

.usage-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.code {
  margin-top: 28px;
  background: var(--ink);
  color: #F6EBDD;
  border-radius: 0;
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.c-prompt { color: #F5A25D; }
.c-user { color: #FFD9E8; font-weight: 700; }
.c-taco { color: var(--ok); font-weight: 700; }
.code-note { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }

/* ── 章四 ── */
.mint-body { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.mint-body p { font-size: 18px; }
.mint-links { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 16px; }

/* ── 附 · 获取 ── */
.obtain-card {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--raised);
  padding: 56px;
  max-width: 640px;
}

.obtain-title { font-family: var(--serif); font-weight: 900; font-size: 32px; letter-spacing: 0.02em; }
.obtain-meta { font-size: 15px; color: var(--ink-soft); margin: 12px 0 36px; }
.obtain-note { margin-top: 28px; font-size: 14px; color: var(--ink-soft); max-width: 440px; }
.obtain-hash { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); word-break: break-all; line-height: 1.9; }
.obtain-hash span { color: var(--ink-faint); }
.obtain-rule { height: 1px; background: var(--rule); margin: 32px 0; }
.obtain-alt { font-size: 14px; color: var(--ink-soft); line-height: 2.1; }

/* ── 附 · 捐赠 ── */
.donate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: center;
  max-width: 720px;
}

.donate-text { font-size: 17px; color: var(--ink-soft); }

.donate-figure { max-width: 280px; }
.donate-figure img { width: 100%; height: auto; display: block; }

.donate-figure figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── 附 · 命令行 ── */
.cli-body { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }

/* ── 答读者问 ── */
.qa-list { max-width: 640px; }

.qa-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.qa-item:last-child { border-bottom: 1px solid var(--rule); }
.qa-item dt { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.qa-item dd { color: var(--ink-soft); }

/* ═══════════ colophon ═══════════ */
.colophon { border-top: 1px solid var(--rule); margin-top: 96px; }
.colophon-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.colophon-brand { display: flex; align-items: center; gap: 20px; }
.silhouette-mini { width: 96px; height: auto; }
.colophon-line { font-size: 14px; color: var(--ink-soft); }
.colophon-line a { text-decoration: underline; text-underline-offset: 4px; }
.colophon-line a:hover { color: var(--ink); }
.colophon-fine { font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; }
.colophon-icp { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.colophon-icp a { color: inherit; }
.colophon-icp a:hover { text-decoration: underline; }

/* ── 分享 / 复制 / 回到顶部(交互小功能) ── */
.share { display: flex; align-items: center; gap: 18px; margin: 22px 0 6px; }
.share-qr { width: 124px; height: 124px; background: #fff; border: 1px solid var(--rule); padding: 6px; }
.share-side { text-align: left; }
.share-cap { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.share-actions { display: flex; gap: 10px; }
.share-btn {
  font: inherit; font-size: 13px;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.share-btn:hover { background: var(--ink); color: var(--paper); }

.obtain-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.copy-mini {
  font: inherit; font-size: 13px;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.copy-mini:hover { border-color: var(--ink); color: var(--ink); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.to-top:hover { background: var(--ink); color: var(--paper); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 22px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .share { flex-direction: column; gap: 12px; }
  .share-side { text-align: center; }
  .share-actions { justify-content: center; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ═══════════ reveal ═══════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1100px) {
  .sidenote { position: static; margin-left: 0; width: auto; margin-top: 24px; }
}

@media (max-width: 960px) {
  .cover-grid { grid-template-columns: 1fr; }
  .cover h1 { font-size: 48px; }
  .cover h1 span { font-size: 64px; }
  .cover-art { max-width: 420px; margin: 0 auto; }
  .usage-item:nth-child(even) { margin-left: 0; }
}

@media (max-width: 720px) {
  .toc { display: none; }
  .chapter { padding-top: 96px; }
  .chapter h2 { font-size: 34px; }
  .cover { padding: 40px 20px 88px; }
  .cover h1 { font-size: 38px; }
  .cover h1 span { font-size: 48px; }
  .app-body { flex-direction: column; min-height: 0; }
  .app-side { width: 100%; border-right: 0; border-bottom: 1px solid #F0E3D2; }
  .app-dog-card { max-width: 240px; }
  .app-side-bottom { margin-top: 0; }
  .app-msg { max-width: 94%; }
  .obtain-card { padding: 36px 24px; }
  .qa-item { grid-template-columns: 1fr; gap: 6px; }
  .donate-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════ reduced motion ═══════════ */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
