/* Colors and type follow the Observable "air" and "ink" themes the figure sites use. */
:root {
  color-scheme: light dark;
  --fg: #1b1e23;
  --bg: #ffffff;
  --muted: color-mix(in srgb, #1b1e23 60%, #ffffff);
  --line: color-mix(in srgb, #1b1e23 14%, #ffffff);
  --link: #3b5fc0;
  --serif: "Source Serif 4", "Iowan Old Style", "Apple Garamond", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ebebeb;
    --bg: color-mix(in srgb, #ebebeb 4%, #212121);
    --muted: color-mix(in srgb, #ebebeb 60%, #212121);
    --line: color-mix(in srgb, #ebebeb 14%, #212121);
    --link: oklch(0.7126 0.2577 265.76);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 var(--serif);
}

main, footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-top: 48px; }

h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.byline {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
}

.byline a { color: inherit; }

.intro {
  max-width: 640px;
  margin: 0 0 32px;
}

.sites {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 24px;
}

.card {
  display: block;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

a.card:hover { border-color: var(--link); }
a.card:hover h2 { color: var(--link); }
a.card:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
}

.text { padding: 14px 18px 18px; }

.card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 2px;
}

.where {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--link);
  margin: 0 0 8px;
}

.soon .where { color: var(--muted); }

.text p:last-child { margin: 0; }

footer {
  padding-top: 40px;
  padding-bottom: 32px;
  font: 12px/1.5 var(--sans);
  color: var(--muted);
}

footer a { color: var(--link); }

/* The Privacy page */
.page { max-width: 640px; }
.page h1 { margin-bottom: 16px; }
.page a { color: var(--link); }
