/* Seven Figure Road — night-road layout: black asphalt ground, gold road markings, ivory type.
   Deliberately single dark theme: the logo's wordmark is white on transparent. */
:root {
  --bg: #0A0907;
  --surface: #14120E;
  --line: #2C2619;
  --text: #F3EDE0;
  --muted: #A89E88;
  --gold: #D9A93F;
  --gold-hi: #F4D07C;
  --gold-lo: #9C7024;
  --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
:root[dir="rtl"] body { font-family: var(--font-ar); }
:root[dir="rtl"] body { font-size: 18px; line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 56px; }
.brand span {
  font-family: var(--font-brand); font-weight: 600; font-size: 15px;
  letter-spacing: 0.18em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; color: var(--gold-hi) !important;
}
.lang-ar { font-family: var(--font-ar); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: 56px 40px; }
.hero .logo { width: min(620px, 100%); margin: 0 auto; }
.tagline {
  margin: 28px auto 0; max-width: 34ch;
  font-size: clamp(20px, 3vw, 26px); line-height: 1.4; font-weight: 600;
  text-wrap: balance;
}
.sub { margin: 12px auto 0; max-width: 52ch; color: var(--muted); }

/* road markings: dashed gold center line, the logo's own motif */
.road {
  height: 4px; margin-block: 48px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 28px, transparent 28px 52px);
  opacity: 0.55; border-radius: 2px;
}

/* ---------- sections ---------- */
.section-label {
  font-family: var(--font-brand); font-size: 13px; letter-spacing: 0.22em;
  color: var(--gold); margin: 0 0 18px; text-transform: uppercase;
}
:root[dir="rtl"] .section-label { font-family: var(--font-ar); letter-spacing: 0; font-size: 15px; font-weight: 700; }

/* post card: mile marker on the left, like a km post on the shoulder */
.post-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--text);
}
.post-card:hover { border-color: var(--gold-lo); }
.post-card:hover h2 { color: var(--gold-hi); }
.marker {
  width: 64px; padding: 10px 0 12px; text-align: center;
  border: 1px solid var(--gold-lo); border-radius: 8px 8px 2px 2px;
  font-family: var(--font-brand); color: var(--gold-hi); line-height: 1.1;
}
.marker small { display: block; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.marker b { font-size: 26px; font-variant-numeric: tabular-nums; }
.post-card > div { min-width: 0; }
.post-card h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; text-wrap: balance; }
.post-card p { margin: 0; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin-top: 12px !important; }

.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.upcoming li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg);
}
.upcoming span:first-child { min-width: 0; }
.soon {
  flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px;
}
:root[dir="rtl"] .soon { letter-spacing: 0; }

.about {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center;
}
.about > * { min-width: 0; }
.about h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; text-wrap: balance; }
.about p { margin: 0 0 12px; color: var(--muted); }

/* ---------- article ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 32px; }
.crumbs a { color: var(--muted); }
.post-head { padding-block: 24px 8px; }
.post-head h1 {
  margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; text-wrap: balance; font-weight: 800;
}
.post-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px !important; }
.post-body h2 {
  font-size: clamp(22px, 3vw, 27px); line-height: 1.3; margin: 44px 0 12px; text-wrap: balance;
}
.post-body p, .post-body li { font-size: 1.06em; }
.post-body ul, .post-body ol { padding-inline-start: 1.3em; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--gold); }
.post-body strong { color: var(--gold-hi); font-weight: 700; }
.pull {
  margin: 36px 0; padding: 4px 0; padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold);
  font-size: 1.2em; font-weight: 700; line-height: 1.5;
}
.post-foot {
  margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); display: grid; gap: 8px;
}
.post-foot h3 { margin: 0; font-size: 18px; }
.post-foot p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 28px; font-size: 14px; color: var(--muted);
}

@media (max-width: 640px) {
  .brand span { display: none; }
  .nav { gap: 14px; }
  .hero { padding-block: 36px 24px; }
  .post-card { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .road { margin-block: 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .logo { animation: rise 0.9s ease-out both; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* ---------- comments ---------- */
.comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments h2 { margin: 0 0 6px; font-size: 24px; }
.c-note, .c-empty { color: var(--muted); margin: 0; }
.c-list { margin: 20px 0 28px; display: grid; gap: 14px; }
.c-item { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.c-item b { color: var(--gold-hi); }
.c-item p { margin: 6px 0 0; }
.c-form { display: grid; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.c-form label { font-weight: 600; font-size: 15px; margin-top: 6px; }
.c-form input, .c-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.c-form input:focus, .c-form textarea:focus { border-color: var(--gold); outline: none; }
.c-form textarea { resize: vertical; }
.c-form button {
  justify-self: start; margin-top: 10px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--gold); color: var(--bg); border: 0; border-radius: 10px; padding: 12px 24px;
}
.c-form button:hover { background: var(--gold-hi); }
.thanks { padding-block: 72px; }
.thanks h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
