/* ---------------------------------------------------------------------------
 * The two prose pages, /terms and /privacy, over the shared chrome in
 * site.css. They are the only pages on the site that are read rather than
 * played, and they are a pair — the same measure, the same document furniture.
 *
 * These pages are the back of the same field guide, not a legal annex bolted
 * onto a different site. What changes is the measure: a page of running text
 * wants a column narrow enough to read, so the body is capped around 34em
 * rather than filling the 1120px the landing page uses.
 * ------------------------------------------------------------------------- */

body {
  line-height: 1.65;
}

/* --- the document ---------------------------------------------------- */
/* One column, held to a readable measure and offset from the left edge just
 * enough that the section numerals have somewhere to hang on wide screens. */
article {
  max-width: 34em;
  padding: clamp(30px, 6vh, 58px) 0 clamp(40px, 8vh, 70px);
}

h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* The contents list: the whole document at a glance, in the same caps the rest
 * of the site labels things with. */
.toc {
  margin: 30px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
  font-size: 13.5px;
}

.toc li {
  break-inside: avoid;
  margin: 0 0 4px;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 3px;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

section {
  /* Anchors land under the section heading otherwise. */
  scroll-margin-top: 24px;
  margin: 38px 0 0;
}

h2 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* The numeral hangs in the margin where there is room for it, and tucks back
 * inline on a narrow screen. */
.num {
  display: inline-block;
  width: 34px;
  margin-left: -34px;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

li {
  margin: 0 0 7px;
}

strong {
  font-weight: 600;
}

/* A pulled-aside paragraph for the one or two things on each page that a
 * reader who skims everything else still has to see. */
.mark-out {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--ink);
  background: rgba(35, 39, 47, 0.028);
  font-size: 15px;
}

.mark-out :last-child {
  margin-bottom: 0;
}

article a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
}

article a:hover {
  text-decoration-color: currentcolor;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--hair-soft);
  border-radius: 5px;
  background: rgba(35, 39, 47, 0.035);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

@media (max-width: 680px) {
  .toc ol {
    columns: 1;
  }

  .num {
    width: auto;
    margin-left: 0;
    margin-right: 8px;
  }
}
