@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Amiri Display";
  src: url("fonts/amiri-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Amiri Display";
  src: url("fonts/amiri-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}

:root {
  --ink: #241c14;
  --muted: #5c5348;
  --paper: #f6f1e6;
  --card: #fffaf3;
  --line: rgba(36, 28, 20, 0.14);
  --forest: #1e3d30;
  --gold: #6e4f1c;
  --serif: "Amiri Display", "Noto Naskh Arabic", serif;
  --sans: "Plex Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.85;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mast {
  background: var(--forest);
  color: #f6f1e7;
  padding-bottom: 2.6rem;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.brand small { color: rgba(246, 241, 231, 0.75); font-size: 0.78rem; }

.nav-toggle {
  display: none;
  border: 1px solid rgba(246, 241, 231, 0.3);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

#site-nav { display: flex; align-items: center; gap: 0.25rem; }

#site-nav a {
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: rgba(246, 241, 231, 0.78);
  font-weight: 500;
}

#site-nav a[aria-current="page"],
#site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
  padding-top: 1.2rem;
}

.eyebrow { margin: 0; color: #e4c98a; font-weight: 600; }

h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 0.3rem 0 0.8rem;
}

.lede { max-width: 40rem; margin: 0; font-size: 1.18rem; color: rgba(246, 241, 231, 0.9); }

.spines {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  min-height: 180px;
}

.spines i {
  display: block;
  width: 2.1rem;
  border-radius: 2px 2px 0 0;
}

.spines i:nth-child(1) { height: 150px; background: #f4efe6; }
.spines i:nth-child(2) { height: 180px; background: #c6a15a; }
.spines i:nth-child(3) { height: 130px; background: #d7e3da; }
.spines i:nth-child(4) { height: 165px; background: #f4efe6; }
.spines i:nth-child(5) { height: 120px; background: #9bb5a6; }

.section { padding: 2.8rem 0; }

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
  min-height: 190px;
  border-top: 6px solid var(--forest);
}

.cards article:nth-child(2) { border-top-color: #c6a15a; }
.cards article:nth-child(3) { border-top-color: #8d2f2b; }
.cards article:nth-child(4) { border-top-color: #1a5278; }

.cards h3 { margin: 0.3rem 0 0.45rem; font-size: 1.12rem; }
.cards p { margin: 0; color: var(--muted); }

.cross {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--forest);
  color: #f6f1e7;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
}

.btn:hover { background: #163028; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  #site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: #163028;
    padding: 0.5rem;
    z-index: 10;
  }

  #site-nav.is-open { display: flex; }
  .cards { grid-template-columns: 1fr; }
}
