@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;700&display=swap');

:root {
  --ink: #172623;
  --ink-soft: #33473f;
  --teal: #5cc6b0;
  --teal-deep: #2c7a69;
  --sand: #d4c4a8;
  --sand-lite: #e8dcc7;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f7f0e4;
  --card: rgba(255, 252, 246, 0.52);
  --line: rgba(23, 38, 35, 0.16);
  --shadow: 0 16px 38px -26px rgba(23, 38, 35, 0.75);
  --head: 'Noto Naskh Arabic', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --body: 'Noto Sans Arabic', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(130% 90% at 10% 0%, #fbf5ec 0%, #f0e5d4 48%, #e3d3ba 100%) fixed;
  overflow-x: hidden;
  padding-bottom: 5.8rem;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
footer {
  position: relative;
  z-index: 2;
}

img { max-width: 100%; }

a { color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sand-lite);
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease-out;
}

.skip:focus { top: 0.8rem; }

.glass {
  background: var(--card);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

hr {
  border: 0;
  height: 2px;
  margin: 0.35rem 0 1rem;
  background: linear-gradient(90deg, var(--teal), rgba(198, 123, 92, 0.55) 42%, rgba(23, 38, 35, 0));
}

.intro,
.prose > section { scroll-margin-top: 1.2rem; scroll-margin-bottom: 6.4rem; }

.intro {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(1.1rem, 4vw, 2.8rem);
  padding: clamp(2rem, 6vw, 3.6rem) clamp(1rem, 4vw, 2.5rem);
  background-image: radial-gradient(rgba(23, 38, 35, 0.16) 1px, transparent 1.7px);
  background-size: 17px 17px;
}

.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(72% 62% at 52% 42%, rgba(247, 240, 228, 0.92), rgba(247, 240, 228, 0) 72%);
}

.intro > * {
  position: relative;
  z-index: 1;
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  overflow: hidden;
  border-radius: 4px 28px 4px 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 54px -34px rgba(23, 38, 35, 0.7);
  background: linear-gradient(158deg, var(--sand-lite), #cbb894);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.hero-blob {
  display: block;
  width: 100%;
  height: 112%;
  transform: translate3d(0, var(--py, 0px), 0);
  background:
    radial-gradient(58% 46% at 34% 28%, rgba(92, 198, 176, 0.6), rgba(92, 198, 176, 0) 72%),
    radial-gradient(52% 50% at 72% 74%, rgba(198, 123, 92, 0.5), rgba(198, 123, 92, 0) 72%),
    linear-gradient(158deg, #eaddc6, #cdb894);
}

.hero-copy {
  text-align: center;
  padding-inline: clamp(0rem, 2vw, 1.2rem);
}

.hero-copy h1 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.lede {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.split {
  max-width: 1120px;
  margin: 0 auto 3.4rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
}

.side {
  position: sticky;
  top: 1.2rem;
}

.side-card { padding: 1rem 0.95rem 1.1rem; }

.side-card h2 {
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--ink);
}

.side-list,
.bar menu,
.bar details menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.4rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color 0.25s ease-out, border-color 0.25s ease-out, background 0.25s ease-out;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: var(--teal-deep);
  border-left-color: var(--teal);
  background: rgba(92, 198, 176, 0.12);
}

.prose { min-width: 0; }

.prose > section {
  position: relative;
  margin: 0 0 1.6rem;
  padding: clamp(1.2rem, 3.4vw, 2.4rem);
  background: var(--card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px 20px 4px 20px;
  box-shadow: 0 20px 44px -38px rgba(23, 38, 35, 0.9);
}

.prose > section:nth-of-type(even) {
  border-radius: 20px 4px 20px 4px;
  background: rgba(255, 250, 243, 0.62);
}

.prose h2 {
  font-family: var(--head);
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.3rem;
}

.prose h3 {
  font-family: var(--head);
  font-size: 1.22rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul,
.prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }

.prose li { margin-bottom: 0.45rem; }

.prose a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose img,
.prose figure { max-width: 100%; height: auto; }

.prose img { border-radius: 4px; }

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--clay);
  border-radius: 0 4px 4px 0;
  background: rgba(198, 123, 92, 0.09);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }

.prose th,
.prose td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 38, 35, 0.05), rgba(23, 38, 35, 0.12));
  padding: 2.6rem clamp(1rem, 4vw, 2.5rem) 6.4rem;
}

.foot-grid {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

footer dl { margin: 0; }

footer dt {
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--olive);
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted rgba(107, 123, 60, 0.45);
  margin-bottom: 0.4rem;
}

footer dd { margin: 0; }

footer dd a,
.foot-brand {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.25s ease-out;
}

footer dd a:hover { color: var(--teal-deep); }

.foot-form {
  padding: 1rem;
  align-self: start;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.foot-label {
  margin: 0;
  font-family: var(--head);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.foot-form form { display: grid; gap: 0.55rem; }

.foot-form input {
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.foot-form button {
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--sand-lite);
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease-out;
}

.foot-form button:hover { background: var(--teal-deep); }

.copy {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(23, 38, 35, 0.22);
  font-size: 1rem;
  color: var(--ink-soft);
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem clamp(0.4rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, rgba(23, 38, 35, 0.93), rgba(15, 24, 22, 0.98));
  border-top: 1px solid rgba(212, 196, 168, 0.3);
  box-shadow: 0 -16px 32px -24px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.bar-more { position: relative; justify-self: start; }

.bar summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  font-size: 1rem;
  color: var(--teal);
  border: 1px solid rgba(92, 198, 176, 0.5);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}

.bar summary::-webkit-details-marker { display: none; }

.bar summary::after {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.bar-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.bar details menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: rgba(20, 32, 29, 0.98);
  border: 1px solid rgba(212, 196, 168, 0.32);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.bar menu { display: flex; align-items: center; gap: 0.1rem; }

.bar-tail { justify-self: end; }

.bar menu a,
.bar-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  font-size: 1rem;
  color: var(--sand-lite);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.22s ease-out, background 0.22s ease-out;
  white-space: nowrap;
}

.bar menu a:hover,
.bar menu a:focus-visible { color: #ffffff; background: rgba(212, 196, 168, 0.16); }

.bar details menu a { width: 100%; }

.bar-brand {
  justify-self: center;
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand);
  flex-direction: column;
  gap: 0.15rem;
}

.bar-brand::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: clamp(1.6rem, 7vw, 2.6rem);
  }

  .hero-art {
    order: -1;
    aspect-ratio: 16 / 11;
    max-height: none;
    border-radius: 4px 22px 4px 22px;
  }

  .split { grid-template-columns: minmax(0, 1fr); }

  .side { position: static; }

  .side-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }

  .side-list a {
    min-height: 42px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(23, 38, 35, 0.18);
    border-left-width: 1px;
  }

  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body { padding-bottom: 5.4rem; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); }

  .bar { padding-inline: 0.3rem; gap: 0.1rem; }

  .bar menu a,
  .bar-brand { padding-inline: 0.34rem; font-size: 0.97rem; }

  .bar-brand { letter-spacing: 0.1em; font-size: 1.02rem; }

  .bar summary { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-art img,
  .hero-blob { transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

button[aria-expanded]{min-width:44px;min-height:44px}
