/* ============================================================
   UAE Founder Guide — uaefounderguide.ae
   Brand system (finalized):
     Greens: #5d965c (brand) · #3f663e (deep) · #2e6b4f (pine)
     Navy:   #1d2733 (ink)
     Gold:   #c8a24b (deadline/urgency accent)
   Type: Archivo ExtraBold (display) · Source Serif 4 (body)
         IBM Plex Mono (every date and number on the site)
   ============================================================ */

:root {
  --navy: #1d2733;
  --ink-soft: #46525f;
  --paper: #ffffff;
  --field: #eff3ec;
  --green: #3f663e;
  --brand: #5d965c;
  --pine: #2e6b4f;
  --gold: #c8a24b;
  --gold-bg: #faf5e8;
  --gold-border: #e8d9b0;
  --line: #d8ded4;
  --radius: 6px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
}

h1, h2, h3, h4, .display {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.mono, time, .num {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--navy); letter-spacing: -0.01em;
}
.logo .tld { color: var(--brand); font-weight: 600; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  font-family: "Archivo", sans-serif; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; color: var(--ink-soft);
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--green); }

/* ---------- deadline ledger (site signature) ---------- */
.ledger { background: var(--navy); color: #e9edf1; border-bottom: 3px solid var(--gold); }
.ledger .wrap { display: flex; align-items: stretch; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.ledger-label {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
  display: flex; align-items: center; padding: 12px 20px 12px 0;
  border-right: 1px solid rgba(233,237,241,0.18); white-space: nowrap;
}
.ledger-item {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 20px;
  border-right: 1px solid rgba(233,237,241,0.18);
  text-decoration: none; color: #e9edf1; min-width: 0;
}
a.ledger-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ledger-item time { color: var(--gold); font-weight: 600; }
.ledger-item .days { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: #9fb0be; white-space: nowrap; }
.ledger-item .what {
  font-family: "Archivo", sans-serif; font-size: 0.88rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ledger-item.is-past { opacity: 0.55; }
@media (max-width: 720px) {
  .ledger .wrap { flex-direction: column; }
  .ledger-label { border-right: 0; padding: 10px 0 0; }
  .ledger-item { border-right: 0; border-top: 1px solid rgba(233,237,241,0.12); padding: 10px 0; }
  .ledger-item .what { white-space: normal; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--pine); }
.hero p.lede { margin-top: 22px; max-width: 56ch; font-size: 1.15rem; color: var(--ink-soft); }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.95rem; text-decoration: none; padding: 13px 22px;
  border-radius: var(--radius); border: 1.5px solid var(--green);
}
.btn.solid { background: var(--green); color: #fff; }
.btn.solid:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.ghost { color: var(--green); background: transparent; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.field { background: var(--field); }
.kicker {
  font-family: "Archivo", sans-serif; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
  margin-bottom: 10px;
}
section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 32px; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 1.12rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { color: var(--green); }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.card .meta { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.card .more { margin-top: auto; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.card.deadline { border-left: 4px solid var(--gold); background: var(--gold-bg); }
.card.tool { border-top: 3px solid var(--brand); }

/* ---------- article ---------- */
article.post { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
article.post .kicker { margin-bottom: 14px; }
article.post h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 18px; }
article.post .byline {
  font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 0; margin-bottom: 32px;
}
article.post h2 { font-size: 1.45rem; margin: 38px 0 12px; }
article.post h3 { font-size: 1.15rem; margin: 28px 0 10px; }
article.post p { margin-bottom: 18px; }
article.post ul, article.post ol { margin: 0 0 18px 24px; }
article.post li { margin-bottom: 8px; }
article.post .factbox {
  background: var(--field); border: 1px solid var(--line); border-left: 4px solid var(--pine);
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; font-size: 0.98rem;
}
article.post .factbox strong, article.post .warnbox strong { font-family: "Archivo", sans-serif; }
article.post .warnbox {
  background: var(--gold-bg); border: 1px solid var(--gold-border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; font-size: 0.98rem;
}
article.post .cta-band { margin-top: 42px; padding: 26px; background: var(--navy); color: #e9edf1; border-radius: var(--radius); }
article.post .cta-band h3 { color: #fff; margin: 0 0 8px; }
article.post .cta-band p { color: #b6c1cc; font-size: 0.96rem; margin-bottom: 16px; }

.verified {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--ink-soft);
  border-top: 1px dashed var(--line); margin-top: 40px; padding-top: 14px;
}

/* ---------- youtube band ---------- */
.yt-band { background: var(--navy); color: #e9edf1; }
.yt-band h2 { color: #fff; }
.yt-band .section-intro { color: #b6c1cc; }
.yt-band .btn.solid { background: var(--brand); border-color: var(--brand); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.9rem; color: var(--ink-soft); }
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 28px; }
footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; color: var(--navy); }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
footer a { color: var(--ink-soft); }
.disclaimer { font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 18px; }

/* ---------- logo image in header ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { display: block; width: 44px; height: 44px; object-fit: contain; }

/* ---------- clean hero with brand mark ---------- */
.hero-mark { width: 92px; height: 92px; margin-bottom: 22px; }
@media (max-width: 720px) { .hero-mark { width: 72px; height: 72px; } }

/* ---------- topic strip (what the channel covers) ---------- */
.topics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.topic {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; background: var(--paper);
  border-top: 3px solid var(--brand);
}
.topic h3 { font-size: 1.02rem; margin-bottom: 6px; }
.topic p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- light graphics ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-art {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); height: auto; z-index: 0; pointer-events: none;
}
@media (max-width: 900px) { .hero-art { opacity: 0.5; right: -140px; } }
@media (max-width: 600px) { .hero-art { display: none; } }

.topic-icon { width: 30px; height: 30px; margin-bottom: 10px; display: block; }

.card, .topic { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover, .topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(29, 39, 51, 0.09);
}

/* gold tick under section headings for a consistent visual accent */
section h2::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 12px;
}
article.post h2::after { display: none; }

/* wordmark is a single flex item so the gap only sits between logo and text */
.logo .wordmark { white-space: nowrap; }

/* Unified hover for the logo link: both words react together.
   (Previously "Guide" was already brand-green, so the generic a:hover
   green matched it and only "UAE Founder" appeared to change.) */
a.logo:hover .wordmark { color: var(--brand); }
a.logo:hover .tld { color: var(--navy); }
