/* Build notes: a document, not a product page. Same palette and faces as the
   storefront so it reads as the same house, but set as one measured column. */

.doc .masthead nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) 4rem;
}

.paper h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0.7rem 0 1rem;
}

.paper .eyebrow { color: var(--meta); }

.paper .lede {
  font-size: 1.05rem;
  color: var(--paper);
  max-width: 40ch;
  margin: 0 0 1rem;
}

.paper section {
  padding-top: 2.75rem;
  margin-top: 2.75rem;
  border-top: 1px solid var(--rule);
}

.paper h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}

/* the numbering is real: these are the seven pieces of work, in build order */
.paper h2 .n {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mark-text);
  letter-spacing: 0.1em;
}

.paper p {
  color: #C9C3B8;
  max-width: 62ch;
  margin: 0 0 1rem;
}

.paper code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--paper);
  background: var(--ink-2);
  padding: 0.1em 0.35em;
}

.paper figure { margin: 1.6rem 0; }

.paper figure img {
  width: 100%;
  height: auto;              /* the height attribute is a hint; do not let it stretch */
  display: block;
  border: 1px solid var(--rule);
}

.paper figcaption {
  font-size: 0.82rem;
  color: var(--meta);
  margin-top: 0.6rem;
  max-width: 58ch;
}

.term pre {
  margin: 0;
  /* a scrollable region has to be reachable from the keyboard */
  scrollbar-width: thin;
  padding: 1rem 1.1rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--mark);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: #BDB7AC;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pair figure { margin: 0; }

/* the limits section is the one a client should read twice */
.caveat {
  border-left: 2px solid var(--mark);
  padding-left: 0.85rem;
  color: var(--meta) !important;
  font-size: 0.9rem;
}

.limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.limits li {
  color: #C9C3B8;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 6px;
  height: 6px;
  background: var(--mark);
}

@media (max-width: 700px) {
  .paper h2 { flex-direction: column; gap: 0.2rem; }
}
