:root {
  --ink: #17201d;
  --muted: #61706a;
  --paper: #f6f1e7;
  --card: #fffdf7;
  --line: #d9ceb7;
  --green: #075f46;
  --deep: #10201c;
  --gold: #c99d3a;
  --sand: #eadcc3;
  --date: #8d4f2d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, .96);
  border-bottom: 1px solid var(--line);
}
.brand {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-weight: 800; }
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  color: #50625c;
  font-weight: 850;
}
nav a { text-decoration: none; }
.language-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.language-control select {
  min-height: 34px;
  border: 1px solid #cbbfa7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}
.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(265px, 390px);
  align-items: end;
  gap: 24px;
  padding: 14vh 5vw 7vh;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(10, 20, 17, .05), rgba(10, 20, 17, .85)), url("https://commons.wikimedia.org/wiki/Special:FilePath/Masjid%20Al%20Haram.%20Mecca%2C%20Saudi%20Arabia.jpg");
  background-position: center;
  background-size: cover;
}
.hero-copy { max-width: 980px; }
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--date);
  font-size: .82rem;
  font-weight: 950;
}
.hero .kicker {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(255, 253, 247, .9);
  color: #6e3e21;
}
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 1060px; margin: 0 0 18px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .95; }
h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
h3 { margin: 0; font-size: 1.18rem; line-height: 1.18; }
p { line-height: 1.55; }
.hero p { max-width: 880px; margin: 0 0 24px; font-size: clamp(1.06rem, 2vw, 1.34rem); }
.hero-actions, .card-actions, .source-links, .image-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.btn, .card-actions a, .source-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 7px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.hero-panel {
  background: rgba(255, 253, 247, .95);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  padding: 18px;
}
.hero-panel strong { display: block; font-size: 1.16rem; }
.hero-panel p { margin: 8px 0 0; color: #4c5a55; font-size: 1rem; }
.planner {
  display: grid;
  grid-template-columns: minmax(250px, .86fr) minmax(320px, 1.35fr);
  gap: 34px;
  padding: 46px 5vw;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.planner p { color: #4e5d57; margin-bottom: 0; }
.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.controls label { display: grid; gap: 8px; color: #31413c; font-weight: 900; }
.controls input, .controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cabd9f;
  border-radius: 7px;
  background: #fff;
  padding: 0 13px;
  font: inherit;
  font-weight: 760;
}
.image-band {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  padding: 38px 5vw 0;
}
.image-band img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ddd2bf;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 5vw 12px;
}
.stats div {
  min-height: 112px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}
.stats strong { display: block; font-size: 2rem; color: var(--green); }
.stats span { color: var(--muted); font-weight: 850; }
.section { padding: 48px 5vw 64px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-head p { max-width: 960px; color: var(--muted); margin-bottom: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  min-height: 545px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #ddd2bf;
}
.card-body { display: grid; gap: 9px; align-content: start; padding: 16px 18px 8px; }
.rank { color: var(--date); font-weight: 950; font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f3ed;
  border: 1px solid #bedbc9;
  color: #14573f;
  font-size: .82rem;
  font-weight: 900;
}
.card p { margin: 0; color: #4f5f59; }
.card-actions {
  padding: 0 18px 18px;
  align-self: end;
}
.card-actions a {
  color: var(--deep);
  background: #f7f1e6;
  border-color: var(--line);
  min-height: 38px;
  padding: 8px 10px;
  font-size: .9rem;
}
.card-actions a:first-child { background: var(--green); color: #fff; border-color: var(--green); }
.pilgrim {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.6fr);
  gap: 28px;
  padding: 52px 5vw;
  background: #fff9ed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.note-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}
.note-grid strong { color: var(--green); font-size: 1.08rem; }
.note-grid p { margin: 8px 0 0; color: var(--muted); }
.sources {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 28px;
  padding: 52px 5vw;
  background: var(--deep);
  color: #fff;
}
.sources .kicker { color: #e5c15b; }
.sources p { color: #d7e0dc; margin-bottom: 0; }
.source-links { justify-content: flex-end; align-content: start; }
.source-links a, .image-credits a { background: rgba(255, 255, 255, .10); }
.image-credits {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 8px;
}
.image-credits a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  padding: 7px 10px;
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 850;
}
footer { padding: 26px 5vw 34px; color: var(--muted); font-weight: 760; }

@media (max-width: 1000px) {
  .hero, .planner, .pilgrim, .sources { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-band { grid-template-columns: 1fr; }
  .image-band img { height: 230px; }
  .source-links { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .site-header { position: static; display: grid; padding: 12px 18px; }
  .brand { min-width: 0; }
  nav { justify-content: flex-start; gap: 10px; font-size: .95rem; }
  .hero { min-height: auto; padding: 72px 18px 34px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .planner, .section, .pilgrim, .sources, .stats, .image-band { padding-left: 18px; padding-right: 18px; }
  .controls, .stats, .card-grid, .note-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-actions a { flex: 1 1 105px; }
}
