/* Adire palette, lifted from src/theme/tokens.ts so the site and the app agree.
   Light values are the source of truth; dark is the same hue family with lightness
   inverted, exactly as the app derives it. */

:root {
  --bg: #ffffff;
  --sunken: #f1f4fa;
  --hairline: #e2e7f5;
  --text: #161f49;
  --secondary: #666c7e;
  --muted: #6a6f81;
  --accent: #28397e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1422;
    --sunken: #151e33;
    --hairline: #243049;
    --text: #f0f3f8;
    --secondary: #9fafdb;
    --muted: #78869d;
    --accent: #7389c4;
  }
}

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

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 660px;
  margin: 0 auto;
}

header.site {
  padding: 40px 0 0;
}

a.brand {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  text-decoration: none;
}

h1 {
  margin: 32px 0 6px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.4px;
}

h2 {
  margin: 44px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  margin: 28px 0 4px;
  font-size: 17px;
  font-weight: 600;
}

p,
li {
  color: var(--secondary);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

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

.lead {
  font-size: 19px;
  line-height: 1.6;
}

.dateline {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

/* A quiet slab for the "short version" summary — the same role the Card plays in-app. */
.summary {
  margin: 28px 0 8px;
  padding: 22px 24px;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.summary p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--secondary);
}

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

.scroll {
  overflow-x: auto;
}

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
}

footer.site a {
  margin-right: 18px;
}
