/* egartho.org: plain pages, no external requests. The colours follow the Egartho mark. */
@font-face {
  font-family: "Serto Urhoy";
  src: url("/fonts/SertoUrhoy.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fbf7f0;
  --card: #f4ecdf;
  --text: #2b2420;
  --muted: #6c5f56;
  --accent: #95583f;
  --accent-text: #ffffff;
  --line: #e2d6c5;
  --error-bg: #fbe4dc;
  --error-text: #7a2a14;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1816;
    --card: #27211e;
    --text: #f2e9dc;
    --muted: #b9aa9b;
    --accent: #e0a184;
    --accent-text: #1c1816;
    --line: #3a312c;
    --error-bg: #3d211a;
    --error-text: #ffc9b8;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.top, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-inline: 1rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1.2rem;
  text-decoration: none;
}
.brand img { border-radius: 10px; }

.syriac {
  font-family: "Serto Urhoy", serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
}

.pages { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
.pages a { color: var(--muted); text-decoration: none; padding-block: 0.4rem; }
.pages a:hover, .pages a[aria-current] { color: var(--text); text-decoration: underline; }

main { padding-block: 2rem 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-inline-start: 1.4rem; }
li + li { margin-top: 0.5rem; }

.lead { font-size: 1.15rem; }
.note { color: var(--muted); }

.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.error {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error-text);
}

.computer {
  margin-top: 2rem;
  padding: 0.25rem 1.25rem 0.5rem;
  border-radius: 16px;
  background: var(--card);
}
.computer h2 { margin-top: 1rem; }
.is-ios .computer { display: none; }

footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.languages { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.languages a { color: var(--muted); padding-block: 0.4rem; }
.languages a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
