/* Static information pages: readable without JavaScript, same dark look as the app. */
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #141b24;
  --border: #2c3846;
  --text: #eef2f6;
  --muted: #a9b5c3;
  --accent: #ffb547;
  --danger: #c62828;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid #7cc4ff;
  outline-offset: 2px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px 32px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.lang,
.pages a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
}

.lang {
  border: 2px solid var(--border);
  border-radius: 999px;
}

.call {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 16px 0;
  border-radius: 14px;
  background: var(--danger);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}

.pages a {
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
}

.pages a[aria-current='page'] {
  background: var(--accent);
  color: #1a1203;
  font-weight: 700;
}

h1 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  color: var(--muted);
  font-size: 20px;
}

li {
  margin: 6px 0;
}

.callout,
.draft {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
}

.callout {
  border: 1px solid;
}

.callout p {
  margin: 0;
}

.callout-danger {
  border-color: #b23a3a;
  background: #3d1111;
}

.callout-warn {
  border-color: #8a6512;
  background: #33270a;
}

.draft {
  border: 2px dashed var(--accent);
}

.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer p {
  margin: 8px 0;
}
