:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --line: #e5e7eb;
  --paper: #ffffff;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --error: #991b1b;
  --error-bg: #fee2e2;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: #f3f4f6; padding: 0 0.25em; border-radius: 3px; }
pre { background: #f3f4f6; padding: 0.8rem 1rem; border-radius: 6px; overflow: auto; }
pre code { background: none; padding: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.site-header, .site-footer { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav ul ul { margin-left: 1rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"], nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.25em; }
.languages ul { gap: 0.5rem; font-size: 0.85rem; }
main.page { width: 100%; max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted, .meta { color: var(--muted); }
.meta { font-size: 0.9rem; }
.hero { padding: 1rem 0 2rem; }
.button, button.button, .rb-button { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 0.6rem 1.1rem; font: inherit; text-decoration: none; cursor: pointer; }
.rb-button-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid #9ca3af; border-radius: 6px; }
.form input:focus-visible, .form textarea:focus-visible, .button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.trap { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.6rem 0.8rem; border-radius: 6px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-error { background: var(--error-bg); color: var(--error); }
.inline { display: inline; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.pre { white-space: pre-wrap; }
.newsletter { flex-basis: 100%; }
.colophon { flex-basis: 100%; color: var(--muted); font-size: 0.9rem; margin: 0; }
/* content blocks */
.rb-image { margin: 1.5rem 0; }
.rb-image img { display: block; border-radius: 6px; }
.rb-image figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.rb-quote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--line); font-style: italic; }
.rb-quote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.rb-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.rb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.rb-divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.rb-cta { margin: 1.5rem 0; }
/* collections, cards, paging */
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.card h2 { margin: 0.5rem 0 0.25rem; font-size: 1.25rem; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { text-decoration: underline; }
.card img { border-radius: 6px; }
.paging { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 2rem; }
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.cover { margin: 1rem 0 1.5rem; }
.cover img { border-radius: 6px; display: block; }
.search p { margin: 0.5rem 0; }
.snippet mark { background: #fde68a; color: inherit; padding: 0 0.1em; }
.site-search input { font: inherit; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; width: 10rem; }
.sr-only { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
.rb-form .form-title { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.rb-form .help { display: block; font-size: 0.85rem; color: var(--muted); }
.rb-form select { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid #9ca3af; border-radius: 6px; }
.rb-form [aria-invalid="true"] { border-color: var(--error); }
.account-nav a { text-decoration: none; font-size: 0.9rem; }
.account-form { max-width: 28rem; }
.account-forgot, .account-magic { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.account-providers { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.account-providers h2 { flex-basis: 100%; margin: 0 0 0.25rem; font-size: 1rem; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.account-delete { margin-left: 1rem; }
.comments { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.comment-replies { margin-left: 1.5rem; }
.comment-replies .comment { border-bottom: 0; border-left: 2px solid var(--line); padding-left: 0.75rem; }
.comment-meta { margin: 0 0 0.25rem; font-size: 0.9rem; color: var(--muted); }
.comment-meta strong { color: var(--ink); }
.comment-body { margin: 0; }
.comment-reply { margin: 0.25rem 0 0; font-size: 0.85rem; }
.comment-form { margin-top: 1.5rem; max-width: 36rem; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e5e7eb; --muted: #9ca3af; --accent: #93c5fd; --accent-ink: #0b1220; --line: #374151; --paper: #0f172a; --ok: #bbf7d0; --ok-bg: #14532d; --error: #fecaca; --error-bg: #7f1d1d; }
  code, pre { background: #1f2937; }
  .form input, .form textarea { background: #111827; color: var(--ink); border-color: #4b5563; }
}
