:root {
  --gold: #e3b45a;
  --gold-soft: #f3d79a;
  --gold-deep: #a9782c;
  --ink: #f6f0e1;
  --muted: rgba(246, 240, 225, 0.68);
  --glass: rgba(8, 20, 16, 0.55);
  --line: rgba(227, 180, 90, 0.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #07130f;
  display: flex; justify-content: center;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
.bg {
  position: fixed; inset: 0; z-index: -2;
  background: url("/.netlify/images?url=/img/mahfuz-bg.jpg&w=1400&fm=webp") center 30% / cover no-repeat;
}
.veil {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0.7) 0%, rgba(4, 10, 8, 0.96) 60%);
}
main { width: 100%; max-width: 720px; padding: 40px 22px; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-soft); text-decoration: none; font-size: 0.88rem;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.back:hover, .back:focus-visible { background: rgba(227, 180, 90, 0.1); border-color: rgba(227, 180, 90, 0.6); outline: none; }
.back svg { width: 16px; height: 16px; }
.doc {
  margin-top: 22px;
  padding: 30px 26px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  line-height: 1.7;
  animation: rise .7s ease-out both;
}
h1 {
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: 1.8rem; letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.updated { font-size: 0.8rem; color: var(--gold); margin-top: 4px; letter-spacing: .04em; }
h2 { font-size: 1.05rem; font-weight: 600; color: var(--gold-soft); margin-top: 26px; }
p, ul { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.doc > p:first-of-type { color: var(--ink); }
ul { padding-left: 20px; }
li { margin-top: 4px; }
.doc a { color: var(--gold-soft); }
.tg {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px 18px; border-radius: 14px;
  background: linear-gradient(135deg, #37aee2, #1e96c8);
  color: #fff !important; text-decoration: none; font-weight: 600;
  transition: transform .2s ease;
}
.tg:hover, .tg:focus-visible { transform: translateY(-2px); outline: none; }
.tg svg { width: 20px; height: 20px; }
footer { margin-top: 24px; text-align: center; font-size: 0.75rem; color: rgba(246, 240, 225, 0.45); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer a { color: rgba(246, 240, 225, 0.6); text-decoration: none; }
footer a:hover, footer a[aria-current] { color: var(--gold-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
