/*
 * Priozar public site.
 *
 * No web fonts, no analytics, no third-party requests of any kind. That is a
 * deliberate choice rather than a shortcut: this site exists mostly to host a
 * privacy policy whose whole argument is that Priozar collects almost nothing,
 * and a policy page that phoned out to a font CDN to render itself would
 * undercut the thing it is claiming. Colours are the app's own palette
 * (apps/mobile/src/brand/palettes.ts), system fonts carry the type.
 */

:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --text: #0a0f1e;
  --text-secondary: #2e3e63;
  --text-muted: #5a6a88;
  --accent: #0066ff;
  --border: #dbe6fa;
  --code-bg: #f1f6ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1e;
    --surface: #101d3a;
    --text: #ffffff;
    --text-secondary: #d8e5ff;
    --text-muted: #91a3c7;
    --accent: #00e6ff;
    --border: #22315c;
    --code-bg: #0d1730;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

h1 {
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

h2 {
  color: var(--text);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

p,
li {
  color: var(--text-secondary);
}

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

strong {
  color: var(--text);
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--code-bg);
  color: var(--text);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

code {
  background: var(--code-bg);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.card h2 {
  margin-top: 0;
}

.faq h3 {
  color: var(--text);
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site a {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
