/* ============================================================================
   prose.css — the legal set, contact, success, and the two "something went
   wrong" pages. One stylesheet for every long-form text page.
   ==========================================================================*/

.prose-head {
  padding-block: var(--sp-8) var(--sp-6);
  border-bottom: 1px solid var(--rule);
}

.prose-head h1 {
  font-size: var(--step-4);
  margin-block: var(--sp-4) var(--sp-4);
}

.prose-head--center {
  text-align: center;
}

.prose-head__date {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose {
  padding-block: var(--sp-7) var(--sp-8);
}

/* A comfortable reading measure. Legal pages that run the full container
   width are the ones nobody reads. */
.prose > * {
  max-width: 68ch;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}

.prose-list {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-5);
}

.prose-list li {
  position: relative;
  margin-bottom: var(--sp-3);
  line-height: 1.65;
}

/* Unordered lists get a berry hairline dash; ordered lists keep real numbers
   so "step 3" in an email matches "3." on the page. */
ul.prose-list li::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-5) * -1);
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--berry);
}

ol.prose-list {
  counter-reset: item;
  list-style: none;
}

ol.prose-list li {
  counter-increment: item;
}

ol.prose-list li::before {
  content: counter(item) '.';
  position: absolute;
  left: calc(var(--sp-5) * -1);
  font-family: var(--font-display);
  color: var(--berry);
  font-variant-numeric: tabular-nums;
}

.prose-callout {
  margin-top: var(--sp-7);
  max-width: 68ch;
}

.prose-callout p {
  margin-bottom: 0;
}

/* The privacy page's "who gets your data" table. Scrolls inside its own box
   on a phone rather than pushing the page sideways. */
.prose-table {
  display: block;
  overflow-x: auto;
  width: 100%;
  max-width: 68ch;
  margin-bottom: var(--sp-5);
  border-collapse: collapse;
  font-size: var(--step--1);
}

.prose-table th,
.prose-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  min-width: 9rem;
}

.prose-table th {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Big, copy-pasteable email addresses on the contact and success pages. */
.contact-email,
.success-from {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  margin-block: var(--sp-2) var(--sp-3);
  word-break: break-word;
}
