/* Islamify design tokens */
:root {
  /* Brand — teal */
  --teal-50:  #ecfeff;
  --teal-100: #d4fbff;
  --teal-200: #81fbff;
  --teal-300: #00ffff;
  --teal-400: #00b2b7;
  --teal-500: #0e7490;  /* primary */
  --teal-600: #086078;
  --teal-700: #006c72;
  --teal-800: #00343a;
  --teal-900: #001b1f;

  /* Warm neutrals (paired with teal) */
  --ink-0:   #fbfaf7;   /* bg */
  --ink-50:  #f5f3ee;
  --ink-100: #ecebe4;
  --ink-200: #d9d6cc;
  --ink-300: #b8b4a7;
  --ink-400: #8e8a7e;
  --ink-500: #6b6860;
  --ink-600: #4b4944;
  --ink-700: #2f2e2b;
  --ink-800: #1d1c1a;
  --ink-900: #111110;

  /* Semantic — light */
  --bg:       var(--ink-0);
  --bg-soft:  var(--ink-50);
  --bg-card:  #ffffff;
  --border:   var(--ink-100);
  --border-strong: var(--ink-200);
  --text:     var(--ink-800);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --brand:    var(--teal-500);
  --brand-hover: var(--teal-600);
  --brand-ink:  var(--teal-800);
  --brand-soft: #e6f4f6;
  --accent-link: var(--teal-700);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 16, 0.04), 0 1px 1px rgba(17, 17, 16, 0.03);
  --shadow:    0 2px 4px rgba(17, 17, 16, 0.04), 0 8px 24px rgba(17, 17, 16, 0.05);
  --shadow-lg: 0 24px 60px -24px rgba(0, 52, 58, 0.25), 0 8px 16px rgba(17, 17, 16, 0.04);

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
  --font-quran: 'Amiri', 'Noto Naskh Arabic', serif;

  --container: 1200px;
  --container-tight: 960px;
  --container-text: 680px;
}

[data-theme="dark"] {
  --bg:       #0a1518;
  --bg-soft:  #0f1e22;
  --bg-card:  #132b31;
  --border:   #1f3a41;
  --border-strong: #2a4a52;
  --text:     #e7ece9;
  --text-muted: #9aa8a5;
  --text-subtle: #6a7a77;
  --brand:    #34d4db;
  --brand-hover: #6ae6eb;
  --brand-ink:  #d4fbff;
  --brand-soft: #0c2b31;
  --accent-link: #81fbff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:    0 2px 4px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Shared UI primitives */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover); text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(14,116,144,0.5);
}
[data-theme="dark"] .btn-primary { color: #0a1518; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Logo */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.wordmark img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.wordmark:hover { text-decoration: none; }

/* Theme toggle helper button */
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }

/* Kbd */
kbd {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px; color: var(--text-muted);
}

/* Placeholder */
.placeholder {
  background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 8px);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-subtle);
  font-family: var(--font-mono); font-size: 12px;
  text-align: center;
}

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 720px) {
  .container, .container-tight { padding: 0 20px; }
}
