/* Paper and ink, like the icon. */
:root {
  --paper: #fdf8ec;
  --ink: #22252b;
  --muted: #5b5f68;
  --rule: #e4d8bb;
  --red: #b3302a;
  --red-dark: #8e2219;
  --table: #f6efdc;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 2rem 1.25rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, .tagline {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  line-height: 1.25;
}

header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
header h1 { margin: 0; font-size: 2.4rem; }
.tagline { margin: 0.2rem 0 0; color: var(--muted); font-size: 1.1rem; }

h2 { margin-top: 2.5rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--rule); font-size: 1.6rem; }
h3 { margin-top: 2rem; font-size: 1.25rem; }

a { color: var(--red-dark); }

.intro { font-size: 1.15rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-block;
  min-width: 15rem;
  text-align: center;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  background: var(--red);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover, .button:focus { background: var(--red-dark); }

.install li { margin: 0.4rem 0; }
.version, .note, footer { color: var(--muted); font-size: 0.95rem; }

/* How it works */
.steps figure { margin: 1.5rem 0; }
.steps figcaption { margin-bottom: 0.6rem; }
.n {
  display: inline-block;
  width: 1.6rem; height: 1.6rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.95rem/1.6rem system-ui, sans-serif;
  text-align: center;
}
.doc, .typed {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.doc {
  padding: 1rem 1.4rem;
  font: 0.92rem/1.35 Aptos, Calibri, "Segoe UI", system-ui, sans-serif;
}
.doc p { margin: 0; white-space: pre-wrap; tab-size: 4; }
.doc mark { padding: 0 0.1em; border-radius: 0.2em; background: #fde68a; color: inherit; }
.steps .table { overflow-x: auto; }
.steps table { margin: 0; background: #fff; font-family: Aptos, Calibri, "Segoe UI", system-ui, sans-serif; }
.steps th { background: #eef3ea; }
.typed {
  /* the top of the sheet, fading out where the letter goes on */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
}
.typed img { display: block; width: 100%; height: auto; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { padding: 0.45rem 0.6rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { background: var(--table); }

code { padding: 0.05rem 0.3rem; border-radius: 0.25rem; background: var(--table); font-size: 0.92em; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

@media (max-width: 30rem) {
  header img { width: 64px; height: 64px; }
  header h1 { font-size: 1.9rem; }
}
