/* The guide pages: plain HTML under /guides/, no script, one stylesheet (the CSP in public/_headers refuses inline styles). */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin.woff2') format('woff2');
}

:root {
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #475569;
  --rule: #e2e8f0;
  --code-bg: #eef2f6;
  --accent: #0891b2;
  --button-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --rule: #1f2937;
    --code-bg: #1f2937;
    --accent: #22d3ee;
    --button-text: #0b1220;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding-top: 24px;
  padding-bottom: 8px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand::before {
  content: '•';
  color: var(--accent);
}

h1 { font-size: 2rem; line-height: 1.25; margin: 32px 0 16px; }
h2 { font-size: 1.3rem; margin: 48px 0 8px; }

.lede { font-size: 1.15rem; color: var(--muted); }

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

figure { margin: 24px 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

pre {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.open {
  display: inline-block;
  margin: 8px 0 24px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
}

footer {
  margin-top: 64px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
