:root {
  color-scheme: light;
  --ink: #1c1712;
  --ink-soft: #3f3933;
  --muted: #5e574e;
  --paper: #efe7da;
  --paper-2: #e6dccb;
  --card: #fffdf9;
  --line: rgba(28, 23, 18, 0.12);
  --accent: #0b5e45;
  --accent-strong: #084835;
  --cream: #f6f1e8;
  --copper: #9a3b1d;
  --danger: #9a3412;
  --shadow: 0 22px 50px rgba(28, 23, 18, 0.1);
  --header: 76px;
  --radius: 22px;
  --font: "Readex Pro", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

::selection {
  background: #c9ebdb;
  color: #10241c;
}

:focus-visible {
  outline: 3px solid #d89a3a;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 23, 18, 0.12);
  flex: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-danger {
  background: transparent;
  border-color: rgba(154, 52, 18, 0.35);
  color: var(--danger);
}

.btn-full {
  width: 100%;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
