/* chenle02.github.io: one evidence page. Three voices: the narrator (Source Sans 3), the printed paper
   (the Computer Modern of KaTeX) and Lean (a monospace with the symbols Lean uses). */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Showcase Lean Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/leanmono-regular.woff2") format("woff2"); }

:root {
  --paper: #fbfcfe; --sheet: #ffffff; --tint: #eef3f8; --ink: #17202c; --soft: #4a5a6d; --rule: #cdd8e3;
  --navy: #14365d; --teal: #0f7c7a; --amber: #8a5a00; --rust: #a5382c;
  --measure: 36rem; --wide: 66rem;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Showcase Lean Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --print: KaTeX_Main, "Latin Modern Roman", "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f161f; --sheet: #151e29; --tint: #19232f; --ink: #e7ecf2; --soft: #a3b1c2; --rule: #2e3c4c;
    --navy: #a9c6ea; --teal: #62cbc5; --amber: #e2b45f; --rust: #f0907f;
  }
}
:root[data-theme="dark"] {
  --paper: #0f161f; --sheet: #151e29; --tint: #19232f; --ink: #e7ecf2; --soft: #a3b1c2; --rule: #2e3c4c;
  --navy: #a9c6ea; --teal: #62cbc5; --amber: #e2b45f; --rust: #f0907f;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
a { color: var(--navy); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: 0.4rem 0.7rem; z-index: 2; }

.frame { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose p, .prose ul { margin: 0 0 1rem; }

/* top line */
.top { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; align-items: baseline;
  padding-top: 1.4rem; padding-bottom: 1.1rem; font-size: 0.92rem; }
.top .who { font-weight: 700; font-size: 1.05rem; }
.top .who span { font-weight: 400; color: var(--soft); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--teal); text-decoration: underline; }

/* opening */
.opening { padding-top: 2rem; padding-bottom: 1.5rem; }
h1 { font-size: clamp(2.1rem, 1.15rem + 3.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700;
  margin: 0 0 1.1rem; max-width: 17ch; text-wrap: balance; }
.lede { font-size: 1.22rem; line-height: 1.45; max-width: 33rem; margin: 0; }

h2 { font-size: 1.62rem; line-height: 1.18; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 0.9rem; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; margin: 0 0 0.3rem; }
section { padding: 2.4rem 0; }
section + section { border-top: 1px solid var(--rule); }
.opening + section, .exhibit-wrap + section { border-top: 0; }

/* the exhibit: what was printed, what a reader can try, what Lean proved */
.exhibit-wrap { padding-top: 0.6rem; padding-bottom: 2.4rem; }
.exhibit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 1.5rem 2.6rem; align-items: start; }
.printed, .lean { grid-column: 1 / -1; }
.curve { display: none; }
.js .curve { display: block; }
:root:not(.js) .try { grid-column: 1 / -1; }
.printed .narrow { display: none; }
.from { font-size: 0.86rem; color: var(--soft); margin: 0 0 0.55rem; }
.from a { color: inherit; }
.printed { background: var(--sheet); border: 1px solid var(--rule); padding: 1.3rem 1.5rem 1.1rem; }
.printed .tex { font-family: var(--print); font-size: 1.12rem; margin: 0 0 0.2rem; }
.printed .katex-display { margin: 0.7rem 0 0.8rem; overflow-x: auto; overflow-y: hidden; padding: 0.2rem 0; }
.printed .katex { font-size: 1.08em; }
.printed .note { font-size: 0.86rem; color: var(--soft); margin: 0.5rem 0 0; }
.term-odd, .range-printed { transition: color 160ms ease; }
.exhibit[data-state="differ"] .term-odd, .exhibit[data-state="differ"] .range-printed { color: var(--rust); }

.try .controls { display: none; }
.js .try .controls { display: block; }
.slider { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 3.6rem; gap: 0.7rem; align-items: center; margin: 0 0 0.35rem; }
.slider label .katex { font-size: 1.05em; }
.slider output { font-variant-numeric: tabular-nums; text-align: right; }
input[type="range"] { width: 100%; accent-color: var(--teal); margin: 0; }
.exhibit[data-state="differ"] input#b { accent-color: var(--rust); }
.presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.9rem; }
button { font: inherit; font-size: 0.9rem; color: var(--navy); background: transparent; border: 1px solid var(--rule);
  padding: 0.28rem 0.7rem; border-radius: 999px; cursor: pointer; }
button:hover { border-color: var(--teal); color: var(--teal); }

.verdict { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.4rem 1.1rem; align-items: center; margin: 0.9rem 0 0.7rem; }
.sign { position: relative; width: 3.3rem; height: 3rem; color: var(--teal); justify-self: center; }
.sign::before, .sign::after { content: ""; position: absolute; left: 0; right: 0; height: 0.3rem; background: currentColor; border-radius: 0.15rem; }
.sign::before { top: 0.85rem; }
.sign::after { bottom: 0.85rem; }
.sign .bar { position: absolute; left: 50%; top: 50%; width: 0.3rem; height: 3.3rem; background: currentColor; border-radius: 0.15rem;
  transform: translate(-50%, -50%) rotate(26deg) scaleY(0); transform-origin: center; transition: transform 180ms ease; }
.exhibit[data-state="differ"] .sign { color: var(--rust); }
.exhibit[data-state="differ"] .sign .bar { transform: translate(-50%, -50%) rotate(26deg) scaleY(1); }
.values { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.9rem; font-variant-numeric: tabular-nums; }
.values dt { color: var(--soft); font-size: 0.92rem; }
.values dd { margin: 0; text-align: right; font-weight: 600; }
.verdict-text { grid-column: 1 / -1; margin: 0.45rem 0 0; font-weight: 600; color: var(--teal); }
.exhibit[data-state="differ"] .verdict-text { color: var(--rust); }
.plot { width: 100%; height: auto; display: block; margin-top: 0.4rem; }
.plot text { font-family: var(--sans); font-size: 12px; fill: var(--soft); }
.plot .axis { stroke: var(--rule); stroke-width: 1; }
.plot .agree { stroke: var(--teal); stroke-width: 3; fill: none; stroke-linecap: round; }
.plot .differ { stroke: var(--rust); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.plot .dot { fill: var(--sheet); stroke-width: 2.5; stroke: var(--teal); }
.exhibit[data-state="differ"] .plot .dot { stroke: var(--rust); }
.plot .excluded { fill: var(--tint); }
.static { font-size: 0.92rem; color: var(--soft); margin: 0.6rem 0 0; }

.lean { grid-column: 1 / -1; }
pre.code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; background: var(--tint); margin: 0 0 0.7rem;
  padding: 0.9rem 1.1rem; overflow-x: auto; border-left: 3px solid var(--rule); transition: border-color 160ms ease, opacity 160ms ease; tab-size: 2; }
pre.code .kw { color: var(--navy); font-weight: 400; }
pre.code .hyp { color: var(--teal); }
pre.code .neg { color: var(--rust); }
.exhibit[data-covers="yes"] #lean-identity { border-left-color: var(--teal); }
.exhibit[data-covers="no"] #lean-identity { opacity: 0.55; }
.exhibit[data-refuted="yes"] #lean-refuted { border-left-color: var(--rust); }
.lean .note { font-size: 0.92rem; color: var(--soft); margin: 0; max-width: var(--measure); }

/* the ledger: what is claimed, how far it has been checked, where to check it */
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: 0.92rem; color: var(--soft); }
.mark { display: inline-block; width: 0.72rem; height: 0.72rem; margin-right: 0.45rem; vertical-align: -0.02rem; border: 2px solid currentColor; }
.mark.machine { background: var(--teal); border-color: var(--teal); }
.mark.peer { background: var(--navy); border-color: var(--navy); border-radius: 50%; }
.mark.ai { border-color: var(--amber); background: linear-gradient(135deg, var(--amber) 50%, transparent 50%); }
.mark.open { border-color: var(--soft); background: transparent; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger > li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.4rem 2.4rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.ledger > li:first-child { border-top: 0; padding-top: 0.2rem; }
.ledger p { margin: 0 0 0.5rem; }
.ledger .where { font-size: 0.95rem; margin: 0.2rem 0 0; }
.checks { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.checks li { padding-left: 1.3rem; text-indent: -1.3rem; margin: 0 0 0.4rem; }
.checks li .mark { margin-right: 0.58rem; text-indent: 0; }

.aside { font-size: 0.92rem; color: var(--soft); margin: 0.2rem 0 0; }
ul.plain.papers { font-size: 0.95rem; list-style: disc; }
ul.plain.dated { list-style: none; padding-left: 0; }
ul.dated li { margin: 0 0 0.8rem; }
ul.dated time { display: block; font-size: 0.86rem; color: var(--soft); }
ol.plain, ul.plain { margin: 0; padding-left: 1.2rem; }
ol.plain li, ul.plain li { margin: 0 0 0.45rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2.4rem; }
footer { border-top: 1px solid var(--rule); padding: 1.6rem 0 2.6rem; font-size: 0.9rem; color: var(--soft); }
footer p { margin: 0 0 0.4rem; max-width: var(--measure); }

@media (max-width: 54rem) {
  .exhibit, .ledger > li, .cols { grid-template-columns: minmax(0, 1fr); }
  .printed .wide { display: none; }
  .printed .narrow { display: block; }
  .plot text { font-size: 17px; }
  .printed { padding: 1.1rem 1rem 0.9rem; }
  section { padding: 2rem 0; }
  pre.code { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sign .bar, .term-odd, .range-printed, pre.code { transition: none; }
}
