/* =========================================================
   "The film Article" design — shared by every article page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Bodoni+Moda:ital,wght@0,400;1,400&family=Didact+Gothic&family=League+Spartan:wght@400;700&family=Poppins:ital,wght@0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #111111;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --bar: #bdbdbd;
  --line: #e6e6e6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: 'Didact Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0 16px;
}

a { color: var(--ink); }

/* ---------- back link ---------- */
.back {
  display: inline-block;
  margin: 24px auto 0;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.back-wrap { max-width: 880px; margin: 0 auto; }

/* ---------- the framed sheet ---------- */
.sheet {
  position: relative;
  max-width: 880px;
  margin: 18px auto 48px;
  padding: 64px 56px 72px 44px;
}

/* thick grey bar, top left */
.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 7px;
  background: var(--bar);
}

/* thin line along the top and down the right side */
.sheet > .frame {
  position: absolute;
  top: 3px;
  left: 32%;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
}

/* thick grey bar, bottom right */
.sheet::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 7px;
  height: 28%;
  background: var(--bar);
}

/* ---------- header row ---------- */
.head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}
.head .date,
.head .author {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.head .logo {
  justify-self: end;
  font-family: 'Bodoni Moda', serif;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #d9d9d9;
  white-space: nowrap;
}
.head .logo em { font-style: italic; }

/* ---------- footer ---------- */
.foot {
  max-width: 880px;
  margin: -36px auto 40px;
  font-family: 'Bodoni Moda', serif;
  font-size: 18px;
  color: #d9d9d9;
}

/* ---------- panels (one per slide of the original) ---------- */
.panel { margin: 0 0 88px; }
.panel:last-child { margin-bottom: 0; }

/* text styles found in the slides */
.wide {                 /* Poppins, semi-bold, widely spaced */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.3vw, 24px);
  letter-spacing: 0.16em;
  line-height: 1.75;
  text-align: justify;
}
.light {                /* thin, airy, widely spaced */
  font-family: 'Didact Gothic', sans-serif;
  font-size: clamp(18px, 2.3vw, 24px);
  letter-spacing: 0.14em;
  line-height: 1.75;
  text-align: justify;
}
.light b, .light strong,
.plain b, .plain strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.plain {                /* straight paragraph, normal spacing */
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-align: justify;
}
.plain b, .plain strong {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.intro { font-style: italic; }

h2.sec {                /* numbered section titles */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 32px;
}
h3.sub {                /* sub-titles in the list slide */
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 30px);
  letter-spacing: 0.12em;
  margin: 34px 0 6px;
}
h3.sub + p.light { font-size: clamp(15px, 1.8vw, 19px); }

.shout {                /* big uppercase statements */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: justify;
}

.cover-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 10vw, 104px);
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  margin: 10px 0 40px;
}

.drawing { display: block; width: 100%; height: auto; }

/* text + drawing side by side */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 40px;
}
.duo .shout { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.55; }

/* ---------- Arabic articles ---------- */
.ar {
  direction: rtl;
  font-family: 'Amiri', serif;
}
.ar h1 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.4;
  margin: 0 0 10px;
}
.ar .byline {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 56px;
}
.ar h2 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  margin: 64px 0 20px;
}
.ar p {
  font-size: clamp(20px, 2.4vw, 23px);
  line-height: 2;
  text-align: justify;
  margin: 0 0 22px;
  letter-spacing: 0;   /* never space Arabic letters */
}

/* ---------- embedded media (videos, PDFs) ---------- */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 14px;
}
.media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media.pdf { aspect-ratio: auto; height: 82vh; }
.media .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px dashed #444;
}
.media-link {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 56px;
}

/* ---------- photo gallery ---------- */
.gallery {
  columns: 2;
  column-gap: 14px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  break-inside: avoid;
}
.photo { display: block; width: 100%; height: auto; margin: 0 0 40px; }

/* ---------- button-style link ---------- */
.more {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 12px 18px;
  text-decoration: none;
}
.more:hover { background: var(--bar); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .sheet { padding: 44px 22px 52px 18px; }
  .head { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .head .logo { grid-column: 1 / -1; justify-self: start; order: -1; font-size: 26px; }
  .panel { margin-bottom: 64px; }
  .duo { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .wide, .light, .plain, .shout { text-align: left; }
  .wide, .light, .shout { letter-spacing: 0.08em; }
}
