@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/noto-naskh-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/noto-naskh-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --ink: #1a2421;
  --muted: #55615c;
  --line: #d9d4c6;
  --accent: #123c34;
  --accent-ink: #f7f4ec;
  --sand: #c8964f;
  --sand-ink: #8a5f22;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101715;
    --surface: #18211e;
    --ink: #eef0ea;
    --muted: #a5b0aa;
    --line: #2f3b37;
    --accent: #7fc4b1;
    --accent-ink: #0d1614;
    --sand-ink: #e0b672;
  }
}

:root:lang(ar) {
  --serif: "Noto Naskh Arabic", Georgia, serif;
  --sans: "Noto Naskh Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}
:lang(ar) body, body:lang(ar) { font-size: 1.15rem; line-height: 1.85; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 700; line-height: 1.4; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); letter-spacing: -0.015em; }
:lang(ar) h1 { letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-block-end: 1rem; }
h3 { font-size: 1.5rem; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
section[id] { scroll-margin-block-start: 5rem; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 1.5rem; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; inset-block-start: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 2; }

.top { position: sticky; inset-block-start: 0; z-index: 1; background: var(--bg); border-block-end: 1px solid var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.top-links { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding-block: .25rem; }
nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--accent); border-radius: 999px; padding: .15rem .85rem; text-decoration: none; font-size: .95rem; font-weight: 600; }
.lang:hover { background: var(--accent); color: var(--accent-ink); }
.lang:lang(ar) { font-family: "Noto Naskh Arabic", serif; }
.lang:lang(en) { font-family: system-ui, sans-serif; }

.hero { position: relative; isolation: isolate; color: #fff; background: #0e2b26; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% bottom; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(10, 34, 30, .86) 0%, rgba(10, 34, 30, .68) 55%, rgba(10, 34, 30, .2) 100%); }
.hero-copy { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(9rem, 20vw, 15rem); max-width: 46rem; }
.eyebrow { color: #f0cd8f; font-weight: 600; font-size: 1rem; margin: 0 0 1rem; }
.lead { font-size: 1.2rem; max-width: 34em; margin: 1.5rem 0 2rem; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-block;
  background: var(--sand);
  color: #17120a;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { opacity: .9; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }

.about, .subjects, .riyadh { padding-block: clamp(3rem, 7vw, 5rem); }
.subjects, .riyadh { border-block-start: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 2rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-block-start: 4px solid var(--sand); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.fact-big { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; margin: 0; }
:lang(ar) .fact-big { font-weight: 700; line-height: 1.5; }
.fact p:not(.fact-big) { color: var(--muted); margin: .4rem 0 0; }

.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.subject-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2rem); }
.glyph { display: block; width: 2.5rem; height: 2.5rem; color: var(--sand-ink); margin-block-end: 1rem; }
.subject-grid p { color: var(--muted); margin: .5rem 0 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { color: var(--muted); font-size: .95rem; margin-block-start: .5rem; }

.contact { background: #123c34; color: #f7f4ec; padding-block: clamp(3rem, 7vw, 5rem); }
.contact p { margin: 0 0 .25rem; }
.phone { display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); margin-block: .5rem 1.5rem; unicode-bidi: isolate; }
:root:lang(ar) .phone { font-family: Georgia, "Times New Roman", serif; }

@media (max-width: 800px) {
  .facts, .subject-grid, .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
