/* Astraios site. Tokens mirror astraios/ui/theme.py. No external resources. */
:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9aa4b1;
  --accent: #2ea043;
  --accent-text: #3fb950;
  --warn: #d29922;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Space Grotesk", Ubuntu, Cantarell, sans-serif;
  --maxw: 72rem;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #56d364; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: 0.75rem; top: -4rem;
  background: var(--accent); color: #0d1117; padding: 0.5rem 0.9rem; border-radius: 6px;
  font-weight: 600; z-index: 10;
}
.skip:focus { top: 0.75rem; }
code, pre { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin: 0.2em 0 0.5em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 2em 0 0.6em; border-top: 1px solid var(--border); padding-top: 1.2em; }
h3 { font-size: 1.05rem; margin: 0 0 0.4em; }
main h2:first-of-type { border-top: 0; padding-top: 0; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 60rem; }
.eyebrow { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* header */
.site-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border); background: var(--bg-2);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 6px; }
.brand-sub { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.site-header nav { flex: 1; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.4rem; }
.site-header nav a { display: inline-block; padding: 0.4rem 0.6rem; color: var(--muted); text-decoration: none; border-radius: 6px; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; }
main:focus { outline: none; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; padding: 1.5rem clamp(1rem, 3vw, 2rem) 2.5rem; max-width: var(--maxw); margin: 0 auto; }
.site-footer p { margin: 0.4rem 0; }

/* buttons and chips */
.btn { display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-3); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { background: #2b3138; color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #0d1117; }
.btn-accent:hover { background: #3fb950; color: #0d1117; }
.btn-quiet { background: transparent; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; }
.chip { display: inline-block; padding: 0.05rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; font-family: var(--mono); font-size: 0.8rem; vertical-align: middle; }
.chip-warn { color: var(--warn); border-color: var(--warn); }

/* hero and trust strip */
.hero { padding: 1rem 0 0.5rem; }
.trust { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.trust li { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; }
.trust strong { display: block; color: var(--accent-text); margin-bottom: 0.25rem; }
.trust span { color: var(--muted); font-size: 0.95rem; }

/* screenshot */
.shot { margin: 1.5rem 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 10px; background: #000; }
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* grids, steps, faq */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.9rem; }
.grid article { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.grid p { margin: 0; color: var(--muted); }
.steps li { margin: 0.45rem 0; }
.toc { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.toc li { break-inside: avoid; margin: 0.2rem 0; }
.faq-item h2 { font-size: 1.15rem; }
section ul, section ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); margin: 1rem 0; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
.scroll-hint { display: none; margin: 0; padding: 0.4rem 0.8rem; font-size: 0.8rem; color: var(--muted); border-bottom: 1px dashed var(--border); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-3); color: var(--text); font-weight: 600; position: sticky; top: 0; }
tbody th { font-weight: 600; color: var(--text); white-space: normal; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td { color: var(--text); }
time { white-space: nowrap; }

@media (max-width: 720px) {
  .scroll-hint { display: block; }
  .toc { columns: 1; }
  .site-header { position: static; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .site-header nav { width: 100%; }
  .site-header nav a { padding: 0.35rem 0.45rem; font-size: 0.9rem; }
  body { font-size: 15px; }
}
@media print {
  .site-header, .skip, .cta, .btn { display: none; }
  a { color: inherit; }
}
