/* Catalogue pages of www.parasto.app (generated by tools/build_seo_pages.py). */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/assets/Vazirmatn-Regular.woff2) format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/assets/Vazirmatn-Bold.woff2) format("woff2"); }

:root { --bg: #F4EDE1; --ink: #1C1A17; --muted: #6B6358; --brand: #08295C; --line: #E2D8C6; --card: #FBF7F0; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.8; }
a { color: inherit; }

.top { max-width: 1040px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.top .home { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; }
.top .home img { width: 36px; height: auto; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px 40px; }

.item { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.cover { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 28px rgba(60,45,20,.16); background: var(--card); object-fit: contain; }
.kind { margin: 0; color: var(--muted); font-size: 14px; }
.item h1 { margin: 2px 0 6px; font-size: 32px; line-height: 1.4; color: var(--ink); }
.sub { margin: 0 0 8px; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 16px 0; font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; }
dd a { color: var(--brand); text-decoration: none; }
dd a:hover { text-decoration: underline; }
.btn { display: inline-block; background: #1C1A17; color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 999px; font-size: 15px; }
.desc { max-width: 46em; margin-top: 28px; font-size: 17px; }
.desc p { margin: 0 0 12px; }

h2 { font-size: 20px; margin: 40px 0 12px; }
.list-h { font-size: 30px; margin: 0; color: var(--brand); }
.intro { color: var(--muted); margin: 4px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips a { text-decoration: none; font-size: 14px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.grid a { display: block; text-decoration: none; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--card); border-radius: 8px; }
.grid .t { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; margin-top: 6px; }
.grid .s { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

.foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.foot .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.foot .stores a { display: flex; align-items: center; justify-content: center; width: 160px; height: 50px; padding: 0 14px; background: #000; border-radius: 10px; }
.foot .stores img { width: 100%; height: auto; max-height: 36px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot nav a { text-decoration: none; }

@media (max-width: 640px) {
  .item { grid-template-columns: 1fr; gap: 18px; }
  .cover { max-width: 260px; margin: 0 auto; display: block; }
  .item h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .top nav { gap: 12px; font-size: 14px; }
}
.item .en { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

/* actions on title pages: open in app, sample */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:disabled { opacity: .6; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
audio.player { display: block; width: 100%; max-width: 420px; margin-top: 12px; }
audio.player[hidden] { display: none; }

/* search page */
.search { margin: 6px 0 14px; }
.search input { width: 100%; max-width: 560px; font: inherit; font-size: 17px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 480px) {
  .top nav a:nth-child(3), .top nav a:nth-child(4) { display: none; }  /* music, podcasts: still on /books/ and home */
}
