:root {
  --navy: #0e2a47;
  --navy-deep: #091d33;
  --sea: #2c6a94;
  --paper: #f5f6f3;
  --white: #ffffff;
  --ink: #16222e;
  --muted: #55636f;
  --gold: #d2a84c;
  --gold-ink: #8a6a1f;
  --line: #d9dedd;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.08; }
h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.01em; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 50; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--pad); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); background: var(--navy); color: var(--white); }
.brand { font-family: var(--display); font-size: 24px; text-decoration: none; letter-spacing: 0.01em; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 15px; }
.top nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.top nav a:hover { border-bottom-color: var(--gold); }
.top nav .nav-cta { border: 1px solid rgba(255,255,255,.45); padding: 8px 18px; border-radius: 999px; }
.top nav .nav-cta:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-inline-end: -10px; }
.lang { display: flex; margin-inline-start: auto; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; min-height: 40px; min-width: 44px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: #c5d1dc; }
.lang button[lang="ar"] { font-family: "Noto Sans Arabic", var(--sans); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--white); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 6vw, 80px) var(--pad) 0; overflow: hidden; }
.hero-copy { align-self: center; padding-bottom: clamp(40px, 7vw, 96px); max-width: 600px; margin-inline-start: auto; width: 100%; }
.place { color: var(--gold); font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(68px, 10.5vw, 152px); line-height: .92; letter-spacing: -0.02em; }
.lede { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #d8e1e9; max-width: 30em; margin: 30px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 16px; background: none; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #e0b95f; }
.btn-line { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-line:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }

.arch { position: relative; margin: 0; width: min(100%, 520px); aspect-ratio: 4 / 4.7; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sea); justify-self: start; }
.arch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(.85); }
.arch::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,42,71,.05) 30%, rgba(14,42,71,.72) 100%); }
.arch-portrait { position: absolute; z-index: 2; bottom: 0; left: 50%; width: 118%; max-width: none; transform: translateX(-52%); }
.arch figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Sections */
section { scroll-margin-top: 84px; }
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); padding-block: clamp(64px, 9vw, 128px); }
.about .big { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.5; color: var(--navy); }
.about-body > p:not(.big) { color: var(--muted); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }

.themes { background: var(--white); border-block: 1px solid var(--line); }
.themes-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); padding-block: clamp(56px, 8vw, 104px); }
.themes-inner p { color: var(--muted); margin-top: 18px; max-width: 24em; }
.theme-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.theme-list li { font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--navy); padding-block: 20px; padding-inline: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.theme-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.pubs { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.search input { min-height: 44px; width: 200px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 15px; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-visual { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; padding: 0; overflow: hidden; background: var(--navy); color: var(--white); text-align: start; position: relative; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.card-visual .type { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-visual .type b { font: 400 40px/1 var(--display); }
.card-visual .type span { color: var(--gold); margin-top: 8px; font-size: 15px; }
.card-visual.sea { background: var(--sea); }
.card-text { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.meta b { color: var(--gold-ink); font-weight: 600; margin-inline-end: 10px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.card-text p { color: var(--muted); font-size: 16px; flex: 1; }
.link { background: none; border: 0; padding: 0; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; align-self: flex-start; }
.link:hover { text-decoration-color: var(--navy); }
.empty { padding: 40px 0; color: var(--muted); }

.gallery { background: var(--navy); color: var(--white); padding-block: clamp(64px, 9vw, 112px); }
.sec-intro { color: var(--muted); margin-top: 14px; font-size: 18px; }
.gallery .sec-intro { color: #c5d1dc; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); margin-top: 40px; max-width: 720px; }
.photos figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--navy-deep); }
.photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.1); }

.meet { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); padding-block: clamp(64px, 9vw, 120px); }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; align-items: start; }
.event time { font-size: 15px; color: var(--muted); text-align: center; line-height: 1.3; min-width: 84px; }
.event time strong { display: block; font: 400 56px/1 var(--display); color: var(--navy); }
.status { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.event p { color: var(--muted); margin: 8px 0 6px; }

.contact { background: var(--sea); color: var(--white); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 7vw, 88px); }
.contact p { margin: 14px 0 0; color: #e2ecf3; max-width: 30em; }

.foot { background: var(--navy-deep); color: #c5d1dc; font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 40px; }
.foot p { margin: 0; }
.foot .brand { color: var(--white); }
.foot-links { display: flex; gap: 28px; align-items: center; }
.foot .link { color: var(--white); font-weight: 500; }
.foot a { text-underline-offset: 5px; }

/* Dialogs */
dialog { border: 0; padding: 0; border-radius: 16px; width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(9,29,51,.35); }
dialog::backdrop { background: rgba(9,29,51,.62); }
.dlg { padding: clamp(28px, 5vw, 48px); position: relative; }
.dlg h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 22px; margin-inline-end: 44px; }
.dlg h3 { font-size: 22px; margin: 26px 0 8px; }
.dlg .body p { color: #33414d; }
.dlg .body a { color: var(--sea); }
.dlg figure { margin: 0 0 24px; }
.dlg figure img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 20%; }
.close { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; }
.note { font-size: 14px; color: var(--muted); border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; margin: 24px 0; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .top { gap: 10px; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 6px var(--pad) 22px; border-top: 1px solid rgba(255,255,255,.14); }
  .top nav.open { display: flex; }
  .top nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .top nav .nav-cta { margin-top: 16px; text-align: center; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { margin: 0; padding-bottom: 8px; }
  .arch { justify-self: center; width: min(100%, 420px); }
  .about, .themes-inner, .meet { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 560px) {
  .theme-list, .facts { grid-template-columns: minmax(0, 1fr); }
  .search, .search input { width: 100%; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .event time { text-align: start; }
  .event time strong { display: inline; font-size: 40px; margin-inline-end: 6px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos figure:last-child { display: none; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Arabic */
html[lang="ar"] { --display: "Noto Naskh Arabic", serif; --serif: "Noto Naskh Arabic", serif; --sans: "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
html[lang="ar"] .hero h1 { font-size: clamp(60px, 9vw, 128px); line-height: 1.2; }
html[lang="ar"] .brand { font-weight: 600; font-size: 22px; }
html[lang="ar"] .card-visual .type b { font: 600 34px/1.3 var(--display); }
html[lang="ar"] .lang button[lang="fr"], html[lang="ar"] .lang button[lang="en"] { font-family: "Public Sans", sans-serif; }
