:root {
  color-scheme: light;
  --page: #faf9f7;
  --surface: #ffffff;
  --ink: #1b1916;
  --ink-muted: #57524b;
  --ink-faint: #7c766e;
  --rule: #e4e1db;
  --brand: #d9821c;
  --link: #146462;
  --focus: #1f7e7c;
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Geeza Pro', system-ui, sans-serif;
  --font-latin: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #1b1916;
    --surface: #242119;
    --ink: #f2f0ec;
    --ink-muted: #cfcac1;
    --ink-faint: #a8a299;
    --rule: #3d3934;
    --brand: #e59c3b;
    --link: #6fbebb;
    --focus: #3f9d9a;
  }
}

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

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

body {
  margin: 0;
  padding: 0 16px 64px;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

[lang='en'] {
  font-family: var(--font-latin);
}

.shell {
  max-width: 36rem;
  margin: 0 auto;
}

.masthead {
  display: block;
  width: fit-content;
  padding: 40px 0 28px;
}

.masthead img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.003em;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  margin: 0;
  color: var(--ink);
}

.block {
  margin-top: 40px;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links a {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.get {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.get a {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.get a.primary {
  background-color: var(--ink);
  color: var(--page);
}

.get a:hover {
  border-color: var(--brand);
}

/* The one device on the page: the capability lines are an order sheet, so they
   are ruled lines on a page edge rather than cards. */
.sheet {
  list-style: none;
  margin: 0;
  padding: 0 18px;
  background-color: var(--surface);
  border-inline-start: 2px solid var(--brand);
}

[dir='ltr'] .sheet {
  border-radius: 0 6px 6px 0;
}

[dir='rtl'] .sheet {
  border-radius: 6px 0 0 6px;
}

.sheet li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  line-height: 1.7;
}

.sheet li:first-child {
  border-top: 0;
}

.divider {
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}

footer nav:last-child {
  margin-bottom: 0;
}

footer a {
  font-size: 0.9375rem;
}

.doc {
  display: block;
}

.doc h1 {
  margin-bottom: 4px;
}

.updated {
  margin: 0 0 28px;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.doc section {
  margin-top: 26px;
}

.doc p {
  font-size: 0.9375rem;
}

.notfound h1 {
  margin-bottom: 16px;
}
