/* Site styles — socratic-ai-tutor
   Contrast: body text #1a1a2e on #ffffff (16.6:1); muted #4a4a5a on #fff (8.6:1);
   accent #0b5394 on #fff (7.6:1). All pairs >= 4.5:1. */

:root {
  --ink: #1a1a2e;
  --muted: #4a4a5a;
  --accent: #0b5394;
  --accent-dark: #083d6e;
  --bg: #ffffff;
  --bg-soft: #f2f4f8;
  --border: #c4cad6;
  --ok-bg: #eef6ee;
  --warn-border: #8a5a00;
  --warn-bg: #fff7e0;
  --warn-ink: #5c3d00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }

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

code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

header.site { border-bottom: 2px solid var(--border); background: var(--bg-soft); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
header.site .brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
header.site nav a { margin-right: 1rem; }

.notice {
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 1.25rem 0;
}

.notice.warn { border-left-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); border-color: #d8b96a; }
.notice.warn strong, .notice.warn code { color: var(--warn-ink); }

footer.site { border-top: 2px solid var(--border); margin-top: 3rem; padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.92rem; }

table.data { border-collapse: collapse; width: 100%; margin: 1rem 0; }
table.data th, table.data td { border: 1px solid var(--border); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
table.data th { background: var(--bg-soft); }

.pending { color: var(--muted); font-style: italic; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
