@font-face {
  font-family: MarshArabic;
  src: url(arabic.ttf) format('truetype');
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: #1b1916;
  background: #faf5eb;
  font: 1rem/1.8 MarshArabic, Tahoma, sans-serif;
}
main { width: min(100%, 640px); margin: auto; padding: 32px 24px; }
a { color: inherit; text-decoration: none; }
main a, main button { -webkit-tap-highlight-color: rgba(104, 109, 57, .16); }
main a:visited { color: inherit; }
a:focus-visible { outline: 2px solid #686d39; outline-offset: 3px; }
.masthead {
  display: grid;
  direction: ltr;
  grid-template-columns: clamp(76px, 21vw, 112px) 1fr;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid #b8a48b;
}
.masthead img { width: 100%; height: auto; }
.masthead div { direction: rtl; text-align: right; }
.masthead h1 { font: 700 clamp(19px, 5vw, 30px)/1.12 Georgia, serif; margin: 0 0 8px; }
.masthead p { margin: 0; font-size: .875rem; }
.welcome { margin: 19px 0 2px; font-size: 1rem; font-weight: 600; }
.guide { margin: 0 0 7px; font-size: .9rem; }
.social {
  min-height: 61px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid #d5c6b5;
}
.social:hover { background: #eee5d6; }
.icon { width: 25px; height: 25px; display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }
.link-label strong { font-weight: 600; }
.link-label small { display: none; }
.english { margin-inline-start: auto; font: .85rem Georgia, serif; color: #514c45; }
.address { text-align: center; margin-top: 22px; }
.address h2 { font-size: 1.25rem; margin: 0; }
.address > p { font-size: .9rem; margin: 4px 0 15px; }
.map-frame { position: relative; height: 184px; overflow: hidden; border-radius: 16px; border: 1px solid #d5c6b5; background: #f0e8dc; }
#map { position: absolute; inset: 0; }
#map-status { position: absolute; inset-inline: 12px; top: 34%; padding: 6px; background: #faf5eb; border-radius: 8px; font-size: .85rem; pointer-events: none; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.actions a { border: 1px solid #24211d; border-radius: 28px; padding: 9px 4px; font-size: .875rem; }
.actions a:first-child { background: #24211d; color: #fffaf1; }
@media (max-width: 360px) {
  main { padding-inline: 16px; }
  .masthead { gap: 13px; }
}
.actions a { display: grid; place-items: center; min-height: 44px; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
footer button { min-height: 44px; padding: 6px; border: 0; background: transparent; color: inherit; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
footer button:focus-visible { outline: 2px solid #686d39; outline-offset: 3px; }
#action-status { margin: 0; text-align: center; font-size: .85rem; }

/* First visit: film, welcome message, then links. */
html.intro-active { overflow: hidden; }
html.intro-active main { visibility: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; background: #f4ecda; color: #262624; opacity: 1; transition: opacity .65s ease; }
html.intro-active .intro { display: grid; place-items: center; }
.intro-video { display: block; width: min(100vw, 56.25vh); width: min(100vw, 56.25svh); height: 100vh; height: 100svh; object-fit: contain; opacity: 1; transition: opacity .55s ease; }
.intro-welcome { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: #f3ece0; opacity: 0; transition: opacity .24s ease; pointer-events: none; }
.intro-card { display: grid; justify-items: center; gap: clamp(22px, 7vw, 46px); direction: rtl; }
.intro-star { width: clamp(18px, 5vw, 28px); aspect-ratio: 1; opacity: .83; background: #5f6b45; clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%); }
.intro-words { margin: 0; color: #1c1b19; font-size: clamp(1rem, 5.7vw, 2.3rem); font-weight: 400; line-height: 1.9; white-space: nowrap; }
.intro-words > * { display: inline-block; }
#intro-message { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro.is-welcome .intro-video { opacity: 0; }
.intro.is-welcome .intro-welcome { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .intro.is-welcome .intro-words > * { animation: intro-word .33s ease both; animation-delay: calc(.24s + var(--word-index, 0) * .29s); }
  .intro-words > :nth-child(2) { --word-index: 1; }
  .intro-words > :nth-child(3) { --word-index: 2; }
  .intro-words > :nth-child(4) { --word-index: 3; }
  .intro-words > :nth-child(5) { --word-index: 4; }
  .intro.is-welcome .intro-star { animation: intro-twinkle .64s ease 2.23s; }
}
@keyframes intro-word { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes intro-twinkle { 0%, 100% { opacity: .83; } 50% { opacity: 1; transform: scale(1.15); } }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-skip { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-height: 44px; padding: 8px 20px; border: 0; background: transparent; color: #655b49; font: inherit; font-size: .875rem; cursor: pointer; text-underline-offset: 5px; text-decoration: underline; }
.intro-skip:focus-visible { outline: 2px solid #5f6b45; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
 .intro, .intro-video, .intro-welcome { transition: none; transform: none; }
}
