/* =====================================================================
   BASE  |  الأساسيات: الخطوط، العناوين، الأزرار، خانات الإدخال
   ===================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

:root {
  /* keeps content clear of the phone notch / home bar */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

/* ---------- Text ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
}

h2 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  margin: 38px 0 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lead {
  color: var(--mute);
  max-width: 60ch;
  margin-bottom: 18px;
}

.note {
  font-size: 15px;
  color: var(--mute);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-brand);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: var(--on-brand);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink);
}

/* ---------- Forms ---------- */
form.card {
  display: grid;
  gap: 12px;
  max-width: var(--form-width);
}

label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
}

input,
select {
  width: 100%;
  font: inherit;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
