/* Quran for Duo theme: the closed book. Loaded after /assets/lathieff.css on every /quranforduo page.
   Colours are sampled from the app: Madina's green leather and its gilt title, and the mushaf's paper. */

body.app-quranforduo {
  --qd-leather: #24392f;     /* Madina's green leather */
  --qd-leather-hi: #2f4a3d;  /* lit edge of the leather */
  --qd-leather-deep: #182a22;
  --qd-gold: #e2bb5b;        /* the gilt title, on leather */
  --qd-gold-ink: #7d5f1c;    /* gold on paper, dark enough to read */
  --qd-paper: #f5eedf;       /* the page */
  --qd-paper-edge: #e2d6bd;
  --qd-ink: #1f1a14;         /* the mushaf's ink */
  --qd-cream: #efe6cf;       /* text on the leather */
  --qd-cream-soft: #b9b29c;

  /* Shared tokens, re-pointed: the page is the cover, paper sheets are the mushaf's paper. */
  --bg: var(--qd-leather);
  --ink: var(--qd-cream);
  --soft: var(--qd-cream-soft);
  --rule: #3a5246;
  --sheet: var(--qd-paper);
  --sheet-ink: var(--qd-ink);
  --sheet-soft: #67604f;
  --sheet-rule: var(--qd-paper-edge);
  --accent: var(--qd-gold);
  --shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 30px 60px -30px rgb(0 0 0 / .6), 0 10px 20px -12px rgb(0 0 0 / .45);
  color-scheme: dark;

  background-color: var(--qd-leather);
  /* Leather: a faint grain plus a soft light from the top. */
  background-image:
    radial-gradient(110% 70% at 50% -15%, rgb(255 236 190 / .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-quranforduo .doc a:not(.btn) { color: var(--qd-gold-ink); }
.qd-gilt { color: var(--qd-gold); }

/* ── Landing: one short hero and one sheet ───────────────────────────────────────── */
.qd-hero { padding: clamp(12px, 3vw, 40px) 0 clamp(48px, 8vw, 96px); }
.qd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.qd-hero h1 {
  margin: 16px 0 20px; color: var(--qd-cream);
  font-size: clamp(42px, 6.6vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.025em;
}
.qd-hero h1 em { color: var(--qd-gold); }
.qd-hero .lede { max-width: 30em; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; color: var(--qd-cream); opacity: .88; }
.qd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }

/* "Coming soon" plate: a gilt-ruled label, not Apple's badge (that comes with the launch). */
.qd-plate {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 9px 20px 10px;
  border-radius: 10px; color: var(--qd-cream); background: rgb(0 0 0 / .14); border: 1px solid rgb(226 187 91 / .45);
  font: 600 22px/1 var(--f-read); letter-spacing: -.01em;
}
.qd-plate small { font: 600 11px/1 var(--f-print); letter-spacing: .18em; text-transform: uppercase; color: var(--qd-cream-soft); }

/* The app icon, large: the book's cover. */
.qd-cover { justify-self: center; width: min(100%, 340px); }
.qd-cover img {
  width: 100%; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .3), 0 0 0 6px rgb(226 187 91 / .12), 0 40px 70px -30px rgb(0 0 0 / .75);
}

/* The sheet: a page of the mushaf's paper with what the app is. */
.qd-sheet {
  width: min(960px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px);
  background: var(--sheet); color: var(--sheet-ink); border-radius: 6px; box-shadow: var(--shadow);
}
.qd-sheet .label { color: var(--sheet-soft); }
.qd-sheet h2 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.015em; }
.qd-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 32px 0 0; padding: 0; list-style: none; }
.qd-points h3 { font-size: 21px; font-weight: 600; margin: 0 0 6px; padding-top: 14px; border-top: 1px solid var(--sheet-rule); }
.qd-points p { margin: 0; color: var(--sheet-soft); font-size: 17px; }
.qd-sheet .qd-foot { margin: 32px 0 0; font-size: 17px; }
.qd-sheet .qd-foot a { color: var(--qd-gold-ink); }

.qd-outro { padding: clamp(48px, 8vw, 88px) 0 0; text-align: center; }
.qd-outro p { color: var(--soft); margin: 0; }
.qd-outro a { color: var(--ink); }

@media (max-width: 760px) {
  .qd-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .qd-cover { order: -1; width: min(52%, 220px); justify-self: start; }
  .qd-points { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
