/* roulang page: index */
:root {
  --bg: #F3EBDD;
  --bg-alt: #E9E0D2;
  --ink: #2A211C;
  --muted: #6E6258;
  --plum: #8E3D55;
  --plum-deep: #732F44;
  --apricot: #D08A45;
  --pine: #4E5B45;
  --night: #1E1815;
  --card: #FFF9F2;
  --line: #E4D8C8;
  --shadow: 0 8px 24px rgba(30, 24, 21, .08);
  --radius: 10px;
  --side: 232px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --space: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }
::selection { background: #E7C3A2; color: var(--ink); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--night);
  color: var(--bg);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 24px;
  overflow: auto;
}
.brand {
  display: block;
  text-decoration: none;
  color: var(--bg);
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(243, 235, 221, .14);
}
.brand-line {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: #F3EBDD;
}
.brand-en {
  display: block;
  margin-top: 8px;
  color: #C9B8A6;
  font-size: 12px;
  line-height: 1.4;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.side-link {
  display: block;
  color: #E7D9C8;
  text-decoration: none;
  padding: 11px 12px 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  border-left: 3px solid transparent;
}
.side-link:hover { background: rgba(243, 235, 221, .06); color: #FFF9F2; }
.side-link:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.side-link.is-current {
  border-left-color: var(--apricot);
  background: rgba(243, 235, 221, .08);
  color: #FFF9F2;
}
.side-note {
  margin-top: auto;
  padding: 16px 10px 0;
  color: #C9B8A6;
  font-size: 13px;
  line-height: 1.6;
}
.topbar {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  background: var(--night);
  color: var(--bg);
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.top-brand {
  color: #F3EBDD;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.25;
}
.top-brand span { display: block; }
.menu-btn {
  background: transparent;
  color: #F3EBDD;
  border: 1px solid rgba(243, 235, 221, .35);
  border-radius: 8px;
  min-width: 64px;
  height: 36px;
  padding: 0 10px;
}
.menu-btn:hover { background: rgba(243, 235, 221, .08); }
.menu-btn:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.menu-btn:active { transform: none; }
.shell { margin-left: var(--side); min-width: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.band { padding: var(--space) 0; background: var(--bg); }
.band-alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 18px; max-width: 40em; }
.sec-no {
  display: inline-block;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 14px;
  margin-bottom: 6px;
}
h1 { font-size: 38px; line-height: 1.25; color: var(--ink); }
h2 { font-size: 26px; line-height: 1.35; }
h3 { font-size: 18px; line-height: 1.45; }
.sec-lead, .hero-body, .card p, .note p, .scene p, .sheet p, .qa-a, .faq-a, .scribble p, .vs-col p {
  max-width: 40em;
}
.sec-lead { color: var(--ink); margin-bottom: 22px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.hl {
  background-image: linear-gradient(var(--apricot), var(--apricot));
  background-repeat: no-repeat;
  background-size: 100% .32em;
  background-position: 0 88%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  font-size: 15px;
}
.btn:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.btn:active { transform: none; }
.btn-solid { background: var(--plum); color: #FFF9F2; }
.btn-solid:hover { background: var(--plum-deep); color: #FFF9F2; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-line:hover { background: rgba(142, 61, 85, .06); color: var(--plum-deep); transform: translateY(-1px); }
.hero-body { margin: 16px 0 22px; max-width: 40em; }
.lede { margin-top: 12px; font-size: 18px; color: var(--ink); }
.chap {
  font-family: var(--serif);
  color: var(--plum);
  font-size: 18px;
  margin-bottom: 8px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ba {
  display: grid;
  grid-template-columns: .9fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}
.ba-card, .card, .metric, .chip, .scene, .vs-col, .note, .sheet-item, .scribble, .faq-item, .qa-row, .form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ba-card { padding: 20px 20px 18px; position: relative; min-height: 220px; }
.ba-before { background-image: repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(42, 33, 28, .05) 32px); }
.ba-kicker { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ba-card h2 { font-size: 22px; margin-bottom: 10px; }
.ba-card ul, .ticks { margin: 0; padding: 0; list-style: none; }
.ba-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.seal {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 74px;
  height: 74px;
  border: 2px solid var(--pine);
  color: var(--pine);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  transform: rotate(-8deg);
  background: rgba(255, 249, 242, .72);
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { padding: 18px 16px 16px; }
.metric:hover { transform: translateY(-2px); transition: transform .18s ease; }
.metric-no { color: var(--plum); font-family: var(--serif); font-size: 13px; }
.metric-num { font-family: var(--serif); font-size: 32px; line-height: 1.2; margin: 8px 0 4px; }
.metric-label { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  text-decoration: none;
  color: var(--ink);
  padding: 14px 16px 12px;
  min-width: 148px;
  border-radius: 10px 10px 10px 3px;
  background: #FFF9F2;
}
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.chip strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.chip span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.chip.is-chapter { border-top: 3px solid var(--apricot); }
.matrix { display: grid; grid-template-columns: 1.35fr .8fr; gap: 14px; }
.card { padding: 20px; }
.card:hover { transform: translateY(-2px); transition: transform .18s ease; }
.card h3 { margin-bottom: 8px; }
.memo-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--apricot);
}
.memo-bar b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.scenes { display: grid; grid-template-columns: 1.25fr .95fr .8fr; gap: 14px; }
.scene { padding: 18px; }
.scene h3 { margin: 8px 0; }
.tag {
  display: inline-block;
  background: rgba(208, 138, 69, .2);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-col { padding: 20px 20px 16px; }
.vs-bad { background-image: repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(42, 33, 28, .05) 32px); }
.vs-good { box-shadow: var(--shadow), inset 0 0 0 1px rgba(78, 91, 69, .18); }
.u-line { border-bottom: 2px solid var(--apricot); }
.anno {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(208, 138, 69, .16);
  color: var(--ink);
  font-size: 13px;
  border-radius: 6px;
}
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #CDBFAE;
}
.node { position: relative; padding: 0 0 22px 48px; }
.node-no {
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--plum);
  color: #FFF9F2;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
}
.node h3 { font-size: 18px; }
.sheet { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sheet-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px 16px;
  align-items: start;
}
.sheet-no { font-family: var(--serif); color: var(--plum); font-size: 20px; }
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.note { overflow: hidden; }
.note-lg { grid-row: span 2; }
.note-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.note-link:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.note:hover { transform: translateY(-2px); transition: transform .18s ease; }
.swatch {
  height: 92px;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  color: #FFF9F2;
  font-family: var(--serif);
  font-size: 28px;
}
.note-lg .swatch { height: 168px; }
.swatch-a { background: #8E3D55; }
.swatch-b { background: #4E5B45; }
.swatch-c { background: #A56832; }
.swatch-d { background: #2A211C; }
.swatch-e { background: #6E4A52; }
.note-body { padding: 14px 16px 16px; }
.note h3 { margin-bottom: 6px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.tick {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.tick input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--plum); }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.badge i {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(78, 91, 69, .12);
  color: var(--pine);
  font-style: normal;
  font-size: 12px;
  margin-bottom: 8px;
}
.badge strong { display: block; font-family: var(--serif); margin-bottom: 6px; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 16px; }
.qa-q { font-family: var(--serif); font-size: 16px; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { padding: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.faq-item[open] summary { color: var(--plum); }
.faq-a { padding: 0 16px 16px; color: var(--ink); }
.scribbles { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 14px; align-items: start; }
.scribble { padding: 16px; }
.scribble:nth-child(2) { margin-top: 28px; }
.scribble:nth-child(3) { margin-top: 10px; }
.quote-mark { color: var(--apricot); font-family: var(--serif); font-size: 28px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.form-card { padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFF9F2;
  padding: 0 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--apricot); border-color: var(--plum); }
.form-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(78, 91, 69, .1);
  border-radius: 8px;
  color: var(--pine);
  font-size: 14px;
}
.site-foot {
  background: var(--night);
  color: #E7D9C8;
  padding: 36px 0 28px;
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-family: var(--serif); font-size: 20px; color: #F3EBDD; margin-bottom: 8px; }
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot-links a { color: #F3EBDD; }
.foot-meta { margin-top: 18px; color: #C9B8A6; font-size: 13px; }
.foot-meta p + p { margin-top: 4px; }
@media (max-width: 1100px) {
  h1 { font-size: 34px; }
  .qa-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 960px) {
  .topbar { display: flex; }
  .sidebar {
    top: 56px;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .sidebar.is-open { transform: none; }
  .shell { margin-left: 0; padding-top: 56px; }
  .ba, .matrix, .scenes, .versus, .news, .form-grid, .scribbles, .badges { grid-template-columns: 1fr 1fr; }
  .note-lg { grid-row: auto; }
  .memo-bar { grid-template-columns: 1fr; }
  .scribble:nth-child(2), .scribble:nth-child(3) { margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --space: 40px; }
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .metrics, .ba, .matrix, .scenes, .versus, .news, .ticks, .badges, .form-grid, .scribbles, .chips { grid-template-columns: 1fr 1fr; }
  .scenes, .versus, .news, .form-grid, .scribbles, .ba, .matrix, .badges { grid-template-columns: 1fr; }
  .metrics, .ticks, .chips { grid-template-columns: 1fr 1fr; }
  .hero-actions, .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .sheet-item { grid-template-columns: 40px 1fr; }
  .side-note { display: none; }
}
@media (max-width: 520px) {
  .chips { grid-template-columns: 1fr; display: grid; }
  .metric-num { font-size: 26px; }
  .brand-line { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* roulang page: category1 */
:root {
  --bg: #F3EBDD;
  --bg-alt: #E9E0D2;
  --ink: #2A211C;
  --muted: #6E6258;
  --plum: #8E3D55;
  --plum-deep: #732F44;
  --apricot: #D08A45;
  --pine: #4E5B45;
  --night: #1E1815;
  --card: #FFF9F2;
  --line: #E4D8C8;
  --shadow: 0 8px 24px rgba(30, 24, 21, .08);
  --radius: 10px;
  --side: 232px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --space: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--plum); text-underline-offset: 3px; }
a:visited { color: var(--plum); }
a:hover { color: var(--plum-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
h1 { font-size: 36px; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 18px; }
p { margin: 0 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.mark {
  background-image: linear-gradient(var(--apricot), var(--apricot));
  background-repeat: no-repeat;
  background-size: 100% 8px;
  background-position: 0 88%;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side);
  height: 100vh;
  background: var(--night);
  color: #F3EBDD;
  padding: 28px 16px 32px;
  overflow: auto;
  z-index: 30;
}
.brand {
  display: block;
  text-decoration: none;
  color: var(--bg);
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(243, 235, 221, .14);
}
.brand-line {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: #F3EBDD;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.side-link {
  display: block;
  color: #F3EBDD;
  text-decoration: none;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background .18s ease, border-color .18s ease;
}
.side-link:hover { background: rgba(243, 235, 221, .06); color: #F3EBDD; }
.side-link:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.side-link.is-current {
  border-left-color: var(--apricot);
  background: rgba(208, 138, 69, .12);
  color: #F3EBDD;
}
.side-note {
  margin: 22px 8px 0;
  color: #C9B8A6;
  font-size: 13px;
  line-height: 1.65;
}
.topbar {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  background: var(--night);
  color: var(--bg);
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.top-brand {
  color: #F3EBDD;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.25;
}
.top-brand span { display: block; }
.menu-btn {
  background: transparent;
  color: #F3EBDD;
  border: 1px solid rgba(243, 235, 221, .35);
  border-radius: 8px;
  min-width: 64px;
  height: 36px;
  padding: 0 10px;
  transition: background .18s ease;
}
.menu-btn:hover { background: rgba(243, 235, 221, .08); }
.menu-btn:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.menu-btn:active { transform: none; }
.shell { margin-left: var(--side); min-height: 100vh; }
.sec { padding: var(--space) 0; }
.sec-alt { background: var(--bg-alt); }
.chap {
  padding: 28px 0 22px;
  background: var(--bg);
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(42, 33, 28, .045) 32px);
  border-bottom: 1px solid var(--line);
}
.chap-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.chap-no {
  margin: 0 0 6px;
  font-family: var(--serif);
  color: var(--plum);
  font-size: 14px;
}
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { color: var(--plum); text-decoration: underline; }
.crumb span { margin-left: 8px; }
.crumb span::before { content: "/"; margin-right: 8px; color: var(--muted); }
.chap-lead { max-width: 40em; color: var(--ink); margin: 8px 0 0; }
.seal {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 2px solid var(--plum);
  border-radius: 50%;
  color: var(--plum);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.25;
  transform: rotate(-8deg);
  background: rgba(255, 249, 242, .72);
}
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.badge i {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(78, 91, 69, .12);
  color: var(--pine);
  font-style: normal;
  font-size: 12px;
  margin-bottom: 8px;
}
.badge strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.badge p { margin: 0; color: var(--muted); font-size: 14px; }
.note-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}
.note-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform .18s ease, border-color .18s ease;
}
.note-card:visited { color: var(--ink); }
.note-card:hover { transform: translateY(-2px); border-color: #d7c6b2; color: var(--ink); }
.note-card:active { transform: none; }
.note-card.span { grid-column: 1 / -1; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.swatch {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #FFF9F2;
  font-family: var(--serif);
  font-size: 16px;
}
.swatch-a { background: #8E3D55; }
.swatch-b { background: #4E5B45; }
.swatch-c { background: #D08A45; color: #2A211C; }
.swatch-d { background: #1E1815; }
.tag {
  display: inline-block;
  background: rgba(208, 138, 69, .22);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-bottom: 8px;
}
.tag-pine { background: rgba(78, 91, 69, .14); color: var(--pine); }
.note-card h3 { margin-bottom: 8px; }
.note-card p { margin: 0; max-width: 40em; color: var(--ink); }
.meta-line { margin-top: 10px; color: var(--muted); font-size: 13px; }
.more-row { margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  font-size: 15px;
}
.btn:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.btn:active { transform: none; }
.btn-solid { background: var(--plum); color: #FFF9F2; }
.btn-solid:hover, .btn-solid:visited { background: var(--plum-deep); color: #FFF9F2; transform: translateY(-1px); }
.btn-solid:active { transform: none; background: var(--plum-deep); }
.btn-line { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-line:hover, .btn-line:visited { background: rgba(142, 61, 85, .06); color: var(--plum-deep); transform: translateY(-1px); }
.btn-line:active { transform: none; }
.anno-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.anno {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--apricot);
  border-radius: 10px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.anno strong { display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.anno p { margin: 0; font-size: 14px; color: var(--muted); }
.scene-band {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--night);
  color: #F3EBDD;
  border-radius: var(--radius);
  padding: 26px 24px;
}
.scene-no {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--apricot);
}
.scene-band h2 { color: #F3EBDD; margin-bottom: 8px; }
.scene-band p { margin: 0; max-width: 40em; color: #F3EBDD; }
.rhythm-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rhythm-list li {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.rhythm-list li:last-child { border-bottom: 0; }
.rhythm-list time { font-family: var(--serif); color: var(--plum); font-size: 15px; }
.rhythm-list span { color: var(--ink); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 8px;
  min-width: 0;
}
.vs-col h2 { font-size: 22px; }
.vs-kicker { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.vs-col ul { margin: 0; padding: 0 0 8px; list-style: none; }
.vs-col li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.vs-col li:last-child { border-bottom: 0; }
.vs-after { background-image: linear-gradient(to right, rgba(208, 138, 69, .35), rgba(208, 138, 69, .35)); background-size: 72px 3px; background-repeat: no-repeat; background-position: 20px 18px; padding-top: 28px; }
.close-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.close-bar p { margin: 0; max-width: 40em; }
.site-foot {
  background: var(--night);
  color: #F3EBDD;
  padding: 36px 0 28px;
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-brand { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; color: #F3EBDD; }
.site-foot .muted { color: #C9B8A6; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: #F3EBDD; }
.site-foot a:hover { color: #D08A45; }
.foot-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 235, 221, .14);
  color: #C9B8A6;
  font-size: 13px;
}
.foot-meta p { margin: 4px 0; }
@media (max-width: 1024px) {
  h1 { font-size: 32px; }
  .wrap { padding: 0 22px; }
  .note-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar { display: flex; }
  .sidebar {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 56px);
    z-index: 35;
  }
  .sidebar.is-open { display: block; }
  .shell { margin-left: 0; padding-top: 56px; }
  .badges { grid-template-columns: 1fr; }
  .scene-band { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 768px) {
  .sec { padding: 40px 0; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .note-grid, .anno-list, .vs { grid-template-columns: 1fr; }
  .note-card.span { grid-column: auto; }
  .chap-inner { align-items: flex-start; }
  .rhythm-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  .chap { padding: 20px 0 16px; }
  .seal { width: 64px; height: 64px; flex-basis: 64px; font-size: 13px; }
  .close-bar { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .foot-grid { flex-direction: column; }
}
@media (max-width: 520px) {
  .card-top { gap: 8px; }
  .swatch { flex-basis: 44px; width: 44px; height: 44px; font-size: 14px; }
  .scene-no { font-size: 32px; }
  .badge strong { font-size: 17px; }
}
