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

/* سفره‌خانهٔ پارسیان — «دیوانِ خانه»
   A divan of dishes bound inside a Qajar house: Nastaliq headings, SVG sarlowh ornaments,
   haft-rang tile strips, lapis nights and a single brick accent. */

:root {
  /* palette */
  --lajvard: #1D3461;
  --shab: #142544;
  --firoozeh: #2A9D99;
  --firoozeh-ink: #1B6F6C;
  --kerm: #F4E7CD;
  --ajori: #A9472C;
  --okhra: #D4A23C;

  /* derived tints */
  --sand: #EAD8B6;
  --kaghaz: #FAF1DE;
  --ajori-deep: #8C3A23;
  --text: #142544;
  --text-soft: #46506A;
  --field: #FFFBF2;
  --field-line: #9AA0B4;

  /* type */
  --font-nastaliq: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Tahoma", serif;
  --font-naskh: "Noto Naskh Arabic", "Tahoma", serif;
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.65rem, 1.3rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 3.7rem);

  /* space & layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3rem, 7vw, 6rem);
  --wrap: 72rem;
  --measure: 38rem;
  --arch: 999px 999px 4px 4px / 1.6rem 1.6rem 4px 4px;

  /* eight-point star (khatam) as a clip-path */
  --star: polygon(50% 0, 63.4% 17.7%, 85.4% 14.6%, 82.3% 36.6%, 100% 50%, 82.3% 63.4%, 85.4% 85.4%, 63.4% 82.3%, 50% 100%, 36.6% 82.3%, 14.6% 85.4%, 17.7% 63.4%, 0 50%, 17.7% 36.6%, 14.6% 14.6%, 36.6% 17.7%);

  /* tile patterns (inline SVG, no external files) */
  --tile-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%231D3461'/%3E%3Cpath d='M8 1l7 7-7 7-7-7z' fill='%232A9D99'/%3E%3Cpath d='M24 1l7 7-7 7-7-7z' fill='%23F4E7CD'/%3E%3Ccircle cx='8' cy='8' r='2.2' fill='%23D4A23C'/%3E%3Ccircle cx='24' cy='8' r='2.2' fill='%23A9472C'/%3E%3C/svg%3E");
  --tile-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%232A9D99' stroke-opacity='.28' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l7 7M56 0l-7 7M0 56l7-7M56 56l-7-7'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='2' fill='%23D4A23C' fill-opacity='.5'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--kerm);
  color: var(--text);
  font-family: var(--font-naskh);
  font-size: var(--step-0);
  line-height: 1.95;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-nastaliq);
  font-weight: 700;
  color: var(--lajvard);
  line-height: 2;
  margin: 0 0 0.6rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--step-4); line-height: 2.1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1rem; }
img, svg { max-width: 100%; }

a { color: var(--firoozeh-ink); text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
a:hover { color: var(--ajori); }

:focus-visible {
  outline: 3px solid var(--okhra);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--shab);
  border-radius: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--shab);
  color: var(--kerm);
  text-decoration: none;
  border-radius: var(--arch);
}
.skip-link:focus { top: 0.75rem; color: var(--kerm); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.prose { max-width: var(--measure); }
.center { text-align: center; }

/* ---------- header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--kerm);
}
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background: var(--tile-band) repeat-x;
  background-size: 20px 10px;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.35rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--lajvard);
  text-decoration: none;
}
.brand:hover { color: var(--ajori); }
.brand__seal { width: 2.3rem; height: 2.3rem; flex: none; color: var(--firoozeh); }
.brand__name {
  font-family: var(--font-nastaliq);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 2.2;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  font: 600 var(--step--1)/1.4 var(--font-naskh);
  color: var(--lajvard);
  background: transparent;
  border: 1.5px solid var(--lajvard);
  border-radius: var(--arch);
  cursor: pointer;
  white-space: nowrap;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] { background: var(--lajvard); color: var(--kerm); }

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--kerm);
  border-block-end: 2px solid var(--lajvard);
  box-shadow: 0 1.2rem 1.6rem -1.4rem var(--shab);
}
.site-nav[data-open="true"] { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  display: grid;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--lajvard);
  font-weight: 600;
  text-decoration: none;
  border-block-end: 1px solid var(--sand);
}
.site-nav a:hover { color: var(--ajori); }
.site-nav a[aria-current="page"] { color: var(--ajori); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.5rem 0.45rem;
  font: 600 var(--step-0)/1.4 var(--font-naskh);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--arch);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--ajori { background: var(--ajori); color: var(--kaghaz); }
.btn--ajori:hover { background: var(--ajori-deep); color: var(--kaghaz); }
.btn--line { border-color: var(--lajvard); color: var(--lajvard); background: transparent; }
.btn--line:hover { background: var(--lajvard); color: var(--kerm); }
.btn--firoozeh { background: var(--firoozeh-ink); color: var(--kaghaz); }
.btn--firoozeh:hover { background: var(--lajvard); color: var(--kaghaz); }
.btn--light { border-color: var(--kerm); color: var(--kerm); background: transparent; }
.btn--light:hover { background: var(--kerm); color: var(--shab); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.link-more {
  font-weight: 600;
  color: var(--firoozeh-ink);
  text-decoration: none;
  border-block-end: 1px solid currentColor;
}
.link-more::after { content: " ←"; }

/* ---------- sarlowh: the illuminated head of each section ---------- */
.sarlowh { text-align: center; margin: 0 auto clamp(1.6rem, 4vw, 2.8rem); max-width: 46rem; }
.sarlowh__orn {
  display: block;
  width: min(20rem, 88%);
  height: auto;
  aspect-ratio: 320 / 48;
  margin: 0 auto 0.4rem;
  color: var(--firoozeh);
  --orn-star: var(--lajvard);
  --orn-petal: var(--ajori);
  --orn-heart: var(--okhra);
}
.iwan .sarlowh__orn,
.prose > .sarlowh__orn { margin-inline: 0; width: min(16rem, 80%); }
.sarlowh h1,
.sarlowh h2 { margin-block-end: 0; }
.sarlowh__lead { max-width: var(--measure); margin: 0.6rem auto 0; color: var(--text-soft); }

.orn-line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.orn-star { fill: none; stroke: var(--orn-star, #1D3461); stroke-width: 1.2; }
.orn-petal { fill: var(--orn-petal, #A9472C); }
.orn-heart { fill: var(--orn-heart, #D4A23C); }

/* ---------- couplet (bayt) ---------- */
.couplet {
  display: grid;
  gap: 0 2.5rem;
  margin: 1.4rem 0;
  font-family: var(--font-nastaliq);
  font-size: var(--step-1);
  line-height: 2.3;
  color: var(--lajvard);
}
.couplet p { margin: 0; }
.couplet p + p { padding-inline-start: 2.2rem; }
.couplet__poet {
  font-family: var(--font-naskh);
  font-size: var(--step--1);
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- hero: the iwan ---------- */
.iwan { padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.iwan__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.iwan h1 { margin-block-end: 0.2rem; }
.iwan__lead { font-size: var(--step-1); line-height: 2; max-width: 34rem; }
.iwan__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}
.iwan__art { width: 100%; max-width: 26rem; margin-inline: auto; height: auto; display: block; }

/* line-drawing language */
.ill-line, .ill-tile, .ill-water, .ill-reflect, .ill-wood, .ill-accent {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill-line { stroke: var(--lajvard); }
.ill-tile { stroke: var(--firoozeh); stroke-dasharray: 2 5; stroke-width: 3; }
.ill-water { stroke: var(--firoozeh); }
.ill-reflect { stroke: var(--firoozeh); stroke-dasharray: 4 5; opacity: 0.8; }
.ill-wood { stroke: var(--ajori); }
.ill-accent { stroke: var(--okhra); }
.ill-fill { fill: var(--okhra); stroke: none; }

/* ---------- facts list with star bullets ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.facts li { display: flex; align-items: baseline; gap: 0.7rem; }
.facts li::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--okhra);
  clip-path: var(--star);
  transform: translateY(0.1rem);
}

.split { display: grid; gap: 2rem; }

/* ---------- the divan (menu book) ---------- */
.divan {
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 4.5vw, 3.6rem) clamp(1.1rem, 4vw, 3.4rem);
  background: var(--kaghaz);
  box-shadow:
    inset 0 0 0 7px var(--kaghaz),
    inset 0 0 0 8px var(--okhra),
    inset 0 0 0 11px var(--kaghaz),
    inset 0 0 0 12px var(--lajvard);
}
.divan__title { text-align: center; font-size: var(--step-2); color: var(--ajori); }
.divan__pages { list-style: none; margin: 0; padding: 0; display: grid; }
.bayt { padding-block: 0.4rem 1.4rem; text-align: center; }
.bayt::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 auto 0.9rem;
  background: var(--okhra);
  clip-path: var(--star);
}
.bayt__head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.7rem;
}
.bayt__head:has(.bayt__price) { justify-content: space-between; }
.bayt__head:has(.bayt__price)::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 1.5rem;
  border-block-end: 1px dotted var(--text-soft);
}
.bayt__dish {
  margin: 0;
  font-family: var(--font-nastaliq);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ajori);
  line-height: 2.1;
}
.bayt__price {
  order: 2;
  font-family: var(--font-naskh);
  font-weight: 600;
  color: var(--firoozeh-ink);
  white-space: nowrap;
}
.bayt__line { margin: 0 auto; max-width: 26rem; color: var(--text-soft); line-height: 2; }
.divan__foot { text-align: center; margin: 1.2rem 0 0; }

.toc { list-style: none; margin: 0 auto 2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; }
.toc a { font-weight: 600; text-decoration: none; color: var(--lajvard); border-block-end: 1px solid var(--okhra); }
.toc a:hover { color: var(--ajori); }

/* ---------- night of music ---------- */
.night {
  background-color: var(--shab);
  background-image: var(--tile-star);
  color: var(--kerm);
  text-align: center;
}
.night h2 { color: var(--kerm); }
.night .sarlowh__orn { color: var(--firoozeh); --orn-star: var(--okhra); --orn-petal: var(--ajori); --orn-heart: var(--kerm); }
.night .sarlowh__lead, .night p { color: var(--kerm); }
.night a:not(.btn) { color: var(--okhra); }
.night__body { max-width: var(--measure); margin-inline: auto; }
.days { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.8rem 0 2rem; padding: 0; }
.day {
  min-width: 8.5rem;
  padding: 1.4rem 1.4rem 0.6rem;
  border: 1.5px solid var(--okhra);
  border-radius: 999px 999px 4px 4px / 4.5rem 4.5rem 4px 4px;
  font-family: var(--font-nastaliq);
  font-size: var(--step-1);
  color: var(--okhra);
  line-height: 2.2;
}

/* ---------- reservation ledger ---------- */
.ways { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--lajvard); }
.ways__item {
  display: grid;
  gap: 0.3rem 1.5rem;
  align-items: center;
  padding-block: 1.2rem;
  border-block-end: 1px solid var(--sand);
}
.ways__title { margin: 0; font-size: var(--step-1); line-height: 2; }
.ways__text { margin: 0; color: var(--text-soft); }
.ways__item .btn { justify-self: start; }

/* ---------- katibeh: inscription panel ---------- */
.katibeh {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.1rem, 4vw, 3rem);
  background: var(--kerm);
  border: 2px solid var(--lajvard);
  outline: 1px solid var(--firoozeh);
  outline-offset: 6px;
  text-align: center;
}
.katibeh::before,
.katibeh::after {
  content: "";
  position: absolute;
  top: -0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--okhra);
  clip-path: var(--star);
}
.katibeh::before { inset-inline-start: -0.85rem; }
.katibeh::after { inset-inline-end: -0.85rem; }
.katibeh__list { margin: 0; display: grid; gap: 1rem; }
.katibeh__list dt { font-family: var(--font-nastaliq); color: var(--ajori); font-size: var(--step-1); line-height: 2; }
.katibeh__list dd { margin: 0; font-size: var(--step-1); }
.katibeh__list a { color: var(--lajvard); }

/* ---------- inner page head ---------- */
.page-head { background: var(--sand); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 3vw, 2rem); }
.page-head .sarlowh { margin-block-end: 0; }

/* ---------- gallery plates ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.plate {
  margin: 0;
  padding: 1.2rem 1.2rem 0.4rem;
  background: var(--kaghaz);
  border: 1px solid var(--sand);
  outline: 1px solid var(--okhra);
  outline-offset: -8px;
}
.plate svg { display: block; width: 100%; height: auto; }
.plate figcaption { text-align: center; font-family: var(--font-nastaliq); color: var(--lajvard); font-size: var(--step-1); line-height: 2.3; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form__row { display: grid; gap: 1.1rem; }
.form__field { display: grid; gap: 0.3rem; }
.form__label { font-weight: 600; color: var(--lajvard); }
.form__hint { font-size: var(--step--1); color: var(--text-soft); margin: 0; }
.form__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  font: inherit;
  line-height: 1.6;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--field-line);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}
.form__input:hover { border-color: var(--lajvard); }
.form__input:focus { border-color: var(--firoozeh-ink); }
textarea.form__input { min-height: 8rem; resize: vertical; }
select.form__input { appearance: auto; }
.form__field[data-state="error"] .form__input { border-color: var(--ajori); background: #FBEDE6; }
.form__status { min-height: 1.6em; margin: 0; font-weight: 600; }
.form__status[data-state="error"] { color: var(--ajori); }
.form__status[data-state="sent"] { color: var(--firoozeh-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--shab); color: var(--kerm); }
.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--tile-band) repeat-x;
  background-size: 20px 10px;
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.2rem, 5vw, 3.5rem) var(--gutter) 1.5rem;
}
.site-footer h2 { color: var(--kerm); font-size: var(--step-2); margin: 0; }
.site-footer__title { font-family: var(--font-nastaliq); color: var(--okhra); font-size: var(--step-1); line-height: 2.2; margin: 0 0 0.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.site-footer a { color: var(--kerm); text-decoration-color: var(--okhra); }
.site-footer a:hover { color: var(--okhra); }
.site-footer address { font-style: normal; }
.site-footer__legal {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1rem var(--gutter) 1.6rem;
  border-block-start: 1px solid var(--lajvard);
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

/* ---------- style guide helpers ---------- */
.sg-block { margin-block-end: 3rem; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.swatch { border: 1px solid var(--sand); background: var(--kaghaz); }
.swatch__chip { display: block; height: 5rem; border-radius: 999px 999px 0 0 / 2.5rem 2.5rem 0 0; }
.swatch__name { display: block; padding: 0.4rem 0.7rem 0; font-weight: 600; }
.swatch__hex { display: block; padding: 0 0.7rem 0.5rem; font-size: var(--step--1); color: var(--text-soft); direction: ltr; text-align: end; }
.swatch--lajvard .swatch__chip { background: var(--lajvard); }
.swatch--shab .swatch__chip { background: var(--shab); }
.swatch--firoozeh .swatch__chip { background: var(--firoozeh); }
.swatch--firoozeh-ink .swatch__chip { background: var(--firoozeh-ink); }
.swatch--kerm .swatch__chip { background: var(--kerm); box-shadow: inset 0 0 0 1px var(--sand); }
.swatch--ajori .swatch__chip { background: var(--ajori); }
.swatch--okhra .swatch__chip { background: var(--okhra); }
.type-sample { border-block-end: 1px solid var(--sand); padding-block: 0.6rem; }
.type-sample__meta { display: block; font-size: var(--step--1); color: var(--text-soft); direction: ltr; text-align: end; }
.type-display { margin: 0; font-family: var(--font-nastaliq); font-weight: 700; font-size: var(--step-4); line-height: 2.1; color: var(--lajvard); }
.type-h2 { font-size: var(--step-3); }
.tile-strip { height: 20px; background: var(--tile-band) repeat-x; background-size: 40px 20px; }
.tile-field { height: 8rem; background-color: var(--shab); background-image: var(--tile-star); }

/* ---------- breakpoints ---------- */
@media (min-width: 600px) {
  .couplet { grid-template-columns: auto auto; justify-content: start; }
  .couplet p + p { padding-inline-start: 0; }
  .couplet__poet { grid-column: 1 / -1; }
  .couplet--center { justify-content: center; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .ways__item { grid-template-columns: 9rem 1fr; }
  .ways__item .btn { grid-column: 2; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 1.6rem; padding: 0; }
  .site-nav a { padding: 0.3rem 0; border-block-end: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-block-end-color: var(--ajori); }

  .iwan__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .split { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }

  .divan__pages { grid-template-columns: 1fr 1fr; column-gap: 4.5rem; position: relative; }
  .divan__pages::before {
    content: "";
    position: absolute;
    inset-block: 0.5rem;
    inset-inline-start: 50%;
    border-inline-start: 1px solid var(--okhra);
  }
  .ways__item { grid-template-columns: 10rem 1fr auto; }
  .ways__item .btn { grid-column: auto; justify-self: end; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .iwan__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .iwan__art { max-width: 30rem; }
}

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

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  body { background: #FFFFFF; }
}

/* === menu: chapters of the divan === */
.page-head .toc { margin: 1.4rem auto 0; }
.page-head__note { text-align: center; margin: 0.9rem auto 0; font-size: var(--step--1); color: var(--text-soft); }
.menu-chapter { padding-block: clamp(1.6rem, 4vw, 3rem); scroll-margin-top: 5rem; }
.menu-chapter .divan__title { margin-block-end: 1rem; }
.menu-chapter .divan__title::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto 0.3rem;
  background: var(--firoozeh);
  clip-path: var(--star);
}
.divan__pages--single { grid-template-columns: 1fr; }
.divan__pages--single::before { display: none; }

/* === cta: centred closing band === */
.btn-row--center { justify-content: center; }

/* === legal: plain ledger === */
.legal-list { margin: 0 0 1.2rem; display: grid; gap: 0.6rem; }
.legal-list dt { font-weight: 600; color: var(--lajvard); }
.legal-list dd { margin: 0; }
