:root {
  --paper: #f8f6f1;
  --paper-2: #efebe3;
  --ink: #1f1d1a;
  --ink-2: #57524a;
  --rule: #ddd6ca;
  --accent: #6e5a43;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1160px;
}
:root[lang="ar"] {
  --display: "Noto Naskh Arabic", "Geeza Pro", serif;
  --text: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  padding-bottom: 64px;
}
:root[lang="ar"] body { font-size: 1.0625rem; line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; color: var(--ink); }
:root[lang="ar"] h1, :root[lang="ar"] h2 { font-weight: 500; }
:root[lang="ar"] h3 { font-family: var(--text); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); line-height: 1.15; }
:root[lang="ar"] h2 { line-height: 1.5; }
h3 { font-size: 1.35rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 246, 241, 0.97);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-family: var(--display); font-size: 1.2rem; text-decoration: none; white-space: nowrap; letter-spacing: 0.01em; }
:root[lang="ar"] .wordmark { font-size: 1.25rem; font-weight: 500; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.98rem; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-size: 0.95rem; text-decoration: none; color: var(--ink-2); }
.lang-switch:hover { color: var(--ink); }
.header-book {
  font-size: 0.95rem; text-decoration: none; border: 1px solid var(--ink);
  padding: 8px 16px; color: var(--ink); white-space: nowrap;
}
.header-book:hover { background: var(--ink); color: var(--paper); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px 0; font: inherit;
  font-size: 0.95rem; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.9rem); line-height: 1.02; letter-spacing: -0.01em; }
:root[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero .role { font-family: var(--display); font-size: clamp(1.2rem, 3vw, 1.55rem); color: var(--ink-2); margin: 18px 0 22px; line-height: 1.35; }
:root[lang="ar"] .hero .role { line-height: 1.7; }
.hero .lede { max-width: 34em; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 14px 26px; font-size: 1rem; border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.text-link { text-decoration: underline; color: var(--ink); }
.portrait {
  aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 440px;
}
.portrait[hidden] { display: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font-family: "Libre Caslon Display", Georgia, serif; font-size: 5rem; color: #cfc6b7; }

/* Sections */
section.block { border-top: 1px solid var(--rule); padding: 64px 0; }
.block-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.prose { max-width: 38em; }
.about-body { display: grid; gap: 44px; }
.prose p:last-child { margin-bottom: 0; }

.cred h3 { font-size: 1.15rem; margin: 0 0 12px; }
.cred + .cred { margin-top: 32px; }
.cred ul { list-style: none; margin: 0; padding: 0; }
.cred li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.55; }
.cred li:last-child { border-bottom: 1px solid var(--rule); }

.groups { display: grid; grid-template-columns: 1fr; gap: 44px; }
.group h3 { margin-bottom: 10px; }
.group p { color: var(--ink-2); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 1rem; }

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 20px 0; border-top: 1px solid var(--rule); }
.pubs li:last-child { border-bottom: 1px solid var(--rule); }
.pubs .title { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.4; margin-bottom: 6px; }
:root[lang="ar"] .pubs .title, .pubs .title[lang="en"] { font-family: "Libre Caslon Display", Georgia, serif; }
.pubs .meta { display: block; color: var(--ink-2); font-size: 0.98rem; }
.pubs a { font-size: 0.95rem; }
[dir="rtl"] .pubs [lang="en"] { direction: ltr; text-align: left; unicode-bidi: isolate; }

.locs { display: grid; grid-template-columns: 1fr; gap: 36px; }
.loc h3 { margin-bottom: 10px; }
.loc ul { list-style: none; margin: 0; padding: 0; }
.loc li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.loc li:last-child { border-bottom: 1px solid var(--rule); }
.loc-name { font-size: 1.05rem; }
.loc-area { color: var(--ink-2); font-size: 0.98rem; }
.loc a { font-size: 0.95rem; }
.note { color: var(--ink-2); margin-top: 28px; max-width: 38em; }

.booking .phone { margin-top: 18px; color: var(--ink-2); }
.booking .phone a { color: var(--ink); }
[dir="rtl"] [data-phone] { direction: ltr; unicode-bidi: isolate; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
.footer-inner .wordmark { font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.95rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); }

/* Sticky booking bar (phones) */
.book-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 1rem; letter-spacing: 0.01em;
}
.book-bar:hover { color: var(--paper); background: var(--accent); }

@media (max-width: 859px) {
  .menu-toggle { display: inline-block; }
  .header-book { display: none; }
  .header-actions { margin-inline-start: auto; }
  .site-nav { position: absolute; top: 64px; inset-inline: 0; margin: 0; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 4px var(--gutter) 12px; }
  .site-nav li a { display: block; padding: 12px 0; font-size: 1.05rem; color: var(--ink); border-top: 1px solid var(--rule); }
  .site-nav li:first-child a { border-top: 0; }
  .header-actions { order: 2; }
  .site-nav { order: 3; }
  .portrait { max-width: none; aspect-ratio: 5 / 4; }
}

@media (min-width: 860px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; }
  .book-bar { display: none; }
  .hero { padding: 96px 0 112px; }
  .hero-grid.has-portrait { grid-template-columns: 1.25fr 0.75fr; gap: 72px; }
  section.block { padding: 96px 0; }
  .block-grid { grid-template-columns: 4fr 8fr; gap: 48px; }
  .about-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .groups { grid-template-columns: 1fr 1fr; gap: 56px 48px; }
  .locs { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 860px) {
  .block-grid.stack { grid-template-columns: 1fr; gap: 40px; }
  .block-grid.stack .about-body { grid-template-columns: 7fr 5fr; gap: 72px; }
}
