/* AI Media OS - shared styles.
   No external requests: no CDN, no web fonts, no analytics, no trackers.
   A site that exists to make privacy claims should not itself phone home. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e3e0da;
  --text: #1c1a17;
  --muted: #5d5850;
  --accent: #8a5a2b;
  --accent-soft: #f5ece1;
  --code-bg: #f2efe9;
  --warn-bg: #fdf6e3;
  --warn-border: #e0c98a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f;
    --surface: #1c1b17;
    --border: #33302a;
    --text: #ece8e1;
    --muted: #a39d92;
    --accent: #d9a066;
    --accent-soft: #2a2319;
    --code-bg: #24221d;
    --warn-bg: #2a2418;
    --warn-border: #5c4c26;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 0;
}

/* ---- header / nav ---- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent); }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.93rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a:focus { color: var(--accent); text-decoration: underline; }

/* ---- content ---- */
main { padding-block: 40px 56px; }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
h2 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin: 2.4em 0 0.6em;
  padding-top: 0.9em;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1.02rem; margin: 1.8em 0 0.4em; }
h2:first-of-type { border-top: none; padding-top: 0; }

p, li { color: var(--text); }
a { color: var(--accent); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 8px;
}

ul, ol { padding-left: 1.3em; }
li { margin: 0.35em 0; }

code {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 1.6em 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 1.6em 0;
  font-size: 0.95rem;
}
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---- scope / data tables ---- */
.table-scroll { overflow-x: auto; margin: 1.4em 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 620;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:last-child td { border-bottom: none; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site .wrap { padding-block: 22px 28px; }
footer.site a { color: var(--muted); }
footer.site nav a { margin-right: 16px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px;
  position: fixed;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  z-index: 10;
}

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  main { padding-block: 28px 40px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
}
