:root {
  --accent: #111111;
  --on: #ffffff;
  --ink: #16181d;
  --muted: #5c6370;
  --line: #e6e8ee;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --tint: #f3f4f8;
  --sans: "Poppins", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #111; color: #fff; padding: 6px 10px; z-index: 9; }

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 42px; width: auto; }
.brand.wide img { height: 38px; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
nav.desk { display: none; align-items: center; gap: 18px; }
nav.desk a { text-decoration: none; font-weight: 500; font-size: .95rem; color: #2a2e36; }
nav.desk a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on);
  text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: .78rem 1.15rem;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .8rem; font-weight: 600;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  min-width: 200px; padding: 8px; display: grid; box-shadow: 0 16px 40px rgba(16,18,28,.08);
}
.menu nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.menu nav a:hover { background: var(--wash); }
@media (min-width: 980px) {
  nav.desk { display: flex; }
  .menu { display: none; }
}

.catbar {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 12px; scrollbar-width: none;
}
.catbar a {
  flex: 0 0 auto; text-decoration: none; font-size: .86rem; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: #2c313a;
  border-radius: 999px; padding: .35rem .75rem;
}
.catbar a:hover { border-color: var(--accent); color: var(--accent); }

.hero { padding: 42px 0 10px; }
.eyebrow {
  margin: 0 0 10px; color: var(--accent); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .78rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lede { font-size: 1.12rem; max-width: 46rem; color: #2c313a; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.answer {
  background: var(--wash);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 48rem;
}
.answer strong { font-weight: 650; }

section { padding: 28px 0; }
.sec-head { display: block; margin-bottom: 14px; }
@media (min-width: 720px) {
  .sec-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
}
.sec-head p { margin: 0; color: var(--muted); }

.cat-grid, .card-grid, .split { display: grid; gap: 12px; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.card-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
@media (min-width: 1020px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}
.cat, .card, .post {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: inherit;
  box-shadow: 0 10px 28px rgba(20, 22, 40, .04);
}
.cat { padding: 16px 10px 14px; text-align: center; }
.cat:hover, .post:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--accent); }
.ico {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px;
  background: var(--tint); display: grid; place-items: center;
}
.cat small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.card, .post { padding: 16px; }
.card ul, .prose ul, .prose ol { margin: 8px 0 0; padding-left: 1.15rem; }
.card li, .prose li { margin: 6px 0; }
.muted { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 18px 0; }
.crumbs a { color: var(--muted); }

details.faq { border-top: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; color: #3a4050; }

.band {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 28px 22px;
}
.band .btn { background: var(--accent); }
.band p { color: #d5d8e0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 36px; background: var(--wash); }
.foot { display: grid; gap: 18px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr .8fr .8fr; } }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 6px 0; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.legal { margin-top: 16px; color: var(--muted); font-size: .85rem; }

.subcats { display: flex; flex-wrap: wrap; gap: 8px; }
.subcats a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .7rem; background: #fff; font-size: .88rem;
}
.subcats a:hover { border-color: var(--accent); }
