/* Shared styling for the article section.
   Plain CSS on plain HTML: these pages exist to be readable by a crawler on the
   first byte, so they carry no framework and no JavaScript. */

:root {
  --purple: #9333ea;
  --purple-dark: #6b21a8;
  --purple-wash: #faf5ff;
  --ink: #1e1b24;
  --ink-soft: #423b4d;
  --muted: #6b6478;
  --line: #e7e2ec;
  --ground: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.bar-inner, .wrap, .foot-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 700 1.25rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--purple);
  text-decoration: none;
}
.brand img { height: 32px; width: 32px; }
.bar nav a {
  font: 500 .9rem/1 system-ui, sans-serif;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}
.bar nav a:hover { color: var(--ink); }

.wrap { padding-top: 3rem; padding-bottom: 4rem; }

h1 {
  font: 700 clamp(1.9rem, 5vw, 2.6rem)/1.15 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
  text-wrap: balance;
}
h2 {
  font: 600 1.35rem/1.3 system-ui, sans-serif;
  letter-spacing: -.01em;
  margin: 2.5rem 0 .75rem;
}
h3 { font: 600 1.1rem/1.35 system-ui, sans-serif; margin: 1.75rem 0 .5rem; }

.meta {
  font: 500 .85rem/1.4 system-ui, sans-serif;
  color: var(--muted);
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.standfirst { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.5rem; }

p, li { max-width: 38em; }
p { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

strong { color: var(--ink); }
a { color: var(--purple-dark); }

.callout {
  background: var(--purple-wash);
  border-left: 3px solid var(--purple);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font: .95rem/1.5 system-ui, sans-serif;
  margin: 1.5rem 0;
}
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

.cta {
  margin: 3rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--purple-wash);
}
.cta h2 { margin-top: 0; }
.cta a.button {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font: 600 .95rem/1 system-ui, sans-serif;
  padding: .8rem 1.25rem;
  border-radius: 8px;
}

.card-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.card-list li { border-top: 1px solid var(--line); padding: 1.5rem 0; margin: 0; max-width: none; }
.card-list h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.card-list h2 a { text-decoration: none; color: var(--ink); }
.card-list h2 a:hover { color: var(--purple-dark); }
.card-list p { margin: 0 0 .5rem; color: var(--ink-soft); }
.card-list .meta { border: 0; padding: 0; margin: 0; }

footer { border-top: 1px solid var(--line); background: #fbfafc; padding: 2rem 0; margin-top: 4rem; }
.foot-inner { font: .85rem/1.6 system-ui, sans-serif; color: var(--muted); }
.foot-inner a { color: var(--muted); margin-right: 1rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-top: 2rem; }
}
