/* ============================================================
   HALAL-READY PACKAGING — Companion Resources
   halal.vectar.me — static, zero JS, print-DNA of the book.
   ============================================================ */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("assets/fonts/Amiri-Bold-subset.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0621-064A; }

:root {
  --ivory:   #F5F1E8;
  --ivory-2: #EFEADD;
  --ink:     #1C1B17;
  --ink-60:  rgba(28, 27, 23, 0.62);
  --ink-40:  rgba(28, 27, 23, 0.38);
  --green:   #1B4332;
  --green-d: #123024;
  --gold:    #B8963E;
  --gold-10: rgba(184, 150, 62, 0.10);
  --line:    rgba(28, 27, 23, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 900px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- section number + label ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
}
.section-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--green); font-weight: 400; }
.section-rule {
  flex: 1;
  border-top: 1px solid var(--line);
  transform: translateY(-4px);
}

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--ivory);
  padding: 72px 0 56px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .stripe-top {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, transparent 10px 20px);
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: rgba(245, 241, 232, 0.68);
  margin: 34px 0 18px;
  text-transform: uppercase;
}
.hero-kicker .dot { color: var(--gold); margin: 0 8px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5.6vw, 50px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: #E7CD8A; font-weight: 400; }
.hero p.lede {
  font-size: 17px;
  color: rgba(245, 241, 232, 0.82);
  max-width: 520px;
  margin: 0 0 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.72);
  border-top: 1px solid rgba(245, 241, 232, 0.22);
  padding-top: 18px;
}
.hero-meta strong { color: var(--gold); font-weight: 600; }
.hero-ar {
  position: absolute;
  top: -6px; right: 4%;
  font-family: "Amiri", serif;
  font-weight: 700;
  font-size: clamp(90px, 16vw, 190px);
  color: rgba(245, 241, 232, 0.09);
  direction: rtl;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

/* ================= 01 · OFFICIAL DATABASES ================= */
.db-list { display: grid; gap: 0; }
.db-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.db-item:last-child { border-bottom: 1px solid var(--line); }
.db-num { font-family: var(--mono); font-size: 12px; color: var(--ink-40); padding-top: 3px; }
.db-body h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
}
.db-body p { margin: 0; color: var(--ink-60); font-size: 14.5px; max-width: 56ch; }
.db-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; padding-top: 3px; }
.db-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(27, 67, 50, 0.28);
  padding-bottom: 1px;
}
.db-link:hover { border-bottom-color: var(--green); }
.db-link .arrow { color: var(--gold); margin-left: 3px; }

/* ================= 02 · PRINTABLES ================= */
.printables { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.printable-card {
  border: 1px solid var(--line);
  background: var(--ivory-2);
  padding: 26px 24px 24px;
  position: relative;
}
.printable-card .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.printable-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 10px;
  line-height: 1.28;
}
.printable-card p {
  color: var(--ink-60);
  font-size: 14px;
  margin: 0 0 20px;
  min-height: 42px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ivory);
  background: var(--green);
  padding: 10px 16px;
  text-transform: uppercase;
}
.dl-btn:hover { background: var(--green-d); }
.dl-btn .ic { font-family: var(--mono); }

/* ================= 03 · REGULATORY WATCH ================= */
.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.watch-card {
  border: 1px dashed var(--green);
  background: var(--ivory-2);
  padding: 20px 20px 18px;
  position: relative;
}
.watch-status {
  position: absolute;
  top: -11px; right: 14px;
  transform: rotate(-4deg);
  background: var(--ivory);
  border: 1.4px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  text-transform: uppercase;
}
.watch-card h3 {
  font-family: var(--serif);
  font-size: 17.5px;
  margin: 6px 0 10px;
  line-height: 1.3;
  padding-right: 10px;
}
.watch-card .date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}
.watch-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.5;
}

/* ================= 04 · CTA ================= */
.cta {
  background: var(--green);
  color: var(--ivory);
  text-align: center;
  padding: 56px 0 60px;
  position: relative;
}
.cta .wrap { max-width: 620px; }
.cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.5;
  margin: 0 0 22px;
}
.cta a.mail {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 150, 62, 0.5);
  padding-bottom: 2px;
}
.cta a.mail:hover { border-bottom-color: var(--gold); }
.cta .stripe-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, transparent 10px 20px);
}

/* ================= FOOTER ================= */
footer {
  padding: 26px 0 40px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  text-align: center;
}
footer .ar-small {
  font-family: "Amiri", serif;
  font-size: 15px;
  color: var(--green);
  margin-left: 6px;
}

/* ================= responsive ================= */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 46px 0; }
  .hero { padding: 46px 0 40px; }
  .hero-ar { font-size: 110px; top: -10px; right: -6%; opacity: 0.8; }
  .db-item { grid-template-columns: 22px 1fr; }
  .db-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; padding-top: 6px; }
  .printables { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
