/* nvrmore.evan.wtf. The palette is the app icon's (scripts/make_app_icon.py):
   its blue gradient for the band, its raven black for the TV bezel. The
   headings use the icon wordmark's face, the system rounded font. No web
   fonts: a font host would see every visitor (privacy.html). */

:root {
  --sky-top: #3a6cf2;
  --sky: #2350d9;
  --raven: #0b0b0c;
  --on-sky: #ffffff;
  --on-sky-soft: rgba(255, 255, 255, 0.86);
  --paper: #f3f5fa;
  --ink: #161a26;
  --muted: #586074;
  --rule: #dce1ec;
  --link: #2350d9;
  --code: #e6eaf4;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --wide: 1000px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1120;
    --ink: #e8ebf3;
    --muted: #a3aac0;
    --rule: #262c42;
    --link: #8eaeff;
    --code: #1c2236;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code);
  padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
strong { font-weight: 650; }

/* The band: the icon's blue, behind the nav and each page's title. */
.band {
  background: linear-gradient(180deg, var(--sky-top), var(--sky));
  color: var(--on-sky);
}
.band a, .hero .bar a { color: var(--on-sky); }
.bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  min-height: 76px;
}
.home { margin-right: auto; }
.home img { height: 46px; width: auto; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto;
  font: 600 16px/1.4 var(--round); }
.bar nav a { text-decoration: none; opacity: 0.88; padding: 4px 0; }
.bar nav a:hover { opacity: 1; }
.bar nav a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--on-sky); }

.title { max-width: var(--wide); margin: 0 auto; padding: 28px 20px 56px; }
.title h1 { font: 800 clamp(34px, 6vw, 54px)/1.08 var(--round); letter-spacing: -0.02em; margin: 0 0 14px; }
.title p { margin: 0; max-width: 40em; color: var(--on-sky-soft); font-size: 19px; }
.title p + p { margin-top: 8px; }
.title .lead { color: var(--on-sky); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; }

/* Home: the raven on the wordmark, then the TV. The band's blue stops
   halfway down the TV, so the screen sits on the edge of the page. */
.hero {
  background:
    linear-gradient(180deg, var(--sky-top), var(--sky)) top / 100% calc(100% - clamp(90px, 20vw, 230px)) no-repeat,
    var(--paper);
}
.hero h1 { margin: 0; }
.hero .mark { width: min(600px, 82vw); margin: 8px auto 0; }
.tagline { text-align: center; margin: 18px auto 0; padding: 0 20px; max-width: 30em;
  font: 600 clamp(20px, 2.8vw, 27px)/1.35 var(--round); color: var(--on-sky); }
.tv { max-width: 920px; margin: 44px auto 0; padding: 0 20px; }
.screen { border: clamp(6px, 1.1vw, 12px) solid var(--raven); border-radius: clamp(8px, 1.4vw, 16px);
  background: var(--raven); box-shadow: 0 24px 60px -22px rgba(8, 18, 60, 0.55); }
.screen img { border-radius: 3px; }
.tv figcaption, .shots figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.tv figcaption { text-align: center; }

/* Content. */
main { max-width: var(--wide); margin: 0 auto; padding: 48px 20px 24px; }
.prose { max-width: 680px; }
section { margin: 0 0 44px; }
h2 { font: 800 22px/1.25 var(--round); letter-spacing: -0.01em; margin: 0 0 12px; }
.prose h2 { margin-top: 40px; }
.prose > :first-child { margin-top: 0; }
p, li { margin: 0 0 12px; }
ul { margin: 0; padding-left: 1.2em; }
li::marker { color: var(--sky); }
@media (prefers-color-scheme: dark) { li::marker { color: var(--link); } }
.not li::marker { content: "– "; color: var(--muted); }

@media (min-width: 760px) {
  .points section { display: grid; grid-template-columns: 15rem minmax(0, 40rem); gap: 0 32px; }
  .points h2 { margin: 2px 0 0; }
}

.shots { display: grid; gap: 28px; margin: 8px 0 52px; }
@media (min-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } }
.shots img { border-radius: 10px; border: 1px solid var(--rule); }
.shots figure { margin: 0; }

/* Support: one question per row. */
dl { margin: 0; }
dt { font: 700 19px/1.35 var(--round); padding-top: 22px; border-top: 1px solid var(--rule); }
dt:first-child { border-top: 0; padding-top: 0; }
dd { margin: 8px 0 22px; }

footer { max-width: var(--wide); margin: 0 auto; padding: 20px 20px 48px; color: var(--muted); font-size: 15px; }
footer p { margin: 0; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 680px; }
