/* Journal (blog.html, post.html) in the light design of the generated pages
   (October 2026). blog.js builds the list and the article with the classes
   below; the page shell is hand-written. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-display-450.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/assets/fonts/amiri-arabic-core-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-arabic-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --white: #FFFFFF; --ivory: #F8F6F1; --ink: #17191C; --ink-2: #4B5057; --ink-3: #6B7077;
  --line: #E6E1D7; --gold: #C4A062; --gold-hover: #B38F51; --gold-text: #86642A; --night: #16181B;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.65 var(--text); }
a { color: var(--gold-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
/* Hidden by clipping, not by moving it off screen: left: -9999px makes an
   Arabic (RTL) page scroll sideways. */
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; clip: auto; inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; }

.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.bar-brand { display: grid; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 21px; letter-spacing: 0.28em; line-height: 1.1; }
.bar-brand span { font-family: var(--text); font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-3); }
.bar-actions { display: flex; align-items: center; gap: 22px; }
.bar-phone { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 6px; font: 600 14px var(--text); text-decoration: none; background: var(--gold); color: var(--ink); }
.btn:hover { background: var(--gold-hover); }

main section { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 24px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 14px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.lead-sub { color: var(--ink-2); max-width: 62ch; margin: 16px 0 0; font-size: clamp(17px, 1.5vw, 19px); }

.blog-wrap { padding-top: 16px !important; }
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: block; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 14px; display: block; }
.post-card h2 { font-size: 24px; margin: 4px 0 8px; }
.post-card:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.post-date { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.post-excerpt { margin: 0; color: var(--ink-2); }
#blogGuides + .post-grid:not(:empty) { margin-top: 28px; }
.guide-card h2 a { color: inherit; text-decoration: none; }
.guide-card h2 a:hover, .guide-card h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.guide-ar { margin: 10px 0 0; font-size: 15px; }
.guide-ar a { color: var(--gold-text); }
.muted { color: var(--ink-2); }

.article { max-width: 44rem; margin: 0 auto; padding: 40px var(--gutter) 10px; }
.article-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 8px 0 14px; }
.article-lead { font-size: 1.12em; color: var(--ink-2); margin: 0 0 6px; }
.article-cover { margin: 24px 0; }
.article-cover img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article-body p { margin: 0 0 1.15em; }
.article-missing { max-width: 44rem; margin: 40px auto; padding: 0 var(--gutter); text-align: center; color: var(--ink-2); }

.enquire { border-top: 1px solid var(--line); margin-top: 48px !important; }
.alt-contact { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; font-size: 15px; font-weight: 500; }
.foot { background: var(--night); color: #C9C5BC; padding: 40px var(--gutter) 56px; margin-top: 64px; font-size: 14px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 10px; }
.foot-links a { color: #E2C68E; }

html[dir="rtl"] body { font-family: "Cairo", var(--text); }
html[dir="rtl"] h1, html[dir="rtl"] h2 { font-family: "Amiri", var(--display); letter-spacing: 0; line-height: 1.35; }
html[dir="rtl"] .kicker, html[dir="rtl"] .post-date { letter-spacing: 0; text-transform: none; }
@media (max-width: 640px) { .bar-phone { display: none; } }
