/* ============================================================
   Islamify v2 — base reset + typography + fonts
   Loads tokens first; this file sets up the running baseline.
   ============================================================ */

@import url('/assets/fonts/fonts.css');

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Headings */
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);
}

h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.015em; }
h4 { font-size: 16px; }

p { margin: 0 0 16px; color: var(--text); }
p.muted { color: var(--text-muted); }
p.lede, .lede {
  font-size: 17px; line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}

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;
  padding: 0;
}

/* Focus — visible and calm */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, details: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-thumb:hover { background: var(--text-subtle); }
::-webkit-scrollbar-track { background: transparent; }

/* Selection */
::selection { background: var(--brand-soft); color: var(--brand-ink); }

/* Utility: horizontal container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 32px; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 32px; }

/* Kicker / eyebrow text */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Mono labels */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

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

/* Placeholder tile (for future screenshots) */
.placeholder {
  background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 10px);
  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;
}

/* RTL correctness for Arabic */
html[dir="rtl"] { /* handled via logical properties in components */ }
html[dir="rtl"] .arrow-end { transform: rotate(180deg); }

/* Print (legal pages read better without chrome) */
@media print {
  .topbar, .site-footer, .side, .side-cta { display: none !important; }
  .content { padding: 0 !important; max-width: 100% !important; }
}

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