/* Face to Face: the site's one stylesheet. No web fonts, no external requests. */

:root {
  color-scheme: light dark;

  /* Light: ink on paper. */
  --paper: #f5f4ef;
  --ink: #161615;
  --ink2: #57574f;      /* 6.6:1 on paper */
  --rule: #cfccc2;
  --plate: #000000;     /* behind pictures, in both themes */
  --cloth: #501922;     /* the app's controls page */
  --on-cloth: #eeeeea;  /* 12:1 on cloth */
  --on-cloth2: #c3a6aa; /* 6.2:1 on cloth */
  --pencil: #8ccfea;    /* decoration and focus on dark grounds only */
  --focus: #1d5e79;     /* 6.5:1 on paper */
  --link-rule: #501922;

  --serif: ui-serif, "New York", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #eeeeea;
    --ink2: #a3a39d;    /* 8.3:1 on black */
    --rule: #3a3a37;
    --focus: #8ccfea;
    --link-rule: #a3a39d;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Skip link and focus ---------- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.875rem/1.2 var(--sans);
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Running head ---------- */

.head {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
}
.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 600 1rem/1.3 var(--sans);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font: 400 0.9375rem/1.3 var(--sans);
  color: var(--ink2);
  text-decoration: none;
  padding: 0.6rem 0;          /* a taller target without moving the baseline */
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}

/* ---------- The page ---------- */

main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  letter-spacing: -0.015em;
  margin: 3.5rem 0 0.5rem;
}
h2 {
  font-size: 1.3125rem;
  margin: 3.25rem 0 0.75rem;
}
h3 {
  font-size: 1.0625rem;
  margin: 2rem 0 0.4rem;
}
h2 + h3 { margin-top: 1rem; }

/* The insertion bar after the name: the app's own mark. Decoration only. */
.bar::after {
  content: "";
  display: inline-block;
  width: 0.07em;
  min-width: 2px;
  height: 0.72em;
  margin-left: 0.1em;
  background: var(--focus);
  vertical-align: -0.02em;
}
@media (prefers-color-scheme: dark) {
  .bar::after { background: var(--pencil); }
}

.dek {
  margin: 0 0 2.5rem;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink2);
}

p, ul, ol, dl { margin: 0 0 1em; }
p { hanging-punctuation: first; text-wrap: pretty; }

ul.plain, ol.plain { padding-left: 1.2em; }
ul.plain li, ol.plain li { margin-bottom: 0.35em; }
ul.plain li::marker { color: var(--ink2); }

.lede {
  font-size: 1.1875em;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

.small {
  font: 400 0.875rem/1.45 var(--sans);
  color: var(--ink2);
}

/* The app's own words, set as the app sets them: SF, semibold. */
.ui {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86em;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* ---------- Numbered sections: hanging verse numbers ---------- */

.verses {
  counter-reset: verse;
  padding: 0;
  margin: 0;
  list-style: none;
}
.verses > li {
  counter-increment: verse;
  position: relative;
}
.verses > li > h3::before {
  content: counter(verse);
  position: absolute;
  left: -1.75rem;
  width: 1.25rem;
  text-align: right;
  font: 600 0.8125rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink2);
}
@media (max-width: 40rem) {
  /* No margin to hang into on a phone: the number sits before the heading. */
  .verses > li > h3::before {
    position: static;
    display: inline-block;
    width: auto;
    margin-right: 0.6rem;
  }
}

/* ---------- Figure: a plate of two screens ---------- */

.plate {
  margin: 2.75rem 0 2.5rem;
}
.plate-images {
  display: grid;
  grid-template-columns: 70.37fr 68.7fr; /* each image's width ÷ height, so both share a height */
  gap: 10px;
  background: var(--plate);
  padding: 10px;
}
.plate-images img {
  display: block;
  width: 100%;
  height: auto;
}
.plate figcaption {
  margin-top: 0.75rem;
  font: 400 0.875rem/1.45 var(--sans);
  color: var(--ink2);
}
.plate figcaption b { font-weight: 600; color: var(--ink); }

/* ---------- Store line ---------- */

.store {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}
.store a { font-weight: 600; }

/* The App Store link under the dek: the app's cloth, with its light word. */
.get { margin: -1.25rem 0 2.5rem; }
.get a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  color: var(--on-cloth);
  background: var(--cloth);
  border-radius: 6px;
  text-decoration: none;
}
.get a:hover { background: #64202b; }
.store .small { display: block; margin-top: 0.35rem; }

/* ---------- Questions ---------- */

.qa dt {
  font: 600 1.0625rem/1.3 var(--sans);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}
.qa dd { margin: 0; }
.qa dd p:last-child, .qa dd ul:last-child { margin-bottom: 0; }

/* ---------- The cloth: the contact page, like the app's controls page ---------- */

.cloth {
  --focus: var(--pencil);
  background: var(--cloth);
  color: var(--on-cloth);
  margin: 3.5rem calc(-1 * var(--gutter)) 0;
  padding: 1.75rem var(--gutter) 2rem;
}
.cloth h2 { margin-top: 0; }
.cloth p { color: var(--on-cloth); }
.cloth .small { color: var(--on-cloth2); }
.cloth a { text-decoration-color: var(--on-cloth2); }

@media (min-width: 40rem) {
  .cloth {
    margin-left: 0;
    margin-right: 0;
    padding: 2rem 2rem 2.25rem;
  }
}

.field { margin: 0 0 1.5rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font: 600 0.9375rem/1.3 var(--sans);
}
.field label .opt {
  font-weight: 400;
  color: var(--on-cloth2);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.65rem;
  font: 400 1.0625rem/1.45 var(--serif);
  color: var(--on-cloth);
  background: rgba(0, 0, 0, 0.22);
  border: 0;
  border-bottom: 1.5px solid var(--on-cloth2);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 9.5rem;
  resize: vertical;
  border: 1.5px solid var(--on-cloth2);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--pencil);
  outline-offset: 2px;
}

/* The one filled key: an ink face with the cloth-coloured word. */
.key {
  display: inline-block;
  min-height: 48px;
  min-width: 96px;
  padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  color: var(--cloth);
  background: var(--on-cloth);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.key:hover { background: #ffffff; }
.key:focus-visible {
  outline: 2px solid var(--pencil);
  outline-offset: 3px;
}

/* Honeypot: out of sight and out of the tab order; people never see it. */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Privacy page details ---------- */

.updated {
  font: 400 0.9375rem/1.4 var(--sans);
  color: var(--ink2);
  margin: 0 0 2.25rem;
}
.summary {
  border-left: 2px solid var(--cloth);
  padding-left: 1rem;
  margin: 0 0 2.5rem;
}
@media (prefers-color-scheme: dark) {
  .summary { border-left-color: var(--ink2); }
}
.store-list {
  padding-left: 1.2em;
}
.store-list li { margin-bottom: 0.5em; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82em;
}

/* ---------- Foot ---------- */

.foot {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 4.5rem auto 0;
  padding: 0 var(--gutter) 2.5rem;
}
.foot-inner {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font: 400 0.8125rem/1.5 var(--sans);
  color: var(--ink2);
}
.foot-inner p { margin: 0 0 0.5rem; }
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.foot nav a { color: var(--ink); }

/* ---------- Wide screens: more air, same measure ---------- */

@media (max-width: 40rem) {
  /* On a phone the plate runs to the screen's edges, so the pictures get every pixel. */
  .plate { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .plate-images { gap: 6px; padding: 6px; }
  .plate figcaption { padding: 0 var(--gutter); }
}

@media (min-width: 64rem) {
  h1 { margin-top: 5rem; }
  .plate { margin-left: -3rem; margin-right: -3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .nav, .skip, .cloth form { display: none; }
  body { background: #fff; color: #000; }
}
