@font-face {
  font-family: Cormorant;
  src: url("/assets/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Naskh;
  src: url("/assets/noto-naskh.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #25271d;
  --muted: #655e4b;
  --paper: #f5f0e4;
  --paper-deep: #ebe2ce;
  --olive: #22271c;
  --cream: #f7ecd5;
  --gold: #d4b987;
  --line: #cfc3a9;
  --title: Cormorant, Georgia, serif;
  --body: Georgia, serif;
  --ui: "DM Sans", Arial, sans-serif;
}
:root[lang="ar"] {
  --title: Naskh, Georgia, serif;
  --body: Naskh, Georgia, serif;
  --ui: Naskh, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.075rem/1.78 var(--body); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3 { margin: 0; font: 600 2rem/1.05 var(--title); }
p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset-block-start: 1rem; inset-inline-start: 1rem; padding: .65rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.site-header { background: #1d2118; color: var(--cream); border-bottom: 1px solid #4b4b38; }
.masthead { min-height: 4.65rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.wordmark { justify-self: start; display: inline-flex; gap: .75rem; align-items: center; font: 700 1.55rem/1 var(--title); text-decoration: none; white-space: nowrap; }
.seal { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; border: 1px solid var(--gold); border-radius: 50%; position: relative; }
.seal::before { content: ""; width: .49rem; height: .49rem; border: 1px solid var(--gold); position: absolute; inset: 0; margin: auto; transform: rotate(45deg); }
.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
.masthead nav a, .language { font: 500 .9rem/1.2 var(--ui); color: #e2d4b7; text-decoration: none; white-space: nowrap; }
.masthead a:hover { color: #fff5dd; text-decoration: underline; }
.language { justify-self: end; min-width: 5.15rem; padding: .45rem .7rem; border: 1px solid #76694f; text-align: center; }
.language[lang="ar"] { font-family: Naskh, serif; font-size: 1.12rem; }

.hero {
  background: radial-gradient(ellipse at 74% 35%, #353828 0, transparent 61%), linear-gradient(120deg, #262b1f, #1f241a 85%);
  color: var(--cream);
}
.hero-layout { min-height: 40rem; padding-block: clamp(3.4rem, 6vw, 5.1rem) 3rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero-text { padding-bottom: 2rem; }
.eyebrow { font: 600 .8rem/1.45 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: #6a502f; }
.hero .eyebrow { color: var(--gold); }
h1 { font-size: clamp(5rem, 9.4vw, 9.25rem); letter-spacing: -.058em; line-height: .77; margin-block: 1.75rem 1.8rem; }
h1 span { display: block; }
h1 span + span { margin-top: .12em; }
.intro { max-width: 27rem; color: #e2d4b8; font-size: clamp(1.08rem, 1.75vw, 1.25rem); line-height: 1.66; }
.hero-button { display: inline-block; margin-top: 1.75rem; padding: .8rem 1.2rem; color: #241f15; background: #d8bf8a; text-decoration: none; font: 600 .94rem/1.4 var(--ui); }
.hero-button:hover { background: #ebd3a4; }
.portrait { max-width: 26.875rem; width: 100%; justify-self: center; }
.portrait-mat { padding: .56rem; border: 1px solid #9c8156; background: #1c1e16; box-shadow: 0 15px 40px #13150e8c; }
.portrait-mat img { border: 1px solid #7e643f; width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: center 31%; }
.portrait figcaption { margin-top: .75rem; text-align: center; color: #d4c7a7; font: 500 .83rem/1.45 var(--ui); }
.hero-register { border-top: 1px solid #5b553d; background: #1c2118a3; }
.register-content { display: flex; align-items: center; min-height: 3.75rem; color: #e1ca9d; font: 600 .82rem/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.register-content span + span { margin-inline-start: 1.25rem; padding-inline-start: 1.25rem; border-inline-start: 1px solid #71654a; }

.biography { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(14rem, 1fr); gap: clamp(2.25rem, 7vw, 7rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.reading h2, .section-intro h2 { font-size: clamp(3rem, 6vw, 5.45rem); letter-spacing: -.045em; margin-block: .38rem 1.4rem; }
.chapter { max-width: 43rem; margin-top: 1.75rem; }
.chapter h3, .context h3 { font-size: 1.95rem; margin-bottom: .42rem; }
.chapter p, .context p, .disclosure p { color: #494537; }
.first-chapter p::first-letter { float: inline-start; margin: .08em .09em 0 0; color: #775634; font: 600 3.7rem/.85 var(--title); }
.sidebar { align-self: start; margin-top: 1.2rem; }
.facts { padding: 1.35rem 1.45rem 1.5rem; border: 1px solid var(--line); background: #eee5d1; }
.facts h2 { font-size: 2rem; margin-bottom: .75rem; }
.facts dl>div { padding: .52rem 0; border-top: 1px solid #d5c8ab; }
.facts dt { font: 600 .8rem/1.4 var(--ui); color: #635338; }
.facts dd { font: 1.02rem/1.5 var(--body); }
.context { margin-top: 1.75rem; padding-inline: .12rem; }
.context h3 { font-size: 1.65rem; }
.context p { font-size: .96rem; }
.context a, .village-copy a { font: 600 .87rem/1.5 var(--ui); color: #634221; }

.photographs { background: var(--paper-deep); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-intro { margin-bottom: 1.9rem; }
.section-intro h2 { margin-bottom: .55rem; }
.section-intro>p:last-child { color: #514736; max-width: 42rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.45rem; }
.photo { border: 1px solid #c3b494; padding: .6rem; background: #f6efdf; min-width: 0; }
.photo img { aspect-ratio: 3/2; width: 100%; object-fit: cover; background: #d8cbb3; }
.photo-feature { grid-column: 1 / -1; }
.photo-feature img { aspect-ratio: 2.35; object-position: 50% 45%; }
.photo figcaption { padding: .58rem .5rem .72rem; }
.photo figcaption h3, .village h3 { font-size: 1.75rem; margin-bottom: .25rem; }
.photo figcaption a { color: #5d513b; font: 500 .83rem/1.55 var(--ui); }
.village { margin-top: 2.1rem; padding: .6rem; border: 1px solid #c3b494; background: #f6efdf; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.village img { width: 100%; background: #d8cbb3; }
.village figcaption { padding: .55rem .35rem .2rem; color: #5d513b; font: 500 .83rem/1.5 var(--ui); }
.village-copy { padding: 1.15rem clamp(1rem, 3vw, 2.5rem); }
.village-copy p { margin-bottom: .55rem; }
.disclosure { padding-block: 2.65rem; }
.disclosure h2 { font-size: 2rem; margin-bottom: .3rem; }
.disclosure p { max-width: 42rem; font-size: 1rem; }
.site-footer { background: #1d2118; color: #ddcfb1; }
.footer-content { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 500 .86rem/1.5 var(--ui); padding-block: .6rem; }

[lang="ar"] .eyebrow, [lang="ar"] .register-content { letter-spacing: 0; font-size: 1rem; }
[lang="ar"] h1 { letter-spacing: 0; font-size: clamp(4.9rem, 9.12vw, 8.1rem); line-height: .97; margin-block: 1.2rem .85rem; }
[lang="ar"] h1 span + span { margin-top: 0; }
[lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
[lang="ar"] .masthead nav a, [lang="ar"] .intro { font-size: 1.23rem; }
[lang="ar"] .hero-button, [lang="ar"] .facts dt, [lang="ar"] .village-copy a, [lang="ar"] .context a { font-size: 1.02rem; }
[lang="ar"] .first-chapter p::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
[lang="ar"] .chapter p, [lang="ar"] .section-intro>p:last-child { font-size: 1.2rem; }
[lang="ar"] .portrait figcaption, [lang="ar"] .photo figcaption a, [lang="ar"] .footer-content { font-size: 1rem; }

@media (max-width: 58rem) {
  .shell { width: calc(100% - 3.4rem); }
  .masthead { gap: 1rem; }
  .hero-layout { min-height: unset; }
  .biography { gap: 2rem; }
}
@media (max-width: 41rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { grid-template-columns: 1fr auto; gap: .75rem; padding-block: .9rem .65rem; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; gap: 1.55rem; padding-block: .18rem; }
  .language { grid-row: 1; grid-column: 2; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 2.3rem 1.7rem; gap: 1.6rem; }
  .hero-text { padding: 0; }
  h1 span { display: inline; }
  h1 { font-size: clamp(3.5rem, 11.7vw, 5.6rem); line-height: .95; margin-block: .75rem 1rem; }
  [lang="ar"] h1 { font-size: clamp(3.5rem, 13vw, 5.3rem); }
  .hero-button { margin-top: 1.05rem; }
  .portrait { max-width: 24rem; }
  .portrait-mat img { aspect-ratio: 1/1; object-position: center 26%; }
  .register-content { font-size: .72rem; min-height: 3rem; letter-spacing: .07em; }
  .register-content span + span { padding-inline-start: .65rem; margin-inline-start: .65rem; }
  .biography { grid-template-columns: 1fr; }
  .sidebar { margin-top: 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
  .village { grid-template-columns: 1fr; }
  .photo-feature img { aspect-ratio: 3/2; }
  .footer-content { align-items: start; }
  .footer-content a { white-space: nowrap; }
}
@media (min-width: 42rem) {
  .wordmark { font-size: clamp(1.2rem, 2.35vw, 1.7rem); }
}
@media print {
  body { background: white; }
  .masthead nav, .language, .hero-button, .site-footer { display: none; }
  .hero, .site-header, .hero-register { background: white; color: black; }
  .hero .eyebrow, .intro, .portrait figcaption, .register-content { color: black; }
  .hero-layout { min-height: unset; padding-block: 1rem; }
  h1 { font-size: 5rem; }
  figure, .facts { break-inside: avoid; }
}
