/* unpatched. White paper, black ink, red only for "fix today".
   One family: Atkinson Hyperlegible (Braille Institute), Next for text, Mono for code.
   Fonts are self-hosted: this page requests nothing from anyone else. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-italic-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("fonts/atkinson-mono-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --ink-faint: #6b6b6b;
  --rule: #dadada;
  --wash: #f4f4f2;
  --red: #c8102e;
  --gh-border: #d0d7de;
  --gh-head: #f6f8fa;
  --gh-green: #1f883d;
  --text: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f0f; --ink: #ececec; --ink-soft: #c2c2c2; --ink-faint: #8d8d8d;
    --rule: #2c2c2c; --wash: #181818; --red: #ff5c64;
    --gh-border: #30363d; --gh-head: #161b22; --gh-green: #2ea043;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.62 var(--text);
 
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
.mono, pre, code { font-family: var(--mono); font-size: .84em; }
em { font-style: italic; }
q { quotes: "“" "”"; font-style: italic; }

/* Masthead: a rule, a name, a rule. */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin: 0 auto; max-width: 1240px; padding: 22px 32px 14px;
  border-top: 5px solid var(--ink);
  font-family: var(--text);
}
.masthead::after { content: ""; flex-basis: 100%; border-bottom: 1px solid var(--ink); margin-top: 10px; }
.name { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1 var(--text); letter-spacing: -.03em; text-decoration: none; }
.name img { border-radius: 6px; }
.masthead nav { display: flex; gap: 22px; font-size: 15.5px; font-weight: 500; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }

h1, h2 { font-family: var(--text); font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; font-weight: 750; letter-spacing: -.02em; margin: 0 0 22px; }
h2 { font-size: 28px; line-height: 1.15; margin: 0 0 18px; }

/* Opening: text on the left, the real issue on the right, wider. */
.opening { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding-top: 64px; }
.opening-text p { color: var(--ink-soft); margin: 0 0 18px; max-width: 32em; }
.actions { margin-top: 30px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; }
.button {
  display: inline-block; padding: 13px 20px; border-radius: 3px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 16px/1 var(--text);
}
.button:hover { background: var(--red); color: #fff; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.quiet-link { font: 500 16px/1 var(--text); color: var(--ink-soft); }

/* A faithful GitHub issue, because that is what the product makes. */
.issue { margin: 6px 0 0; font-family: var(--text); font-size: 15px; line-height: 1.5; }
.issue-title { display: flex; gap: 12px; align-items: flex-start; }
.issue-title h2 { font: 500 25px/1.25 var(--text); letter-spacing: -.01em; margin: 0; }
.state { flex: none; margin-top: 3px; padding: 4px 12px; border-radius: 2em; background: var(--gh-green); color: #fff; font-weight: 600; font-size: 14px; }
.issue-meta { color: var(--ink-faint); font-size: 14px; margin: 10px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gh-border); }
.label { display: inline-block; padding: 0 8px; margin-right: 6px; border-radius: 2em; border: 1px solid var(--gh-border); font-weight: 600; font-size: 12px; line-height: 20px; color: var(--ink-soft); }
.label.l-now { background: var(--red); border-color: var(--red); color: #fff; }
.issue-body { border: 1px solid var(--gh-border); border-radius: 6px; padding: 18px 20px 6px; }
.issue-body p { margin: 0 0 14px; }
.issue-body h3 { font: 600 17px/1.3 var(--text); margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gh-border); color: var(--red); }
.issue-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.issue-body td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--gh-border); vertical-align: top; }
.issue-body td.mono { white-space: nowrap; font-size: 13px; }
.issue-body td:last-child { color: var(--ink-faint); }
.issue-body .more { color: var(--ink-faint); margin-top: 12px; }
.issue figcaption { font: italic 14.5px/1.5 var(--text); color: var(--ink-faint); margin-top: 12px; }

/* Facts: three columns divided by rules, like a page of a newspaper. */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 36px 0; }
.facts p { margin: 0; padding: 0 28px; font-size: 18px; color: var(--ink-soft); border-left: 1px solid var(--rule); }
.facts p:first-child { padding-left: 0; border-left: 0; }
.facts b { font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

/* Prose in two columns on wide screens. */
.explain .columns { columns: 2 340px; column-gap: 56px; max-width: 1040px; }
.explain .columns p { margin: 0 0 18px; break-inside: avoid-column; }
.now { color: var(--red); font-weight: 700; }

.setup > p { max-width: 40em; color: var(--ink-soft); }
.files { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin: 26px 0 22px; max-width: 1100px; }
.files pre {
  margin: 0; padding: 18px 20px; background: var(--wash); border-radius: 4px;
  font-size: 13px; line-height: 1.7; overflow-x: auto; color: var(--ink);
}
.files .file { display: block; font: 700 13px/1 var(--text); margin-bottom: 12px; color: var(--ink-faint); }
.aside { color: var(--ink-soft); max-width: 44em; }

.not p { max-width: 44em; color: var(--ink-soft); margin: 0; }

.colophon { max-width: 1240px; margin: 24px auto 0; padding: 22px 32px 48px; border-top: 5px solid var(--ink); font: 400 15px/1.6 var(--text); color: var(--ink-faint); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.colophon p { margin: 0; max-width: 44em; }

@media (max-width: 960px) {
  .opening { grid-template-columns: 1fr; gap: 44px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .facts p { padding: 0; border-left: 0; }
  .files { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17.5px; }
  .masthead, main, .colophon { padding-left: 16px; padding-right: 16px; }
  .issue-title h2 { font-size: 21px; }
  .issue-body td:last-child { display: none; }
}
