:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --raised: #1e1e1e;
  --line: #2a2a2a;
  --fg: #ffffff;
  --muted: #a6a6a6;
  --accent: #2fafff;
  --accent-ink: #000000;
  --green: #44bc44;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px -24px rgba(47, 175, 255, 0.25);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f2f2f2;
    --raised: #e0e0e0;
    --line: #d0d0d0;
    --fg: #000000;
    --muted: #595959;
    --accent: #0031a9;
    --accent-ink: #ffffff;
    --green: #006800;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 60px -28px rgba(0, 49, 169, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Cantarell, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.4rem;
  margin: 3.5rem 0 0.9rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 1rem;
}

code,
kbd,
pre {
  font-family: ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  overflow-wrap: normal;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  text-align: center;
  line-height: 1.5;
}

/* masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 16px;
}

.brand {
  display: flex;
  line-height: 0;
}

.brand img {
  width: 92px;
  height: auto;
}

.on-light {
  display: none;
}

@media (prefers-color-scheme: light) {
  .on-dark {
    display: none;
  }
  .on-light {
    display: block;
  }
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--fg);
}

.nav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* page */

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}

.page > p,
.page > ol,
.page > ul:not(.cards),
.page > dl,
.page > pre,
.page > h2,
.page > .note,
.page > .download,
.page > .scroll {
  max-width: 44rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.crumb {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--muted);
  margin-top: -0.25rem;
}

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

.aside {
  color: var(--muted);
  font-size: 0.95rem;
}

/* hero */

.hero {
  position: relative;
  padding: 3rem 0 2.5rem;
}

.hero-mark {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  width: clamp(9rem, 22vw, 15rem);
  opacity: 0.9;
}

.hero-mark img {
  width: 100%;
}

@media (max-width: 52rem) {
  .hero-mark {
    position: static;
    width: 6rem;
    margin-bottom: 1.5rem;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4rem);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3rem;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
}

.button span {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.8;
}

.button:hover {
  filter: brightness(1.1);
}

.button.quiet {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.quiet:hover {
  box-shadow: inset 0 0 0 1px var(--muted);
  filter: none;
}

/* screenshots */

.shot {
  margin: 1.5rem 0 2rem;
}

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-shot {
  margin-top: 0;
}

/* edition cards */

.cards {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.card a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.6rem 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card img {
  display: block;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--raised);
}

.card b,
.card span {
  padding: 0 0.4rem;
}

.card span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

/* every-edition points */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.points > div {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.points p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* edition pages */

.facts {
  padding-left: 1.2rem;
}

.facts li {
  margin-bottom: 0.55rem;
}

.facts li::marker {
  color: var(--accent);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 2rem;
}

.download.pending {
  border-left: 3px solid var(--muted);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
}

.download.pending p {
  margin: 0;
}

.sum {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* lists, notes and tables */

.steps {
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.faq dt {
  font-weight: 600;
  margin-top: 1.1rem;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.scroll {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.page > .scroll:has(.downloads) {
  max-width: none;
}

th,
td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
}

/* footer */

.footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0 0 0.4rem;
}

.footer a {
  color: var(--muted);
}

.downloads td:last-child {
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .downloads th:nth-child(2),
  .downloads td:nth-child(2) {
    display: none;
  }
}
