/* ============================================================
   Ortak stil dosyası — tüm sayfalar bunu kullanır.
   Renkleri ve yazı tiplerini buradan tek yerden değiştirebiliriz.
   ============================================================ */

:root {
  --bg:        #faf8f4;   /* sayfa arka planı (sıcak krem) */
  --bg-soft:   #f2ede4;   /* açık kutu / bölüm arka planı */
  --text:      #2b2b2b;   /* ana yazı rengi */
  --muted:     #6b6b6b;   /* ikincil / soluk yazı */
  --accent:    #a15c3e;   /* vurgu rengi (kiremit) */
  --accent-dk: #7d4429;   /* vurgu koyu (hover) */
  --line:      #e4ddd0;   /* ince çizgiler / kenarlıklar */
  --max:       960px;     /* içerik genişliği */

  /* --- YAZI TİPLERİ: tüm sitede yalnızca bu ikisi kullanılır --- */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;      /* başlıklar */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* gövde metni */

  /* --- YAZI BOYUTU HİYERARŞİSİ (tüm sayfalarda aynı) --- */
  --fs-display: 2.75rem;  /* ana sayfa / kitap adı gibi en büyük başlık */
  --fs-h1:      2.25rem;  /* sayfa ana başlığı */
  --fs-h2:      1.625rem; /* bölüm alt başlığı */
  --fs-h3:      1.2rem;   /* kart / madde başlığı */
  --fs-body:    1.0625rem;/* gövde metni (~17px) */
  --fs-lead:    1.2rem;   /* giriş / öne çıkan paragraf */
  --fs-small:   0.875rem; /* küçük / soluk metin (~14px) */

  --lh-tight:   1.2;      /* başlıklar */
  --lh-body:    1.7;      /* gövde metni */
}

/* --- Temel sıfırlama --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: #1f1f1f;
}

h1 { font-size: var(--fs-h1); margin-bottom: .5rem; }
h2 { font-size: var(--fs-h2); margin-bottom: .6rem; }
h3 { font-size: var(--fs-h3); margin-bottom: .3rem; }

p { margin-bottom: 1rem; }
small, .text-small { font-size: var(--fs-small); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* --- Ortak kapsayıcı --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Üst menü (header) — her sayfada aynı
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f1f1f;
  letter-spacing: .3px;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav a {
  color: var(--text);
  font-size: var(--fs-body);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--accent); }
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   Kahraman bölümü (ana sayfa üstü) — fotoğraf solda, metin sağda
   ============================================================ */
.hero { padding: 80px 0 64px; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-photo {
  flex: 0 0 300px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-soft), #e6ddcb);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7a63;
  font-family: var(--font-serif);
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: var(--fs-display); margin-bottom: 16px; }
.hero .lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* --- Düğmeler --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-body);
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   Genel bölümler
   ============================================================ */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-intro {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- İç sayfa başlığı --- */
.page-head {
  padding: 70px 0 10px;
  text-align: center;
}
.page-head p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }

/* ============================================================
   Kitaplar
   ============================================================ */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.book-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-soft), #e6ddcb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #8a7a63;
  margin-bottom: 12px;
}

.book-meta { font-size: var(--fs-small); color: var(--muted); }

/* ============================================================
   Öyküler listesi
   ============================================================ */
.story-list { display: flex; flex-direction: column; gap: 6px; }

.story-item {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background .15s ease;
}
.story-item:first-child { border-top: 1px solid var(--line); }
.story-item .story-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 4px; }
.story-item p:last-child { margin-bottom: 0; }

/* Tıklanabilir öykü (fare üzerine gelince) */
a.story-item:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
a.story-item:hover h3 { color: var(--accent); }
a.story-item h3::after {
  content: " →";
  color: var(--accent);
  opacity: 0;
  transition: opacity .15s ease;
}
a.story-item:hover h3::after { opacity: 1; }

/* Tek öykü / blog yazısı sayfası */
.post { max-width: 720px; margin: 0 auto; }
.post .story-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 6px; }
.back-link { display: inline-block; margin-bottom: 26px; font-size: var(--fs-small); }

/* İçerik yolu (breadcrumb) */
.crumbs {
  display: block;
  margin-bottom: 26px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin: 0 4px; opacity: .6; }
.crumbs span[aria-current] { color: var(--text); }

/* İletişim listesi (Hakkında) */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 10px 0; font-size: var(--fs-body); }

/* Tıklanabilir kitap kartı (kitaplar sayfası) */
.book-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.book-card-link:hover { text-decoration: none; }
.book-card-link:hover h3 { color: var(--accent); }

/* Kitap kartındaki tek düğme (ör. ana sayfa) — her kartta en altta, aynı hizada */
.book-card .btn { align-self: flex-start; margin-top: auto; }

/* Kitaplar sayfası — kartın altındaki iki düğme yan yana, eşit boyutta */
.book-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.book-actions .btn {
  flex: 1;
  margin-top: 0;
  text-align: center;
}

/* ============================================================
   Kitap sayfası — görsel solda, tüm içerik sağda
   ============================================================ */
.book-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.book-visual {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--bg-soft), #e6ddcb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-serif);
  color: #8a7a63;
}
.book-body .btn { margin-top: 4px; }
.book-body .post-reviews {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Kitap sayfası — okur yorumları ve puanlar
   ============================================================ */
.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 6px 0 22px;
}
.rating-score {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #1f1f1f;
  line-height: 1;
}
.rating-count { color: var(--muted); font-size: var(--fs-small); }

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 1rem;
}

.reviews { display: flex; flex-direction: column; gap: 16px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-name { font-weight: 600; }
.review p { margin-bottom: 0; }

/* ============================================================
   Etkinlikler
   ============================================================ */
.event-list { display: flex; flex-direction: column; gap: 18px; }

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.event-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
}
.event-place { font-size: var(--fs-small); color: var(--muted); }
.event-item p { margin-bottom: 6px; }
.event-item p:last-child { margin-bottom: 0; }
.event-link { font-size: var(--fs-small); margin-top: 8px; }

/* ============================================================
   Hakkında sayfası
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-soft), #e6ddcb);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7a63;
  font-family: var(--font-serif);
}

/* ============================================================
   Alt bilgi (footer) — her sayfada aynı
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   Küçük ekranlar (telefon / tablet)
   ============================================================ */
@media (max-width: 720px) {
  /* Başlık ölçeği küçük ekranlarda tek yerden ayarlanır */
  :root {
    --fs-display: 2rem;
    --fs-h1:      1.8rem;
    --fs-h2:      1.4rem;
    --fs-lead:    1.1rem;
  }

  .hero { padding: 56px 0 48px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero-photo { flex: 0 0 auto; width: 220px; }
  .hero .lead { margin: 0 auto; }

  .site-header .container { justify-content: center; }
  .nav { justify-content: center; gap: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 260px; margin: 0 auto; }

  .book-layout { grid-template-columns: 1fr; gap: 28px; }
  .book-visual { max-width: 240px; margin: 0 auto; position: static; }
  .book-body .post-reviews { margin-top: 32px; padding-top: 28px; }

  .book-actions { flex-direction: column; }

  .event-item { grid-template-columns: 1fr; gap: 6px; }

  .book-visual.stack { max-width: 240px; }
}

/* ============================================================
   Gerçek görseller (portre + kitap kapakları)
   ============================================================ */
.hero-photo,
.portrait {
  overflow: hidden;
  padding: 0;
  color: transparent;
}
.hero-photo img,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Kitap kartındaki kapak (ana sayfa + kitaplar) —
   kutu görselin gerçek oranını alır, kapak hiç kırpılmaz */
.book-cover {
  display: block;
  aspect-ratio: auto;
  height: auto;
  padding: 0;
  background: none;
  color: transparent;
  border-radius: 0;
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Kitap sayfasındaki büyük kapak — tam görünsün, kırpılmasın */
.book-visual {
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
}
.book-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.book-visual.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.book-visual .cover-caption {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   Yazardan Öneriler — küçük kart ızgarası (kitaplar sayfası)
   ============================================================ */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px 20px;
}
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rec-cover {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}
.rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rec-title {
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.25;
  color: #1f1f1f;
}
.rec-author {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ============================================================
   Öykü metni — türkü / şiir blokları ve mektup başlıkları
   ============================================================ */
.post .verse {
  color: var(--muted);
  font-style: italic;
  line-height: 1.9;
  margin: 1.4rem 0;
}
.post .letter-head {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #1f1f1f;
  margin: 2.2rem 0 1rem;
}
.post .letter-head:first-of-type { margin-top: 0.5rem; }
