/* confidencebench.com — "the benchmark"
   Family system shared with mattffrench.com, madridaibuilders.com and madrilingo.com:
   Inter body, JetBrains Mono labels, one display face + one accent per site.
   This site: Source Serif 4 display · calibration teal. */

:root {
  --bg: #f6f7f6;
  --surface: #ffffff;
  --ink: #141716;
  --muted: #58605d;
  --line: #dfe3e1;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1ef;
  --row-alt: #fafbfa;
  --human: #fff6e0;
  --human-ink: #8a5a00;
  --right: #15803d;
  --wrong: #b42318;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1040px;
  --gutter: 16px;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1110;
    --surface: #161a19;
    --ink: #e9ecea;
    --muted: #9ea7a3;
    --line: #29302d;
    --accent: #5eead4;
    --accent-ink: #0e1110;
    --accent-soft: #14302c;
    --row-alt: #131716;
    --human: #2e2410;
    --human-ink: #f5c86a;
    --right: #4ade80;
    --wrong: #f87171;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: var(--gutter); background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* Labels */
.eyebrow {
  font: 500 12px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 44ch; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .hero-grid { grid-template-columns: 1fr 300px; gap: 56px; } .hero { padding-top: 88px; padding-bottom: 72px; } }
.hero h1 { margin-bottom: 20px; }
.hero-img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 799px) { .hero-img { max-width: 220px; } }

.badge { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 15px/1 var(--body); text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { section { padding: 80px 0; } }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
@media (min-width: 800px) { .section-head { grid-template-columns: 300px 1fr; gap: 56px; align-items: baseline; } }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }

/* Abstract */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }



.accepted { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin-top: 28px; max-width: 68ch; }
.accepted h3 { margin-bottom: 6px; }
.accepted p { margin: 0; color: var(--muted); }

/* Leaderboard */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.board { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.board caption { text-align: left; padding: 14px 16px; font: 400 13px/1.5 var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); caption-side: top; }
.board th, .board td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board thead th { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
.board tbody tr:nth-child(even) { background: var(--row-alt); }
.board tbody tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; }
.board td.pos { font: 400 13px/1 var(--mono); color: var(--muted); width: 1%; }
.board td.model { font-weight: 600; }
.board td.co { color: var(--muted); }
.board td.score { font-weight: 600; }
.board tr.human td { background: var(--human); }
.board tr.human td.model::after { content: "baseline"; margin-left: 8px; font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--human-ink); border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; vertical-align: 1px; }
.board .co-m { display: none; }
@media (max-width: 599px) {
  .board { min-width: 0; font-size: 14px; }
  .board th, .board td { padding: 10px 10px; }
  .board th:first-child, .board td:first-child { padding-left: 14px; }
  .board th:last-child, .board td:last-child { padding-right: 14px; }
  .board .co { display: none; }
  .board .num, .board th:first-child { width: 1%; }
  .board td.model { white-space: normal; min-width: 9em; }
  .board thead th { font-size: 10px; letter-spacing: 0.03em; }
  .board .co-m { display: block; font: 400 12px/1.4 var(--body); color: var(--muted); margin-top: 2px; }
  .board tr.human td.model::after { display: inline-block; margin: 4px 0 0; }
}
.board-foot { font: 400 13px/1.5 var(--mono); color: var(--muted); margin-top: 14px; }

/* Examples */
.examples { display: grid; gap: 16px; }
@media (min-width: 800px) { .examples { grid-template-columns: 1fr 1fr; } }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.q .eyebrow { margin: 0; color: var(--accent); }
.q p { margin: 0; }
.q .ask { font-weight: 600; }
.opts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.opts li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; color: var(--muted); }
.opts li::before { font: 600 13px/1 var(--mono); flex: none; width: 1em; }
.opts li.no::before { content: "\2717"; color: var(--wrong); }
.opts li.yes { color: var(--ink); font-weight: 600; border-color: color-mix(in srgb, var(--right) 45%, var(--line)); background: color-mix(in srgb, var(--right) 8%, var(--surface)); }
.opts li.yes::before { content: "\2713"; color: var(--right); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Contact */
.contact h2 { margin-bottom: 14px; }
.contact p { color: var(--muted); max-width: 60ch; }
.contact .mail { display: inline-block; font: 600 clamp(22px, 4vw, 32px)/1.2 var(--display); color: var(--accent); word-break: break-word; margin: 6px 0 24px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: 64px; padding-bottom: 64px; }
