/* abdealikhurrum.github.io — shared styles. Plain CSS, no build step. */

@font-face {
  font-family: "FatemiMaqala";
  src: url("assets/fonts/FatemiMaqala-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "AlFatemi";
  src: url("assets/fonts/AlFatemi-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1b18;
  --muted: #6b6860;
  --line: #e8e4da;
  --accent: #0f6f5c;
  --accent-ink: #0a4a3e;
  --radius: 12px;
  --maxw: 880px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.wordmark { color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; color: var(--accent); }
.site-nav a { color: var(--muted); margin-left: 18px; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .arabic { font-family: "FatemiMaqala", serif; font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1.1; direction: rtl; color: var(--accent-ink); margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); max-width: 36rem; margin: 0 auto; }

/* Page intro (interior pages) */
.page-head { padding: 44px 0 8px; }
.page-head .eyebrow { color: var(--accent); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.page-head .tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }

main { padding-bottom: 56px; }
section { margin-top: 28px; }
h2 { font-size: 1.25rem; margin: 32px 0 10px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin: 4px 0; }

/* Card grid (landing + keyboard hub) */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { text-decoration: none; border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,111,92,0.08); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card .arabic { font-family: "FatemiMaqala", serif; font-size: 1.5rem; direction: rtl;
  color: var(--accent-ink); display: block; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; font-size: 0.95rem;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.secondary:hover { background: rgba(15,111,92,0.07); color: var(--accent-ink); }
.btn.soon { background: var(--line); color: var(--muted); cursor: default; pointer-events: none; }

/* Type specimen */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; direction: rtl; text-align: center; margin: 18px 0; }
.specimen .fatemi { font-family: "FatemiMaqala", serif; }
.specimen .alfatemi { font-family: "AlFatemi", serif; }
.specimen .big { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.4; color: var(--ink); }

/* Screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 18px 0; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }

/* Note box */
.note { background: #f3f6f5; border-left: 3px solid var(--accent); padding: 12px 16px;
  border-radius: 0 8px 8px 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  background: var(--surface); }
.site-footer .wrap { padding-top: 22px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.back { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
