/* Shared style for every article on this site.
   Same system as the home page: three type sizes (24 / 17 / 15),
   spacing in multiples of 8px, Arial, nothing but ink and paper.
   Edit this once and every article updates. */

:root {
  --ink: #000000;
  --body: #1f1f1f;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --hair: #e6e6e6;
  --sans: Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 17px/1.6 var(--sans);
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

/* back link, top and bottom */

.back {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.back:hover { color: var(--ink); }

.back.top { margin-bottom: 4rem; }
.back.bottom { margin-top: 4rem; }

/* article head */

.eyebrow { font-size: 15px; color: var(--muted); margin: 0 0 1rem; }

h1 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 20em;
}

.meta { font-size: 15px; color: var(--muted); margin: 0 0 3.5rem; }

/* body */

h2 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 3rem 0 1rem;
}

h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

li { margin: 0 0 0.5rem; }

li:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--body); }

em { font-style: italic; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

a:hover { text-decoration-thickness: 2px; }

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

/* a line worth pausing on */

.callout {
  border-left: 2px solid var(--ink);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.callout p { margin: 0; }

/* section break ( · · · ) */

hr.rule {
  border: 0;
  text-align: center;
  margin: 3rem 0;
}

hr.rule::before {
  content: "\00B7 \00B7 \00B7";
  color: var(--muted);
  letter-spacing: 0.4em;
}

/* numbered step list */

.steps { margin: 1.5rem 0; padding: 0; list-style: none; }

.step { display: flex; gap: 1rem; margin: 0 0 1.25rem; }

.step:last-child { margin-bottom: 0; }

.step .n {
  flex: none;
  width: 1.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
}

.step p { margin: 0; }

/* labelled sub-section, e.g. a tool or product */

.tool { border-top: 1px solid var(--hair); padding-top: 1.5rem; margin-top: 2rem; }

.tool .badge {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool .use { display: block; font-size: 15px; color: var(--muted); margin-top: 0.75rem; }

@media (max-width: 720px) {
  .wrap { padding: 3rem 1.5rem 5rem; }
  .back.top { margin-bottom: 3rem; }
}
