/* Stylesheet of the static pages (scripts/site/build.js). Same brand as the
   app, but a document: it scrolls, it needs no JavaScript and it loads only
   the fonts the app already publishes in /fonts. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0f172a;
  --line: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --green: #34d399;
  --blue: #7dd3fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

header.top, main, footer { width: min(100% - 2rem, 44rem); margin-inline: auto; }

header.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 1rem; }
header.top nav { display: flex; align-items: center; gap: 1rem; }
header.top .actions { margin-left: auto; }
header.top .menu { order: 3; width: 100%; font-size: 0.9375rem; }
.menu a { display: inline-block; padding-block: 0.5rem; }
.menu a[aria-current='page'] { color: var(--text); font-weight: 700; }
@media (min-width: 36rem) {
  header.top .menu { order: 0; width: auto; margin-left: 0.5rem; }
}

.brand { font: 700 1.5rem 'Space Grotesk', sans-serif; text-decoration: none; }
.brand span:first-child { color: var(--green); }
.brand span:last-child { color: var(--blue); }

a { color: var(--blue); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 0.25rem; }

.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: var(--green);
  color: #022c22;
  font-weight: 700;
  text-decoration: none;
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 0.5rem; }

article h1, article h2, article h3, .cta h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.25; }
article h1 { font-size: 2rem; margin-block: 1rem; }
article h2 { font-size: 1.4rem; margin-block: 2.25rem 0.75rem; }
article h3 { font-size: 1.1rem; margin-block: 1.5rem 0.25rem; }
article h3 + p { margin-top: 0.25rem; }
article li { margin-block: 0.4rem; }

.character { display: block; width: 8rem; height: auto; margin: 1rem auto 0; }

.picture { float: left; width: 3.5rem; height: 3.5rem; margin: 0.25rem 1rem 0.5rem 0; border-radius: 0.9rem; background: var(--surface); object-fit: cover; }
article h2, article h3 { clear: both; }


details { margin-block: 0.5rem 1.5rem; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); }
summary { min-height: 1.75rem; color: var(--green); font-weight: 700; cursor: pointer; }
details p { margin-block: 0.6rem 0.25rem; }

blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--green); color: var(--muted); }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.875rem; }

.updated { color: var(--muted); font-size: 0.875rem; margin-top: 2rem; }

.cta { margin-block: 2.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.cta h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.cta .links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 0; }

footer { display: flex; flex-wrap: wrap; gap: 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
footer h2 { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin-block: 0.35rem; }
footer p { margin: 0; }
.copyright { width: 100%; color: var(--muted); font-size: 0.8125rem; }
