:root {
  --bg: #f8f3ed;
  --paper: #fffdfa;
  --ink: #2b2420;
  --ink-2: #5e534c;
  --muted: #8a7e75;
  --line: #e6dcd2;
  --rose: #b5676b;
  --rose-ink: #8f4a4f;
  --rose-wash: #f3e3df;
  --sage: #7f8f72;
  --sage-wash: #e9ede3;
  --radius: 18px;
  --measure: 680px;
  --display: "Amiri", "Times New Roman", serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.9 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--rose); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.35; color: var(--ink); }
.muted { color: var(--muted); }
.preview { background: #2b2420; color: #f8f3ed; text-align: center; font-size: 14px; padding: 6px 12px; }

/* header / footer */
.site-head {
  max-width: 1120px; margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-family: var(--display); font-style: italic; font-size: 26px; letter-spacing: .2px; direction: ltr; unicode-bidi: isolate; }
.brand-ar { font-size: 13px; color: var(--muted); }
.site-head nav { display: flex; gap: 20px; font-size: 15px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover { color: var(--rose-ink); }
.site-foot {
  margin-top: 96px; padding: 40px 20px 56px; border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-2); font-size: 15px;
}
.site-foot p { margin: 6px 0; }
.site-foot .brand-en { font-size: 19px; }
.site-foot .fine { color: var(--muted); font-size: 13px; }

/* home */
.intro { max-width: var(--measure); margin: 40px auto 48px; padding: 0 20px; text-align: center; }
.intro h1 { font-size: clamp(38px, 7vw, 60px); margin: 0 0 12px; }
.intro h1 em { font-style: normal; color: var(--rose); }
.intro p { color: var(--ink-2); font-size: 19px; margin: 0; }
.cards {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card { text-decoration: none; color: var(--ink); display: block; }
.card-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card .kicker { margin: 14px 0 2px; }
.card h3 { font-size: 24px; margin: 0 0 6px; }
.card p:last-child { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--sage); margin: 0; }

/* guide */
.guide { padding: 0 20px; }
.crumbs { max-width: var(--measure); margin: 8px auto 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.guide-head { max-width: var(--measure); margin: 28px auto 28px; text-align: center; }
.guide-head h1 { font-size: clamp(34px, 6.4vw, 52px); margin: 8px 0 14px; }
.dek { font-size: 20px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.75; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.hero { max-width: 880px; margin: 0 auto 40px; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero .credit { display: block; text-align: center; margin-top: 8px; }
.credit { font-size: 12px; color: var(--muted); direction: rtl; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose .lede { font-size: 20px; color: var(--ink); }
.prose h2 { font-size: 32px; margin: 2.1em 0 .5em; }
.prose h3 { font-size: 22px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
sup.cite { font-size: 11px; line-height: 0; margin-inline-start: 2px; }
sup.cite a { text-decoration: none; }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 32px 0; }
.toc p { margin: 0 0 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.toc ol { margin: 0; font-size: 16px; }
.toc a { text-decoration: none; }

.fig { margin: 32px 0; }
.fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.fig figcaption { font-size: 15px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }
.fig figcaption .credit { display: block; margin-top: 2px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 20px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
caption { text-align: start; padding: 12px 16px 0; font-size: 14px; color: var(--muted); }
th, td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--rose-wash); white-space: nowrap; }
thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
td { font-variant-numeric: tabular-nums; }
td.kcal { font-weight: 600; color: var(--rose-ink); }
a.fdc { display: inline-block; margin-inline-start: 4px; font-size: 10px; font-weight: 600; letter-spacing: .4px; color: var(--sage); text-decoration: none; border: 1px solid var(--sage-wash); background: var(--sage-wash); border-radius: 6px; padding: 0 5px; vertical-align: middle; }
.table-note { font-size: 14px; color: var(--muted); }

/* ideas */
.ideas { list-style: none; padding: 0 !important; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.idea { margin: 0 !important; }
.idea-img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--line); }
.idea-img img { width: 100%; height: 100%; object-fit: cover; }
.idea h3 { font-size: 20px; margin: 10px 0 2px; }
.idea p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 2px !important; }

.tips { background: var(--sage-wash); border-radius: var(--radius); padding: 6px 24px 10px; margin: 36px 0; }
.tips h2 { margin-top: .7em !important; font-size: 26px !important; }
.callout { border-inline-start: 3px solid var(--rose); background: var(--paper); padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 28px 0; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0 0 .5em !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--rose); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0 !important; color: var(--ink-2); }

.kilo { margin: 48px 0 0; padding: 18px 22px; background: var(--rose-wash); border-radius: var(--radius); font-size: 16px; }
.kilo p { margin: 0 !important; }
.sources { margin-top: 40px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.sources h2 { font-size: 24px !important; }
.sources ol { padding-inline-start: 1.2em; }
.fdc-list { margin: 6px 0 0; font-size: 13px; direction: ltr; text-align: left; padding-left: 1.2em !important; padding-right: 0 !important; }
.fdc-list li { margin: 0; }

.related { margin: 80px auto 0; max-width: 1120px; }
.related h2 { text-align: center; font-size: 30px; margin: 0 0 28px; padding: 0 20px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-head { padding: 16px; }
  .site-head nav { gap: 14px; font-size: 14px; }
  .brand-en { font-size: 22px; }
  .guide, .cards, .intro { padding-left: 16px; padding-right: 16px; }
  .hero img { aspect-ratio: 4 / 5; border-radius: 14px; }
  .prose h2 { font-size: 27px; }
  .ideas { gap: 22px 12px; }
  .idea h3 { font-size: 17px; }
  .idea p { font-size: 14px; }
  .tips { padding: 4px 18px 8px; }
  table { font-size: 14px; }
  th, td { padding: 10px 8px; }
  thead th { white-space: normal; font-size: 12px; }
}
.soon { grid-column: 1 / -1; text-align: center; color: var(--ink-2); }
