/* multiplehypothesis.com: one stylesheet, no framework. */

:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ccfbf1;
  --best: #f59e0b;
  --code-bg: #0b1220;
  --code-ink: #e2e8f0;
  --radius: 12px;
  --max: 1120px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-sub { color: var(--muted); font-weight: 400; }
.menu { display: flex; gap: 1.4rem; margin-left: auto; }
.menu a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.menu a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--accent);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 0.4rem 1rem; font-size: 0.88rem; }
.btn .size { font-weight: 400; opacity: 0.75; }

/* Hero */
.hero { padding: 5rem 0 4.5rem; background: radial-gradient(1200px 400px at 80% 0%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-tree { margin: 0; }
.hero-tree svg { width: 100%; height: auto; }
.hero-tree .edges path { stroke: var(--accent); stroke-width: 3; fill: none; }
.hero-tree .edges path.pruned { stroke: #94a3b8; stroke-dasharray: 4 7; }
.hero-tree .node { fill: var(--accent); }
.hero-tree .node.pruned { fill: #cbd5e1; }
.hero-tree .node.best { fill: var(--best); stroke: #fff; stroke-width: 4; }
.hero-tree text { font: 600 13px var(--sans); fill: var(--ink); }
.hero-tree text.muted { fill: #94a3b8; font-weight: 500; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 44rem; margin-bottom: 2.2rem; }
.note { color: var(--muted); font-size: 0.95rem; max-width: 46rem; margin-top: 2rem; padding-left: 1rem; border-left: 3px solid var(--accent-soft); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 0; }
.card .btn { margin-top: 1.2rem; }
.card-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.3rem; }
.api { font-size: 0.8rem; }

/* Code */
.step { margin-top: 2rem; }
.code {
  background: var(--code-bg); color: var(--code-ink);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0;
  overflow-x: auto; font-size: 0.88rem; line-height: 1.6;
}
.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-small { font-size: 0.8rem; padding: 0.8rem 1rem; margin: 1rem 0 1.2rem; }

/* Demos */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.demo { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; }
.demo p { color: var(--muted); margin: 0; }
.demo .code { align-self: stretch; max-width: 100%; }

/* Downloads */
.table-wrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.downloads { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.downloads th, .downloads td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.downloads tr:last-child td { border-bottom: 0; }
.downloads th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-alt); }
.downloads td a { font-weight: 600; }
.downloads .file { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.downloads td:nth-child(2) { color: var(--muted); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Documentation */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.email { font-family: var(--mono); color: var(--ink) !important; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 3rem 0 1.5rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-sub { color: #94a3b8; }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.tagline { color: #94a3b8; margin: 0.6rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: flex-start; }
.footer-links a { color: #cbd5e1; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #1e293b; font-size: 0.85rem; color: #64748b; }

/* Small screens */
@media (max-width: 860px) {
  .menu { display: none; }
  .header-row .btn { margin-left: auto; }
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-tree { max-width: 360px; }
  .section { padding: 3.5rem 0; }
  .brand-sub { display: none; }
}
