:root {
  color-scheme: light;
  --ink: #272019;
  --muted: #66574c;
  --paper: #fcf9f4;
  --line: #e5d9ce;
  --brand: #63372f;
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.85; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #8c4d37; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: var(--paper); border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:hover, .article-links a:hover, .back:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.14fr 1fr; margin-block: 38px 64px; min-height: 465px; }
.hero-copy { padding: clamp(32px, 5vw, 74px); align-content: center; background: #eee4da; }
.kicker { color: var(--brand); padding: 0; margin: 0 0 9px; font-size: .9rem; font-weight: 750; }
h1, h2, p { margin-block-start: 0; }
h1 { font-size: clamp(2.25rem, 4.2vw, 4.15rem); line-height: 1.43; margin-block-end: 15px; letter-spacing: -.035em; }
.hero-copy p:not(.kicker) { max-width: 35ch; color: var(--muted); margin-block-end: 26px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand); padding: 6px 17px; font-size: .94rem; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: #482820; }
.hero-logo { display: grid; place-items: center; padding: clamp(24px, 4vw, 60px); position: relative; background: #d9cabe; }
.hero-logo::before { content: ""; position: absolute; inset: 21px; border: 1px solid #f6eee6; pointer-events: none; }
.hero-logo img { display: block; width: min(100%, 360px); height: auto; transform: translateY(-6%); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-block-end: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); background: #fffdf9; }
.card h3 { font-size: clamp(1.22rem, 2.6vw, 1.65rem); line-height: 1.55; margin: 0 0 8px; }
.card p:not(.kicker) { color: var(--muted); margin-block-end: 16px; }
.article-links a, .back { color: var(--brand); font-weight: 700; text-underline-offset: 4px; }
.site-footer { border-block-start: 1px solid var(--line); margin-block-start: 66px; }
.footer-inner { padding-block: 18px; }
.reading { max-width: 780px; margin-block: 36px 56px; }
.reading article { margin-block-start: 24px; }
.reading article header { border-block-end: 1px solid var(--line); margin-block-end: 28px; }
.reading h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.reading h2 { margin-block: 26px 8px; font-size: 1.35rem; }
.reading p:not(.kicker) { color: var(--muted); }
.reading .actions { margin-block-start: 32px; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { padding-block: 12px; }
  .nav { gap: 6px 16px; }
  .hero { grid-template-columns: 1fr; margin-block: 20px 39px; min-height: auto; }
  .hero-copy { padding: 30px 24px; }
  .hero-logo { min-height: 190px; padding: 20px; }
  .hero-logo img { width: min(73%, 240px); }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { margin-block-start: 42px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site-header { border-block-end: 1px solid #e3d6c9; }
.header-inner { min-height: 75px; }
.site-header .brand { display: inline-flex; width: 111px; height: 62px; align-items: center; }
.site-header .brand img { width: 100%; height: auto; display: block; transform: translateY(-5%); }
.utility { font-weight: 700; }
.category-nav { min-height: 49px; justify-content: center; border-block-start: 1px solid var(--line); gap: 4px clamp(12px, 4vw, 48px); }
.category-nav a { padding-block: 6px; }
.hero { min-height: 384px; margin-block: 26px 42px; grid-template-columns: 1fr 1fr; background: #ede3d7; }
.hero-copy { background: transparent; }
.hero-logo { background: #dfd0c0; }
.hero-logo::before { inset: 24px; border-color: #f7ede2; }
.hero-logo img { width: min(100%, 350px); }
.departments { margin-block-end: 48px; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.department { background: #eee3d7; padding: clamp(18px, 3vw, 29px); border-block-start: 3px solid #b5927f; }
.department:nth-child(2) { background: #eae6df; border-color: #a28b76; }
.department:nth-child(3) { background: #e8ded7; border-color: #a58272; }
.department h3 { font-size: clamp(1.12rem, 2.1vw, 1.5rem); margin: 0 0 4px; }
.department p { color: var(--muted); margin-block-end: 10px; }
.department a { color: var(--brand); font-weight: 700; text-underline-offset: 4px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 740px) {
  .header-inner { min-height: 62px; padding-block: 4px; }
  .site-header .brand { width: 83px; height: 50px; }
  .utility a, .category-nav a { font-size: .88rem; }
  .category-nav { min-height: 46px; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-block: 18px 34px; }
  .hero-logo img { width: min(70%, 235px); }
  .departments { margin-block-end: 32px; }
  .department-grid { grid-template-columns: 1fr; gap: 10px; }
  .department p { margin-block-end: 4px; }
}
