/* Dark on purpose: fifteen screenshots carry the page, and a dark ground is
   what lets them be the only bright thing on it. */
@font-face {
  font-family: Instrument;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/assets/fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #e8ecf3;
  --dim: #8b97ab;
  --faint: #5a6678;
  --ground: #0a0c10;
  --raised: #12161d;
  --line: #1e242e;
  --accent: #6ea8fe;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 Instrument, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* A quiet field of dots behind the masthead, so the first screen is not a
   flat rectangle before the screenshots begin. */
.masthead {
  padding: 104px 0 64px;
  background-image: radial-gradient(#1b2431 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { position: relative; }
.eyebrow {
  font: 11px/1 Plex, monospace;
  letter-spacing: 2.4px;
  color: var(--faint);
  text-transform: uppercase;
  margin: 0 0 22px;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -2.4px;
  line-height: 1.04;
  max-width: 17ch;
}
h1 span { color: var(--dim); }
.lede {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--dim);
  font-size: 17px;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}
.counts div {
  font: 600 30px/1 Instrument, sans-serif;
  letter-spacing: -1px;
}
.counts span {
  display: block;
  margin-top: 7px;
  font: 11px/1 Plex, monospace;
  letter-spacing: 1.4px;
  color: var(--faint);
  text-transform: uppercase;
}

section { padding: 72px 0 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
}
h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.section-head b {
  font: 11px/1 Plex, monospace;
  color: var(--faint);
  font-weight: 400;
}
.section-head i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-visible {
  border-color: #33414f;
  transform: translateY(-3px);
  outline: none;
}
.card:focus-visible { border-color: var(--accent); }

.shot {
  display: block;
  width: 100%;
  /* Without height:auto the width/height attributes on the img win and
     aspect-ratio never gets to decide anything. */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0d1117;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s;
}
.card:hover .shot { opacity: 0.92; }

.meta { padding: 17px 19px 20px; }
.meta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.meta p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.55;
}
.meta .domain {
  display: block;
  margin-top: 13px;
  font: 11px/1 Plex, monospace;
  color: var(--faint);
  letter-spacing: 0.3px;
}
.card:hover .domain { color: var(--accent); }

footer {
  margin-top: 88px;
  padding: 34px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
}
footer a {
  color: var(--dim);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
footer a:hover { color: var(--accent); }
footer .spacer { flex: 1; }

@media (max-width: 620px) {
  .masthead { padding: 68px 0 44px; }
  .wrap { padding: 0 18px; }
  .counts { gap: 24px; }
  section { padding: 54px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .shot { transition: none; }
  .card:hover { transform: none; }
}
