/* CVE · FGSES — Notion-style theme */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #37352f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.wrap { max-width: 708px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid #e9e9e8;
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 10;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
  font-size: 14px;
}
.topbar .crumb { color: #37352f; text-decoration: none; }
.topbar .crumb:hover { background: #f1f1ef; border-radius: 4px; }
.topbar .crumb .icon { margin-right: 6px; }
.topbar nav a {
  color: #787774; text-decoration: none; margin-left: 4px;
  padding: 4px 8px; border-radius: 4px;
}
.topbar nav a:hover { background: #f1f1ef; color: #37352f; }

/* ---------- cover ---------- */
.cover { margin: 0; }
.cover img {
  display: block; width: 100%; height: 32vh; min-height: 220px; max-height: 380px;
  object-fit: cover;
}
.cover figcaption {
  max-width: 708px; margin: 0 auto; padding: 6px 24px 0;
  font-size: 13px; color: #9b9a97;
}

/* ---------- page head ---------- */
.page-icon { font-size: 72px; line-height: 1; margin: 12px 0 6px; }
.cover + .wrap .page-icon { margin-top: -38px; position: relative; }
h1.page-title {
  font-size: 40px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.5px; margin: 4px 0 10px;
}
.page-meta { color: #9b9a97; font-size: 14px; margin-bottom: 26px; }
.page-meta .tag {
  display: inline-block; background: #f1f1ef; color: #787774;
  border-radius: 4px; padding: 1px 8px; font-size: 13px; margin-right: 8px;
}

/* ---------- blocks ---------- */
.block { margin-bottom: 14px; }
h2.block-heading {
  font-size: 24px; font-weight: 600; letter-spacing: -0.2px;
  margin: 30px 0 8px; padding-top: 6px;
}
p.block-text { margin-bottom: 12px; }
.block-text.lede { font-size: 18px; color: #37352f; }
ul.block-list { margin: 0 0 14px 2px; list-style: none; }
ul.block-list li { padding-left: 26px; position: relative; margin-bottom: 6px; }
ul.block-list li::before {
  content: "•"; position: absolute; left: 8px; color: #37352f;
}
a { color: inherit; text-decoration: underline; text-decoration-color: #b8b7b4; text-underline-offset: 2px; }
a:hover { color: #2383e2; text-decoration-color: #2383e2; }
strong { font-weight: 600; }
hr.divider { border: none; border-top: 1px solid #e9e9e8; margin: 28px 0; }

/* ---------- callout ---------- */
.callout {
  display: flex; gap: 12px;
  background: #f7f7f5; border-radius: 4px;
  padding: 16px;
  margin: 20px 0;
}
.callout .emoji { font-size: 20px; line-height: 1.4; }
.callout .content { font-size: 15px; }
.callout .content p { margin-bottom: 6px; }
.callout .content p:last-child { margin-bottom: 0; }
.callout .label { font-weight: 600; }

/* ---------- database list (home) ---------- */
.db-title { margin: 34px 0 4px; }
.db-sub { color: #787774; margin-bottom: 18px; }
.db-list { border-top: 1px solid #e9e9e8; margin-bottom: 60px; }
.db-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 8px; border-bottom: 1px solid #e9e9e8;
  text-decoration: none; color: inherit;
}
.db-row:hover { background: #f7f7f5; }
.db-row .t { font-weight: 500; }
.db-row .d { color: #9b9a97; font-size: 14px; white-space: nowrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid #e9e9e8; margin-top: 40px; }
.footer .wrap { padding-top: 20px; padding-bottom: 30px; }
.footer p { font-size: 13px; color: #9b9a97; }

@media (max-width: 560px) {
  h1.page-title { font-size: 30px; }
  .page-icon { font-size: 56px; }
  .cover + .wrap .page-icon { margin-top: -30px; }
}
