/* anycube: the site around the application. What is here is the site's
   own: the words in the bar, the page under the application, its numbers. */

.tagline {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
em {
  font-style: normal;
  background: linear-gradient(90deg, var(--d), var(--l) 35%, var(--r) 65%, var(--b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: light) {
  em {
    background: linear-gradient(90deg, var(--l), var(--r) 45%, var(--b));
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.top nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.top nav a {
  text-decoration: none;
  padding: 6px 0;
}
.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.more {
  padding-top: clamp(28px, 5vw, 56px);
}
.about + .about {
  margin-top: clamp(36px, 6vw, 72px);
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 760;
}
.lede {
  margin: 0 0 clamp(24px, 4vw, 40px);
  max-width: 64ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--ink-2);
}
.lede.small {
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.lede.wide {
  max-width: none;
}
.source {
  margin: 0 0 16px;
  font-size: 0.98rem;
  font-weight: 600;
}
.source a::after {
  content: " \2197";
}
footer span.plain {
  font-family: inherit;
  color: inherit;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* Four cards on one row, equal in width and height; two by two on a tablet, stacked on a phone. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 999px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: var(--panel);
}
.cards article:nth-child(1) { border-top: 3px solid var(--d); }
.cards article:nth-child(2) { border-top: 3px solid var(--l); }
.cards article:nth-child(3) { border-top: 3px solid var(--r); }
.cards article:nth-child(4) { border-top: 3px solid var(--f); }
.cards article:nth-child(5) { border-top: 3px solid var(--b); }
.cards article:nth-child(6) { border-top: 3px solid var(--u); }
h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.cards p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  white-space: nowrap;
}
th,
td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
thead th {
  font: 600 0.7rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
thead th[colspan] {
  text-align: center;
  border-bottom-color: transparent;
  padding-bottom: 2px;
}
tbody th {
  font: 600 0.93rem var(--mono);
}
.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
td.best {
  font-weight: 700;
  color: var(--ink);
}

footer {
  margin-top: clamp(36px, 6vw, 72px);
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}
footer p {
  margin: 0;
}
footer span {
  font-family: var(--mono);
  color: var(--ink-2);
}

.notfound {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}


.more {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Two halves of one long table, side by side where there is room. */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}
