/* Peel's public pages: one small stylesheet, no web fonts, no scripts, no trackers.
   Colours follow the app: bone and charcoal surfaces, Peel's orange for links, the forest mat on the mark. */

:root {
  color-scheme: light dark;
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --text: #1D1B18;
  --muted: #5B574F;
  --accent: #B8431F;
  --line: rgba(29, 27, 24, 0.12);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #211F1C;
    --text: #F2EFE9;
    --muted: #ADA79E;
    --accent: #FF6B4A;
    --line: rgba(242, 239, 233, 0.14);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  inset-inline-start: -999px;
}
.skip:focus {
  inset-inline-start: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 8px;
}

/* The app's "P sticker": a rounded square with its corner folded back in orange. */
.mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: #2F5D4E; /* the forest mat in both appearances, so the white P keeps its contrast */
  color: #FFFFFF;
  font-weight: 800;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  overflow: hidden;
}
.mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--accent) 50%);
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

nav.lang {
  margin-inline-start: auto;
  font-size: 0.95rem;
}

main { padding: 8px 0 48px; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 36px 0 8px;
}
h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: 6px; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0 8px;
}

section[lang="ar"] {
  font-family: var(--font-ar);
  line-height: 1.85;
}
section[lang="ar"] h1,
section[lang="ar"] h2,
section[lang="ar"] h3 { letter-spacing: 0; }

/* Latin words and addresses inside Arabic text keep their own direction. */
bdi, .ltr { unicode-bidi: isolate; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site a { color: inherit; }

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  body { font-size: 1rem; }
}
