/* Zaher Alkaei — personal site. Clean static build (migrated off Squarespace). */
:root {
  --bg: #0f0f10;
  --surface: #17171a;
  --text: #ececec;
  --muted: #a0a0a8;
  --accent: #d8b25e;
  --accent-hover: #e8c577;
  --border: #2a2a30;
  --maxw: 820px;
  --font-body: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,16,0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a.active { border-bottom: 2px solid var(--accent); }

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.lead { font-size: 1.15rem; color: #d6d6d6; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.6rem;
  margin: 2.6rem 0 1rem;
}
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }

ul.clean { padding-left: 1.2rem; }
ul.clean li { margin: 0.4rem 0; }

.muted { color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- Hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: center;
}
.hero-portrait {
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.roles li a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roles li a:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }

/* ---------- Figures ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
figure { margin: 0; }
figure img { border-radius: 10px; border: 1px solid var(--border); }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; text-align: center; }

/* ---------- Cards / list links ---------- */
.link-list { list-style: none; padding: 0; margin: 1rem 0; }
.link-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.link-list li:last-child { border-bottom: none; }

/* ---------- Media embeds ---------- */
.embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.video {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sc-embed iframe { width: 100%; height: 300px; border: 0; border-radius: 10px; }
.ig-embed {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ig-embed iframe { width: 100%; height: 600px; border: 0; display: block; }

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
  margin-top: 1.5rem;
}
.contact-form label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.btn {
  justify-self: start;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.social { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.social a { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; }
.social a:hover { color: var(--accent); text-decoration: none; }
.footer-inner .legal a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 240px; margin: 0 auto; order: -1; }
  body { font-size: 17px; }
}
