:root {
  --mn-carrara: #f8f5f1;
  --mn-alabaster: #ede8e0;
  --mn-copper: #b87333;
  --mn-bronze: #8c6239;
  --mn-onyx: #1a1a18;
  --mn-paper: #ffffff;
  --mn-ink: #23221f;
  --mn-muted: #665f58;
  --mn-line: #d9d0c5;
  --mn-focus: #c68143;
  --mn-shadow: 0 18px 54px rgba(26, 26, 24, 0.1);
  --mn-display: "Noto Kufi Arabic", Arial, sans-serif;
  --mn-body: "IBM Plex Sans Arabic", Arial, sans-serif;
  --mn-editorial: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mn-carrara);
  color: var(--mn-ink);
  font-family: var(--mn-body);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mn-focus);
  outline-offset: 4px;
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--mn-paper);
  color: var(--mn-onyx);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 241, 0.96);
  border-bottom: 1px solid rgba(184, 115, 51, 0.36);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-width: 250px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  align-content: center;
  line-height: 1.25;
}

.brand-copy strong {
  font-family: var(--mn-editorial);
  font-size: 22px;
  color: var(--mn-onyx);
}

.brand-copy small {
  margin-top: 2px;
  color: var(--mn-muted);
  font-size: 11px;
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list,
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list a {
  color: #3d3934;
  font-size: 14px;
  font-weight: 600;
}

.nav-list a:hover { color: var(--mn-bronze); }

.header-store-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1px solid var(--mn-onyx);
  background: var(--mn-onyx);
  color: var(--mn-paper);
  font-weight: 700;
}

.header-store-link:hover {
  background: var(--mn-copper);
  border-color: var(--mn-copper);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 10px;
  border: 1px solid var(--mn-line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
  width: 100%;
  height: 1px;
  display: block;
  margin: 5px 0;
  background: var(--mn-onyx);
}

.hero {
  position: relative;
  height: min(690px, calc(100vh - 132px));
  min-height: 560px;
  overflow: hidden;
  background: var(--mn-onyx);
  color: var(--mn-paper);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 62%;
}

.hero-overlay { background: rgba(26, 26, 24, 0.58); }

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 690px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--mn-bronze);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.editorial-name {
  font-family: var(--mn-editorial);
  font-size: 22px;
  color: var(--mn-copper);
}

.hero .editorial-name { color: #e7b98d; }

.hero h1,
.section-heading h2,
.page-header h1,
.article-header h1,
.site-footer h2,
.brand-bridge h2 {
  margin: 0;
  font-family: var(--mn-display);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: 62px;
  line-height: 1.38;
  font-weight: 700;
}

.hero-lede {
  max-width: 610px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.3;
}

.button-primary {
  background: var(--mn-onyx);
  color: var(--mn-paper);
}

.button-primary:hover { background: var(--mn-bronze); }

.button-copper {
  background: var(--mn-copper);
  color: var(--mn-paper);
}

.button-copper:hover { background: var(--mn-bronze); }

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--mn-paper);
  background: rgba(26, 26, 24, 0.28);
}

.button-outline-light:hover {
  border-color: var(--mn-paper);
  background: rgba(26, 26, 24, 0.64);
}

.section { padding: 92px 0; }

.section-intents { background: var(--mn-carrara); }

.section-editorial { background: var(--mn-paper); }

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  color: var(--mn-onyx);
  font-size: 38px;
  line-height: 1.55;
  font-weight: 700;
}

.section-heading > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--mn-muted);
  font-size: 17px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--mn-line);
  border-radius: 6px;
  background: var(--mn-paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--mn-copper);
  box-shadow: var(--mn-shadow);
}

.path-card-dark {
  background: var(--mn-onyx);
  color: var(--mn-paper);
  border-color: var(--mn-onyx);
}

.path-label {
  color: var(--mn-bronze);
  font-size: 12px;
  font-weight: 700;
}

.path-card-dark .path-label { color: #dca474; }

.path-card h3 {
  margin: 18px 0 10px;
  font-family: var(--mn-display);
  font-size: 24px;
  line-height: 1.6;
}

.path-card p {
  margin: 0;
  color: var(--mn-muted);
}

.path-card-dark p { color: #d8d1c9; }

.path-action {
  margin-top: auto;
  padding-top: 28px;
  color: var(--mn-bronze);
  font-weight: 700;
}

.path-card-dark .path-action { color: #efc49e; }

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--mn-line);
  border-radius: 2px;
  background: var(--mn-paper);
  color: var(--mn-onyx);
  cursor: pointer;
}

.carousel-controls button:hover {
  border-color: var(--mn-copper);
  color: var(--mn-bronze);
}

.editorial-rail {
  position: relative;
  height: 1px;
  margin-bottom: 28px;
  background: var(--mn-line);
}

.editorial-rail span {
  position: absolute;
  top: -2px;
  right: 0;
  width: 22%;
  height: 5px;
  background: var(--mn-copper);
}

.article-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 39%);
  gap: 18px;
  padding: 0 0 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--mn-copper) var(--mn-alabaster);
}

.article-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--mn-carrara);
  border: 1px solid var(--mn-line);
  border-radius: 6px;
  overflow: hidden;
}

.article-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mn-alabaster);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.article-card:hover .article-card-image img { transform: scale(1.025); }

.article-card > :not(.article-card-image) { margin-inline: 24px; }

.article-kicker {
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--mn-bronze);
  font-size: 12px;
  font-weight: 700;
}

.article-card h2,
.article-card h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  font-family: var(--mn-display);
  font-size: 22px;
  line-height: 1.65;
}

.article-card h2 a:hover,
.article-card h3 a:hover { color: var(--mn-bronze); }

.article-card > p:not(.article-kicker) {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--mn-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 18px;
  color: var(--mn-muted);
  font-size: 11px;
}

.article-meta span + span::before {
  content: "•";
  margin-left: 10px;
  color: var(--mn-copper);
}

.article-read-link {
  margin-top: auto !important;
  margin-bottom: 22px;
  padding-top: 18px;
  color: var(--mn-bronze);
  font-weight: 700;
}

.topic-index { background: var(--mn-alabaster); }

.topic-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.topic-links { border-top: 1px solid var(--mn-line); }

.topic-links a {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--mn-line);
}

.topic-links a:hover strong { color: var(--mn-bronze); }

.topic-links span {
  color: var(--mn-bronze);
  font-size: 13px;
  font-weight: 700;
}

.topic-links strong {
  font-family: var(--mn-display);
  font-size: 19px;
  line-height: 1.6;
}

.brand-bridge {
  padding: 92px 0;
  background: var(--mn-onyx);
  color: var(--mn-paper);
}

.brand-bridge-inner { max-width: 720px; }

.brand-bridge h2 {
  font-size: 42px;
  line-height: 1.5;
}

.brand-bridge p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 28px;
  color: #d8d1c9;
  font-size: 18px;
}

.page-content,
.article-content,
.archive-page { padding: 78px 0 96px; }

.page-header,
.article-header {
  max-width: 850px;
  margin-bottom: 36px;
}

.page-header h1,
.article-header h1 {
  font-size: 46px;
  line-height: 1.5;
}

.article-content { max-width: 940px; }

.prose {
  color: #302d29;
  font-size: 18px;
  line-height: 2;
}

.prose h2,
.prose h3 {
  font-family: var(--mn-display);
  color: var(--mn-onyx);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 29px;
  line-height: 1.65;
}

.prose h3 {
  margin: 34px 0 8px;
  font-size: 22px;
  line-height: 1.65;
}

.prose p,
.prose li { max-width: 780px; }

.prose a {
  color: var(--mn-bronze);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 13px;
  border: 1px solid var(--mn-line);
  text-align: right;
  vertical-align: top;
}

.prose th { background: var(--mn-alabaster); }

.source-note {
  margin-top: 46px;
  padding: 24px 26px;
  background: var(--mn-alabaster);
  border-right: 3px solid var(--mn-copper);
}

.source-note p { margin: 6px 0 0; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-page .article-card { padding-bottom: 24px; }

.empty-state { color: var(--mn-muted); }

.site-footer {
  padding: 68px 0 22px;
  background: #11110f;
  color: var(--mn-paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.footer-brand img {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: contain;
  background: var(--mn-carrara);
  border-radius: 4px;
}

.footer-edit-name {
  margin: 15px 0 2px;
  color: #e2b083;
  font-family: var(--mn-editorial);
  font-size: 22px;
}

.site-footer h2 {
  font-size: 26px;
  line-height: 1.55;
}

.site-footer h3 {
  margin: 0 0 15px;
  font-family: var(--mn-display);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer p {
  margin: 10px 0 0;
  color: #cfc7bf;
  font-size: 14px;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: #ddd5cd;
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav a:hover { color: #e2b083; }

.footer-store-link {
  display: inline-flex;
  margin-top: 20px;
  padding-bottom: 4px;
  color: #f0c59c;
  border-bottom: 1px solid var(--mn-copper);
  font-weight: 700;
}

.footer-disclaimer {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #bdb5ad;
  font-size: 12px;
}

.footer-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8f8881;
  font-size: 11px;
}

@media (max-width: 1024px) {
  .site-shell { width: min(100% - 36px, 1180px); }
  .nav-list { gap: 16px; }
  .nav-list a { font-size: 13px; }
  .hero h1 { font-size: 50px; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-card-dark { grid-column: 1 / -1; min-height: 230px; }
  .article-carousel { grid-auto-columns: minmax(320px, 54%); }
  .topic-layout { gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 70px; }
  .brand { min-width: 0; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-copy strong { font-size: 19px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 22px 18px 26px;
    background: var(--mn-carrara);
    border-bottom: 1px solid var(--mn-line);
    box-shadow: var(--mn-shadow);
  }
  .primary-nav.is-open { display: grid; }
  .nav-list { display: grid; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mn-line); }
  .header-store-link { width: 100%; margin-top: 10px; }
  .hero { height: min(650px, calc(100vh - 110px)); min-height: 570px; }
  .hero h1 { font-size: 42px; }
  .hero-lede { font-size: 18px; }
  .section { padding: 70px 0; }
  .section-heading h2 { font-size: 32px; }
  .article-carousel { grid-auto-columns: minmax(310px, 76%); }
  .topic-layout { grid-template-columns: 1fr; gap: 12px; }
  .brand-bridge { padding: 72px 0; }
  .brand-bridge h2 { font-size: 34px; }
  .page-header h1, .article-header h1 { font-size: 38px; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .brand-copy small { display: none; }
  .hero { min-height: 590px; }
  .hero-media img { object-position: center 65%; }
  .hero-overlay { background: rgba(26, 26, 24, 0.64); }
  .hero-content { align-items: flex-start; padding-top: 64px; }
  .hero h1 { font-size: 34px; line-height: 1.55; }
  .hero-lede { margin: 18px 0 24px; font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-note { font-size: 11px; }
  .section-heading-row { align-items: flex-start; }
  .section-heading h2 { font-size: 28px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card-dark { grid-column: auto; }
  .path-card { min-height: 270px; padding: 24px; }
  .carousel-controls { flex: 0 0 auto; }
  .article-carousel { grid-auto-columns: 88%; }
  .article-card { min-height: 500px; }
  .topic-links a { grid-template-columns: 1fr; gap: 4px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .page-content, .article-content, .archive-page { padding: 56px 0 72px; }
  .page-header h1, .article-header h1 { font-size: 31px; }
  .prose { font-size: 17px; }
  .prose table { display: block; overflow-x: auto; }
}

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