/* The app's palette, unchanged: canvas #0D0F12, sage #8FA89B, gold #D4AF37. */
:root {
  --canvas: #0d0f12;
  --surface: #16191e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #86868b;
  --faint: #48484a;
  --accent: #8fa89b;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 20px;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero {
  margin-bottom: 56px;
}

/* The app icon's letter, at display size. */
.mark {
  font-family: "Geeza Pro", "SF Arabic", serif;
  font-size: 64px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 44px 0 14px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

p {
  margin: 0 0 16px;
}

section p,
.facts li {
  color: var(--text);
}

.facts {
  margin: 0;
  /* Logical rather than physical, so the marker sits on the correct side of an
     Arabic list without a second rule. */
  padding-inline-start: 20px;
}

.facts li {
  margin-bottom: 8px;
}

.note {
  margin-top: 44px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.note h2 {
  margin-top: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/*
 * The language switcher.
 *
 * The current language is a <span> rather than a link to itself, which is both
 * the accessible thing and the honest one: three links where one goes nowhere
 * reads as a broken page.
 */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--faint);
}

.hero .langs {
  margin: 24px 0 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Legal pages */
.doc h2 {
  color: var(--text);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
  margin: 36px 0 10px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.updated {
  color: var(--faint);
  font-size: 14px;
}

.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th,
td {
  text-align: start;
  padding-block: 10px;
  padding-inline: 0 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--muted);
}

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 0 56px;
  color: var(--faint);
  font-size: 13px;
}
