/* obok.ai — the public site. Single stylesheet, no build step, no external
   requests (no fonts, no analytics, no trackers — the privacy policy says we
   don't track visitors, so the site must not quietly do it).

   Palette deliberately matches docs/assets/style.css: same product, and a
   landing page that looks unrelated to the docs reads as a phishing clone. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e4e0d8;
  --text: #1c1a17;
  --muted: #6b655c;
  --accent: #2f6f5e;
  --accent-soft: #e8f2ee;
  --warn: #9a5b1f;
  --warn-soft: #fdf3e6;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --surface: #1f1e18;
    --border: #35332a;
    --text: #eceae4;
    --muted: #a09a8e;
    --accent: #7fc4ad;
    --accent-soft: #1e2f2a;
    --warn: #e0a765;
    --warn-soft: #2e2517;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }

header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
header.site .wrap {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 18px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
header.site nav { margin-left: auto; display: flex; gap: 18px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--accent); }

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.8px; margin: 12px 0 10px; }
h2 { font-size: 22px; letter-spacing: -0.3px; margin: 38px 0 10px; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.lede { font-size: 20px; color: var(--muted); line-height: 1.5; margin-bottom: 26px; }

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
}
.card h3 { margin-top: 0; }

.rule {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.rule strong { display: block; margin-bottom: 4px; }

.warn {
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.meta { color: var(--muted); font-size: 15px; }

table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 15px;
}
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .lede { font-size: 18px; }
}
