/* InstaHaber — okunabilirlik odaklı, sıcak kâğıt tonlu tema */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1915;
  --ink-2: #3d3830;
  --muted: #6b645a;
  --line: #e7e0d5;
  --accent: #b3261e;
  --accent-ink: #8f1d17;
  --accent-soft: #f6e6e3;
  --link: #9a2a1f;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --wrap: 1180px;
  --narrow: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --surface: #1f1b16;
    --ink: #f1ece4;
    --ink-2: #d9d2c6;
    --muted: #a59d90;
    --line: #342e27;
    --accent: #ef7a6c;
    --accent-ink: #f59a8e;
    --accent-soft: #3a211d;
    --link: #f59a8e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 20px; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 14px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font: 700 25px/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.logo-sm { font-size: 22px; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.main-nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.search input {
  width: 180px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 6px; gap: 6px 16px; }
  .logo { flex: 1; }
  .search input { width: 140px; }
  .main-nav { order: 3; flex-basis: 100%; margin: 0 -12px; }
}

/* Typographic bits */
.kicker {
  display: inline-block; font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; margin: 0 0 10px;
}
.kicker:hover { text-decoration: underline; }
.section { padding: 40px 20px 56px; }
.section-title {
  font: 700 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}

/* Lead story */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 8px; }
.lead-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.lead-title { font: 700 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -0.015em; margin: 0 0 14px; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead-excerpt { font: 400 19px/1.55 var(--serif); color: var(--ink-2); margin: 0 0 16px; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card-media img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--line);
  transition: transform .25s ease;
}
.card-media { overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; }
.card:hover .card-media img { transform: scale(1.03); }
.card-title { font: 700 21px/1.28 var(--serif); letter-spacing: -0.01em; margin: 0 0 8px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); }
.card-excerpt {
  color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 48px; font-size: 15px; color: var(--muted); }
.pagination a {
  text-decoration: none; font-weight: 600; color: var(--ink); border: 1px solid var(--line);
  background: var(--surface); padding: 10px 18px; border-radius: 999px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Page header (category, static) */
.page-head { padding-top: 48px; padding-bottom: 8px; max-width: 820px; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.page-head h1 { font: 700 clamp(32px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.page-lede { font: 400 20px/1.55 var(--serif); color: var(--ink-2); margin: 0 0 8px; }

/* Article */
.article-head { padding-top: 36px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:last-child { color: var(--accent); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.article-title { font: 700 clamp(30px, 4.4vw, 46px)/1.13 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; }
.article-dek { font: 400 21px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 24px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-name { font-weight: 600; text-decoration: none; }
.byline-name:hover { text-decoration: underline; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 18px/1 var(--serif);
}
.avatar-lg { width: 56px; height: 56px; font-size: 24px; }
.article-hero { margin: 32px auto; max-width: 980px; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--line); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 32px; }
.toc summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.toc ol { margin: 12px 0 0; padding-left: 20px; font-size: 15.5px; line-height: 1.5; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.prose { font: 400 20px/1.75 var(--serif); color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font: 700 29px/1.25 var(--serif); letter-spacing: -0.01em; margin: 1.8em 0 .5em; }
.prose h3 { font: 700 23px/1.3 var(--serif); margin: 1.5em 0 .4em; }
.prose h4 { font: 600 19px/1.4 var(--sans); margin: 1.4em 0 .3em; }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink-2);
}
.prose img, .prose figure { border-radius: var(--radius); margin: 1.6em 0; }
.prose figcaption { font: 400 14px/1.5 var(--sans); color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose code { font-size: .85em; background: var(--accent-soft); padding: .1em .35em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--surface); }
@media (max-width: 600px) {
  .prose { font-size: 18.5px; line-height: 1.7; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 21px; }
  .article-dek { font-size: 19px; }
}

.tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  display: inline-block; font-size: 14px; text-decoration: none; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.tags a:hover { border-color: var(--accent); color: var(--accent-ink); }

.author-box {
  display: flex; gap: 16px; margin: 40px 0 0; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2);
}
.author-box p { margin: 0; }
.author-box a { color: var(--link); }
.author-name { font-weight: 700; color: var(--ink); margin-bottom: 4px !important; }
.related { border-top: 1px solid var(--line); margin-top: 56px; }

/* Static pages */
.static-page { padding-bottom: 64px; }
.static-page .prose { font-size: 19px; }
.static-page .updated { font-size: 14px; color: var(--muted); margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin: 12px 0 0; max-width: 340px; line-height: 1.55; }
.footer-title { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.wrap-narrow.page-head { margin-left: auto; margin-right: auto; max-width: var(--narrow); }
