@font-face {
  font-family: 'Book Serif';
  src: url('/assets/book-serif.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: Naskh;
  src: url('/assets/naskh.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: Arabic Sans;
  src: url('/assets/arabic-sans.woff') format('woff');
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --paper-dark: #ede5dc;
  --ink: #2c2224;
  --muted: #605553;
  --wine: #542c3d;
  --deep-wine: #321b23;
  --line: #d9cec4;
  --gold: #d8af8e;
  --display: 'Book Serif', Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="ar"] {
  --display: Naskh, Georgia, serif;
  --body: Arabic Sans, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.65;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #ad704b; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { line-height: 1.18; }
.wrap { width: min(calc(100% - clamp(2rem, 7vw, 7rem)), 74rem); margin-inline: auto; }
.page-loading {
  position: fixed;
  z-index: 4;
  inset-inline: 0;
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: .65rem 1rem;
  color: var(--paper);
  background: var(--deep-wine);
  border: 1px solid var(--gold);
  border-radius: .5rem;
  box-shadow: 0 .3rem 1.25rem #25161d33;
  font-size: .88rem;
  pointer-events: none;
}
.loading-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 2rem;
  height: 1.35rem;
  direction: ltr;
  perspective: 4rem;
}
[dir="rtl"] .loading-book { transform: scaleX(-1); }
.loading-book::before, .loading-book::after, .loading-page {
  border: 1px solid var(--gold);
  background: repeating-linear-gradient(to bottom, var(--paper) 0 3px, var(--gold) 3px 4px) center / 55% 8px no-repeat var(--paper);
}
.loading-book::before, .loading-book::after { content: ""; }
.loading-book::before { border-radius: .24rem 0 0 .18rem; }
.loading-book::after, .loading-page { border-radius: 0 .24rem .18rem 0; }
.loading-page {
  position: absolute;
  inset: 0 0 0 50%;
  transform-origin: left center;
  animation: loading-page-turn 1s ease-in-out infinite;
}
@keyframes loading-page-turn {
  0%, 15% { transform: rotateY(0); }
  80%, 100% { transform: rotateY(-180deg); }
}
.skip {
  position: fixed;
  z-index: 5;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  padding: .7rem 1.1rem;
  background: var(--paper);
  transform: translateY(-175%);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header {
  background: var(--paper);
  border-block-end: 1px solid #e4dacf;
}
.header-inner, .footer-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid #99766f;
  outline: 1px solid #d2b5a3;
  outline-offset: -4px;
  background: var(--deep-wine);
  color: #f7eee3;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
}
[lang="ar"] .brand-mark { padding-block-start: .28rem; }
.navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: .2rem clamp(.5rem, 1.8vw, 2rem);
  font-size: .94rem;
  font-weight: 550;
}
.navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
}
.navigation a:hover { color: #845236; }
.language-switch {
  padding: .4rem .9rem;
  border: 1px solid #cbb9ac;
}
.language-switch[lang="ar"] { font-family: Arabic Sans, Arial, sans-serif; }

.hero {
  position: relative;
  overflow: hidden;
  color: #f8efe8;
  background: radial-gradient(ellipse at 78% 19%, #5c3748 0, #452837 27%, transparent 64%), #2c1921;
}
html[dir="rtl"] .hero {
  background: radial-gradient(ellipse at 22% 19%, #5c3748 0, #452837 27%, transparent 64%), #2c1921;
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2.75rem;
  min-height: 38.5rem;
  padding-block: 3.7rem 3.3rem;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .115em;
  text-transform: uppercase;
}
[lang="ar"] .eyebrow { font-size: .91rem; letter-spacing: 0; }
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #e4b994;
  margin-block-end: 1.15rem;
}
.hero-role::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: #d8af8e;
}
.hero h1 {
  font-size: clamp(4.15rem, 8.25vw, 7.9rem);
  line-height: .86;
  letter-spacing: -.055em;
}
html[dir="rtl"] .hero h1 {
  font-size: clamp(4.25rem, 9vw, 8.25rem);
  line-height: .96;
  letter-spacing: 0;
}
.hero-description {
  max-width: 24rem;
  color: #e8d8d4;
  margin-block: 1.55rem 1.85rem;
  font-size: clamp(1.025rem, 1.55vw, 1.22rem);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  max-inline-size: 100%;
  padding: .69rem 1.18rem;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.42;
  text-align: center;
  transition: color .18s ease, background .18s ease, border .18s ease;
}
.button-light { color: var(--deep-wine); background: #efdfca; }
.button-light:hover { background: #ffeed6; }
.button-dark { color: var(--paper); background: var(--deep-wine); }
.button-dark:hover { background: #573343; }
.button-outline { border-color: #856673; color: var(--deep-wine); }
.button-outline:hover { background: var(--paper-dark); }
.feature {
  width: min(100%, 31rem);
  justify-self: end;
  min-width: 0;
}
.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(17.25rem, 34vw, 25rem);
  isolation: isolate;
}
.feature-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 88%;
  height: 88%;
  border: 1px solid #c59b8b45;
  border-radius: 50%;
  transform: rotate(-23deg);
}
.feature-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 15% 2%;
  background: radial-gradient(ellipse, #bd77974a, transparent 67%);
}
.feature-cover {
  position: absolute;
  top: 50%;
  width: 43%;
  max-width: 13rem;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: transform .28s ease;
}
.feature-front { left: 14%; transform: translateY(-50%) rotate(-8deg); }
.feature-back { right: 12%; transform: translateY(-54%) rotate(11deg) scale(.93); }
.feature-front:hover { transform: translateY(-53%) rotate(-6deg); }
.feature-back:hover { transform: translateY(-57%) rotate(9deg) scale(.96); }
.feature-cover .cover {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 2px 3px 3px 2px;
  box-shadow: .22rem .3rem 0 #ccb59e, .37rem .4rem 0 #614633, 1.05rem 1.4rem 2.1rem #0d080bd4;
}
.feature-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: .8rem 1.3rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid #cda59b69;
}
.feature-caption .eyebrow { color: #ecc5a7; }
.feature-caption h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); margin-block: .32rem .22rem; }
.feature-caption p:last-child { color: #e4d1cf; font-size: .92rem; }
.feature-caption .text-link { color: #f1ddc7; flex-shrink: 0; }
.text-link {
  display: inline-block;
  width: fit-content;
  color: var(--wine);
  font-weight: 650;
  font-size: .93rem;
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-thickness: 1px;
  text-decoration-color: #a98375;
}
.text-link:hover { text-decoration-thickness: 2px; }

.catalogue { padding-block: 5rem 5.5rem; }
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.1rem 2rem;
  margin-block-end: 2rem;
}
.section-top h2, .bio-copy h2 { font-size: clamp(2.9rem, 5.2vw, 4.7rem); letter-spacing: -.045em; }
[lang="ar"] .section-top h2, [lang="ar"] .bio-copy h2 { letter-spacing: 0; }
.section-top p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-block-start: .65rem;
}
.catalogue-filters {
  display: grid;
  justify-items: end;
  gap: .45rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .28rem;
  border: 1px solid var(--line);
  width: fit-content;
}
.filters button {
  cursor: pointer;
  display: block;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .35rem .78rem;
  border: 1px solid transparent;
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
}
.filters button:hover { background: #e8ded5; }
.filters button[aria-pressed="true"] { background: var(--deep-wine); color: var(--paper); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1.5rem;
}
.book-card { display: flex; flex-direction: column; min-width: 0; }
.cover-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.19;
  isolation: isolate;
  position: relative;
  background: radial-gradient(ellipse at 47% 27%, var(--stage-light), var(--stage-dark));
}
.cover-stage::before {
  position: absolute;
  inset: .63rem;
  z-index: -1;
  border: 1px solid #fff6;
  pointer-events: none;
  content: '';
}
.tone-red { --stage-light: #ead3cc; --stage-dark: #c49e97; }
.tone-violet { --stage-light: #e6d8e2; --stage-dark: #bdacb9; }
.tone-slate { --stage-light: #e4dfdc; --stage-dark: #afa4a6; }
.tone-sand { --stage-light: #ebddc7; --stage-dark: #cdb492; }
.tone-earth { --stage-light: #e8d9cc; --stage-dark: #c1a489; }
.tone-moss { --stage-light: #e0dacd; --stage-dark: #b3ab99; }
.cover-stage .cover {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 79%;
  position: absolute;
  border-radius: 2px;
  box-shadow: .18rem .13rem 0 #e3d7cd, .28rem .25rem 0 #7f695b69, .7rem .85rem 1.2rem #35252360;
  transition: transform .2s ease;
}
.cover-stage:hover .cover { transform: translateY(-.3rem); }
[data-cover-title] { cursor: zoom-in; }
.cover-stage[data-cover-title]::after {
  content: '+';
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--deep-wine);
  background: var(--paper);
  box-shadow: 0 .08rem .3rem #321b2333;
  font-size: 1.25rem;
  line-height: 1;
}
.cover-viewer {
  width: min(calc(100% - 1rem), 38rem);
  height: min(calc(100vh - 1rem), 56rem);
  height: min(calc(100dvh - 1rem), 56rem);
  max-width: none;
  max-height: none;
  padding: clamp(.65rem, 2vw, 1.2rem);
  border: 1px solid #c5b0a1;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.cover-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .65rem;
}
.cover-viewer:not([open]) { display: none; }
.cover-viewer::backdrop { background: #23141ce6; }
html:has(.cover-viewer[open]) { overflow: hidden; scrollbar-gutter: stable; }
.cover-viewer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.cover-viewer-heading h2 {
  font-size: clamp(1.14rem, 3vw, 1.55rem);
  overflow-wrap: anywhere;
}
.cover-viewer-stage {
  perspective: 80rem;
  touch-action: pan-y pinch-zoom;
}
.cover-viewer-book {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .48s ease-in-out;
  user-select: none;
}
.cover-viewer-book.is-back { transform: rotateY(-180deg); }
[dir="rtl"] .cover-viewer-book.is-back { transform: rotateY(180deg); }
.cover-viewer-book img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}
.cover-viewer-book img:not([src]) { display: none; }
.cover-viewer-back { transform: rotateY(180deg); }
.cover-viewer-actions { text-align: center; }
.cover-sides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.cover-control {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .35rem .65rem;
  border: 1px solid #baa59b;
  border-radius: .24rem;
  color: var(--deep-wine);
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.cover-control:hover { background: var(--paper-dark); }
.cover-control[aria-pressed="true"] { background: var(--deep-wine); color: var(--paper); }
.cover-swipe-hint { display: none; margin-block-start: .28rem; color: var(--muted); font-size: .8rem; }
@media (any-pointer: coarse) {
  .cover-swipe-hint { display: block; }
}
.cover-type {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  min-width: 46%;
  aspect-ratio: 2 / 3;
  color: #f8f0e7;
  background: #523745;
  font-family: var(--display);
  font-size: 1.2rem;
  text-align: center;
}
.cover-type[lang="ar"] { font-family: Naskh, serif; }
.cover-type small { font-size: .75rem; }
.card-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  min-height: 10.75rem;
  padding-block: 1.15rem .9rem;
  border-block-end: 1px solid var(--line);
}
.book-meta { color: #6e4c56; font-weight: 620; font-size: .875rem; }
.book-meta span, .detail .eyebrow span { padding-inline: .16rem; }
.book-card h3 {
  margin-block-start: .45rem;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.1;
}
.book-card h3 a:hover { color: var(--wine); }
.card-subtitle { color: var(--muted); font-size: .93rem; margin-block-start: .18rem; }
.card-text .text-link { margin-block-start: auto; padding-block-start: .8rem; }

.about {
  background: var(--paper-dark);
  border-block-start: 1px solid #dfd1c5;
}
.about-inner {
  padding-block: 4.85rem 5.2rem;
  display: grid;
  gap: 3.8rem;
}
.about-inner.with-portrait {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: center;
}
.portrait {
  position: relative;
  overflow: hidden;
  max-width: 24rem;
  aspect-ratio: 1.12;
  background: #665461;
  outline: 1px solid #a38a83;
  outline-offset: .5rem;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.bio-copy { max-width: 43rem; }
.bio-copy p { color: #514542; font-size: 1.065rem; margin-block-start: 1rem; }
.footer { color: #f8efe8; background: #2c1921; }
.footer-inner { min-height: 5.5rem; }
.footer-inner p { color: #ead8d0; font-size: .9rem; }

.detail-wrap { padding-block: 2.5rem 5.5rem; }
.back-link { margin-block-end: 1.8rem; }
.detail {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.detail-stage { aspect-ratio: .91; }
.detail-stage .cover { max-width: 69%; max-height: 83%; }
.detail-stage:hover .cover { transform: none; }
.detail-copy { padding-block-start: .6rem; }
.detail .eyebrow { color: #784e5d; }
.detail h1 {
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  letter-spacing: -.044em;
  margin-block-start: .6rem;
}
[lang="ar"] .detail h1 { letter-spacing: 0; }
.edition-note cite { margin-inline-start: .24rem; }
.detail-subtitle { margin-block-start: .4rem; color: #69535a; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.detail-description { margin-block-start: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.buy-links { margin-block-start: 1.65rem; }
.buy-links h2, .related h2 { font-family: var(--body); font-weight: 650; font-size: .95rem; }
.buy-links > div, .listing-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block-start: .65rem;
}
.metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2rem;
  margin-block: 1.8rem 0;
}
.metadata div { padding-block: .55rem .65rem; border-block-start: 1px solid var(--line); }
.metadata dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.metadata dd { margin: 0; }
.related { border-block-start: 1px solid var(--line); padding-block-start: .8rem; margin-block-start: 1rem; }
.related .text-link { margin-block-start: .5rem; }

@media (max-width: 960px) {
  .hero-inner { min-height: auto; gap: 1.75rem; }
  .feature-caption { align-items: start; flex-direction: column; gap: .42rem; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.15rem; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 4.15rem; gap: .5rem; }
  .brand { gap: .5rem; font-size: 1.04rem; }
  .brand-mark { height: 1.9rem; width: 1.9rem; font-size: 1.05rem; }
  .navigation { gap: .2rem .72rem; font-size: .85rem; }
  .language-switch { padding-inline: .5rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 2.8rem 2rem; gap: .65rem; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 6.15rem); }
  html[dir="rtl"] .hero h1 { font-size: clamp(3rem, 14vw, 6.4rem); }
  .hero-role { margin-block-end: .85rem; }
  .hero-description { margin-block: .95rem 1.15rem; }
  .feature { justify-self: center; width: min(100%, 25rem); }
  .feature-art { height: clamp(15.75rem, 66vw, 21rem); }
  .feature-caption { flex-direction: row; align-items: end; }
  .catalogue { padding-block: 3.2rem 3.6rem; }
  .section-top { flex-direction: column; align-items: start; margin-block-end: 1.2rem; }
  .section-top p { margin-block-start: .4rem; }
  .catalogue-filters { justify-items: start; }
  .book-grid { gap: 1.7rem .85rem; }
  .cover-stage::before { inset: .38rem; }
  .card-text { padding-block-start: .65rem; min-height: 9.8rem; }
  .book-meta { font-size: .8rem; }
  .book-card h3 { font-size: clamp(1.35rem, 4.25vw, 1.75rem); }
  .card-subtitle { font-size: .86rem; }
  .about-inner { padding-block: 3.4rem 3.6rem; gap: 1.6rem; }
  .about-inner.with-portrait { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: calc(100% - 1rem); max-width: 20rem; margin-inline: .5rem; }
  .detail-wrap { padding-block: 1.4rem 3.35rem; }
  .back-link { margin-block-end: .9rem; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .detail-stage { aspect-ratio: 1.25; }
}

@media (max-width: 355px) {
  .brand { font-size: .95rem; }
  .navigation { gap: .2rem .45rem; }
  .feature-caption { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .loading-page { animation: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.button-hero-outline {
  border-color: #c49c8b;
  color: #f4dfcd;
}
.button-hero-outline:hover {
  color: #fff4ea;
  background: #ffffff14;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .8rem;
  margin-block-start: auto;
  padding-block-start: .85rem;
}
.card-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block-start: 0;
  margin-block-start: 0;
}
.card-buy {
  min-height: 2.75rem;
  font-size: .86rem;
  padding: .38rem .65rem;
  text-align: start;
  overflow-wrap: anywhere;
}
.children {
  border-block-start: 1px solid #d0d9cf;
  background: #eaf0e9;
}
.children-inner { padding-block: 4.65rem 5.25rem; }
.children .section-top h2 { color: #203c34; }
.children .section-top p { color: #43584f; }
.children .book-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  row-gap: 1.5rem;
}
.children .book-card {
  background: #f9faf5;
  border: 1px solid #cfdacf;
}
.children .cover-stage { aspect-ratio: 1.6; }
.children .cover-stage .cover { max-width: 71%; max-height: 81%; }
.children .card-text {
  border: 0;
  min-height: 12rem;
  padding: 1rem 1.05rem;
}
.children .book-meta, .children .text-link { color: #34584b; }
.children .text-link { text-decoration-color: #678574; }
.children .card-buy {
  background: #31594c;
  border-color: #31594c;
  color: #fffdf7;
}
.children .card-buy:hover { background: #24473c; }
.detail-children .detail-stage { aspect-ratio: 1.15; }
.detail-children .detail-stage .cover { max-width: 77%; max-height: 80%; }
.tone-garden { --stage-light: #deebd5; --stage-dark: #a9c0a2; }
.tone-dusk { --stage-light: #d6e3e5; --stage-dark: #9eb0bc; }
.tone-moon { --stage-light: #e1dceb; --stage-dark: #aa9fc4; }
.tone-peach { --stage-light: #f2e3d3; --stage-dark: #d7b9a2; }

@media (max-width: 700px) {
  .children-inner { padding-block: 3.15rem 3.5rem; }
  .children .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .children .cover-stage { aspect-ratio: 1.31; }
  .children .card-text { padding: .72rem; min-height: 11rem; }
  .card-actions { align-items: start; flex-direction: column; gap: .5rem; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .header .brand { min-height: 3.25rem; width: fit-content; }
  .navigation {
    justify-content: space-between;
    gap: .6rem;
    padding-block: .35rem;
    border-block-start: 1px solid var(--line);
  }
}

.media {
  border-block-start: 1px solid var(--line);
  background: var(--paper);
}
.media-inner {
  padding-block: 4.8rem 5.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.media h2 {
  font-size: clamp(2.65rem, 5.25vw, 4.6rem);
  letter-spacing: -.04em;
}
[lang="ar"] .media h2 { letter-spacing: 0; }
.interview-list, .social-list { margin-block-start: 1.3rem; }
.interview {
  padding: 1.3rem 0 1.45rem;
  border-block-start: 1px solid var(--line);
}
.interview:last-child { border-block-end: 1px solid var(--line); }
.interview-source {
  color: var(--wine);
  font-weight: 620;
  font-size: .92rem;
}
.interview h3 {
  margin-block-start: .42rem;
  font-size: clamp(1.65rem, 2.55vw, 2.4rem);
}
.interview-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-block-start: .9rem;
}
.interview-links .button {
  min-height: 2.75rem;
  font-size: .9rem;
  padding: .46rem .75rem;
}
.social h3 {
  margin-block-start: 1.45rem;
  font-size: 1.55rem;
}
.social-list { margin-block-end: 0; list-style: none; padding: 0; }
.social h3 + ul { margin-block-start: .6rem; }
.social-list li { border-block-start: 1px solid var(--line); }
.social-list li:last-child { border-block-end: 1px solid var(--line); }
.social-list .text-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  width: 100%;
  padding: .56rem 0;
  text-decoration-color: transparent;
}
.social-list .text-link:hover, .social-list .text-link:focus-visible {
  text-decoration-color: #a98375;
}
@media (max-width: 700px) {
  .media-inner { grid-template-columns: minmax(0, 1fr); padding-block: 3.4rem 3.6rem; }
}
@media (max-width: 500px) {
  .book-grid, .children .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-card .cover-stage, .children .book-card .cover-stage { aspect-ratio: 1.65; }
  .card-text, .children .card-text { min-height: 0; }
  .card-actions { width: 100%; }
  .card-buy, .buy-links .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: start; gap: .6rem; padding-block: 1rem; }
}
