/* ===========================================================================
   VertexCBF — project page.  Deliberately plain: one column, one accent
   colour, no animation.  Vendored Inter + KaTeX, so no third-party requests.
   =========================================================================== */

@import url('../fonts/inter.css');

:root {
  color-scheme: light;

  --ink:      #15181E;
  --body:     #353B46;
  --muted:    #6B7383;
  --rule:     #E2E6EC;
  --rule-str: #C9D0DA;
  --surface:  #F6F8FB;
  --accent:   #14467E;
  --accent-h: #0E3561;
  --accent-s: #E8EEF6;

  --measure:  54rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: 'Inter', 'Liberation Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid #B9C8DC; }
a:hover { color: var(--accent-h); border-bottom-color: var(--accent-h); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  flex-wrap: wrap;
}
.nav .brand {
  font-weight: 800;
  color: var(--ink);
  border: 0;
  letter-spacing: -0.01em;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.nav a {
  border: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.nav a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- hero */

.hero { padding: 48px 0 8px; }

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 .lead { color: var(--accent); }

.byline { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.byline sup { color: var(--accent); font-size: 0.68em; font-weight: 600; }
.byline a { border: 0; color: inherit; }
.byline a:hover { color: var(--accent); }

.places { margin: 0 0 26px; font-size: 15px; color: var(--muted); }
.places sup { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-str);
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-s); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.btn svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn svg.solid { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------- blocks */

section { padding: 42px 0 30px; scroll-margin-top: 58px; }
section + section { border-top: 1px solid var(--rule); }

h2 {
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h3 {
  margin: 30px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
p { margin: 0 0 16px; }

ul.list { margin: 0 0 16px; padding-left: 22px; }
ul.list li { margin-bottom: 8px; }

strong { color: var(--ink); font-weight: 650; }

.lede { font-size: 18.5px; line-height: 1.6; color: var(--ink); }

.callout {
  background: var(--accent-s);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 0 0 22px;
}
.callout p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- figures */

figure { margin: 0 0 26px; }
figure img { width: 100%; display: block; border: 1px solid var(--rule); border-radius: 4px; }
figure a { border: 0; display: block; }
figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
figcaption b { color: var(--ink); font-weight: 650; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two figure { margin-bottom: 0; }
/* the two schematics have different aspects; box them to a common height */
.two figure img { height: 230px; object-fit: contain; padding: 10px 12px; }

/* --------------------------------------------------------------- tables */

.scroller { overflow-x: auto; margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
/* the nine-column results table needs more room than the reading measure */
.scroller.wide {
  width: min(1140px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}


table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tnote {
  margin: -2px 0 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.tnote b { color: var(--ink); font-weight: 650; }
th, td { padding: 5px 7px; text-align: center; white-space: nowrap; }
thead th { font-weight: 650; color: var(--ink); }
thead tr:first-child th { border-bottom: 1px solid var(--rule); }
tbody tr { border-top: 1px solid var(--rule); }
tbody td:first-child, th:first-child { text-align: left; }
td { font-variant-numeric: tabular-nums; }
td.best { font-weight: 700; color: var(--ink); }
td .sd { color: var(--muted); font-size: 0.86em; }
.group { border-left: 1px solid var(--rule); }
th .dim { font-weight: 400; color: var(--muted); }
td .dim { color: var(--muted); }
.ours { background: var(--accent-s); }
thead th.ours { color: var(--accent); }

/* ----------------------------------------------------------------- code */

pre, code { font-family: ui-monospace, 'Liberation Mono', Menlo, Consolas, monospace; }
pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}
p code, li code, td code {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.89em;
}

.cite { position: relative; }
.cite button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--rule-str);
  border-radius: 5px;
  background: #fff;
  color: var(--body);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}
.cite button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------- poster card */

.poster-card { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.poster-card figure { margin: 0; }

/* --------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 32px 0 56px; }
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; margin-bottom: 24px; }
.badges img { display: block; }
.badges .l-tub  { height: 42px; }
.badges .l-imrc { height: 30px; }
.badges .l-corl { height: 44px; }
footer p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

/* ------------------------------------------------------------------ math */

.katex { font-size: 1.03em; }
.katex-display { margin: 18px 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }

/* ----------------------------------------------------------------- small */

@media (max-width: 680px) {
  body { font-size: 16px; }
  .two, .poster-card { grid-template-columns: 1fr; }
  .nav ul { gap: 14px; }
  .nav a { font-size: 14px; }
  section { padding: 32px 0 4px; }
}
