/* Cowries & Coins: site styles. Plain CSS, no build step.
   Palette: docs/brand/palette-vox-paper.md (contrast measured there). Saffron is only ever a highlight behind ink, never a text colour.
   Latin text uses the device's own fonts (no download). Arabic uses Tajawal (SIL OFL 1.1), self-hosted in /assets/fonts/.
   Layout uses logical properties (inline/block), so the Arabic page mirrors without extra rules. */
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F2EDE4; --ink: #141414; --saffron: #FFC93C; --card: #FBF8F1; --clip: #E9E0CC;
  --brown: #5A4D3C; --blue: #22577A; --red: #B5483B; --pale: #FFF6D6; --line: #CDBFA6;
  --tape: rgba(224, 206, 158, .85);
  --serif: "Noto Serif", "Source Serif 4", "DejaVu Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, "Noto Sans", Roboto, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --arabic: Tajawal, "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --wrap: 1080px;
  --top-strip: block; /* ONE LINE to switch the header: block = H2 (thin top strip with the email and a hotline slot; tablet and desktop only), none = H1 (single header) */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); font: 18px/1.6 var(--sans);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .29 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
:lang(ar) body, body:lang(ar) { font-family: var(--arabic); font-size: 19px; line-height: 1.75; }
main { flex: 1; overflow-x: hidden; overflow-x: clip; } /* the tilted ink strip must not cause sideways scrolling */
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.prose { max-width: 42rem; }

/* Skip link and focus: a two-tone ring (ink and saffron) that shows on paper, card, saffron and ink */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-weight: 700; border-radius: 0 0 10px 10px; text-decoration: none; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--saffron); border-radius: 4px; }
.strip :focus-visible, .catch :focus-visible, .site-foot :focus-visible, .topstrip :focus-visible { outline-color: var(--saffron); }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: var(--arabic); line-height: 1.4; }
h1 { font-size: clamp(34px, 8vw, 62px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4.6vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.55; }
.small { font-size: 16px; }
.muted { color: var(--brown); }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--ink); }
a:hover { background: var(--saffron); text-decoration-color: var(--ink); }
.mark { background: linear-gradient(transparent 58%, var(--saffron) 58%, var(--saffron) 92%, transparent 92%); padding-inline: .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker { font: 700 14px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
:lang(ar) .kicker, :lang(tr) .kicker { letter-spacing: 0; text-transform: none; font-size: 16px; }
:lang(ar) .kicker { font-family: var(--arabic); }
.strip { display: inline-block; background: var(--ink); color: var(--paper); padding: 6px 12px 5px; transform: rotate(-1.2deg); }
.strip a { color: var(--paper); text-decoration-color: var(--saffron); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
bdi[lang="en"], [dir="ltr"] { unicode-bidi: isolate; }

/* Header: its own wider container, so the logo sits near the left edge and the menu and language button near the right */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.head-wide { max-width: 1360px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
.head-row { display: flex; align-items: center; gap: 8px 20px; padding-block: 10px; }
.brand span { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; padding: 4px 0; min-width: 0;
  font: 700 clamp(22px, 1vw + 14px, 28px)/1.1 var(--serif); color: var(--ink); text-decoration: none; }
.brand:hover { background: none; }
.brand:hover span { background: linear-gradient(transparent 60%, var(--saffron) 60%); }
.brand img { width: clamp(54px, 2.6vw + 30px, 66px); height: auto; aspect-ratio: 197.3 / 126.06; display: block; flex: none; }
.site-nav { display: flex; gap: 2px 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 17px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--saffron); text-underline-offset: 6px; }
.langs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.langs a[aria-current="true"] { font-weight: 700; text-decoration: none; }
.langs [lang="ar"] { font-family: var(--arabic); font-size: 17px; }

/* Language menu: a details/summary, so it works without JavaScript */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font: 700 15px/1 var(--sans); letter-spacing: .04em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--saffron); }
.lang-menu summary svg { width: 20px; height: 20px; flex: none; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 rgba(20, 20, 20, .15); }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 17px; text-decoration: none; }
.lang-list a[aria-current="true"] { font-weight: 700; background: var(--pale); }
.lang-list [lang="ar"] { font-family: var(--arabic); font-size: 18px; }

/* Phones and small tablets: the menu folds into one button (the same links, so it also works without JavaScript) */
.nav-menu { display: none; position: relative; flex: none; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font: 700 15px/1 var(--sans); }
:lang(ar) .nav-menu summary, :lang(ar) .lang-menu summary { font-family: var(--arabic); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--saffron); }
.nav-menu summary svg { width: 20px; height: 20px; flex: none; }
.nav-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, calc(100vw - 32px)); padding: 6px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 rgba(20, 20, 20, .15); }
.nav-langs { display: flex; align-items: center; gap: 4px; padding: 4px 4px 8px; border-bottom: 1px dashed var(--line); }
.nav-langs svg { width: 20px; height: 20px; flex: none; }
.nav-langs ul { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0; padding: 0; list-style: none; }
.nav-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 5px; border-radius: 6px; font-size: 15px; text-decoration: none; }
.nav-langs a[aria-current="true"] { font-weight: 700; background: var(--pale); }
.nav-langs [lang="ar"] { font-family: inherit; font-size: 15px; } /* the codes are Latin letters */
.nav-list { display: flex; flex-direction: column; }
.nav-list a, .nav-mail { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 17px; font-weight: 600; text-decoration: none; }
.nav-mail { font-size: 15px; font-weight: 400; border-top: 1px dashed var(--line); margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .site-nav, .lang-menu, .topstrip { display: none; } .nav-menu { display: block; } }

/* H2 only: a very thin strip above the header (display is set by --top-strip) */
.topstrip { display: var(--top-strip); background: var(--ink); color: var(--paper); font: 400 14px/1 var(--sans); }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.topstrip a { display: inline-flex; align-items: center; min-height: 30px; color: var(--paper); text-decoration-color: var(--saffron); text-decoration-thickness: 1px; }
.topstrip a:hover { color: var(--ink); }
.topstrip [hidden] { display: none; }
@media (max-width: 640px) { .topstrip { display: none; } } /* phones: the email lives in the menu instead */

/* Buttons: one style with the zakat app (48 px+ high, 2 px ink border, 12 px radius) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: 12px; font: 700 18px/1.2 var(--sans); text-decoration: none; color: var(--ink); background: var(--card); }
:lang(ar) .btn { font-family: var(--arabic); }
.btn:hover { background: var(--pale); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #2A2622; }
.btn.saffron { background: var(--saffron); box-shadow: 3px 3px 0 var(--ink); }
.btn.saffron:hover { background: #FFD45F; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .handle { font-weight: 400; font-size: 16px; opacity: .9; }
/* Phones: shorter labels, so the header menu fits on one line and the YouTube button on one line */
@media (max-width: 359px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand img { width: 44px; height: 28px; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 44px; height: 28px; }
  .nav-long, .yt-handle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Home: hero */
.hero { display: grid; gap: 8px 40px; align-items: center; padding-block: 36px 28px; }
.hero h1 { margin-top: 4px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(300px, 70vw); height: auto; filter: drop-shadow(5px 6px 0 rgba(20, 20, 20, .14)); }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); padding-block: 56px 40px; }
  .hero-art { order: 2; }
}
@media (max-width: 759px) { .hero-art { order: -1; } .hero-art img { width: min(200px, 55vw); } }

/* Home: the money band. A thin strip across the full page width; on narrow screens only the band scrolls, never the page. */
.money-sec { padding-block: 8px 36px; }
.money-sec h2 { font-size: 21px; font-family: var(--sans); font-weight: 700; margin-bottom: 4px; }
.money-sec .muted { margin-block: 0 14px; }
.band { margin: 0; background: var(--card); border-block: 2px solid var(--ink); box-shadow: 0 4px 0 rgba(20, 20, 20, .10); }
.band-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.band-scroll img { display: block; width: 100%; min-width: 820px; max-width: 1700px; height: auto; margin-inline: auto; }

/* Catchphrase strip */
.catch { background: var(--ink); color: var(--paper); margin-block: 8px 44px; padding-block: 26px; transform: rotate(-.6deg); }
.catch p { margin-block: 0; font: 700 clamp(24px, 5vw, 40px)/1.2 var(--serif); text-align: center; }
:lang(ar) .catch p { font-family: var(--arabic); }
.catch .u { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: .14em; text-underline-offset: .18em; }

/* Cards, tape and torn paper */
.card { background: var(--card); border: 1.5px solid rgba(20, 20, 20, .18); border-radius: 3px; padding: 22px 22px 18px;
  box-shadow: 3px 4px 0 rgba(20, 20, 20, .10); position: relative; }
.card.pale { background: var(--pale); }
.taped::before { content: ""; position: absolute; top: -12px; inset-inline-start: 50%; width: 104px; height: 26px; margin-inline-start: -52px;
  background: var(--tape); border: 1px solid rgba(150, 128, 80, .35); transform: rotate(-3deg); }
.tilt-l { transform: rotate(-.6deg); }
.tilt-r { transform: rotate(.5deg); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .35em; width: 8px; height: 14px;
  border-bottom: 3px solid var(--ink); border-inline-end: 3px solid var(--ink); transform: rotate(40deg); }

/* Home: videos */
.videos { padding-block: 4px 40px; }
.vcards { list-style: none; margin: 18px 0 18px; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.vcard { padding: 12px 12px 16px; }
.vcard:nth-child(2) { transform: rotate(.6deg); }
.vcard:nth-child(3) { transform: rotate(-.5deg); }
.vcard h3 { margin: 8px 0 6px; }
.vcard p { margin: 0; font-size: 16px; }
.thumb { aspect-ratio: 16 / 9; background: var(--clip); border: 2px solid var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.thumb svg { width: 46%; height: auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .soon { position: absolute; top: 10px; inset-inline-start: 10px; margin: 0; background: var(--saffron); color: var(--ink);
  font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px 5px; transform: rotate(-2deg); }

/* Home: Know Your Zakat */
.kyz { padding-block: 10px 48px; }
.kyz .card { display: grid; gap: 4px 32px; padding: 30px 24px 24px; }
@media (min-width: 760px) { .kyz .card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.kyz h2 { margin-bottom: .3em; }
.kyz .ticks { margin-top: 12px; }

/* Inner pages */
.page { padding-block: 36px 48px; }
.page h2 { margin-top: 1.6em; }
.page h1 + .lead { margin-bottom: 1.4em; }
.page ul, .page ol { padding-inline-start: 1.3em; }
.page li { margin-bottom: .4em; }
.note { border-inline-start: 6px solid var(--saffron); background: var(--card); padding: 14px 18px; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }
.email { font: 700 clamp(20px, 5vw, 28px)/1.3 var(--serif); word-break: break-word; }
.email a { display: inline-block; padding-block: 10px; } /* a comfortable tap target even where the fallback font runs short */
.refs { font-size: 16px; padding-inline-start: 1.4em; }
.refs li { margin-bottom: .6em; }
sup a { text-decoration: none; padding: 0 2px; }

/* Footer */
.site-foot { background: var(--ink); color: var(--paper); margin-top: 24px; padding-block: 28px 32px; font-size: 16px; }
.site-foot a { color: var(--paper); text-decoration-color: var(--saffron); }
.site-foot a:hover { background: none; color: var(--saffron); }
.site-foot .disc { font: 700 17px/1.5 var(--sans); margin-bottom: 6px; }
:lang(ar) .site-foot .disc { font-family: var(--arabic); }
.site-foot .disc .u { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* Footer: the same wide container as the header, four columns on desktop, two on tablet, one on phones; the disclaimer always shows */
.site-foot { padding-block: 40px 28px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px 40px; }
@media (min-width: 641px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1.2fr .8fr; } }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; font: 700 22px/1.1 var(--serif); text-decoration: none; }
.foot-logo img { width: 64px; height: auto; display: block; }
.foot-brand p { margin: 8px 0 0; max-width: 34ch; }
.foot-brand .foot-tag { font: 700 18px/1.4 var(--serif); }
:lang(ar) .foot-brand .foot-tag { font-family: var(--arabic); }
.foot-h { font: 700 14px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); margin: 0 0 6px; }
:lang(ar) .foot-h, :lang(tr) .foot-h { letter-spacing: 0; text-transform: none; font-size: 16px; }
:lang(ar) .foot-h { font-family: var(--arabic); }
.foot-list, .foot-codes { list-style: none; margin: 0; padding: 0; }
.foot-list a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.foot-codes { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-codes a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; }
.foot-codes a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.foot-codes a[aria-current="true"]:hover { color: var(--ink); }
.foot-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(242, 237, 228, .35); }
.site-foot .copy { color: #D8CDB6; margin: 6px 0 0; }

@media print {
  body { background: #fff; }
  .site-head nav, .nav-menu, .lang-menu, .topstrip, .skip, .actions { display: none; }
  .site-foot { background: none; color: var(--ink); }
  .site-foot a { color: var(--ink); }
  .catch { background: none; color: var(--ink); border-block: 2px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
