/* Masabeehi — Coming Soon. Royal Gulf Heritage tokens (mirrors the app theme). No scripts, no third parties. */
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal/Tajawal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal/Tajawal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/amiri/Amiri-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/amiri/Amiri-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant/CormorantGaramond-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; size-adjust: 110%; }

:root {
  --night: #241509; --dark: #2B1A10; --cream: #F4E4C1; --ivory: #EADBB8; --sub: #BFA781;
  --gold: #B8924A; --gold2: #C9A35A; --gold3: #E2C487;
  --ui: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Amiri", "Tajawal", Georgia, serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A35A' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
[lang="en"] {
  --ui: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cormorant", "Amiri", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--cream); font: 400 1.0625rem/1.75 var(--ui);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgb(201 163 90 / .12), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 42%, var(--night) 35%, rgb(36 21 9 / .85) 60%, transparent 100%),
    var(--pattern), var(--night);
}
a { color: var(--gold3); }
:focus-visible { outline: 3px solid var(--gold3); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--cream); color: var(--night); padding: .5rem 1rem; z-index: 10; border-radius: 6px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; }

.bar { display: flex; justify-content: flex-end; width: min(1080px, 100% - 2.5rem); margin-inline: auto; padding-block: 1.25rem; }
.lang {
  font: 500 .95rem/1 var(--ui); color: var(--cream); text-decoration: none;
  border: 1px solid var(--gold); border-radius: 999px; padding: .6rem 1.1rem; min-height: 44px;
  display: inline-flex; align-items: center;
}
.lang:hover { background: rgb(201 163 90 / .15); }
.lang[lang="en"] { font-family: "Inter", system-ui, sans-serif; }
.lang[lang="ar"] { font-family: "Tajawal", system-ui, sans-serif; }

main { flex: 1; display: grid; place-items: center; padding: 1rem 1.25rem 3rem; }
.stage { width: min(640px, 100%); text-align: center; }

/* Logo: owner-approved Masabeehi icon art (same as the app icon), unaltered; corners rounded in CSS like the iOS mask. */
.logo-slot { display: flex; justify-content: center; margin-bottom: 1rem; }
.logo { display: block; width: clamp(112px, 30vw, 160px); height: auto; border-radius: 22.37%; box-shadow: 0 10px 32px rgb(0 0 0 / .45), 0 0 0 1px rgb(201 163 90 / .25); }

h1 { margin: 0; font: 700 clamp(3.2rem, 13vw, 5.75rem)/1.2 var(--display); color: var(--gold2); letter-spacing: 0; }
[lang="en"] h1 { letter-spacing: .01em; }
.tagline { margin: .4rem 0 0; font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: var(--ivory); }

.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 2.2rem auto; width: min(320px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to var(--fade, right), transparent, var(--gold)); }
.ornament::after { --fade: left; }
.ornament span { width: .75rem; height: .75rem; background: var(--gold2); transform: rotate(45deg); flex: none; }

.soon { margin: 0; font: 700 clamp(2rem, 7.5vw, 3rem)/1.3 var(--display); color: var(--gold3); }
.message { margin: .9rem auto 0; max-width: 34rem; font-size: clamp(1rem, 3.2vw, 1.15rem); color: var(--ivory); }

.foot { border-top: 1px solid rgb(184 146 74 / .45); padding: 1.25rem; text-align: center; color: var(--sub); font-size: .9rem; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .stage { animation: rise .8s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 900px) {
  main { padding-bottom: 5rem; }
}

/* Arabic typography (scoped with :lang(ar), so English is untouched).
   Amiri's Naskh joins and the descending ي of "مسابيحي" need far more vertical room than Latin,
   and Arabic reads best with taller line spacing and no orphaned last words. */
h1:lang(ar) { font-size: clamp(3.1rem, 12.5vw, 5.5rem); line-height: 1.6; padding-bottom: .15em; }
.tagline:lang(ar) { margin-top: .35rem; font-weight: 500; font-size: clamp(1.1rem, 3.8vw, 1.35rem); line-height: 2; word-spacing: .05em; }
.ornament:lang(ar) { margin-block: 2rem; }
.soon:lang(ar) { font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.7; }
.message:lang(ar) { margin-top: .5rem; line-height: 2; text-wrap: balance; }
.foot p:lang(ar) { line-height: 2; }
/* Mobile Arabic: Amiri's tall line box adds space above the heading; pull it closer to the logo. */
@media (max-width: 599px) {
  .logo-slot:lang(ar) { margin-bottom: .25rem; }
  h1:lang(ar) { margin-top: -.4rem; }
}
