/* Crossfoot: Bauhaus. Paper, ink, yellow, red, cobalt. */

:root {
  --paper: #F3EFE6;
  --ink: #141414;
  --yellow: #F0B915;
  --red: #D0271C;
  --blue: #0F3FA6;
  --on-blue: #F3EFE6;
  --on-yellow: #141414;
  --on-ink: #F3EFE6;
  --muted: #5C5A55;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414;
    --ink: #F3EFE6;
    --blue: #2A5BD7;
    --on-ink: #141414;
    --muted: #A8A49B;
  }
}
:root[data-theme="dark"] {
  --paper: #141414;
  --ink: #F3EFE6;
  --blue: #2A5BD7;
  --on-ink: #141414;
  --muted: #A8A49B;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, pre:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
h1, h2, h3, p, dl, dd, dt, figure, pre { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 20px;
  display: grid;
  gap: 10px;
}

/* Masthead */
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mast a { text-decoration: none; }
.mast a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.mast .mark {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--red);
  margin-right: 10px;
  vertical-align: -1px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 14px;
  align-items: stretch;
}
.hero .word {
  border: 3px solid var(--ink);
  padding: 26px 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 8.9vw - 18px, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  text-wrap: balance;
}
.hero h1 .o {
  color: var(--red);
}
.hero .lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.4;
  max-width: 34em;
}
.hero .lead b { font-weight: 600; }
.hero .art { aspect-ratio: 480 / 440; align-self: stretch; }
.hero .comp {
  display: block;
  width: 100%;
  height: 100%;
}
.comp .yellow { fill: var(--yellow); }
.comp .red { fill: var(--red); }
.comp .blue { fill: var(--blue); }
.comp .ink { fill: var(--ink); }

/* Section labels */
.label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 22px; height: 22px;
  background: var(--yellow);
  flex: none;
}
.label.red::before { background: var(--red); }
.label.blue::before { background: var(--blue); }

/* What it does */
.what {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.block {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.block h2, .block h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.block p { font-size: 15px; max-width: 42em; }
.block.blue { background: var(--blue); color: var(--on-blue); grid-column: 1 / 3; }
.block.paper { border: 3px solid var(--ink); }
.block.yellow { background: var(--yellow); color: var(--on-yellow); grid-column: 2 / 4; }
.block.blue .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.block.blue .cols p { font-size: 14px; line-height: 1.45; }
.block.ink { background: var(--ink); color: var(--on-ink); }
.block .small { font-size: 14px; line-height: 1.4; }
.block .small code { font-family: var(--mono); font-size: 13px; }

.verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin-top: 6px;
  font-size: 14px;
}
.verdicts div { display: grid; grid-template-columns: auto; }
.verdicts dt { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.verdicts dd { line-height: 1.35; }
.verdicts dd i { font-style: normal; font-weight: 600; }

/* Survey */
.survey {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 14px;
}
.field {
  border: 3px solid var(--ink);
  padding: 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 476px;
}
.field .c-blue { fill: var(--blue); }
.field .c-red { fill: var(--red); }
.field .c-ink { fill: var(--ink); }
.field .c-hollow { fill: none; stroke: var(--ink); stroke-width: 4; }
.legend {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}
.legend div { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.legend .k { width: 18px; height: 18px; margin-top: 2px; }
.legend .k.blue { background: var(--blue); }
.legend .k.red { background: var(--red); }
.legend .k.redink { background: var(--red); position: relative; }
.legend .k.redink::after { content: ""; position: absolute; inset: 5px; background: var(--ink); }
.legend .k.hollow { border: 3px solid var(--ink); }
.legend .note { color: var(--muted); }

.numbers {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.stat {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat .n {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 14px; line-height: 1.3; }
.stat.blue { background: var(--blue); color: var(--on-blue); }
.stat.red { background: var(--red); color: #F3EFE6; }
.stat.yellow { background: var(--yellow); color: var(--on-yellow); }
.stat.red .l, .stat.blue .l { opacity: 0.92; }

.cases {
  border: 3px solid var(--ink);
  padding: 20px 22px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.cases p { font-size: 15px; max-width: 52em; }
.cases .def b { font-weight: 600; }
.cases .tbl { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
th, td { text-align: left; padding: 7px 18px 7px 0; border-bottom: 2px solid var(--ink); vertical-align: top; }
th { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
td.num, th.num { text-align: right; white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
td b { font-weight: 600; }
tbody tr:last-child td { border-bottom: 3px solid var(--ink); }

/* Run it */
.run {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 14px;
}
.run .aside {
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.run .aside h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
}
.run .aside code { font-family: var(--mono); font-size: 13px; }
.run pre {
  background: var(--ink);
  color: var(--on-ink);
  padding: 22px 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0;
}
.run pre .c { opacity: 0.55; }

/* Footer */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: center;
  border-top: 3px solid var(--ink);
  padding-top: 12px;
  font-size: 14px;
}
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .links a { text-decoration: none; font-weight: 600; }
.foot .links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot .built { color: var(--muted); }
.foot .built .sq { display: inline-block; width: 10px; height: 10px; background: var(--blue); margin-right: 8px; vertical-align: 0; }

@media (max-width: 1200px) {
  .hero .word { padding: 22px 24px; }
  .block { padding: 16px 18px 18px; }
  .block h2, .block h3 { font-size: 17px; }
  .field, .cases { padding: 16px 18px; }
  .stat { padding: 14px 16px 16px; }
  table { font-size: 14px; }
  th, td { padding-right: 12px; }
  .run .aside { padding: 20px 22px; }
  .run pre { padding: 18px 22px; }
}
@media (max-width: 900px) {
  .what { grid-template-columns: 1fr; }
  .block.blue, .block.yellow { grid-column: auto; }
  .block.blue .cols { grid-template-columns: 1fr; }
  .survey { grid-template-columns: 1fr; }
  .run { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page { padding: 0 16px 28px; gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero .word { padding: 24px 22px; }
  .hero h1 { font-size: 12vw; }
  .verdicts { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .mast a, .foot a { transition: text-decoration-color 120ms; }
}
