:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --accent:#8e3b46;
  --accent-soft:#fff0f3;
  --shadow:0 12px 30px rgba(15,23,42,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(900px 600px at 15% 0%, rgba(142,59,70,.10), transparent 60%),
              radial-gradient(900px 600px at 85% 20%, rgba(255,77,109,.10), transparent 55%),
              var(--bg);
  line-height:1.55;
}

.wrap{max-width:980px;margin:0 auto;padding:28px 16px 44px}
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);
  background:rgba(255,255,255,.75);backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{
  width:38px;height:38px;border-radius:14px;
  background:var(--accent-soft);border:1px solid rgba(142,59,70,.18);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;color:var(--accent);
}
.brand-title{font-weight:900;letter-spacing:-.3px}
.brand-sub{font-size:12px;color:var(--muted);font-weight:700;margin-top:2px}
.nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.pill:hover{border-color:rgba(142,59,70,.35);box-shadow:0 0 0 4px rgba(142,59,70,.10)}
.pill.active{background:var(--accent-soft);border-color:rgba(142,59,70,.18);color:var(--accent)}

.card{
  margin-top:16px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow: var(--shadow);
  padding:22px;
}
.h1{margin:0;font-size:26px;font-weight:950;letter-spacing:-.7px}
.meta{margin-top:6px;color:var(--muted);font-weight:800;font-size:12px}

h2{margin:18px 0 8px;font-size:16px;font-weight:950;letter-spacing:-.3px}
p{margin:8px 0}
ul{margin:8px 0 0;padding-left:18px}
li{margin:6px 0}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:.95em}

.note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(142,59,70,.18);
  background:var(--accent-soft);
  color:#8e3b46;
  font-weight:750;
  font-size:13px;
}

.footer{
  margin-top:14px;
  color:var(--muted);
  font-weight:750;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer a{color:var(--accent);text-decoration:none;font-weight:900}
.footer a:hover{text-decoration:underline}

@media (max-width:640px){
  .topbar{flex-direction:column;align-items:flex-start}
  .nav{justify-content:flex-start}
  .h1{font-size:22px}
}


