:root {
  --ink: #1c242b;
  --muted: #5e675f;
  --sheet: #f6f3ea;
  --card: #fffdf8;
  --line: #c9c2b2;
  --steel: #243038;
  --steel-deep: #161d22;
  --yellow: #f0c014;
  --orange: #d86a1c;
  --blueprint: rgba(47, 84, 112, 0.09);
  --shadow: 7px 7px 0 rgba(22, 29, 34, 0.16);
  --sans: "Avenir Next Condensed", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --text: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 1.4rem 0 2.4rem;
  color: var(--ink);
  background-color: #8ea0ae;
  background-image:
    linear-gradient(rgba(183, 178, 166, 0.42), rgba(183, 178, 166, 0.42)),
    url("images/blueprint-site.png");
  background-size: auto, cover;
  background-position: center;
  background-attachment: fixed;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: #1d4d68;
  text-underline-offset: 0.18em;
}

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

.sheet {
  width: min(960px, calc(100% - 1.5rem));
  margin: 0 auto;
  background: var(--sheet);
  border: 3px solid var(--steel);
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 22px 22px;
}

.masthead {
  position: relative;
  color: #f6f1e4;
  background:
    linear-gradient(180deg, rgba(240, 192, 20, 0.08), transparent 5rem),
    var(--steel-deep);
  padding: 0;
}

.masthead.hero {
  background:
    linear-gradient(100deg, rgba(16, 22, 26, 0.94) 0%, rgba(16, 22, 26, 0.82) 38%, rgba(16, 22, 26, 0.28) 72%),
    url("images/site-dusk.png") center 42% / cover no-repeat;
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--yellow);
  pointer-events: none;
}

.masthead::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.masthead::after {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.masthead-inner,
.page {
  width: auto;
  margin: 0;
}

.masthead-inner {
  padding: 2.1rem 1.7rem 1.35rem;
}

.kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover {
  color: #fff;
}

.masthead h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--sans);
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.subtitle {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: #d5ddd8;
  font-size: 1.08rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.meta span {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(240, 192, 20, 0.55);
  color: #f6f1e4;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hazard {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 10px,
    var(--steel) 10px,
    var(--steel) 20px
  );
}

.drawing-band {
  margin: 0;
  background: #101418;
  border-bottom: 2px solid var(--steel);
}

.drawing-band img {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: cover;
  object-position: center 40%;
}

.drawing-band.blueprint {
  background: #e7eef3;
}

.drawing-band.blueprint img {
  object-position: 68% 42%;
  filter: contrast(1.2) saturate(1.05);
}

.drawing-band.crane img {
  height: 14rem;
  object-position: center 16%;
}

.drawing-band.frame img {
  height: 14rem;
  object-position: center 40%;
}

.drawing-band.desk img {
  height: 13rem;
  object-position: center 84%;
}

.drawing-band.field img {
  height: 14rem;
  object-position: center 26%;
}

.drawing-band.dusk img {
  height: 13rem;
  object-position: center 48%;
}

.drawing-band.workflow img {
  height: 16rem;
  object-position: center 42%;
}

.drawing-band.collage {
  background: #f6f3ea;
  padding: 0.75rem 0 0.9rem;
}

.drawing-band.collage img {
  width: auto;
  max-width: 100%;
  height: 28rem;
  margin: 0 auto;
  object-fit: contain;
}

.plate {
  margin: 1.15rem 0 1.5rem;
  padding: 0.6rem 0.6rem 0.7rem;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: contain;
  background: #f7f8f6;
  border: 1px solid var(--steel);
}

.plate.site img {
  max-height: 32rem;
  object-fit: cover;
  object-position: center 18%;
}

.plate.schema img {
  max-height: none;
}

.plate.embed iframe {
  display: block;
  width: 100%;
  height: 1060px;
  border: 1px solid var(--steel);
  background: #f7f8f6;
}

.plate.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--steel);
  background: #111;
}

.plate.hint img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.plate figcaption {
  margin: 0.55rem 0.15rem 0.1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page {
  padding: 1.5rem 1.55rem 2.2rem;
}

/* Site elevation at the foot of every sheet: frame building, brick wall, truck. */
.page::after {
  content: "";
  display: block;
  height: 9rem;
  margin: 2.6rem -1.55rem -2.2rem;
  pointer-events: none;
  background-color: #efe8d6;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20176%2074%22%3E%3Crect%20x%3D%224%22%20y%3D%2250%22%20width%3D%22164%22%20height%3D%225%22%20fill%3D%22%23161d22%22%2F%3E%3Cpath%20fill%3D%22%23243038%22%20d%3D%22M6%2022h84v28H6z%22%2F%3E%3Cpath%20fill%3D%22%23d86a1c%22%20d%3D%22M6%2022h84v7H6z%22%2F%3E%3Cpath%20stroke%3D%22%23f6f3ea%22%20stroke-width%3D%222%22%20d%3D%22M22%2029v21M40%2029v21M58%2029v21M76%2029v21%22%2F%3E%3Cpath%20fill%3D%22%23243038%22%20d%3D%22M90%2012h62v38H90z%22%2F%3E%3Cpath%20fill%3D%22%23f0c014%22%20d%3D%22M90%2012h62v7H90z%22%2F%3E%3Cpath%20fill%3D%22%23d7e4ec%22%20d%3D%22M114%2022h30v16H114z%22%2F%3E%3Cpath%20stroke%3D%22%23f0c014%22%20stroke-width%3D%222%22%20d%3D%22M104%2022v24%22%2F%3E%3Crect%20x%3D%22156%22%20y%3D%2240%22%20width%3D%2214%22%20height%3D%227%22%20fill%3D%22%23d86a1c%22%2F%3E%3Ccircle%20cx%3D%2234%22%20cy%3D%2260%22%20r%3D%2213%22%20fill%3D%22%23161d22%22%2F%3E%3Ccircle%20cx%3D%2234%22%20cy%3D%2260%22%20r%3D%225%22%20fill%3D%22%23f6f3ea%22%2F%3E%3Ccircle%20cx%3D%2272%22%20cy%3D%2260%22%20r%3D%2213%22%20fill%3D%22%23161d22%22%2F%3E%3Ccircle%20cx%3D%2272%22%20cy%3D%2260%22%20r%3D%225%22%20fill%3D%22%23f6f3ea%22%2F%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2260%22%20r%3D%2213%22%20fill%3D%22%23161d22%22%2F%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2260%22%20r%3D%225%22%20fill%3D%22%23f6f3ea%22%2F%3E%3Crect%20x%3D%22108%22%20y%3D%222%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23f0c014%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20112%22%3E%3Crect%20x%3D%226%22%20y%3D%22104%22%20width%3D%22188%22%20height%3D%228%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%228%22%20height%3D%22104%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2256%22%20y%3D%224%22%20width%3D%228%22%20height%3D%22104%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%22102%22%20y%3D%224%22%20width%3D%228%22%20height%3D%22104%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%22148%22%20y%3D%224%22%20width%3D%228%22%20height%3D%22104%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%22186%22%20y%3D%224%22%20width%3D%228%22%20height%3D%22104%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%22184%22%20height%3D%227%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2240%22%20width%3D%22184%22%20height%3D%226%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2274%22%20width%3D%22184%22%20height%3D%226%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2282%22%20width%3D%2234%22%20height%3D%2220%22%20fill%3D%22%23c4622d%22%2F%3E%3Crect%20x%3D%2266%22%20y%3D%2282%22%20width%3D%2234%22%20height%3D%2220%22%20fill%3D%22%23a84b28%22%2F%3E%3Crect%20x%3D%22112%22%20y%3D%2282%22%20width%3D%2234%22%20height%3D%2220%22%20fill%3D%22%23c4622d%22%2F%3E%3Crect%20x%3D%22158%22%20y%3D%2282%22%20width%3D%2226%22%20height%3D%2220%22%20fill%3D%22%23a84b28%22%2F%3E%3Cpath%20stroke%3D%22%23f6f3ea%22%20stroke-width%3D%222%22%20d%3D%22M20%2092h34M66%2092h34M112%2092h34M158%2092h26M37%2082v20M83%2082v20M129%2082v20%22%2F%3E%3Crect%20x%3D%2224%22%20y%3D%2250%22%20width%3D%2222%22%20height%3D%2216%22%20fill%3D%22%23c5d5df%22%20stroke%3D%22%23243038%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2270%22%20y%3D%2250%22%20width%3D%2222%22%20height%3D%2216%22%20fill%3D%22%23c5d5df%22%20stroke%3D%22%23243038%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%22116%22%20y%3D%2250%22%20width%3D%2222%22%20height%3D%2216%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%22160%22%20y%3D%2250%22%20width%3D%2218%22%20height%3D%2216%22%20fill%3D%22%23c5d5df%22%20stroke%3D%22%23243038%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20stroke%3D%22%23f0c014%22%20stroke-width%3D%223%22%20d%3D%22M20%2012l34%2026M54%2012L20%2038%22%2F%3E%3Cpath%20stroke%3D%22%23f0c014%22%20stroke-width%3D%223%22%20d%3D%22M66%2012l34%2026M100%2012L66%2038%22%2F%3E%3Cpath%20stroke%3D%22%23f0c014%22%20stroke-width%3D%223%22%20d%3D%22M116%2018h22M116%2018v14M138%2018v14%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2216%22%20viewBox%3D%220%200%2036%2016%22%3E%3Crect%20y%3D%227%22%20width%3D%2236%22%20height%3D%223%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%228%22%20width%3D%224%22%20height%3D%2216%22%20fill%3D%22%23243038%22%2F%3E%3Crect%20x%3D%228%22%20width%3D%224%22%20height%3D%224%22%20fill%3D%22%23f0c014%22%2F%3E%3C%2Fsvg%3E"),
    linear-gradient(#f0c014, #f0c014),
    linear-gradient(#161d22, #161d22),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2228%22%20viewBox%3D%220%200%2064%2028%22%3E%3Crect%20width%3D%2264%22%20height%3D%2228%22%20fill%3D%22%23f3ead8%22%2F%3E%3Crect%20width%3D%2230%22%20height%3D%2212%22%20fill%3D%22%23c4622d%22%2F%3E%3Crect%20x%3D%2232%22%20width%3D%2230%22%20height%3D%2212%22%20fill%3D%22%23a84b28%22%2F%3E%3Crect%20y%3D%2216%22%20width%3D%2214%22%20height%3D%2212%22%20fill%3D%22%23a84b28%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%2230%22%20height%3D%2212%22%20fill%3D%22%23c4622d%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2216%22%20width%3D%2216%22%20height%3D%2212%22%20fill%3D%22%23b5522a%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, no-repeat, repeat-x, no-repeat, no-repeat, repeat-x;
  background-position:
    right 1.15rem bottom 0,
    left 1.15rem bottom 2.5rem,
    left bottom 2.75rem,
    left bottom 2.5rem,
    left bottom,
    left bottom 0.75rem;
  background-size:
    10rem auto,
    11.5rem auto,
    36px 16px,
    100% 4px,
    100% 0.75rem,
    64px 28px;
}

.toc,
.panel,
.field,
.callout,
.quote,
.link-card,
.flow li,
.ref {
  background-color: var(--card);
  border: 1px solid #b7b1a4;
  border-radius: 0;
  box-shadow: none;
}

.toc,
.panel,
.field,
.callout,
.quote,
.link-card,
.plate {
  background-image:
    linear-gradient(var(--yellow), var(--yellow)) left top / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) left top / 2px 12px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right top / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right top / 2px 12px no-repeat,
    linear-gradient(var(--steel), var(--steel)) left bottom / 12px 2px no-repeat,
    linear-gradient(var(--steel), var(--steel)) left bottom / 2px 12px no-repeat,
    linear-gradient(var(--steel), var(--steel)) right bottom / 12px 2px no-repeat,
    linear-gradient(var(--steel), var(--steel)) right bottom / 2px 12px no-repeat;
}

.toc {
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 1.8rem;
}

.toc h2,
.panel h3,
.field h3 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.toc ol ol {
  columns: 1;
  margin-top: 0.35rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Each section in "In this chapter" lays a brick course, in list order. */
nav[aria-label="Chapter contents"] li {
  break-inside: avoid;
  padding: 0.12rem 0.2rem;
}

nav[aria-label="Chapter contents"] li::marker {
  color: var(--steel);
  font-family: var(--sans);
  font-weight: 700;
}

nav[aria-label="Chapter contents"] a {
  background-image: repeating-linear-gradient(
    90deg,
    #c4622d 0 8px,
    #f3ead8 8px 9px,
    #a84b28 9px 17px,
    #f3ead8 17px 18px
  );
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

nav[aria-label="Chapter contents"] li:hover,
nav[aria-label="Chapter contents"] li:focus-within {
  background: rgba(240, 192, 20, 0.34);
}

nav[aria-label="Chapter contents"] a:hover,
nav[aria-label="Chapter contents"] a:focus-visible,
nav[aria-label="Chapter contents"] a:active {
  text-decoration: none;
  color: #14364a;
}

nav[aria-label="Chapter contents"] a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  nav[aria-label="Chapter contents"] a {
    animation: bay-course 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  nav[aria-label="Chapter contents"] li:nth-child(1) a { animation-delay: 0.04s; }
  nav[aria-label="Chapter contents"] li:nth-child(2) a { animation-delay: 0.08s; }
  nav[aria-label="Chapter contents"] li:nth-child(3) a { animation-delay: 0.12s; }
  nav[aria-label="Chapter contents"] li:nth-child(4) a { animation-delay: 0.16s; }
  nav[aria-label="Chapter contents"] li:nth-child(5) a { animation-delay: 0.2s; }
  nav[aria-label="Chapter contents"] li:nth-child(6) a { animation-delay: 0.24s; }
  nav[aria-label="Chapter contents"] li:nth-child(7) a { animation-delay: 0.28s; }
  nav[aria-label="Chapter contents"] li:nth-child(8) a { animation-delay: 0.32s; }
  nav[aria-label="Chapter contents"] li:nth-child(9) a { animation-delay: 0.36s; }
  nav[aria-label="Chapter contents"] li:nth-child(n + 10) a { animation-delay: 0.4s; }
}

section {
  margin: 2.4rem 0;
}

section > h2 {
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--steel);
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-no {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-no::before {
  content: "";
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.45rem;
  background: var(--yellow);
  border: 2px solid var(--steel);
  vertical-align: -0.05em;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

p {
  margin: 0.7rem 0;
}

.data-table {
  width: 100%;
  margin: 0.8rem 0 1rem;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid #b7b1a4;
}

.data-table th,
.data-table td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #e4ddcf;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--steel);
  color: #f6f1e4;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td.num,
.data-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0.8rem 0 1rem;
}

.sample-table {
  min-width: 64rem;
  margin: 0;
  font-size: 0.92rem;
}

.sample-table td:nth-child(5),
.sample-table td:nth-child(6),
.sample-table td:nth-child(7) {
  min-width: 14rem;
}

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

li + li {
  margin-top: 0.25rem;
}

.flow {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  position: relative;
  margin: 0;
  padding: 0.72rem 1rem 0.72rem 3.5rem;
  border-left: 6px solid var(--steel);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  counter-increment: step;
}

.flow li::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 50%;
  left: 0.45rem;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.flow li.prior {
  counter-increment: none;
}

.flow li.prior::after {
  content: attr(data-step);
}

.flow li.note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
}

.flow-note {
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.flow li + li::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 1.35rem;
  width: 2px;
  height: 0.85rem;
  background: var(--yellow);
}

.flow li:nth-child(even) {
  border-left-color: var(--orange);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0.2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.28rem 0.55rem;
  background: #fff8dc;
  color: var(--steel);
  border: 1px solid var(--steel);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ref {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--steel);
  color: #f6f1e4;
  border-left: 6px solid var(--yellow);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.ref span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--yellow);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.link-card {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.link-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-card span {
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.fields,
.layers {
  display: grid;
  gap: 0.8rem;
}

.field,
.panel {
  padding: 1rem 1.1rem 1.05rem;
}

.field h3,
.panel h3 {
  margin-top: 0;
}

.field p {
  margin-bottom: 0;
}

.mono-list {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.85rem;
  background: #efe8d6;
  border-left: 4px solid var(--steel);
  font-family: var(--mono);
  font-size: 0.88rem;
  list-style: none;
}

.mono-list li + li {
  margin-top: 0.15rem;
}

.callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background-color: #fff6d8;
  border-color: #e2c56a;
}

.callout strong {
  color: #8a4b12;
}

.uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote {
  margin: 1.2rem 0 0;
  padding: 1.15rem 1.25rem;
  border-left: 6px solid var(--yellow);
  font-size: 1.12rem;
  line-height: 1.5;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.stack li {
  margin: 0;
  padding: 0.38rem 0.65rem;
  background: var(--steel);
  color: #f6f1e4;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack li.plus {
  padding: 0 0.1rem;
  background: transparent;
  color: var(--orange);
}

.site-footer {
  width: auto;
  margin: 0;
  padding: 0.9rem 1.55rem 1.15rem;
  border-top: 12px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 10px,
    var(--steel) 10px,
    var(--steel) 20px
  ) 12;
  background: var(--steel);
  color: #f4efe4;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 700;
}

.site-footer a:hover {
  color: #fff;
}

.report-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1.55rem;
  background: #efe8d6;
  border-bottom: 2px solid var(--steel);
}

.report-nav a {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--steel);
  background: var(--card);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.report-nav a:hover,
.report-nav a[aria-current="page"] {
  background: var(--steel);
  color: var(--yellow);
}

.chapter-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.7rem;
}

.chapter-pager a {
  font-weight: 700;
  text-decoration: none;
}

.chapter-pager .pager-next {
  margin-left: auto;
}

/* A brick course lays across a control when it is chosen or current. */
.report-nav a,
.stack li,
.link-card {
  position: relative;
}

.report-nav a::after,
.stack li::after,
.link-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #c4622d 0 8px,
    #f3ead8 8px 9px,
    #a84b28 9px 17px,
    #f3ead8 17px 18px
  );
  transform: scaleX(0);
  transform-origin: left center;
}

.stack li.plus::after {
  content: none;
}

.report-nav a:hover::after,
.report-nav a:focus-visible::after,
.report-nav a:active::after,
.report-nav a[aria-current="page"]::after,
.stack li:hover::after,
.link-card:hover::after,
.link-card:focus-visible::after,
.link-card:active::after {
  transform: scaleX(1);
}

.chapter-pager a {
  padding-bottom: 0.14rem;
  background-image: repeating-linear-gradient(
    90deg,
    #c4622d 0 8px,
    #161d22 8px 9px,
    #a84b28 9px 17px,
    #161d22 17px 18px
  );
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
}

.chapter-pager a:hover,
.chapter-pager a:focus-visible,
.chapter-pager a:active {
  background-size: 100% 3px;
  color: #fff;
}

.report-nav a:focus-visible,
.link-card:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.chapter-pager a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .report-nav a::after,
  .stack li::after,
  .link-card::after {
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .chapter-pager a {
    transition: background-size 220ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
  }
}

@media (max-width: 720px) {
  body {
    padding: 0.6rem 0 1.2rem;
    background-attachment: scroll;
  }

  .masthead.hero {
    background:
      linear-gradient(180deg, rgba(16, 22, 26, 0.9) 0%, rgba(16, 22, 26, 0.62) 58%, rgba(16, 22, 26, 0.4) 100%),
      url("images/site-dusk.png") center 38% / cover no-repeat;
  }

  .drawing-band img,
  .drawing-band.crane img,
  .drawing-band.frame img,
  .drawing-band.desk img,
  .drawing-band.field img,
  .drawing-band.dusk img,
  .drawing-band.workflow img {
    height: 9rem;
  }

  .drawing-band.collage img {
    height: 18rem;
  }

  .plate.site img {
    max-height: 24rem;
  }

  .toc ol,
  .uses {
    columns: 1;
    grid-template-columns: 1fr;
  }

  .masthead h1 {
    max-width: none;
  }

  .masthead-inner,
  .page,
  .report-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page::after {
    height: 7.25rem;
    margin-left: -1rem;
    margin-right: -1rem;
    background-position:
      right 0.4rem bottom 0,
      left 0.4rem bottom 1.9rem,
      left bottom 2.1rem,
      left bottom 1.9rem,
      left bottom,
      left bottom 0.55rem;
    background-size:
      7.2rem auto,
      8.4rem auto,
      28px 12px,
      100% 3px,
      100% 0.55rem,
      48px 21px;
  }
}

/* Contents page: a live set-out. One laser levels the chapter list,
   caution tape creeps, and a chalk line marks the chapter under the pointer. */
.contents-page .masthead {
  overflow: hidden;
}

.contents-page .masthead::before,
.contents-page .masthead::after {
  z-index: 2;
}

.contents-page .masthead-inner,
.contents-page .masthead > .hazard {
  position: relative;
  z-index: 1;
}

.contents-page .site-glow {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 70% at 84% 38%, rgba(240, 192, 20, 0.42), transparent 68%),
    radial-gradient(ellipse 26% 42% at 62% 92%, rgba(216, 106, 28, 0.28), transparent 72%);
  opacity: 0.55;
}

.contents-page .site-footer {
  position: relative;
  border-top: 0;
  border-image: none;
  padding-top: calc(12px + 0.9rem);
}

.contents-page .site-footer > .hazard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.contents-page .toc {
  position: relative;
}

.contents-page .toc li {
  break-inside: avoid;
  padding: 0.16rem 0.35rem 0.16rem 0.1rem;
}

.contents-page .toc li::marker {
  color: var(--steel);
  font-family: var(--sans);
  font-weight: 700;
}

.contents-page .toc li:hover,
.contents-page .toc li:focus-within {
  background: rgba(240, 192, 20, 0.34);
}

.contents-page .page a:hover,
.contents-page .page a:focus,
.contents-page .page a:focus-visible {
  color: #14364a;
}

.contents-page a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.contents-page .masthead a:focus-visible,
.contents-page .site-footer a:focus-visible,
.contents-page .report-nav a:focus-visible {
  outline-color: var(--yellow);
}

.contents-page ::selection {
  background: var(--yellow);
  color: var(--steel-deep);
}

html:has(body.contents-page) {
  scrollbar-color: var(--steel) #c9c2b2;
}

@media (prefers-reduced-motion: no-preference) {
  .contents-page .site-glow {
    animation: work-lights 9s ease-in-out infinite;
  }

  .contents-page .hazard {
    position: relative;
    overflow: hidden;
    background: none;
  }

  .contents-page .hazard::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42px;
    width: calc(100% + 84px);
    background: repeating-linear-gradient(
      -45deg,
      var(--yellow),
      var(--yellow) 10px,
      var(--steel) 10px,
      var(--steel) 20px
    );
    animation: tape-creep 2.8s linear infinite;
  }

  .contents-page .site-footer .hazard::before {
    animation-direction: reverse;
  }

  .contents-page .is-paused,
  .contents-page .is-paused::before {
    animation-play-state: paused;
  }

  .contents-page .toc::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(240, 192, 20, 0.15) 8%,
      #f0c014 22%,
      #fff4b0 50%,
      #f0c014 78%,
      rgba(240, 192, 20, 0.15) 92%,
      transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: center -10%;
    filter: drop-shadow(0 0 6px rgba(240, 192, 20, 0.95));
    opacity: 0;
    animation: laser-level 1.45s cubic-bezier(0.16, 1, 0.3, 1) 0.4s 1 forwards;
  }

  .contents-page .toc a {
    background-image: linear-gradient(var(--yellow), var(--yellow));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 200ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .contents-page .toc li {
    transition: background-color 160ms ease;
  }

  .contents-page .toc a:hover,
  .contents-page .toc a:focus,
  .contents-page .toc a:focus-visible,
  .contents-page .toc a:active {
    text-decoration: none;
    background-size: 100% 2px;
  }

  .contents-page .report-nav a,
  .contents-page .chapter-pager a {
    transition: background-color 150ms ease, background-size 220ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.contents-page) {
    scroll-behavior: auto;
  }

  .report-nav a::after,
  .stack li::after,
  .link-card::after,
  .chapter-pager a {
    transition: none;
  }

  nav[aria-label="Chapter contents"] a {
    animation: none;
    background-size: 100% 3px;
  }
}

@keyframes bay-course {
  from { background-size: 0 3px; }
  to { background-size: 100% 3px; }
}

@keyframes work-lights {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(-2.2%, 1%, 0);
  }
}

@keyframes tape-creep {
  from { transform: translateX(0); }
  to { transform: translateX(28.28px); }
}

@keyframes laser-level {
  0% {
    background-position: center 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    background-position: center 100%;
    opacity: 0;
  }
}

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

  .sheet {
    width: auto;
    border: none;
    box-shadow: none;
    background: white;
  }

  .masthead,
  .site-footer {
    background: white;
    color: black;
  }

  .kicker,
  .subtitle,
  .meta span,
  .site-footer,
  .site-footer a {
    color: black;
  }

  .hazard,
  .site-glow,
  .toc::after,
  .page::after,
  .masthead::before,
  .masthead::after {
    display: none;
  }

  nav[aria-label="Chapter contents"] a {
    animation: none;
    background-size: 100% 3px;
  }

  a {
    color: black;
  }
}
