:root {
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --bg: #fdfdfd;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --code-bg: #f4f4f6;
  --border: #e2e2e7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg);
  background: var(--bg);
}

header {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 3.4rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--fg);
  margin: 0.5rem auto 0;
  max-width: 36em;
}

.venue {
  color: var(--accent);
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.authors {
  margin: 0.4rem 0;
}

.authors a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
}

.affiliations {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: white;
  color: var(--fg);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--code-bg);
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent-dark);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.status {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status.up    { color: #15803d; }
.status.down  { color: #b91c1c; }
.status.warm  { color: #ca8a04; }

main {
  max-width: 56em;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

section {
  margin: 2.5rem 0;
}

section h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

th:first-child, td:first-child { text-align: left; }
th { background: var(--code-bg); font-weight: 600; }

figure {
  margin: 1.6rem auto;
  padding: 0;
  max-width: 720px;
  text-align: center;
}

figure.small { max-width: 600px; }
figure.wide  { max-width: 960px; }

figure img {
  max-width: 100%;
  max-height: 380px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

figure.wide img {
  max-height: 620px;          /* let the wide C2 plot breathe */
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;           /* readable explanatory captions */
  line-height: 1.55;
}

figcaption strong { color: var(--fg); }

p.muted {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -0.4rem;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

pre, code {
  background: var(--code-bg);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

code {
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
}

ul {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 56em;
  margin: 2rem auto 0;
}

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

@media (max-width: 600px) {
  header h1 { font-size: 2.4rem; }
  .subtitle { font-size: 1.05rem; }
  main { padding: 1rem; }
  th, td { padding: 0.4rem; font-size: 0.92rem; }
}
