/*
  Shared brand layer for intelligence.obenan.ai.
  Pages are free to add their own <style> block — this file only guarantees
  that every page starts from the same colours, type scale and page chrome.
*/

:root {
  --ink: #0f172a;
  --muted: #475569;
  /* 5.6:1 on --bg. Anything lighter fails WCAG AA and the Lighthouse gate. */
  --faint: #5a6675;
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --accent: #c6119f;

  --brand-gradient: linear-gradient(
    90deg,
    #e9c100 0%,
    #fb1b33 11%,
    #cb0e9d 22%,
    #8b40be 29%,
    #6062d4 33%,
    #37b9e3 44%,
    #00a4e3 55%,
    #15cfd9 66%,
    #80c3ad 77%,
    #ee9700 88%,
    #f67900 100%
  );

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--brand-gradient);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.site-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 0;
  max-width: var(--measure);
  margin: 0 auto;
}

.site-head img {
  width: 40px;
  height: 40px;
}

.site-head a {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

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

.meta {
  color: var(--faint);
  font-size: 0.875rem;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--faint);
  font-size: 0.875rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--muted);
}
