:root {
  --ink: #16281f;
  --ink-soft: #4a5c52;
  --paper: #fbf8f1;
  --paper-2: #ffffff;
  --green: #0d4630;
  --green-2: #15694a;
  --gold: #b8912f;
  --gold-soft: #e3c97a;
  --line: #e6ded0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9e5da;
    --ink-soft: #a9b3ac;
    --paper: #0b1712;
    --paper-2: #10201a;
    --green: #8fd3b4;
    --green-2: #63b894;
    --gold: #d9b65c;
    --gold-soft: #6b5722;
    --line: #1e3329;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- ornamental header ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d4630 0%, #0a3526 55%, #07261b 100%);
  color: #f3ecdb;
  padding: 56px 20px 64px;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23e3c97a' stroke-width='1'><path d='M40 0l40 40-40 40L0 40z'/><circle cx='40' cy='40' r='18'/><path d='M40 22l18 18-18 18-18-18z'/></g></svg>");
  background-size: 80px 80px;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.bismillah {
  font-family: "Amiri", "Scheherazade New", "Geeza Pro", serif;
  font-size: clamp(22px, 5vw, 30px);
  color: var(--gold-soft);
  direction: rtl;
  margin: 0 0 18px;
  letter-spacing: .5px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #cdbf9a;
  margin-bottom: 10px;
}
.brand svg { width: 18px; height: 18px; }
h1 {
  font-family: "Amiri", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 700;
}
.meta {
  font-size: 14px;
  color: #bcae8c;
  margin: 0;
}
.rule {
  width: 120px;
  height: 18px;
  margin: 20px auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'><g fill='none' stroke='%23b8912f' stroke-width='1.4'><path d='M0 9h44M76 9h44'/><path d='M60 2l7 7-7 7-7-7z'/><circle cx='60' cy='9' r='1.6' fill='%23b8912f'/></g></svg>") center/contain no-repeat;
}

/* ---- nav ---- */
nav.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
nav.tabs a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
nav.tabs a:hover { background: rgba(21,105,74,.08); text-decoration: none; }
nav.tabs a[aria-current="page"] {
  color: var(--green);
  border-color: var(--line);
  background: rgba(184,145,47,.10);
  font-weight: 600;
}

/* ---- content ---- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(13,70,48,.04), 0 12px 32px rgba(13,70,48,.05);
}
h2 {
  font-family: "Amiri", Georgia, serif;
  font-size: clamp(21px, 3.4vw, 26px);
  color: var(--green);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
h2:first-of-type { margin-top: 8px; }
h3 {
  font-size: 17px;
  margin: 26px 0 8px;
  color: var(--ink);
}
p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}
ul ul { margin-top: 10px; }
strong { color: var(--ink); }

.lede {
  font-size: 17px;
  color: var(--ink-soft);
}
.notice {
  background: linear-gradient(180deg, rgba(184,145,47,.10), rgba(184,145,47,.04));
  border: 1px solid rgba(184,145,47,.35);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 26px 0;
}
.notice h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: .02em;
}
.notice p:last-child { margin-bottom: 0; }
.notice p { font-size: 15px; color: var(--ink-soft); }
.legal-caps { font-size: 14px; color: var(--ink-soft); }

.contact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: rgba(21,105,74,.04);
  margin-top: 8px;
}
.contact dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; }
.contact dt { color: var(--ink-soft); font-size: 14px; }
.contact dd { margin: 0; }
@media (max-width: 520px) {
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
}

/* ---- landing ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.tile {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13,70,48,.10);
}
.tile h3 { margin: 10px 0 6px; color: var(--green); font-family: "Amiri", Georgia, serif; font-size: 20px; }
.tile p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.tile .glyph { font-size: 22px; color: var(--gold); }

footer {
  text-align: center;
  padding: 28px 20px 48px;
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
footer .sep { margin: 0 8px; color: var(--gold); }
