:root {
  --red: #e3182d; --red-deep: #a50d1f; --red-soft: #fff1f2;
  --grad: linear-gradient(135deg, #ff4d5e 0%, #e3182d 45%, #a50d1f 100%);
  --ink: #17110f; --muted: #6f6564; --line: #f0e4e5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 90% -10%, #ffd0d5, transparent 40%), #fff; }
a { color: var(--red); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.bar img { height: 40px; width: auto; display: block; }
.back { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); }
.back:hover { background: var(--red); color: #fff; }

.doc { padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
h1 { font: 800 clamp(36px, 6vw, 56px)/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; margin: 0; }
.updated { color: var(--muted); margin: 10px 0 28px; }
h2 { font: 700 22px/1.25 "Bricolage Grotesque", sans-serif; margin: 0 0 10px; }
section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
section p, section li { color: #3f3837; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
li::marker { color: var(--red); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.toc a:hover { border-color: var(--red); color: var(--red); }

.card { margin-top: 18px; border: 0; border-radius: 22px; padding: 26px; background: var(--red-soft); }

.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 13px; }
.foot .wrap { max-width: 1100px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--red); text-decoration: none; font-weight: 500; }

@media (max-width: 560px) {
  .back { font-size: 13px; padding: 8px 12px; }
  .bar img { height: 32px; }
}
