/* Sakina's search pages (scripts/seo.mjs): the website's warm paper, ink and one gold. */
@font-face { font-family: "Amiri Quran"; font-display: swap; src: url(/fonts/AmiriQuran-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/Newsreader-normal-400.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/fonts/Newsreader-italic-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/IBMPlexMono-500-latin.woff2) format("woff2"); }

:root { --paper: #f6f2ea; --ink: #15120e; --ink2: #6b6358; --gold: #a8742a; --goldsoft: #efe3cc; --card: #fffdf8;
  --serif: "Newsreader", Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 1px 2px rgba(21,18,14,.04), 0 10px 30px rgba(60,40,10,.07); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 64px;
  padding: env(safe-area-inset-top) max(20px, calc((100% - 760px) / 2)) 0; background: rgba(246,242,234,.84);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav .btn { margin-left: auto; }
.word { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; font-size: 22px; letter-spacing: -.055em; text-decoration: none; }
.word img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(20,30,60,.2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 54px; padding: 0 24px; border-radius: 14px;
  font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; transition: transform 160ms var(--ease), background .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #2a251e; }
.btn.light { background: #fff; color: var(--ink); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

main { max-width: 760px; margin: 0 auto; padding: 14px 20px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
h1 { font-family: var(--serif); font-weight: 450; font-size: clamp(42px, 9vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 22px 0 10px; }
h2 { font-family: var(--serif); font-weight: 450; font-size: 30px; letter-spacing: -.02em; margin: 48px 0 14px; }
.arname { margin: 0; font-family: "Amiri Quran", serif; font-size: 34px; line-height: 1.6; color: var(--gold); text-align: left; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.meta span { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); background: var(--card); padding: 9px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); margin: 22px 0 0; max-width: 640px; }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 28px 0 8px; padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px rgba(21,18,14,.18); }
.cta p { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; max-width: 520px; }

.bism { margin: 40px 0 6px; font-family: "Amiri Quran", serif; font-size: 30px; text-align: center; color: var(--gold); }
.ayat { margin-top: 18px; }
.ayah { position: relative; padding: 26px 0 18px; scroll-margin-top: 80px; }
.ayah .ref { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--gold); background: var(--goldsoft); padding: 7px 10px; border-radius: 999px; text-decoration: none; }
.ayah:target .ref { background: var(--gold); color: #fff; }
.ar { margin: 14px 0 10px; font-family: "Amiri Quran", serif; font-size: 29px; line-height: 2.15; text-align: right; color: var(--ink); }
.tr { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: #3d362d; }

.verses { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.verse { padding: 22px 22px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.verse .ref { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--goldsoft); padding: 8px 11px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s; }
.verse .ref:hover { background: var(--gold); color: #fff; }
.verse .tr + .ar { margin-top: 22px; }

.pager { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-family: var(--serif); font-size: 21px; transition: transform .25s var(--ease), box-shadow .25s; }
.pager a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(21,18,14,.05), 0 18px 40px rgba(60,40,10,.12); }
.pager small { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); }

.list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.list a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.list a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(21,18,14,.05), 0 18px 40px rgba(60,40,10,.12); }
.list .n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--goldsoft); color: var(--gold); font: 600 13px/1 var(--mono); }
.list span { display: flex; flex-direction: column; min-width: 0; }
.list strong { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.list small { font-size: 14px; color: var(--ink2); }
.list em { margin-left: auto; font-style: normal; font-family: "Amiri Quran", serif; font-size: 22px; color: var(--gold); white-space: nowrap; }

.topics { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.topics a { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.topics a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(21,18,14,.05), 0 18px 40px rgba(60,40,10,.12); }
.topics strong { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.topics small { font: 500 12px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
@media (min-width: 640px) { .topics { grid-template-columns: 1fr 1fr; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease), background .2s; }
.chips a:hover { background: var(--goldsoft); }
.chips a:active { transform: scale(.97); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; max-width: 760px; margin: 30px auto 0; padding: 34px 20px calc(30px + env(safe-area-inset-bottom)); }
.foot div { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.foot div a { font-size: 14.5px; color: var(--ink2); text-decoration: none; display: inline-block; padding: 12px 2px; margin: -12px -2px; } /* a 44px tall tap area, same layout */
.foot div a:hover { color: var(--ink); }
.foot small { flex-basis: 100%; font-size: 13px; color: var(--ink2); }

/* 27 Nov 2026: dua pages (who makes the dua), counted lists, the word-count table, the smaller second paragraph */
.lede.small { font-size: 17px; color: var(--ink2); }
.verse .who { margin: 12px 0 0; font: 500 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.refs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.refs a { font: 500 12px/1 var(--mono); color: var(--gold); background: var(--goldsoft); padding: 7px 9px; border-radius: 999px; text-decoration: none; }
.refs a:hover { background: var(--gold); color: #fff; }
.counts { width: 100%; margin: 26px 0 8px; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; font-size: 16px; }
.counts th, .counts td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(21,18,14,.06); }
.counts th { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); }
.counts td:nth-child(n+2), .counts th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counts tr:last-child td { border-bottom: 0; }
.counts a { font-family: var(--serif); font-size: 18px; text-decoration: none; }
.counts a:hover { color: var(--gold); }

/* Motion: the heading settles in on load; ayat and cards rise as they scroll into view. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .crumbs, h1, .arname, .meta, .lede, .cta { animation: rise .7s var(--ease) both; }
  h1 { animation-delay: .05s; } .arname { animation-delay: .1s; } .meta { animation-delay: .14s; } .lede { animation-delay: .18s; } .cta { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .ayah, .verse, .list li, .topics li, .pager a { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
