/* Static content pages only. Hand-written and deliberately small: these pages
   never load the app bundle (see R6), so this file is the entire stylesheet a
   reader downloads. Keep it under 5 KB — every byte is on the critical path of
   a page whose only job is to be read. */

:root {
  --bg: #030712;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #34d399;
  --rule: rgba(255, 255, 255, 0.12);
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Never remove the ring without a replacement: these pages are read with a
   keyboard as often as with a mouse. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.site-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
/* 44px tall hit area on touch, comfortably past 32px on the desktop sizes. */
.site-nav a, .site-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.site-nav a:hover, .site-legal a:hover { color: var(--fg); }

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; }
.breadcrumb [aria-current] { color: var(--fg); }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  /* Long unbroken tokens (a URL, a hashtag) must not widen the page. */
  overflow-wrap: break-word;
}
h2 { margin: 2.5rem 0 0.75rem; font-size: 1.35rem; color: #fff; overflow-wrap: break-word; }
h3 { margin: 2rem 0 0.5rem; font-size: 1.1rem; color: #fff; }
p, li { overflow-wrap: break-word; }
.lede { color: var(--muted); font-size: 1.05rem; }

.prose ul, .prose ol { padding-left: 1.25rem; }
.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}
.prose pre {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}
.prose img { max-width: 100%; height: auto; }

.cta-block {
  margin: 3rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.06);
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #04120c;
  font-weight: 600;
}
.cta:hover { text-decoration: none; filter: brightness(1.08); }

.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.guide-list a { font-size: 1.1rem; font-weight: 600; }
.guide-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* Empty state, not a blank box: it says what is coming and offers a next step. */
.empty-state {
  padding: 2rem;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.siblings { margin-top: 3rem; }
.siblings h2 { font-size: 1.1rem; margin-top: 0; }
.siblings ul { list-style: none; margin: 0; padding: 0; }
.siblings li { padding: 0.35rem 0; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-copy { margin: 0.75rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
