/* صفحة قراءة القصة: ورق فاتح، وسطر مريح، وتعمل على الهاتف. */
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyah-serif-display-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyah-serif-display-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Text"; src: url("assets/fonts/thmanyah-serif-text-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Text"; src: url("assets/fonts/thmanyah-serif-text-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyah-sans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyah-sans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #4D2A05; --paper: #FCE9D0; --gold: #B38B51; --crimson: #632A20; --night: #160d06;
  --display: "Thmanyah Display", serif; --text: "Thmanyah Text", serif; --sans: "Thmanyah Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font-family: var(--text); font-size: clamp(18px, 1rem + .4vw, 21px); line-height: 2.05;
  background: radial-gradient(ellipse at 50% 0, #fff7ea, var(--paper) 55%, #f3dcbc); background-attachment: fixed; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(22, 13, 6, .92); color: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--sans); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-size: 1.3rem; }
.brand img { filter: brightness(0) invert(.9) sepia(.4); }
.back { font-size: .9rem; text-decoration: none; opacity: .85; }
.back::before { content: "→ "; }

main { width: min(40em, 100% - 32px); margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0 40px; }
.head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.kick { font-family: var(--sans); font-size: .85rem; color: var(--crimson); font-weight: 500; margin: 0; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.25; margin: 8px 0 0; }
.en { font-family: var(--sans); font-size: .85rem; opacity: .6; margin: 4px 0 0; }
.by { font-family: var(--sans); font-weight: 500; font-size: .95rem; margin: 18px 0 0; display: inline-flex; align-items: center; gap: 12px; }
.by::before, .by::after { content: ""; width: 30px; height: 1px; background: var(--gold); }

.world { max-width: 30em; margin: 22px auto 0; font-family: var(--sans); font-size: .82rem; line-height: 1.9; color: rgba(77, 42, 5, .72); padding: 10px 16px; border-top: 1px solid rgba(179, 139, 81, .45); border-bottom: 1px solid rgba(179, 139, 81, .45); }
.people { margin: 0 0 clamp(36px, 5vw, 56px); padding: 22px 24px; border: 1px solid rgba(77, 42, 5, .22); border-radius: 4px; background: rgba(255, 250, 240, .55); }
.people h2 { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--crimson); margin: 0 0 8px; }
.people ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.people li { font-size: .9em; line-height: 1.9; }
.people b { font-family: var(--display); font-weight: 500; margin-inline-end: 6px; }

.text p { margin: 0 0 1.05em; text-align: justify; text-justify: inter-word; hyphens: none; }
.text p.dlg { text-align: start; }
.text .sec { font-family: var(--display); font-weight: 500; text-align: center; margin: 2.2em 0 1.2em; font-size: 1.15rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.text .sec span { font-size: 1.7rem; color: var(--gold); line-height: 1; }
.text .sec em { font-style: normal; font-size: 1rem; opacity: .85; }
.text .orn { text-align: center; color: var(--gold); margin: 1.6em 0; }

.end { margin: 56px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end img { opacity: .85; }
.pdf { font-family: var(--sans); font-size: .9rem; text-decoration: none; padding: 8px 20px; border: 1px solid var(--gold); border-radius: 22px; transition: background .3s; }
.pdf:hover { background: rgba(179, 139, 81, .18); }
.pns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.pn { text-decoration: none; padding: 14px 18px; border: 1px solid rgba(77, 42, 5, .22); border-radius: 4px; display: grid; gap: 0; }
.pn:hover { border-color: var(--gold); }
.pn small { font-family: var(--sans); font-size: .75rem; color: var(--crimson); }
.pn span { font-family: var(--display); font-size: 1.15rem; }
.pn--next { grid-column: 2; text-align: end; }
.foot { text-align: center; font-family: var(--sans); font-size: .8rem; padding: 26px 16px 34px; color: rgba(252, 233, 208, .7); background: var(--night); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 560px) { .pns { grid-template-columns: 1fr; } .pn--next { grid-column: auto; } .text p { text-align: start; } }
