@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/chivo-latin.4b1f3202.woff2') format('woff2');
}
@font-face {
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/chivo-mono-latin.aa138151.woff2') format('woff2');
}

:root {
  --field: #F3E39B;
  --field-deep: #EAD682;
  --ink: #1C1A15;
  --ink-soft: #4A4335;
  --mercury: #A3201A;
  --rule: #1C1A15;
  --hair: rgb(28 26 21 / .28);
  --display: "Chivo", "Arial Narrow", Arial, sans-serif;
  --text: "Chivo", Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --rail: clamp(0rem, 6vw, 5.5rem);
  --measure: 40rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-kerning: normal;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a.rich {
  text-decoration: underline;
  text-decoration-color: var(--mercury);
  text-decoration-thickness: .14em;
  text-underline-offset: .2em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
a.rich:hover { background: var(--ink); color: var(--field); text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--mercury); outline-offset: 3px; }

strong { font-weight: 700; }

.skip {
  position: absolute; left: -999px; top: .5rem; z-index: 20;
  background: var(--ink); color: var(--field); padding: .6rem 1rem;
}
.skip:focus { left: 1rem; }

.thermo {
  position: fixed; z-index: 5;
  left: calc(var(--rail) / 2 - 3px); top: 5.5rem; bottom: 2rem;
  width: 6px; border-radius: 3px;
  background: var(--field-deep);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.thermo::after {
  content: ""; position: absolute; left: 50%; bottom: -14px;
  width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--mercury);
}
.thermo-mercury {
  position: absolute; inset: auto 0 0 0; height: 100%;
  border-radius: 3px; background: var(--mercury);
  transform-origin: bottom; transform: scaleY(.04);
}
@supports (animation-timeline: scroll()) {
  .thermo-mercury { animation: rise linear both; animation-timeline: scroll(root); }
}
@keyframes rise { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .thermo-mercury { animation: none; } }
@media (max-width: 47.99rem) { .thermo { display: none; } }

.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter) .7rem calc(var(--gutter) + var(--rail));
  background: var(--ink); color: var(--field);
  font: 500 .875rem/1.2 var(--mono);
  letter-spacing: .02em;
}
.brand { text-decoration: none; font-weight: 700; }
.brand span { color: var(--field-deep); opacity: .75; }
.langs ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.langs a {
  display: inline-block; min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem;
  text-align: center; text-decoration: none; border: 1px solid rgb(243 227 155 / .35);
}
.langs a[aria-current="page"] { background: var(--field); color: var(--ink); border-color: var(--field); }
.langs a:hover { border-color: var(--field); }

main, .foot { padding-left: calc(var(--gutter) + var(--rail)); padding-right: var(--gutter); }

.cover {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 6px solid var(--rule);
}
.cover h1 {
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  font: 900 clamp(2.75rem, 10.5vw, 8.75rem)/.9 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 13ch;
}
.lead {
  display: grid; gap: 1rem;
  max-width: 62rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}
.lead p { margin: 0; }
@media (min-width: 60rem) {
  .lead { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); }
}

.toc { padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 6px solid var(--rule); }
.toc h2 {
  margin: 0 0 1rem;
  font: 600 .8125rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 22rem; column-gap: clamp(2rem, 4vw, 4rem); }
.toc li { break-inside: avoid; border-top: 1px solid var(--hair); }
.toc a {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .7rem 0; text-decoration: none;
}
.toc-title { transition: transform .2s var(--ease); }
.toc a:hover .toc-title { transform: translateX(.5rem); }
.toc a:hover .toc-title { text-decoration: underline; text-decoration-color: var(--mercury); text-decoration-thickness: .12em; text-underline-offset: .2em; }
.toc-num { font: 700 .9375rem/1 var(--mono); color: var(--mercury); flex: none; width: 2ch; }
.toc-title { font: 600 1.0625rem/1.3 var(--display); }

.entry {
  display: grid; gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 6px solid var(--rule);
}
.entry-head { display: grid; gap: .75rem; align-content: start; }
.entry-num {
  font: 700 clamp(2.5rem, 6vw, 4.5rem)/.85 var(--mono);
  color: var(--mercury);
  letter-spacing: -.04em;
}
.entry h2 {
  margin: 0;
  font: 800 clamp(1.75rem, 3.6vw, 2.875rem)/1.02 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.entry-text { max-width: var(--measure); }
.entry-text > :first-child { margin-top: 0; }
.entry-text p { margin: 0 0 1em; }
.entry-text h3 {
  margin: 2.25rem 0 .75rem; padding-top: .9rem;
  border-top: 2px solid var(--rule);
  font: 700 1.25rem/1.2 var(--display);
}
.entry-text ul, .entry-text ol { margin: 0 0 1.25em; padding: 0; list-style: none; }
.entry-text li {
  position: relative; padding: .55rem 0 .55rem 1.75rem;
  border-top: 1px solid var(--hair);
}
.entry-text li:last-child { border-bottom: 1px solid var(--hair); }
.entry-text li::before {
  content: ""; position: absolute; left: .2rem; top: 1.05rem;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--mercury);
}
@media (min-width: 60rem) {
  .entry { grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr); }
  .entry-head { position: sticky; top: 5rem; align-self: start; }
}

.questions { display: grid; gap: 0; }
@media (min-width: 60rem) {
  .entry--faq { grid-template-columns: 1fr; }
  .entry--faq .entry-head { position: static; }
  .questions { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); }
}
.question { border-top: 2px solid var(--rule); }
.question summary {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1rem 0; cursor: pointer; list-style: none;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+"; margin-left: auto; flex: none;
  font: 700 1.5rem/1 var(--mono); color: var(--mercury);
  transition: transform .25s var(--ease);
}
.question[open] summary::after { transform: rotate(45deg); }
.question summary:focus-visible { outline: 3px solid var(--mercury); outline-offset: 2px; }
.q-num { font: 700 .9375rem/1 var(--mono); color: var(--mercury); flex: none; }
.question h3 { margin: 0; font: 700 1.1875rem/1.25 var(--display); }
.question p { margin: 0 0 1.25rem; padding-left: calc(2ch + 1rem); max-width: var(--measure); }

.foot {
  background: var(--ink); color: var(--field);
  padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 2rem;
  font-size: .8125rem; line-height: 1.6;
}
.privacy { max-width: 46rem; }
.privacy h2 { margin: 0 0 .5rem; font: 600 .8125rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.privacy p { margin: 0 0 .75em; color: rgb(243 227 155 / .82); }
.colophon { margin: 2rem 0 0; font: 500 .8125rem/1 var(--mono); }
.colophon a { display: inline-block; padding: .75rem 0; }
.foot a:focus-visible { outline-color: var(--field); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; }
th, td { border: 1px solid var(--hair); padding: .4rem .6rem; text-align: left; }
