:root {
  --paper: #fbf8f3;
  --card: #fff;
  --ink: #1a1f26;
  --muted: #6a645b;
  --rule: #e3dcd0;
  --accent: #7b2230;
  --accent-dark: #5c1823;
  --deep: #1c2530;
  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1180px;
  --narrow: 740px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.8; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--narrow)); }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { inset-inline-start: 0; }

.preview-bar { margin: 0; padding: .35rem 1rem; background: var(--deep); color: #d9d3c7; font-size: .8rem; text-align: center; }
.preview-bar a { color: #fff; }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap { display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; flex-direction: column; align-items: center; padding: 1.6rem 0 1.1rem; text-decoration: none; color: var(--ink); }
.brand-name { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.brand-sub i { color: var(--accent); font-style: normal; margin-inline: .3em; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.6rem; width: 100%; border-top: 3px double var(--rule); padding: .55rem 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* shared bits */
.kicker { color: var(--accent); font-weight: 700; font-size: .9rem; margin: 0 0 .5rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.cat { color: var(--accent); font-weight: 700; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; padding: .55rem 1.3rem; border-radius: 3px; transition: background .15s; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #efe9dd; color: var(--deep); }
.section { margin-block: 3.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.8rem; }
.section-head h2 { font-size: 1.45rem; }
.section-head a { font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* home lead */
.lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; margin-block: 3rem; }
.lead-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--rule); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.lead-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.3; margin-bottom: 1rem; }
.lead-title a, .card-title a { color: inherit; text-decoration: none; }
.lead-title a:hover, .card-title a:hover { color: var(--accent); }
.lead-excerpt { color: #40444b; font-size: 1.1rem; }
.lead .meta { margin-bottom: 1.2rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--rule); margin-bottom: .9rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { font-size: 1.22rem; margin-bottom: .45rem; }
.card-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0; }
.card:not(:has(.card-img)) { border-top: 3px solid var(--accent); padding-top: 1rem; }

/* band */
.band { background: var(--deep); color: #ece6da; padding: 3.5rem 0; margin-block: 3.5rem; }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.band h2 { color: #fff; font-size: 1.5rem; margin-bottom: .7rem; }
.band .kicker { color: #d9a441; }
.band p { font-size: 1rem; }
.feature { display: flex; gap: 1.8rem; align-items: center; }
.feature-video { border-inline-start: 1px solid #3a4553; padding-inline-start: 3rem; }
.cover { flex: none; width: 150px; aspect-ratio: 2 / 3; background: linear-gradient(160deg, #8c2a39, #561420); color: #fff; padding: 1rem .9rem; display: flex; flex-direction: column; justify-content: space-between; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 4px 0 0 rgba(255, 255, 255, .13); font-family: Georgia, "Times New Roman", serif; }
.cover span { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.cover em { font-size: .8rem; opacity: .85; line-height: 1.3; }
.cover small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.cover-lg { width: 220px; padding: 1.5rem 1.3rem; }
.cover-lg span { font-size: 1.5rem; }
.cover-novel { background: linear-gradient(160deg, #2b3a4a, #18222d); font-family: var(--font); width: 120px; }
.cover-novel span { font-size: 1.2rem; font-weight: 800; line-height: 1.4; }
.cover-novel small { letter-spacing: 0; font-size: .8rem; }

/* rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.rows a { color: var(--ink); text-decoration: none; font-weight: 500; }
.rows a:hover { color: var(--accent); }
.rows time { color: var(--muted); font-size: .82rem; white-space: nowrap; flex: none; }
.two-col { columns: 2; column-gap: 3rem; }
.two-col li { break-inside: avoid; }

/* page + article heads */
.page-head, .article-head { padding: 3rem 0 1.6rem; text-align: center; }
.page-head h1, .article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.35; }
.article-head .meta { justify-content: center; }
.lede { color: var(--muted); font-size: 1.12rem; margin: .9rem 0 0; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 0; color: var(--muted); font-size: .92rem; margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.byline > * + *::before { content: "·"; margin-inline: .7em; color: var(--accent); }
.byline span:first-child { color: var(--ink); font-weight: 700; }

/* prose */
.prose { font-size: 1.2rem; line-height: 2.05; overflow-wrap: break-word; }
.prose[dir="ltr"], .article[dir="ltr"] .prose { line-height: 1.8; font-size: 1.12rem; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .7em; }
.prose h3, .prose h4 { font-size: 1.25rem; margin: 1.8em 0 .6em; }
.prose img { display: block; margin: 1.8rem auto; border-radius: 4px; max-height: 80vh; width: auto; }
.prose blockquote { margin: 1.6em 0; padding: .2em 1.2em; border-inline-start: 4px solid var(--accent); color: #40444b; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.35em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: .4rem .7rem; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.8rem 0; background: #000; border-radius: 4px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-main { max-width: 960px; margin: 0 auto 1.6rem; }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .92rem; }
.article-foot p { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-block: 2.5rem; }
.pager a { display: block; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.5; border-top: 2px solid var(--ink); padding-top: .8rem; }
.pager a:hover { color: var(--accent); border-color: var(--accent); }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-bottom: .2rem; }
.pager-prev { text-align: end; }

/* archive */
.year-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.year-nav a { border: 1px solid var(--rule); border-radius: 99px; padding: .1rem 1rem; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--card); }
.year { margin-block: 2.2rem; }
.year h2 { font-size: 1.6rem; color: var(--accent); border-bottom: 2px solid var(--ink); padding-bottom: .3rem; }

/* about */
.timeline { list-style: none; padding: 0 !important; border-inline-start: 2px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .55rem 1.2rem .55rem 0; position: relative; font-size: 1.08rem; line-height: 1.8; margin: 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 1.15rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .when { font-weight: 800; color: var(--accent); white-space: nowrap; }

/* books */
.book { display: flex; gap: 2.2rem; align-items: flex-start; }
.book-main { padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.book-main h2 { font-size: 1.5rem; margin-top: 0; line-height: 1.4; }
.book-main .prose { font-size: 1.08rem; line-height: 1.9; }
.book-meta { color: var(--muted); font-size: .95rem; }
.novels { margin-block: 3rem; }
.novels > h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.book-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.book-list .book { align-items: center; gap: 1.6rem; }
.book-list h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.book-list p { margin: 0; color: #40444b; }

/* videos */
.videos { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; margin-bottom: 3.5rem; }
.video { text-decoration: none; color: var(--ink); display: block; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #000; margin-bottom: .6rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb b { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .72rem; font-weight: 500; padding: 0 .4rem; border-radius: 3px; line-height: 1.6; }
.video-title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.55; }
.video:hover .video-title { color: var(--accent); }
.videos + *, .embed-main + .center { margin-bottom: 3rem; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; gap: 1rem; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.4rem; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list span { color: var(--muted); font-size: .95rem; }

/* footer */
.footer { background: var(--deep); color: #b9b3a7; margin-top: 4rem; padding: 3rem 0 1.2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-name { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.footer-note { max-width: 32ch; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .3rem; }
.footer a { color: #ded8cc; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid #333e4b; margin-top: 2rem; padding-top: 1rem; font-size: .82rem; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: repeat(3, 1fr); }
  .lead { grid-template-columns: 1fr; gap: 1.5rem; margin-block: 2rem; }
  .band-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-video { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid #3a4553; padding-top: 2.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: min(100% - 2rem, var(--wrap)); }
  .brand { padding: 1.1rem 0 .8rem; }
  .brand-sub { font-size: .82rem; }
  .nav { gap: 0 1.1rem; font-size: .95rem; }
  .grid, .videos { grid-template-columns: 1fr; gap: 2rem; }
  .videos { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .two-col { columns: 1; }
  .section { margin-block: 2.5rem; }
  .prose { font-size: 1.1rem; line-height: 1.95; }
  .page-head, .article-head { padding: 2rem 0 1.2rem; }
  .rows li { flex-direction: column; gap: .1rem; }
  .feature { align-items: flex-start; gap: 1.2rem; }
  .cover { width: 104px; padding: .7rem .6rem; }
  .cover span { font-size: .8rem; }
  .cover-lg { width: 150px; }
  .cover-lg span { font-size: 1.05rem; }
  .cover-novel { width: 92px; }
  .cover-novel span { font-size: 1rem; }
  .book-main { flex-direction: column; align-items: center; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager-prev { text-align: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .masthead .nav, .footer, .pager, .preview-bar, .band, .section { display: none; } body { background: #fff; } }
