/* Design tokens and page-level defaults, shared by the SPA (styles.css) and
   the generated document pages (pages/page.css). Extracted so /about,
   /contact and /privacy cannot drift from the app's palette. */
:root {
  color: #141414;
  background: #d0d0d0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --silver: #d0d0d0;
  --paper: #ecebe6;
  --paper-bright: #f5f5f2;
  --ink: #141414;
  --smoke: #15181d;
  --gunmetal: #1f242b;
  --signal: #387290;
  --signal-light: #6ba3dc;
  --muted: #5d6267;
  --line: rgba(20, 20, 20, 0.24);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --display: "Space Grotesk", "Inter", sans-serif;
}

/* Document styling for the generated pages (/about, /contact, /privacy, 404).
 *
 * These are documents, not the SPA. They share the brand's tokens and
 * typefaces and nothing else — no 3D, no scroll choreography, no loader. The
 * build concatenates tokens.css ahead of this file, so the custom properties
 * below are already defined.
 */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--silver);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.doc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.doc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.doc-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.doc-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.doc-header nav a:hover,
.doc-header nav a:focus-visible {
  color: var(--signal);
}

.doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: 56px 24px 72px;
  background: var(--paper);
}

.doc-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.doc h1 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.doc h2 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-size: clamp(19px, 3.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.doc h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  font-size: 16px;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: var(--signal);
  text-underline-offset: 2px;
}

.doc strong {
  font-weight: 600;
}

.doc-rule {
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-en {
  color: var(--muted);
}

.doc-en h2,
.doc-en h3,
.doc-en strong {
  color: var(--ink);
}

.doc-footer {
  max-width: 68ch;
  margin: 0 auto;
  padding: 28px 24px 56px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.doc-footer p {
  margin: 0 0 6px;
}

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

.doc-agent a {
  color: var(--signal);
}

@media (max-width: 560px) {
  .doc {
    padding: 36px 20px 56px;
  }
}
