/*
 * Fincan blogu: "Fincan'ın defteri" (2026-11-28, docs/blog-redesign-2026-11.md). Ortak dil css/paper.css'te.
 * Sütun ~66 karakter; uzun yazıda "Bu yazıda" (geniş ekranda yan ray, dar ekranda katlanır).
 */

/* --- Dizin --------------------------------------------------------------------------------------------------------- */

.page-index main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.index-head { padding: 56px 0 36px; }
.index-head h1 {
  margin: 14px 0 0;
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
html[lang="ar"] .index-head h1 { letter-spacing: 0; line-height: 1.35; }

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.entry a {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  text-decoration: none;
}
.entry + .entry { border-top: 1px solid var(--rule); }

.entry-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.entry-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  text-wrap: balance;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s ease;
}
.entry-dek {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-2);
}
.entry a:hover .entry-title,
.entry a:focus-visible .entry-title { text-decoration-color: var(--ink); }
.entry .plate { transition: transform 0.25s ease; }
.entry a:hover .plate { transform: translateY(-2px) rotate(-3deg); }

.entry-lead a { flex-direction: column; gap: 22px; padding: 34px 0 40px; }
.entry-lead .entry-title { font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.entry-lead .entry-dek { font-size: 1.1875rem; max-width: 38rem; }

@media (min-width: 900px) {
  .entries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .entry-lead { grid-column: 1 / -1; }
  .entry-lead a { flex-direction: row; align-items: center; gap: 40px; padding: 44px 0 48px; }
  .entry-lead .plate { width: 148px; height: 148px; }
  .entry + .entry { border-top: 0; }
  .entry:not(.entry-lead) { border-top: 1px solid var(--rule); }
  .entry-lead + .entry,
  .entry-lead + .entry + .entry { border-top-color: var(--rule-strong); }
}

/* --- Yazı ---------------------------------------------------------------------------------------------------------- */

.page-post main { padding: 0 var(--gutter) 64px; }

.post-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--rule-strong);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.crumbs a { text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }

.post-head h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
html[lang="ar"] .post-head h1 { letter-spacing: 0; line-height: 1.4; }

.dek {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
html[lang="ar"] .dek { font-style: normal; }

.post-body { margin: 0 auto; }

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding-top: 34px;
  font-family: var(--serif);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  hanging-punctuation: first;
  text-wrap: pretty;
}

.prose > :first-child { margin-top: 0; }

.prose p { margin: 0 0 1.15em; }

.prose h2 {
  margin: 2.3em 0 0.7em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1.22;
  letter-spacing: -0.008em;
  text-wrap: balance;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 1.9em 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18em;
  line-height: 1.35;
  scroll-margin-top: 24px;
}
.prose h4 { margin: 1.6em 0 0.4em; font-size: 1em; font-weight: 600; }
html[lang="ar"] .prose h2,
html[lang="ar"] .prose h3 { letter-spacing: 0; line-height: 1.5; }

.prose strong { font-weight: 600; }

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover { text-decoration-thickness: 2px; }

.prose ul,
.prose ol { margin: 0 0 1.3em; padding-inline-start: 1.4em; }
.prose li { margin: 0.4em 0; padding-inline-start: 0.2em; }
.prose li::marker { color: var(--ink); }
.prose ol li::marker { font-family: var(--sans); font-size: 0.85em; font-weight: 600; }

/* "Yap / yapma" maddeleri: emoji yerine çizilmiş işaret. */
.prose li.yes,
.prose li.no { list-style: none; position: relative; }
.prose li.yes::before,
.prose li.no::before {
  position: absolute;
  inset-inline-start: -1.35em;
  font-family: var(--sans);
  font-weight: 600;
}
.prose li.yes::before { content: "\2713"; color: var(--yes); }
.prose li.no::before { content: "\2715"; color: var(--no); }

/* İlk paragrafın baş harfi (bitişik yazan Arapçada yok). */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  html:not([lang="ar"]) .prose > p:first-of-type::first-letter {
    -webkit-initial-letter: 2;
    initial-letter: 2;
    margin-inline-end: 0.12em;
    font-weight: 600;
    color: var(--ink);
  }
}

.prose blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 0;
  padding-inline-start: 1.1em;
  font-style: italic;
  font-size: 1.3em;
  line-height: 1.45;
  color: var(--text);
}
.prose blockquote::before {
  content: var(--q-open);
  position: absolute;
  inset-inline-start: -0.08em;
  top: -0.18em;
  font-size: 2.2em;
  line-height: 1;
  color: var(--ink);
}
html[lang="ar"] .prose blockquote { font-style: normal; }

/* Kenar notu (eski emojili kutular). */
.prose .note {
  margin: 1.9em 0;
  padding: 18px 22px 4px;
  background: var(--paper);
  border-radius: 14px;
  font-size: 0.94em;
}
.prose .note-label {
  margin: 0 0 0.35em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.table-wrap {
  margin: 1.6em 0 1.8em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 11px 12px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.prose th { font-weight: 600; color: var(--text-2); font-size: 0.8125rem; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }
.prose th.center,
.prose td.center { text-align: center; }

/* SSS: sorular ince çizgiyle ayrılır. */
.prose .faq { margin-top: 2.6em; }
.prose .faq h3 { margin: 0; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.prose .faq h3 + p { margin-top: 0.45em; }

/* İçindekiler. */
.toc-inline {
  max-width: var(--measure);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.toc-inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.toc-inline[open] summary::after { transform: rotate(45deg); }

.toc-inline ol,
.toc-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc-inline ol { padding-bottom: 14px; }
.toc-inline a,
.toc-rail a {
  display: block;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.toc-inline a { padding: 9px 0; }
.toc-inline a:hover,
.toc-rail a:hover { color: var(--text); }

.toc-rail { display: none; }

@media (min-width: 1120px) {
  .post-body.has-toc {
    display: grid;
    grid-template-columns: 14rem var(--measure) 14rem;
    justify-content: center;
    column-gap: 56px;
    align-items: start;
  }
  .post-body.has-toc .prose { grid-column: 2; grid-row: 1; margin: 0; }
  .post-body.has-toc .toc-inline { display: none; }
  .toc-rail {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding-top: 38px;
    scrollbar-width: thin;
  }
  .toc-label {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-2);
  }
  .toc-rail a {
    padding: 6px 0 6px 12px;
    padding-inline: 12px 0;
    border-inline-start: 1px solid var(--rule);
    font-size: 0.84375rem;
  }
  .toc-rail a[aria-current] {
    color: var(--text);
    font-weight: 600;
    border-inline-start: 2px solid var(--ink);
    padding-inline-start: 11px;
  }
}

/* Uygulama (yazının sonu): kâğıt üstünde tek satırlık künye, kart değil. */
.get-app {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: var(--measure);
  margin: 56px auto 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--rule-strong);
}
.get-app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.get-app h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}
.get-app p { margin: 6px 0 16px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges a { display: inline-flex; min-height: 44px; align-items: center; }
.badges img { height: 44px; width: auto; }

/* İlgili yazılar. */
.related {
  max-width: var(--measure);
  margin: 56px auto 0;
}
.related h2 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.related ul { margin: 0; padding: 0; list-style: none; }
.related li + li { border-top: 1px solid var(--rule); }
.related a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  text-decoration: none;
}
.related-text { display: flex; flex-direction: column; gap: 4px; }
.related-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s ease;
}
.related a:hover .related-title { text-decoration-color: var(--ink); }

/* Giriş animasyonu yok: okuma sayfasında içerik ilk karede görünür (animasyon dururken içerik saydam kalıyordu). */

@media print {
  .masthead,
  .toc-rail,
  .toc-inline,
  .get-app,
  .related,
  .site-foot { display: none; }
  body { background: #fff; color: #000; }
  .plate { background: #000; }
}
