/* Tezkire Yayınları — ziyaretçi teması. Sade, yazı ağırlıklı, kapak odaklı. Dış yazı tipi yok. */

:root {
  --accent: #a3161c;
  --ink: #1f2328;
  --paper: #fbfaf7;
  --muted: #5d636b;
  --line: #e4e0d8;
  --soft: #f2efe9;
  --cover-bg: #e9e5dd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 4px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ec8a8d;
    --ink: #e9e6e0;
    --paper: #141518;
    --muted: #a3a8b0;
    --line: #2d3036;
    --soft: #1d1f23;
    --cover-bg: #24272c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* Temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* Düğmeler, rozetler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.pri { color: #141518; } }
.btn.link { border-color: transparent; color: var(--accent); padding-left: 4px; padding-right: 4px; }
.btn.block { display: flex; width: 100%; }
.btn small { opacity: .85; font-size: .8em; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  background: var(--ink); color: var(--paper);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow { display: inline-block; margin-bottom: .5em; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
a.eyebrow:hover { color: var(--accent); }

/* Önizleme şeridi */
.preview-bar {
  position: sticky; top: 0; z-index: 20;
  background: #b45309; color: #fff; text-align: center;
  padding: 8px 16px; font-weight: 600; font-size: .95rem;
}

/* Üst bölüm */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1) hue-rotate(180deg); } }
.brand-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--accent); }
.head-search { display: flex; }
.head-search input {
  width: 190px; min-width: 0; min-height: 40px; padding: 6px 10px;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem;
}
.head-search button {
  min-height: 40px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--soft); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .head-row { gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 44px; }
  .js .nav-toggle {
    display: inline-flex; min-height: 44px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; cursor: pointer;
  }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
  .js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .head-search input { flex: 1; width: auto; }
}

/* Ana içerik */
main { min-height: 50vh; }
.page-head { padding-top: 40px; padding-bottom: 8px; }
.shelf { padding-top: 32px; padding-bottom: 32px; }
.shelf h2 { margin-top: .5em; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.shelf-head h2 { margin: 0 0 .4em; }
.shelf-head a { font-size: .95rem; text-decoration: none; }
.empty { padding: 32px 0; color: var(--muted); font-size: 1.05rem; }

.intro { padding-top: 56px; padding-bottom: 24px; max-width: 820px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
.intro .lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--muted); }

/* Kapak ızgarası */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 20px; }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.card { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); text-decoration: none; }
.card-cover { position: relative; display: block; margin-bottom: 8px; transition: transform .15s ease; }
.card:hover .card-cover { transform: translateY(-3px); }
.card-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.card:hover .card-title { color: var(--accent); }
.card-by { color: var(--muted); font-size: .88rem; line-height: 1.35; overflow-wrap: break-word; }
.badge.on-cover { position: absolute; top: 8px; left: 8px; }
@media (prefers-reduced-motion: reduce) { .card-cover { transition: none; } .card:hover .card-cover { transform: none; } }

/* Yeni çıkanlar: yatay kayan şerit (JS yoksa elle kaydırılır) */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; }
.slider > .card { scroll-snap-align: start; }
.slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slider-nav { display: inline-flex; gap: 8px; margin-left: auto; }
.slider-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .slider { grid-auto-columns: 42%; gap: 12px; } .slider-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .slider { scroll-behavior: auto; } }

/* Tezkire'den son yazılar */
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 32px; }
.article { padding-bottom: 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.article-img { display: block; margin-bottom: 14px; overflow: hidden; border-radius: var(--radius); background: var(--cover-bg); aspect-ratio: 16 / 9; }
.article-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.article:hover .article-img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .article-img img { transition: none; } .article:hover .article-img img { transform: none; } }
.article .eyebrow { margin: 0 0 6px; }
.article h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; overflow-wrap: break-word; }
.article h3 a { color: var(--ink); text-decoration: none; }
.article h3 a:hover { color: var(--accent); }
.article-excerpt { margin: 0 0 8px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.article-meta { margin: 0; color: var(--muted); font-size: .85rem; }

.cover { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); background: var(--cover-bg); border-radius: 2px; }
.cover-empty { display: flex; align-items: center; justify-content: center; padding: 12%; text-align: center; color: var(--muted); font-family: var(--serif); font-size: .95rem; line-height: 1.3; overflow: hidden; }
.cover-empty span { overflow-wrap: break-word; min-width: 0; }
.cover.big.cover-empty { font-size: 1.4rem; }

/* Kitap sayfası (dergi sayısı da aynı düzeni kullanır) */
.book { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.book-cover { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.book-main { min-width: 0; }
.subtitle { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); margin-top: -.2em; }
.byline { font-size: 1.05rem; }
.byline a { color: var(--ink); }
.byline a:hover { color: var(--accent); }
.prose { font-size: 1.05rem; line-height: 1.7; max-width: 68ch; overflow-wrap: break-word; }
.prose h2 { margin-top: 1.4em; }
.prose img { margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--line); color: var(--muted); }
.back-cover { margin: 24px 0; }
.buy { margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy h2 { font-size: 1.1rem; font-family: var(--sans); letter-spacing: .02em; }
.buy-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .book-cover { max-width: 300px; width: 100%; margin: 0 auto; }
}

.kunye { width: 100%; max-width: 560px; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.kunye caption { text-align: left; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; padding-bottom: 8px; }
.kunye th, .kunye td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.kunye th { width: 38%; padding-right: 16px; color: var(--muted); font-weight: 500; }

.author-box { display: flex; gap: 20px; align-items: flex-start; padding-top: 24px; padding-bottom: 24px; }
.author-box > div { min-width: 0; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h2 { font-size: 1.25rem; }
.author-box h2 a { color: var(--ink); text-decoration: none; }
.author-box h2 a:hover { color: var(--accent); }
.author-box p { max-width: 68ch; }
.book + .author-box { border-top: 1px solid var(--line); }

/* Yazarlar */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; }
.people a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.people a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.people a:hover .person-name { color: var(--accent); }
.people img, .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }
.person-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; overflow-wrap: break-word; }
/* Yazarlar: baş harf dizini */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.letters a { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; }
.letters a:hover { border-color: var(--accent); color: var(--accent); }
.letters a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.result-count { margin: 0 0 12px; }
.author-head { display: flex; gap: 32px; align-items: flex-start; padding-top: 40px; padding-bottom: 8px; }
.author-head > div { min-width: 0; }
.author-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 600px) {
  .author-head { flex-direction: column; gap: 16px; padding-top: 24px; }
  .author-photo { width: 112px; height: 112px; }
  .author-box { flex-direction: column; gap: 12px; }
}

/* Dergi */
.issue-feature { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; padding: 24px; background: var(--soft); border-radius: var(--radius); }
.issue-feature h3 { font-size: 1.5rem; }
.issue-feature h3 a { color: var(--ink); text-decoration: none; }
.issue-feature h3 a:hover { color: var(--accent); }
.issue-cover { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .issue-feature { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; } .issue-feature h3 { font-size: 1.2rem; } }
.toc { padding-left: 1.4em; max-width: 68ch; }
.toc li { padding: 4px 0; }

/* Formlar (katalog süzgeci, arama) */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 20px 0 8px; padding: 16px; background: var(--soft); border-radius: var(--radius); }
.filters .f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filters .f.grow { flex: 1 1 240px; }
.filters label { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.filters input, .filters select {
  min-height: 44px; max-width: 100%; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
@media (max-width: 600px) { .filters .f { flex: 1 1 100%; } .filters .btn { width: 100%; } }

/* Sayfalama */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius); text-decoration: none; }
.pager a { border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--paper); }

/* Düz sayfa */
.page-body { padding-top: 40px; padding-bottom: 48px; }

/* Listeler */
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { padding: 3px 0; }
.plain.inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Alt bilgi */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--soft); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; padding-top: 40px; padding-bottom: 24px; }
.foot-grid address span { display: block; overflow-wrap: anywhere; }
.foot-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .2em; }
.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--accent); }
.foot-bottom { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--line); }

@media print {
  .site-head, .site-foot, .buy, .filters, .pager, .preview-bar { display: none; }
  body { background: #fff; color: #000; }
}
