/* Structure shared by every site. Each site's /theme.css sets the variables and adds its own character. */
:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #ffffff; --bg-alt: #f6f6f4; --fg: #1a1a1a; --muted: #5f5f5c; --line: #dedcd6;
  --accent: #1f4fd8; --accent-fg: #ffffff; --accent-soft: #e8eefc;
  --radius: 8px; --wrap: 1120px; --narrow: 720px;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font-body); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.3em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: flex-end; }
.site-header nav a { color: var(--fg); text-decoration: none; }
.nav-cta { padding: .45rem .9rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg) !important; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: .95rem; padding: 2rem 0 3rem; }
.site-footer p { margin: 0 0 .4em; max-width: none; }
.site-footer a { color: inherit; }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
section.page { padding-top: clamp(2rem, 5vw, 4rem); }
.alt { background: var(--bg-alt); }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: start; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hero h1 { margin-bottom: .6em; }
.hero .lede { font-size: 1.2rem; }
.hero .proof { color: var(--muted); font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: 1.5rem 0 1rem; }
.btn, button, .lead-form button { display: inline-block; font: inherit; font-weight: 600; padding: .8rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); text-decoration: none; cursor: pointer; }
.btn.secondary, button.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-link { color: var(--fg); }
button:disabled { opacity: .6; cursor: default; }
button.linklike { display: inline; font: inherit; font-weight: inherit; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent); text-decoration: underline; }
.aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-title { margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.aside ul { margin: 0; padding-left: 1.1em; }
.aside li + li { margin-top: .6rem; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; padding-top: .5rem; border-top: 2px solid var(--accent); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--accent); display: block; margin-bottom: .4rem; }
.steps strong { display: block; margin-bottom: .25rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; }
th, td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin-top: .75rem; }
.badge { font-family: var(--font-mono); font-size: .7rem; padding: .1rem .4rem; border: 1px solid var(--line); border-radius: 4px; margin-left: .4rem; vertical-align: middle; color: var(--muted); }

/* Articles */
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.article-list li { border-top: 1px solid var(--line); padding-top: 1rem; }
.article-list a { font-weight: 600; font-size: 1.1rem; }
.article-list p { margin: .25rem 0 0; color: var(--muted); }
.article header { margin-bottom: 2rem; }
.article-meta { color: var(--muted); font-size: .95rem; }
.draft-banner { background: #fff3cd; color: #5a4300; border: 1px solid #ecd27a; padding: .6rem .9rem; border-radius: var(--radius); font-size: .95rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--bg-alt); padding: 1rem; overflow-x: auto; border-radius: var(--radius); }
.prose pre code { background: none; padding: 0; }

/* Forms */
.lead-section { background: var(--bg-alt); }
.lead-intro { font-size: 1.1rem; }
.lead-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lead-form label { display: block; font-weight: 600; font-size: .95rem; }
.lead-form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.lead-form label.check input { margin-top: .3rem; }
.lead-form .optional { font-weight: 400; color: var(--muted); }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: .35rem; font: inherit; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg);
}
.lead-form textarea { resize: vertical; }
.lead-form [aria-invalid="true"] { border-color: #b42318; }
.field-error { display: block; font-weight: 400; color: #b42318; font-size: .9rem; margin-top: .3rem; }
.form-error { background: #fde8e6; color: #7a1d14; border: 1px solid #f3b7b1; padding: .6rem .9rem; border-radius: var(--radius); }
.form-note { color: var(--muted); font-size: .92rem; margin: 0; }
.form-status { min-height: 1.5em; margin: 0; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 20; }
.consent p { margin: 0 0 .75rem; max-width: none; font-size: .95rem; }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent button { padding: .5rem .9rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  body { font-size: 16px; }
  table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
