/* Literata (SIL Open Font License, see fonts/OFL.txt), served from the site itself: no request to a third party. */
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("fonts/literata-400.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("fonts/literata-600.woff2") format("woff2"); }

:root {
  --paper: #F9F5ED;
  --ink: #2C211B;
  --ink-soft: #645850;
  --hairline: #DCD3C6;
  --rubric: #A12721;
  --serif: "Literata", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

a { color: var(--rubric); text-underline-offset: 2px; }

/* The site name on its own line, the pages below it, on every page. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.site-nav .brand { flex-basis: 100%; margin-bottom: 4px; font: 600 17px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.site-nav a:not(.brand) { font: 500 14px/1.3 var(--sans); color: var(--ink-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--rubric); }

.rubric {
  margin: 0;
  font: 600 12.5px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rubric);
}

h1 { margin: 44px 0 0; font: 600 clamp(30px, 6vw, 40px)/1.18 var(--serif); letter-spacing: -0.01em; }

h2 { margin: 52px 0 16px; font: 600 22px/1.3 var(--serif); }

p { margin: 0 0 12px; }

.lead { margin: 16px 0 0; color: var(--ink-soft); font-size: 19px; }

.updated { margin: 12px 0 0; font: 400 14px/1.4 var(--sans); color: var(--ink-soft); }

.soon { margin: 24px 0 0; font: 600 14px/1.4 var(--sans); color: var(--ink-soft); }

/* Numbered in red, like the reflection questions in the app: the steps on the home page and the policy's questions. */
ol.steps, ol.questions { list-style: none; margin: 0; padding: 0; }
ol.steps { counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
ol.steps > li::before { content: counter(step); font: 600 22px/1.3 var(--serif); color: var(--rubric); }
ol.steps b { font-weight: 600; }

ol.questions { margin-top: 40px; counter-reset: question; border-top: 1px solid var(--hairline); }
ol.questions > li {
  counter-increment: question;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
ol.questions > li::before { content: counter(question); font: 600 21px/1.3 var(--serif); color: var(--rubric); }
ol.questions h2 { grid-column: 2; margin: 0 0 8px; font: 600 20px/1.35 var(--serif); }
ol.questions p, ol.questions ul { grid-column: 2; margin: 0 0 10px; }
ol.questions ul { padding-left: 20px; }

/* A passage set between two rules, as in the app. */
.word { margin: 52px 0 0; padding: 28px 0 16px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.word blockquote { margin: 10px 0 8px; font: 400 22px/1.55 var(--serif); }
.word cite { display: block; margin-bottom: 14px; font: 600 13px/1.4 var(--sans); letter-spacing: 0.08em; color: var(--ink-soft); font-style: normal; }
.word p { color: var(--ink-soft); }

section + section h2 { margin-top: 44px; }

.soft { color: var(--ink-soft); }

footer { margin: 56px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font: 400 14px/1.5 var(--sans); color: var(--ink-soft); }
footer p { margin: 6px 0 0; }
