/* بسم الله الرحمن الرحيم */

:root {
  --background:    #F7F3EC;
  --surface:       #EDE8DF;
  --text:          #2C2416;
  --text-secondary:#6B5D4A;
  --text-muted:    #9E8E7A;
  --accent:        #8B6F47;
  --accent-muted:  #B8956A;
  --border:        #DDD5C8;
  --arabic:        #1E1510;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Brand mark */
.brand {
  text-align: center;
  margin-bottom: 48px;
}
.brand-arabic {
  font-family: 'Amiri', 'Times New Roman', serif;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 4px;
}
.brand-latin {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 6px;
  margin-top: 10px;
  font-weight: 600;
}
.brand-rule {
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.7;
  margin: 22px auto 0;
}

/* Lang switch */
.lang-switch {
  text-align: center;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.lang-switch a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 8px;
}
.lang-switch a:hover { text-decoration: underline; }
.lang-switch .active {
  color: var(--text);
  font-weight: 700;
}

/* Typography */
h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  color: var(--text);
}
.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 40px;
}

h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1px;
  margin: 40px 0 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

p, li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

ul {
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}

strong { color: var(--text); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-muted); }

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.3px;
  font-style: italic;
}

/* Landing */
.landing {
  text-align: center;
  padding-top: 120px;
}
.landing .links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.landing .links a {
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 600px) {
  .page { padding: 40px 20px 60px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  p, li { font-size: 14.5px; }
}
