:root {
  color-scheme: light;
  --cream: #fff9ed;
  --paper: #fffdf7;
  --ink: #283b3a;
  --muted: #637472;
  --teal: #2c7770;
  --teal-dark: #1f5d58;
  --gold: #d9a54b;
  --peach: #f2c8aa;
  --line: #dfddd2;
  --shadow: 0 18px 60px rgba(41, 75, 71, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(242, 200, 170, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 13%, rgba(217, 165, 75, 0.18), transparent 24rem),
    var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--ink);
  color: white;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(40, 59, 58, .14);
}

nav { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }

nav a {
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 700;
}

nav a:hover, nav a:focus-visible, nav a[aria-current="page"] {
  background: rgba(44, 119, 112, .11);
  color: var(--teal-dark);
  outline: none;
}

main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 2rem;
  align-items: center;
  min-height: 400px;
  padding: clamp(2rem, 7vw, 5rem);
  border: 1px solid rgba(44, 119, 112, .14);
  border-radius: 36px;
  background: rgba(255, 253, 247, .88);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(217, 165, 75, .34);
}

.hero::before { width: 180px; height: 180px; right: -58px; top: -70px; }
.hero::after { width: 100px; height: 100px; left: -38px; bottom: -45px; }

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.8rem); }
h2 { margin: 0 0 .7rem; font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { margin: 0 0 .35rem; font-size: 1.08rem; }

.lead { max-width: 670px; margin: 1rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border: 1px solid var(--teal);
  border-radius: 14px;
  color: white;
  background: var(--teal);
  text-decoration: none;
  font-weight: 800;
}

.button.secondary { color: var(--teal-dark); background: transparent; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(44,119,112,.16); }

.lantern-art {
  position: relative;
  width: min(260px, 80%);
  aspect-ratio: .8;
  margin: auto;
}

.lantern-art .glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 48% 48% 44% 44%;
  background: radial-gradient(circle, rgba(255, 220, 130, .88), rgba(242, 200, 170, .36) 45%, transparent 70%);
}

.lantern-art .frame {
  position: absolute;
  left: 28%;
  top: 20%;
  width: 44%;
  height: 61%;
  border: 8px solid var(--teal-dark);
  border-radius: 30px 30px 42px 42px;
  transform: rotate(-2deg);
}

.lantern-art .frame::before {
  content: "";
  position: absolute;
  left: 22%;
  top: -43px;
  width: 56%;
  height: 35px;
  border: 7px solid var(--teal-dark);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.lantern-art .frame::after {
  content: "";
  position: absolute;
  left: 19%;
  bottom: 18%;
  width: 62%;
  height: 62%;
  border-radius: 50% 50% 45% 45%;
  background: #f5bd58;
  box-shadow: 0 0 30px #f5bd58;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-intro { max-width: 720px; margin-bottom: 1.5rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, .82);
}

.card p { margin: .35rem 0 0; color: var(--muted); }
.card a { font-weight: 750; }

.document {
  width: min(850px, 100%);
  margin: 1.5rem auto 4rem;
  padding: clamp(1.4rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.document header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.document section { padding: 1.4rem 0 0; }
.document p, .document li { color: #4f6260; }
.document ul { padding-inline-start: 1.3rem; }
.updated { color: var(--muted); font-size: .92rem; }

.arabic {
  direction: rtl;
  text-align: right;
  font-family: "SF Arabic Rounded", "Geeza Pro", Tahoma, sans-serif;
}

.language-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2.2rem 0 .5rem;
  color: var(--gold);
  font-weight: 800;
}

.language-divider::before, .language-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

footer p { margin: 0; }
footer a { margin-inline-start: 1rem; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .brand span { max-width: 110px; line-height: 1.2; }
  nav { gap: .1rem; }
  nav a { padding: .45rem .55rem; font-size: .84rem; }
  .hero { grid-template-columns: 1fr; padding: 2rem 1.35rem; border-radius: 26px; }
  .lantern-art { width: 180px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .document { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
