/* GAIA Atelier — base: reset, typography, phone frame, layout primitives */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=El+Messiri:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; display: block; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* language-aware display face (echoes the GAIA wordmark) */
[lang="ar"] { --font-display: "El Messiri", "Tajawal", serif; }
[lang="en"] { --font-display: "Cormorant Garamond", "Tajawal", serif; }
.display { font-family: var(--font-display); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: var(--phone-w); height: var(--phone-h);
  border-radius: 54px; padding: 11px; background: #1a0605;
  box-shadow: 0 0 0 2px #3a1512, 0 40px 80px -20px rgba(38, 7, 6, .55), inset 0 0 0 1px rgba(255,255,255,.06);
  flex: none;
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55;
  isolation: isolate;
}
.island { position: absolute; top: 20px; left: 50%; width: 112px; height: 31px; margin-left: -56px; background: #0b0202; border-radius: 20px; z-index: 60; }
.statusbar {
  position: absolute; inset: 0 0 auto 0; height: 54px; z-index: 50; padding: 17px 30px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 15px; font-weight: 700; color: var(--text); pointer-events: none; direction: ltr;
}
.statusbar.light { color: var(--on-dark); }
.statusbar .sb-r { display: flex; gap: 6px; align-items: center; }
.sb-batt { width: 24px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .9; }
.sb-batt::after { content: ""; position: absolute; inset: 1.5px; width: 70%; background: currentColor; border-radius: 1.5px; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 58px var(--gutter) 130px; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.flush { padding-inline: 0; }
.view.no-nav { padding-bottom: 40px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; justify-content: center; align-items: center; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.px { padding-inline: var(--gutter); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* type */
.h-display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1.2; font-weight: 600; }
.h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.25; font-weight: 600; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.3; font-weight: 600; }
.title { font-size: var(--fs-title); font-weight: 700; }
.body { font-size: var(--fs-body); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); letter-spacing: .02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.gold { color: var(--gold-600); }
[data-theme="dark"] .gold { color: var(--gold-300); }
.eyebrow { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.b { font-weight: 700; } .m { font-weight: 500; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* arch motifs ------------------------------------------------------------ */
.arch { border-radius: var(--r-arch); }
.arch-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150' fill='none' stroke='%23c9a05c' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M20 150V70a40 40 0 0 1 80 0v80'/%3E%3Cpath d='M32 150V72a28 28 0 0 1 56 0v78'/%3E%3Cpath d='M44 150V74a16 16 0 0 1 32 0v76'/%3E%3C/svg%3E");
  background-size: 120px 150px;
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* lining numerals everywhere (Cormorant defaults to old-style figures) */
html { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.art-img { mix-blend-mode: multiply; }
[data-theme="dark"] .art-img { mix-blend-mode: normal; filter: brightness(1.15); }
