/* Insights site — a reading surface for regulatory analysis.
   Restrained on purpose: this sits next to a professional firm's website, and
   the content is dense. One accent colour, generous measure, real hierarchy. */

:root {
  --ink: #16191d;
  --ink-soft: #4a5159;
  --ink-faint: #767d85;
  --rule: #e2e5e9;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --accent: #14507a;
  --accent-soft: #eaf1f7;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8eaed;
    --ink-soft: #b3b9c0;
    --ink-faint: #868d95;
    --rule: #2a2f36;
    --bg: #14171a;
    --bg-soft: #1b1f23;
    --accent: #7db4dd;
    --accent-soft: #1c2c38;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Charter, Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- masthead ---- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  margin-bottom: 2.5rem;
}
.masthead .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); }
.brand-name { display: block; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub {
  display: block; font-size: 0.72rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint);
  font-family: system-ui, -apple-system, sans-serif;
}
.masthead nav { display: flex; gap: 1.25rem; font-size: 0.87rem;
  font-family: system-ui, -apple-system, sans-serif; }

/* ---- index ---- */
.intro { margin-bottom: 2.5rem; }
.intro h1 { font-size: 2rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.intro p { color: var(--ink-soft); margin: 0; }

.cluster { margin-bottom: 2.75rem; }
.cluster h2 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint); font-family: system-ui, -apple-system, sans-serif;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; margin: 0 0 1.1rem;
}
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { margin-bottom: 1.4rem; }
.article-list a { font-size: 1.12rem; font-weight: 600; text-decoration: none;
  color: var(--ink); letter-spacing: -0.01em; }
.article-list a:hover { color: var(--accent); text-decoration: underline; }
.article-list p { margin: 0.25rem 0 0.2rem; color: var(--ink-soft); font-size: 0.95rem; }
.article-list time { font-size: 0.8rem; color: var(--ink-faint);
  font-family: system-ui, -apple-system, sans-serif; }
.empty { color: var(--ink-faint); }

/* ---- article ---- */
.eyebrow {
  font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-family: system-ui, -apple-system, sans-serif; margin: 0 0 0.6rem;
}
.eyebrow a { color: var(--ink-faint); text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }

article h1 {
  font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.022em;
  margin: 0 0 0.7rem; max-width: 22ch;
}
@media (max-width: 34rem) { article h1 { font-size: 1.6rem; max-width: none; } }

.byline {
  font-family: system-ui, -apple-system, sans-serif; font-size: 0.86rem;
  color: var(--ink-faint); margin: 0 0 2rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule);
}
.byline time::before { content: "·"; margin: 0 0.5rem; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-size: 1.32rem; letter-spacing: -0.012em; margin-top: 2.4em; line-height: 1.3;
}
.prose h3 { font-size: 1.1rem; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 650; }

.prose blockquote {
  margin: 1.6em 0; padding: 0.9em 1.2em;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft); color: var(--ink-soft);
  font-size: 0.95rem;
}
.prose blockquote > :first-child { margin-top: 0; }

.prose table {
  width: 100%; border-collapse: collapse; font-size: 0.93rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.prose table th, .prose table td {
  border-bottom: 1px solid var(--rule); padding: 0.55em 0.7em; text-align: left;
}
.prose table th { font-weight: 600; color: var(--ink-soft); font-size: 0.83rem;
  text-transform: uppercase; letter-spacing: 0.04em; }

/* Wide content must scroll inside its own box, never the page. */
.prose table { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 40rem) { .prose table { display: table; white-space: normal; } }

.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose code {
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft); padding: 0.12em 0.35em; border-radius: 3px;
}
.prose em:last-child { color: var(--ink-faint); font-size: 0.9rem; }

/* ---- faq, sources, related ---- */
.faq, .sources, .related { margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule); }
.faq h2, .sources h2, .related h2 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint); font-family: system-ui, -apple-system, sans-serif;
  margin: 0 0 1rem;
}
.faq details { border-bottom: 1px solid var(--rule); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--ink-soft); }

.sources ul, .related ul { list-style: none; margin: 0; padding: 0;
  font-family: system-ui, -apple-system, sans-serif; font-size: 0.87rem; }
.sources li { margin-bottom: 0.4rem; word-break: break-all; }
.sources a { color: var(--ink-faint); }
.related li { margin-bottom: 0.6rem; }
.related time { color: var(--ink-faint); font-size: 0.8rem; margin-left: 0.5rem; }

/* ---- footer ---- */
.footer {
  margin-top: 5rem; padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.83rem; color: var(--ink-faint);
}
.footer p { margin: 0 0 0.4rem; }
.fine { font-size: 0.78rem; }
