:root {
  --paper: #fbfbf8;     /* drafting vellum */
  --ink: #172130;       /* drawing ink */
  --graphite: #485263;  /* secondary text, 7.6:1 on paper */
  --redline: #b3261e;   /* markup red, 6.4:1 on paper */
  --rule: #7b8594;      /* borders and rules, 3.6:1 on paper */
  --wash: #eef1f4;      /* figure ground */
  --title: "Bahnschrift", "DIN Alternate", "DIN 2014", "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

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

html { font-size: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--redline); }
:focus-visible { outline: 3px solid var(--redline); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .75rem 1rem; z-index: 1; }

.masthead, main, .titleblock { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

.masthead { padding-block: 1.75rem 0; }
.who { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.who strong { font: 600 1.25rem/1.2 var(--title); letter-spacing: .01em; }
.who span { color: var(--graphite); }

h1, h2, h3, h4 { font-family: var(--title); font-weight: 600; line-height: 1.15; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); max-width: 20ch; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 1rem; }
h4 { font-size: 1.1rem; margin: 0 0 .5rem; }

p, ul, ol { max-width: var(--measure); }
section { padding-block: 3.5rem 0; }

.hero { padding-block: 3rem 2rem; }
.lede { font-size: 1.2rem; color: var(--graphite); margin: 0 0 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.25rem;
  border: 2px solid var(--ink); border-radius: 3px;
  font: 600 1.05rem/1.2 var(--title); letter-spacing: .02em; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--redline); border-color: var(--redline); color: var(--paper); }

.shot { margin: 0 0 1.5rem; }
.shot img { border: 1px solid var(--rule); background: var(--wash); }
.shot figcaption { color: var(--graphite); font-size: .95rem; margin-top: .5rem; }
.shot-wide img { width: 100%; }

.tool { border-top: 2px solid var(--ink); padding-top: 1.5rem; margin-top: 2.5rem; }
.tool .shot { max-width: 40rem; }
.pair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: 48rem; }

/* The review stamp: what it does, and the exceptions taken, side by side. */
.review { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.review ul { padding-left: 1.2rem; margin: 0; }
.review li + li { margin-top: .5rem; }
.exceptions { border-left: 4px solid var(--redline); padding-left: 1.1rem; }
.exceptions h4 { color: var(--redline); }

.proof { margin-top: 2.5rem; font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 600 2rem/1 var(--title); color: var(--redline);
}
.steps h3 { margin: .2rem 0 .25rem; font-size: 1.3rem; }
.steps p { margin: 0; }

.founding { margin-top: 3.5rem; padding: 2rem 1.5rem; border: 2px solid var(--ink); }
.founding .actions { margin-top: 1.5rem; }

.note { color: var(--graphite); }

.titleblock { margin-top: 4rem; margin-bottom: 2rem; border: 2px solid var(--ink); }
.titleblock dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.titleblock dl > div { padding: .75rem 1rem; border: 1px solid var(--rule); margin: -1px 0 0 -1px; }
.titleblock dt { font: 600 .95rem/1.3 var(--title); color: var(--graphite); }
.titleblock dd { margin: .2rem 0 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
