/* ============================================================
   ALNATIQ · BASE  (reset · body · layout helpers · typography)
   ============================================================ */

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 2px; border-radius: 6px; }

/* ----------  Base  ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------  Layout helpers  ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; background: var(--paper); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: #f5f1ff; }
.section--mist { background:
    radial-gradient(1200px 600px at 80% -10%, rgba(149, 111, 255, .30), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(196, 180, 255, .55), transparent 55%),
    #e9e0ff; }
.section--ink { background: var(--grad-ink); color: #efeaff; }
.section--ink .eyebrow { color: var(--violet-300); }

.center { text-align: center; }
.stack-sm > * + * { margin-top: .75rem; }

/* ----------  Type system  ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-600);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: .6;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.display { font-family: 'Amiri', 'Arabic Typesetting', var(--font-display); font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.015em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--slate); line-height: 1.65; }
.section--ink .lead { color: #c9c1e6; }
.muted { color: var(--slate); }
.grad-text { background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 15px; }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: .9rem; }
.section-head .lead { margin-top: 1rem; }
