:root {
  --paper: #fbf7f2;
  --plum: #5b3a6e;
  --plum-dark: #3e2650;
  --coral: #e07a5f;
  --coral-soft: #fbe3db;
  --lilac: #ece4f3;
  --ink: #2b2233;
  --muted: #6c6275;
  --line: #e4dbe9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 "Rubik", Arial, sans-serif; }
a { color: var(--plum); text-underline-offset: 2px; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand, .about-title { font-family: "Bitter", Georgia, serif; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: .3rem 0 .7rem; color: var(--plum-dark); }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.4rem 0 .6rem; color: var(--plum-dark); }
h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: .35rem; background: var(--coral); border-radius: 2px; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .3rem; }

.topbar { text-align: center; padding: 1.6rem 16px 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.brand { font-size: 1.7rem; font-weight: 700; text-decoration: none; color: var(--plum-dark); }
.brand-mark { color: var(--coral); }
.brand-tag { margin: .1rem 0 .8rem; color: var(--muted); font-size: .95rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .3rem .85rem; border-radius: 99px; background: var(--lilac); color: var(--plum-dark); }
.nav-links a:hover { background: var(--coral-soft); }

.wrap { max-width: 780px; margin: 0 auto; padding: 1.8rem 16px 3rem; }
.hero { padding: 1rem 0 .4rem; }
.hero p { font-size: 1.12rem; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 500; color: var(--coral); }
.byline { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.lead { font-size: 1.15rem; border-left: 4px solid var(--plum); padding-left: 1rem; }
.post-figure { margin: 1.4rem 0; }
.post-figure img { border-radius: 18px; background: #fff; box-shadow: 0 2px 12px rgba(62, 38, 80, .08); }
.post-figure figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.key-points { background: #fff; border: 2px solid var(--lilac); border-radius: 16px; padding: .9rem 1.2rem; }
.key-title { margin: 0 0 .2rem; font-weight: 500; color: var(--plum); }
.key-points ul { margin: 0; padding-left: 1.1rem; }
.toc-box { margin: 1.2rem 0; background: var(--lilac); border-radius: 16px; padding: .7rem 1.2rem; }
.toc-box summary { cursor: pointer; font-weight: 500; color: var(--plum-dark); }
.toc-box ol { margin: .4rem 0 .2rem; padding-left: 1.3rem; }

.answer { font-size: 1.05rem; background: var(--coral-soft); border-radius: 14px; padding: .8rem 1rem; }
.note { background: #fff; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; padding: .7rem 1rem; margin: 1.2rem 0; }
.note p { margin: .25rem 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: #fff; border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; font-size: .95rem; }
.post-body th, .post-body td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-body thead th { background: var(--plum); color: #fff; font-weight: 500; }
.post-body li { margin: .3rem 0; }

.qa dt { font-weight: 500; color: var(--plum-dark); margin-top: 1.1rem; }
.qa dd { margin: .2rem 0 0; padding-left: 1rem; border-left: 2px solid var(--line); }
.refs { font-size: .9rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.about-box { margin-top: 1.4rem; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; font-size: .95rem; border: 1px solid var(--line); }
.about-title { font-size: 1.05rem; margin: 0 0 .3rem; color: var(--plum-dark); }
.about-title::after { display: none; }

.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guide-num { font-family: "Bitter", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--coral); line-height: 1; min-width: 2.4rem; }
.guide-link { font-family: "Bitter", Georgia, serif; font-weight: 700; font-size: 1.12rem; text-decoration: none; color: var(--plum-dark); }
.guide-link:hover { color: var(--coral); text-decoration: underline; }
.guide-row p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }

.foot { text-align: center; padding: 1.6rem 16px 2.2rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: #fff; }
.foot p { margin: .3rem 0; }
@media (max-width: 600px) { body { font-size: 16px; } h2 { font-size: 1.3rem; } .guide-row { gap: .6rem; } }
