:root {
  --ink: #1a1a1a;
  --muted: #5c564c;
  --line: #e4dccb;
  --paper: #f7f4ee;
  --card: #fffdf8;
  --gold: #c89b2d;
  --gold-dark: #8d6a16;
  --header: #111111;
  --header-text: #f6f1e6;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Tajawal", "SF Pro Text", "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

html[data-lang="en"] [data-lang="ar"],
html[data-lang="ar"] [data-lang="en"] {
  display: none !important;
}

a {
  color: var(--gold-dark);
}

.site-header {
  background: var(--header);
  color: var(--header-text);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
}

.brand span {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #111;
}

.page {
  padding: 36px 0 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 8px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

p,
li {
  color: #2a2722;
}

ul {
  margin: 8px 0 16px;
  padding-inline-start: 1.2em;
}

li + li {
  margin-top: 6px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 640px) {
  .card {
    padding: 22px 16px 4px;
    border-radius: 14px;
  }

  body {
    font-size: 16px;
  }
}
