/* Ghalweh's public site. The palette and the typeface are the app's —
   someone arriving from the App Store listing or from a WhatsApp
   template should recognise where they landed. */
@font-face {
  font-family: 'Changa';
  src: url('/fonts/Changa-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Changa';
  src: url('/fonts/Changa-Bold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --espresso: #1E0A00;
  --roast: #5C2D0E;
  --caramel: #9B5523;
  --foam: #FFFBF6;
  --cream: #FFF3E6;
  --border: #F4DDD0;
  --text: #1F0D00;
  --text-2: #52311B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--foam);
  color: var(--text);
  font-family: 'Changa', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--caramel); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--roast);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}
.brand img { border-radius: 8px; }
.bar-link { text-decoration: none; font-size: 15px; }

/* The landing page: a mark, a name, and the two links that are the
   whole reason the domain exists. Centred in the viewport rather than
   stacked at the top — with this little on the page, top alignment
   reads as a page that failed to load the rest of itself. */
.gate {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 8px;
}
.gate-mark { border-radius: 22px; }
.gate h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 16px 0 2px;
  color: var(--espresso);
}
.tag {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--text-2);
}
.doors {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.door {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44pt floor, the app's own rule — these are the only two targets on
     the page and both get thumbs, not cursors. */
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--roast);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
}
.door-primary {
  background: var(--roast);
  border-color: var(--roast);
  color: #fff;
}

/* The policy page. Long Arabic prose, so it gets a narrower measure
   than the landing page and a visible section rhythm. */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}
.doc h1 { font-size: 26px; text-align: start; margin-bottom: 4px; }
.updated { color: var(--text-2); font-size: 14px; margin: 0 0 26px; }
.doc section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.doc h2 { font-size: 17px; color: var(--roast); margin: 0 0 10px; }
.doc p { font-size: 15px; color: var(--text-2); margin: 0 0 10px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 8px 0 0; padding-inline-start: 20px; }
.doc li { font-size: 15px; color: var(--text-2); margin-bottom: 7px; }
.doc strong { color: var(--text); }

.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--text-2);
  font-size: 13.5px;
  border-top: 1px solid var(--border);
  margin-top: 26px;
}
.foot p { margin: 4px 0; }

@media (prefers-color-scheme: dark) {
  /* Deliberately none. The app forces ThemeMode.light and the brand is
     built on foam; a half-inverted site would not match anything the
     visitor has seen. */
}
