/* Paperbump — the generated reference pages.
 *
 * These are documents, not the app: one column, no tab bar, no JavaScript at
 * all. Same palette and typefaces so they read as the same thing, but a wider
 * measure and a plainer structure, because the job here is to be read, quoted
 * and cited rather than tapped.
 */

:root {
  --paper: #FAF2E8;
  --paper-top: #FDF8F1;
  --card: #FFFCF7;
  --terra: #7A3B2E;
  --terra-wash: #F7E5D6;
  --clay: #D9884F;
  --ink: #2A211C;
  --ink-soft: #6B5A50;
  --hairline: #DCC8B2;
  --radius: 16px;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.1rem calc(3rem + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background: linear-gradient(to bottom, var(--paper-top) 0%, var(--paper) 40%) no-repeat;
  background-color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
}

.doc-header,
.doc,
.doc-footer { max-width: 40rem; margin-inline: auto; }

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.4rem;
}
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.wordmark-image { width: 7.2rem; height: auto; display: block; color: var(--ink); }
.doc-app { font-size: .9rem; color: var(--terra); }

h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .9rem;
}
h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 2rem 0 .5rem;
}
p { margin: 0 0 1rem; }
a { color: var(--terra); }

.doc-crumb { font-size: .85rem; margin-bottom: .6rem; }

/* The paragraph this page exists for: the verified answer, attributed and
   dated. Set apart so a reader — or anything reading on their behalf — can
   see where the answer is. */
.doc-answer {
  background: var(--card);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

.doc-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: .95rem;
}
.doc-facts dt { font-weight: 600; color: var(--ink-soft); }
.doc-facts dd { margin: 0; }

.doc-cta { margin: 1.8rem 0; }
.btn {
  display: inline-block;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  background: var(--terra-wash);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.doc-related { list-style: none; margin: 0; padding: 0; }
.doc-related li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.doc-related span { display: block; color: var(--ink-soft); font-size: .85rem; }
.doc-index li:first-child { border-top: 1px solid var(--hairline); }

.doc-footer {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: .88rem;
}
.doc-footer strong { color: var(--ink); }

@media (min-width: 46rem) {
  body { font-size: 1.06rem; padding-inline: 2rem; }
  h1 { font-size: 2.2rem; }
}
