/* Shared style for the static content pages (/about/, /features/, /guides/…). The app has its own. */
:root {
  --bg: #fafafa;
  --panel: #fff;
  --fg: #111113;
  --muted: #55555f;
  --accent: #5b5bd6;
  --accent-soft: rgba(91, 91, 214, 0.08);
  --line: #e6e6ea;
  --low: #2f75b5;
  --high: #94540f;
  --ok: #1c7047;
  --on-accent: #fff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --panel: #18181c;
    --fg: #ececf1;
    --muted: #a0a0ab;
    --accent: #8b8bf0;
    --accent-soft: rgba(139, 139, 240, 0.12);
    --line: #2a2a31;
    --low: #6fb0ea;
    --high: #f0a04b;
    --ok: #4cc38a;
    --on-accent: #111114;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* header */
.site-top {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.site-top nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
  min-height: 40px;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.site-top nav a:not(.brand):not(.cta) {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-top nav a[aria-current='page'],
.site-top nav a:not(.brand):not(.cta):hover {
  color: var(--fg);
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 479px) {
  .site-top .cta {
    display: none;
  }
}
.cta.big {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  margin-top: 8px;
}

/* content */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.crumbs a {
  color: var(--muted);
}
h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 8px;
}
h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h3 {
  margin: 24px 0 4px;
  font-size: 17px;
}
p,
li {
  color: var(--muted);
}
strong,
b {
  color: var(--fg);
}
li {
  margin: 4px 0;
}
.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin: 20px 0;
}
.note p {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
.grid > li,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
}
.grid h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--fg);
}
.grid p {
  margin: 0;
  font-size: 15px;
}
.grid a.card-link {
  text-decoration: none;
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--fg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.lo {
  color: var(--low);
  font-weight: 700;
}
.hi {
  color: var(--high);
  font-weight: 700;
}
.ok {
  color: var(--ok);
  font-weight: 700;
}
kbd {
  font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--panel);
  color: var(--fg);
}
.next {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.next h2 {
  margin-top: 0;
}

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
}
.site-foot div {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--muted);
}
.site-foot a {
  color: var(--muted);
}
.site-foot span {
  margin-right: auto;
}
