/* Shared look for the plain pages: home, support, privacy, terms, deletion.
   Colours are the app's "First light" palette, letter for letter, both themes.
   There is no separate web kit yet, so the app stays the single source.

   House rule: nothing is clipped and nothing scrolls sideways inside a block.
   Check at 320, 375 and on a desktop before calling anything done. */

:root {
  --bg: #E7D8C6;
  --card: #FDF6EE;
  --stroke: rgba(255, 255, 255, 0.62);
  --text: #2E1C12;
  --dim: #6A4936;
  --accent: #E2561C;
  --warn: #B93B22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A100A;
    --card: #2D1E14;
    --stroke: #5E432D;
    --text: #F6E7D6;
    --dim: #C0A48C;
    --accent: #FF6A26;
    --warn: #FFC24D;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  /* Long words and addresses wrap instead of pushing past the edge. */
  overflow-wrap: anywhere;
}

.wrap { max-width: 720px; margin: 0 auto; }

header { padding: 28px 0 8px; }

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-decoration: none;
}

/* Header with the mark. One mark for everything — brand/mark.svg — and the
   favicons and link preview are baked from it (brand/bake.py). Never redrawn. */
.brandrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex: none;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 18px 0 8px;
  font-weight: 700;
}

h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 34px 0 10px;
  font-weight: 650;
}

h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  font-weight: 650;
}

p, li { margin: 10px 0; }

ol, ul { padding-left: 22px; }

a { color: var(--accent); }

.lede {
  font-size: 19px;
  color: var(--dim);
  margin-bottom: 4px;
}

/* The contact box has to be visible on a phone without scrolling. */
.contact {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
}

.contact a.mail {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  margin: 2px 0 6px;
  line-height: 1.25;
}

.contact .when { color: var(--dim); margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 4px 20px 18px;
  margin: 16px 0;
}

/* Heading inside a card: second level, because levels must not be skipped,
   but sized like a third so it does not argue with the page title. */
.card .cardhead {
  font-size: 17px;
  font-weight: 650;
  margin: 22px 0 6px;
}

.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin: 14px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--accent);
  color: #FFF4E8;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}

.note {
  border-left: 3px solid var(--warn);
  padding-left: 14px;
  margin: 18px 0;
  color: var(--text);
}

.q { font-weight: 650; margin: 24px 0 2px; }

footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  color: var(--dim);
  font-size: 15px;
}

footer a { margin-right: 16px; display: inline-block; }

.updated { color: var(--dim); font-size: 15px; }

@media (max-width: 380px) {
  body { padding: 0 16px 60px; font-size: 16px; }
  h1 { font-size: 26px; }
  .contact a.mail { font-size: 19px; }
}
