/* Heybe blog yazıları için ortak stil — ana sayfadaki (index.html) tasarım
   diline (renk tokenleri, tipografi, açık/koyu mod) bilerek birebir uyuyor,
   ama sayfa başına ayrı bir <style> bloğu tekrarlamamak için tek dosyada. */
:root {
  --ground: #eef3ef;
  --surface: #ffffff;
  --surface-soft: #e4ede7;
  --ink: #1d2b26;
  --ink-soft: #4c5f58;
  --border: #cfdcd4;
  --moss: #33604f;
  --moss-strong: #23473a;
  --moss-tint: #dceae2;
  --clay: #b1603e;
  --clay-tint: #f3e2da;
  --sky: #3f7ea6;
  --sky-tint: #dce9f0;
  --honey: #b9821f;
  --honey-tint: #f6ecd6;
  --plum: #7d5ba6;
  --plum-tint: #ebe3f2;
  --teal: #2f8f83;
  --teal-tint: #dcefec;
  --shadow: 210 25% 20%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121c18;
    --surface: #1a2622;
    --surface-soft: #21302a;
    --ink: #e7efea;
    --ink-soft: #a7bcb2;
    --border: #2d3d36;
    --moss: #7cb39c;
    --moss-strong: #9ccab4;
    --moss-tint: #24382f;
    --clay: #e0916b;
    --clay-tint: #382520;
    --sky: #7fb8dd;
    --sky-tint: #1c2f3a;
    --honey: #e2b45c;
    --honey-tint: #382c19;
    --plum: #b79bd9;
    --plum-tint: #2a2338;
    --teal: #6cc4b8;
    --teal-tint: #1b2f2c;
  }
}
:root[data-theme="dark"] {
  --ground: #121c18;
  --surface: #1a2622;
  --surface-soft: #21302a;
  --ink: #e7efea;
  --ink-soft: #a7bcb2;
  --border: #2d3d36;
  --moss: #7cb39c;
  --moss-strong: #9ccab4;
  --moss-tint: #24382f;
  --clay: #e0916b;
  --clay-tint: #382520;
  --sky: #7fb8dd;
  --sky-tint: #1c2f3a;
  --honey: #e2b45c;
  --honey-tint: #382c19;
  --plum: #b79bd9;
  --plum-tint: #2a2338;
  --teal: #6cc4b8;
  --teal-tint: #1b2f2c;
}
* { box-sizing: border-box; font-synthesis: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
a { color: var(--moss-strong); }

header.post-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 8px;
}
.post-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 860px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark span { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.back-link { font-size: 0.9rem; font-weight: 700; color: var(--moss-strong); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.theme-toggle {
  flex: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--moss); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[data-mode="dark"] .i-sun { display: block; }
.theme-toggle[data-mode="dark"] .i-moon { display: none; }

main.post { max-width: 860px; margin: 0 auto; padding: 40px 24px 24px; }
.post-eyebrow { color: var(--moss-strong); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.post h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.18; margin: 0 0 10px; }
.post-meta { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 28px; }
.post-lede { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 28px; }
.post h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.32rem; margin: 34px 0 12px; color: var(--moss-strong); }
.post p { margin: 0 0 16px; font-size: 1rem; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 22px; }
.post li { margin-bottom: 6px; }
.post blockquote {
  margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--moss);
  background: var(--surface-soft); border-radius: 0 12px 12px 0; color: var(--ink-soft);
  font-style: italic;
}
.post .callout {
  margin: 28px 0; padding: 20px 22px; border-radius: 16px;
  background: var(--moss-tint); border: 1px solid var(--border);
}
.post .callout p:last-child { margin-bottom: 0; }
.post .callout h3 { margin: 0 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--moss-strong); }

.post-cta {
  max-width: 860px; margin: 40px auto 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.post-cta p { margin: 0; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.94rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-strong); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--moss); color: var(--moss-strong); }

.related { max-width: 860px; margin: 40px auto 0; padding: 0 24px; }
.related h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--moss-strong); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block; padding: 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; color: var(--ink);
}
.related-card:hover { border-color: var(--moss); }
.related-card span { display: block; font-size: 0.78rem; font-weight: 700; color: var(--moss-strong); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.related-card strong { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 0.98rem; }

footer.post-footer {
  max-width: 860px; margin: 48px auto 0; padding: 24px; color: var(--ink-soft); font-size: 0.85rem;
  border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
