:root {
  --bg: #ffffff;
  --text: #0f1720;
  --body: #2b3340;
  --rule: #183b8c;
  --accent: #2e5bff;
  --accent-deep: #183b8c;
  --gutter: 32px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 60%, #8aa4ff 100%);
}

a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.lockup img {
  display: block;
  width: 34px;
  height: 34px;
}

.lockup .divider {
  width: 2px;
  height: 32px;
  background: var(--accent);
}

.lockup .name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.02;
  letter-spacing: -.005em;
}

main { padding-top: 40px; padding-bottom: 40px; }

.lead {
  max-width: 800px;
  margin: 0 0 52px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: .005em;
}

.body { max-width: 680px; }

.body p {
  margin: 0 0 1em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #111827;
}

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

footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  padding-bottom: 32px;
}

footer p {
  max-width: 1000px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

footer p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  main { padding-top: 32px; }
  .lead { font-size: 22px; margin-bottom: 36px; }
  .body p { font-size: 18px; }
  footer p { font-size: 15px; }
}

nav.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

nav.site-nav a {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: var(--accent); }

.section-title {
  margin: 0 0 18px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: .005em;
}

.soon {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #111827;
}

@media (max-width: 640px) {
  nav.site-nav { gap: 16px; }
  nav.site-nav a { font-size: 13px; }
  .section-title { font-size: 22px; }
  .soon { font-size: 18px; }
}

/* Research and model listings */
.series { max-width: 760px; margin: 0 0 48px; }
.series-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.series-head h2 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .005em;
}
.series-head .tag {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.series-intro {
  margin: 0 0 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #111827;
}
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e5e7eb; }
.entries li { padding: 16px 0; border-bottom: 1px solid #e5e7eb; }
.entries .title {
  margin: 0 0 4px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--text);
}
.entries .title a { color: var(--text); text-decoration: none; }
.entries .title a:hover { color: var(--accent); }
.entries .meta {
  margin: 0 0 6px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: #6b7280;
}
.entries .meta span + span::before { content: "·"; margin: 0 8px; color: #9ca3af; }
.entries .abstract {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--body);
}
.entries .download {
  display: inline-block;
  margin-top: 8px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .series-head h2 { font-size: 20px; }
  .series-intro { font-size: 17px; }
  .entries .title { font-size: 17px; }
}

/* Legal */
.meta-line { margin: -6px 0 22px; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; letter-spacing: .02em; color: #6b7280; }
.legal { max-width: 760px; }
.legal p { margin: 0 0 1em; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.5; color: var(--body); }
.series-note { max-width: 760px; margin: 18px 0 0; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.55; color: #6b7280; }

/* Article and model pages */
.crumb { margin: 0 0 10px; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; letter-spacing: .02em; color: #6b7280; }
.crumb a { color: #6b7280; text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.doc-meta { margin: -8px 0 26px; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; letter-spacing: .02em; color: #6b7280; }
.doc-meta span + span::before { content: "·"; margin: 0 8px; color: #9ca3af; }
.article { max-width: 760px; }
.article p { margin: 0 0 1em; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.5; letter-spacing: -.005em; color: #111827; }
.article p.meta-line { font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; color: #6b7280; margin: 0 0 8px; }
.article p.source, .article p.sheet-line { font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.55; color: #6b7280; margin: 0 0 8px; }
.article h2 { margin: 36px 0 12px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.25; }
.article h3 { margin: 26px 0 8px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.3; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 22px; }
.article li { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.5; color: #111827; margin: 0 0 8px; }
.tablewrap { overflow-x: auto; margin: 14px 0 22px; }
.article table { border-collapse: collapse; width: 100%; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.4; }
.article th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.article td { padding: 7px 10px 7px 0; border-bottom: 1px solid #e5e7eb; color: var(--body); vertical-align: top; }
.article td:first-child { color: var(--text); font-weight: 500; }
.article table.sheet td:first-child { font-weight: 400; }
.article table.sheet td { white-space: nowrap; }
.article table.sheet td:first-child { white-space: normal; min-width: 200px; }
@media (max-width: 640px) { .article p, .article li { font-size: 17px; } .article h2 { font-size: 20px; } }
