/* Covertext brand tokens (mirrors app/src/main/java/.../ui/theme/Color.kt). Fonts are self-hosted
   so visiting the privacy policy contacts no third party. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space_grotesk_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space_grotesk_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --mint: #5eead4;
  --teal: #0f766e;
  --paper: #f1f5f9;
  --white: #ffffff;
  --slate: #475569;
  --line: #e2e8f0;

  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --muted: var(--slate);
  --accent: var(--teal);
  --rule: var(--line);
  --tile: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: var(--ink-2);
    --text: var(--paper);
    --muted: var(--line);
    --accent: var(--mint);
    --rule: var(--ink-2);
    --tile: var(--ink-2);
  }
}

*,
*::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-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

header.brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.mark .tile {
  fill: var(--tile);
}

.wordmark {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.wordmark b {
  font-weight: 700;
}

.wordmark span {
  color: var(--accent);
  font-weight: 400;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 0.25rem;
  margin-bottom: 1rem;
}

.summary h2 {
  margin-top: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
