/* The landing page borrows the guides' grounds and type so that a stranger who
   arrives from the footer of a shared teardown recognizes where they landed. */

* { box-sizing: border-box }
body {
  margin: 0; padding: 0;
  background: var(--page); color: var(--text);
  font: 17px/1.55 "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  overflow-wrap: break-word; overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 660px; margin: 0 auto; padding: 72px 24px 0 }
p { margin: 16px 0 0; max-width: 62ch }
.stamp {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 1.54px; text-transform: uppercase;
  color: var(--quiet); margin: 0; max-width: none;
}
/* The wordmark, which is the one stamp that is not a caption. 0.14em is the
   tracking every stamp on the page uses, written as a ratio here so it holds
   whatever size this becomes. */
.mark { color: var(--strong); font-size: 24px; letter-spacing: 0.14em; margin-bottom: 8px }
h1 {
  color: var(--strong); margin: 32px 0 0;
  font-size: 44px; font-weight: 700; letter-spacing: -1.32px; line-height: 1.08;
}
.lead { font-size: 21px; line-height: 1.45; margin: 24px 0 0 }
section { margin-top: 40px }
h2 { color: var(--strong); margin: 0; font-size: 27px; font-weight: 500; letter-spacing: -0.4px }
ol, ul { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: step }
li {
  display: grid; grid-template-columns: 28px 1fr; gap: 16px;
  padding: 16px 0;
}
/* The rule goes between items, so the last one closes on nothing. */
li + li { border-top: 1px solid var(--rule) }
ol li { counter-increment: step }
ol li::before {
  content: counter(step);
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--strong); color: var(--strong);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 13px; font-weight: 700;
}
/* Only the steps are a sequence. The other two take a mark rather than a
   number, so the page does not read as 1-2-3 three times over. */
ul li::before { content: ""; width: 14px; height: 2px; margin-top: 12px; background: var(--live) }
h3 { color: var(--strong); margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.26px }
li p { margin: 0 }
/* Space Grotesk ships upright only, so an italic here would be a slant the
   browser drew itself. */
em { font-style: normal; font-weight: 500; color: var(--strong) }

footer { margin-top: 72px; padding-bottom: 64px }
/* Space Mono draws the copyright as a superscript: half height and floating
   well off the baseline. Space Grotesk draws it at cap height sitting on the
   baseline, which is what the caps beside it are doing. */
.copyright { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif }
/* Underlined rather than colored: at 11px uppercase the link has to announce
   itself somehow, and the footer is too quiet a place for the blueprint blue. */
footer a { color: var(--quiet); text-decoration: underline; text-underline-offset: 3px }
@media (max-width: 600px) {
  main { padding-top: 48px }
  h1 { font-size: 34px; letter-spacing: -1.02px }
  .lead { font-size: 17px }
}
