/* Proof sheet for html-pdf.
   Zinc #D5DDE4, Sheet #F4F7F8, Ink #142026,
   Crop #0E5C70, Sentinel #E2B340, Graphite #3D4A52. */

@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/anybody-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400i.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/martian-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zinc: #d5dde4;
  --sheet: #f4f7f8;
  --ink: #142026;
  --crop: #0e5c70;
  --sentinel: #e2b340;
  --graphite: #3d4a52;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Martian Mono", "Courier New", monospace;
  --rule: rgb(61 74 82 / 28%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zinc);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  font-synthesis: none;
  line-height: 1.5;
  padding: 2.75rem 3rem 2.5rem;
}

::selection {
  background: var(--sentinel);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--crop);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 6;
  background: var(--ink);
  color: var(--sheet);
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.plate-marks {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  color: var(--crop);
}

.mark {
  position: absolute;
  width: 22px;
  height: 22px;
}

.mark-tl { top: 12px; left: 12px; }
.mark-tr { top: 12px; right: 12px; }
.mark-bl { bottom: 12px; left: 12px; }
.mark-br { bottom: 12px; right: 12px; }

.plate {
  width: min(62rem, 100%);
  margin: 0 auto;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.brand {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-ext {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
}

a {
  color: var(--crop);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.sheet {
  background: var(--sheet);
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 4vw, 3.1rem);
  max-width: 100%;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--crop);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

h1,
h2 {
  font-family: var(--display);
  font-stretch: 92%;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6.6vw, 4.6rem);
}

.deck {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  font-size: 1.2rem;
}

.proof {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
  margin: 2rem 0 0;
}

.proof svg {
  width: 100%;
  height: auto;
  display: block;
}

.proof .edge,
.proof .axis,
.proof .baseline {
  fill: none;
  stroke: var(--crop);
  stroke-width: 2;
  stroke-linecap: square;
}

.proof .box {
  fill: var(--sentinel);
  stroke: var(--ink);
  stroke-width: 1.75;
}

.proof .tick {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.proof .num {
  fill: var(--crop);
  font-family: var(--mono);
  font-size: 15px;
}

.proof .quiet {
  fill: var(--graphite);
  font-family: var(--body);
  font-size: 14px;
}

.proof .specimen {
  fill: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 32px;
}

.axis,
.tick,
.baseline {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1s ease forwards;
}

.tick,
.baseline {
  animation-delay: 0.65s;
  animation-duration: 0.45s;
}

.box,
.proof .num,
.proof .specimen,
.proof .quiet {
  opacity: 0;
  animation: appear 0.35s ease forwards 0.45s;
}

.note {
  margin: 0;
  color: var(--graphite);
  font-style: italic;
}

.calls {
  margin: 1rem 0 0;
}

.calls div + div {
  margin-top: 0.9rem;
}

.calls dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
}

.calls dd {
  margin: 0.25rem 0 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  max-width: 18ch;
}

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

.lede {
  max-width: 42rem;
  margin: 0.8rem 0 0;
}

.steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.55rem;
}

.steps li,
.cmd {
  display: grid;
  gap: 0.7rem;
  align-items: center;
  background: var(--zinc);
  padding: 0.45rem 0.45rem 0.45rem 0.75rem;
}

.steps li {
  counter-increment: step;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
}

.cmd {
  grid-template-columns: minmax(0, 1fr) auto;
}

.steps li::before {
  content: counter(step);
  color: var(--crop);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.steps code,
.cmd code,
.inline,
pre code {
  font-family: var(--mono);
}

.steps code,
.cmd code {
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: nowrap;
}

button {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--ink);
  color: var(--sheet);
  border: 2px solid var(--ink);
  min-height: 2.6rem;
  min-width: 7.4rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

button:hover {
  background: var(--crop);
  border-color: var(--crop);
}

button[data-state="copied"] {
  background: var(--crop);
  border-color: var(--crop);
}

button[data-state="failed"] {
  background: var(--sheet);
  color: var(--ink);
}

.install-actions {
  margin: 0.7rem 0 0;
}

.install-actions button {
  min-width: 13rem;
}

.after {
  max-width: 46rem;
  margin: 1rem 0 0;
}

.job {
  margin-top: 1.8rem;
}

.job h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 400;
}

.job p,
.facts dd,
.qa p,
.after,
.lede,
.deck,
.note,
.calls dd {
  max-width: 68ch;
}

.job p {
  margin: 0.55rem 0 0;
}

pre {
  margin: 0.8rem 0 0;
  background: var(--zinc);
  padding: 0.95rem 1rem;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
}

pre code {
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre;
}

code.inline {
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.facts {
  margin: 1rem 0 0;
}

.facts > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  margin: 0 0 0.25rem;
  color: var(--crop);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
}

.facts dd {
  margin: 0;
}

.qa {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.qa h3 {
  margin: 0 0 0.35rem;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 40ch;
}

.qa p {
  margin: 0;
  overflow-wrap: anywhere;
}

.colophon {
  margin-top: 1.4rem;
  color: var(--graphite);
  font-size: 0.95rem;
}

.colophon p {
  margin: 0.25rem 0;
}

.colophon .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@media (max-width: 760px) {
  body {
    padding: 1.15rem;
  }

  .plate-marks {
    display: none;
  }

  .proof {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 560px) {
  .steps li,
  .cmd {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .cmd {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps code,
  .cmd code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .steps li button,
  .cmd button {
    grid-column: 2;
    justify-self: start;
  }

  .cmd button {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .axis,
  .tick,
  .baseline,
  .box,
  .proof .num,
  .proof .specimen,
  .proof .quiet {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .plate-marks,
  .skip,
  button,
  .install-actions {
    display: none;
  }

  .sheet {
    background: white;
  }

  a {
    color: var(--ink);
  }
}
