:root {
  --bg: #ebebeb;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent: #e88d57;
  --accent-dark: #c96f3c;
  --heading-blue: #4a6fa5;
  --line: #111111;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.6em 0;
}

h1 { font-size: 2rem; line-height: 1.25; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.15rem; line-height: 1.35; }

p { margin: 0 0 1em 0; }

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

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

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

/* Header */
.site-header {
  padding: 32px 0 16px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  transform: rotate(-1deg);
  margin: 48px 0;
}

/* Hero card */
.hero-card {
  background: var(--card-bg);
  padding: 48px;
  margin-top: 24px;
}
.hero-card h1 { font-weight: 700; }
.hero-card .subheading {
  font-size: 1.1rem;
  color: var(--text);
}

/* Typewriter effect (hero heading/subheading on the homepage) */
.type-target.typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: type-cursor-blink 0.8s steps(1) infinite;
}
@keyframes type-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Resources section */
.resources {
  padding: 8px 0 48px 0;
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 32px;
  align-items: start;
}
.resources img { }
.resources h2 { font-weight: 700; }
.resources .divider-line {
  color: var(--text-muted);
  margin: 18px 0;
  letter-spacing: -1px;
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .resources { grid-template-columns: 1fr; }
}

/* Generic content section */
.section {
  padding-top: 8px;
  padding-bottom: 40px;
}
.section h2 { font-weight: 700; }

.aims { margin-top: 8px; }
.aims .aim { margin-bottom: 1em; }
.aims .aim-label { font-weight: 700; }

/* Bios */
.team-heading {
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 24px;
}
.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 32px;
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bio-grid { grid-template-columns: 1fr; }
}
.bio-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
  background: #ddd;
}
.bio-card .bio-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.bio-card .bio-role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.bio-card .bio-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.bio-card.no-photo .bio-name { margin-top: 0; }

/* Funders */
.funders-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}
.funders-logos img {
  max-height: 90px;
  width: auto;
}

/* CAFES2 */
.cafes2-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .cafes2-hero-grid { grid-template-columns: 1fr; }
}
.cafes2-hero-grid h1 {
  color: var(--heading-blue);
  font-weight: 700;
}
.arabic-link {
  display: block;
  direction: rtl;
  text-align: right;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.incentive {
  color: var(--heading-blue);
  font-weight: 700;
}
.cafes2-list {
  padding-left: 22px;
}
.contact-block a {
  display: inline-block;
  margin-right: 20px;
  font-weight: 700;
}
.sponsors-image {
  margin-top: 32px;
  max-width: 480px;
}

/* Skills / audio */
.skill-card {
  background: var(--card-bg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.skill-card h3 { margin-bottom: 12px; }
.skill-card audio {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 40px 0 60px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
