/* =========================================================
   Tema değişkenleri
   ========================================================= */
:root {
  --accent: #e4572e;
  --bg: #f7f5f0;
  --surface: #fffdf8;
  --surface-2: #eeebe3;
  --ink: #1b1a17;
  --ink-2: #3a3833;
  --muted: #706b62;
  --line: #e2ded4;
  --on-accent: #fff;
  --accent-ink: color-mix(in oklab, var(--accent) 72%, black); /* küçük vurgu metinleri için yeterli kontrast */
  --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--bg));

  --cv1: var(--accent);
  --cv2: var(--ink);
  --cv3: var(--accent-soft);
  --cv4: var(--surface-2);

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --head-weight: 500;
  --head-tracking: -0.02em;

  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #12110f;
  --surface: #1a1916;
  --surface-2: #24221e;
  --ink: #eceae4;
  --ink-2: #cfccc4;
  --muted: #9b968b;
  --line: #2c2a25;
  --accent-ink: color-mix(in oklab, var(--accent) 75%, white);
  --accent-soft: color-mix(in oklab, var(--accent) 22%, var(--bg));
  --cv2: color-mix(in oklab, var(--ink) 85%, var(--bg));
  color-scheme: dark;
}

/* Teknik: sade, keskin, serin tonlar */
[data-preset="tech"] {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --surface-2: #ececea;
  --line: #e3e3e0;
  --font-head: "Geist", system-ui, sans-serif;
  --head-weight: 600;
  --head-tracking: -0.035em;
  --radius: 10px;
  --radius-sm: 6px;
}
[data-preset="tech"][data-theme="dark"] {
  --bg: #0e0f10;
  --surface: #151618;
  --surface-2: #1f2023;
  --line: #26282b;
}

/* Oyun: kalın, enerjik, kontrastlı */
[data-preset="game"] {
  --bg: #f3f2ee;
  --surface: #fbfaf7;
  --surface-2: #e6e4dd;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --head-weight: 750;
  --head-tracking: -0.03em;
  --radius: 6px;
  --radius-sm: 4px;
}
[data-preset="game"][data-theme="dark"] {
  --bg: #0c0c0e;
  --surface: #141417;
  --surface-2: #1d1d22;
  --line: #26262c;
}

/* =========================================================
   Temel
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1080px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { width: 100%; max-width: calc(700px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(1080px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-block;
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   Üst bar
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease-out), border-color .3s, background-color .4s;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font: var(--head-weight) 1.15rem/1 var(--font-head);
  transition: transform .5s var(--ease-out), border-radius .5s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.brand-name { font-size: 1.05rem; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: .925rem;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

.actions { display: flex; gap: 2px; }
.nav + .actions { margin-left: 4px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
  .actions { margin-left: auto; }
  .menu-btn { display: grid; }
}

/* Okuma ilerlemesi */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body:not(.is-single) .progress { display: none; }

/* =========================================================
   Ortak parçalar
   ========================================================= */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: .8125rem;
  color: var(--muted);
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: .75rem;
}

.cover { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.gen-cover svg { display: block; width: 100%; height: 100%; }

.section-label {
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--accent-ink); }

.notice { background: var(--accent-soft); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .875rem; }
.empty { padding: 48px 0; color: var(--muted); }
.empty a { color: var(--accent-ink); text-decoration: underline; }

/* =========================================================
   Ana sayfa
   ========================================================= */
.hero { padding-top: clamp(40px, 9vw, 112px); padding-bottom: clamp(24px, 4vw, 40px); }
.hero-title {
  margin: 0;
  max-width: 17ch;
  font: var(--head-weight) clamp(2.4rem, 7vw, 5.2rem)/1.02 var(--font-head);
  letter-spacing: var(--head-tracking);
}
.hero-title .wm { display: inline-block; vertical-align: top; }
.hero-title .w { display: inline-block; }
.hero-title .wm:last-of-type .w { color: var(--accent); }
[data-preset="editorial"] .hero-title .wm:last-of-type .w { font-style: italic; }
.hero-sub { margin: 20px 0 0; max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }

/* Başlık ilk karede görünür (LCP gecikmesin); kelimeler yalnızca yerine oturur */
.js .hero-title .w { opacity: .2; transform: translateY(.3em); animation: word-in .8s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.js .hero-sub { opacity: 0; animation: fade-up .9s var(--ease-out) .45s forwards; }
.js .is-home .cats { opacity: 0; animation: fade-up .9s var(--ease-out) .55s forwards; }

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Kategori hapları */
.cats {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 4px 0 4px;
  margin: 8px 0 32px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
  transition: border-color .2s, background-color .2s, color .2s, transform .3s var(--ease-out);
}
.cat-pill sup { font: 500 .65rem var(--font-mono); color: var(--muted); }
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill:active { transform: scale(.96); }
.cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cat-pill.is-active sup { color: inherit; opacity: .7; }

/* Öne çıkan */
.feature { margin-bottom: clamp(48px, 8vw, 88px); }
.feature-link { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.feature-media .cover { transition: transform 1.2s var(--ease-out); }
.feature-link:hover .feature-media .cover { transform: scale(1.035); }
.feature-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature-title {
  margin: 0;
  font: var(--head-weight) clamp(1.8rem, 3.6vw, 2.75rem)/1.08 var(--font-head);
  letter-spacing: var(--head-tracking);
}
.feature-excerpt { margin: 0; color: var(--muted); font-size: 1.05rem; }
.read-more { display: inline-flex; gap: 6px; font-weight: 500; font-size: .925rem; color: var(--accent-ink); margin-top: 4px; }
.read-more span { transition: transform .4s var(--ease-out); }
.feature-link:hover .read-more span { transform: translateX(5px); }

@media (max-width: 860px) {
  .feature-link { grid-template-columns: 1fr; }
}

/* Liste */
.list-section { padding-bottom: clamp(48px, 8vw, 96px); }
.entries { display: flex; flex-direction: column; }
.entry { border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry-link {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) 0;
}
.entry-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.entry-title {
  margin: 0;
  font: var(--head-weight) clamp(1.25rem, 2.4vw, 1.7rem)/1.18 var(--font-head);
  letter-spacing: var(--head-tracking);
}
.entry-title span, .card-title {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.entry-link:hover .entry-title span, .card:hover .card-title { background-size: 100% 1.5px; }
.entry-excerpt {
  margin: 0;
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.entry-media .cover { transition: transform 1s var(--ease-out); }
.entry-link:hover .entry-media .cover { transform: scale(1.05); }

@media (max-width: 640px) {
  .entry-link { grid-template-columns: 1fr 92px; align-items: start; }
  .entry-media { aspect-ratio: 1; margin-top: 30px; }
  .entry-excerpt { font-size: .925rem; }
}

/* Sayfalama */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .925rem;
}
.pager-step { padding: 10px 4px; font-weight: 500; transition: color .2s; }
a.pager-step:hover { color: var(--accent-ink); }
.pager-step.is-off { color: var(--muted); opacity: .45; }
.pager-nums { display: flex; gap: 4px; }
.pager-nums a, .pager-nums span {
  min-width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  font: 500 .85rem var(--font-mono);
}
.pager-nums a:hover { background: var(--surface-2); }
.pager-nums [aria-current] { background: var(--ink); color: var(--bg); }
@media (max-width: 480px) { .pager-nums { display: none; } }

/* Sayfa başlığı (kategori, arama, arşiv) */
.page-head { padding-top: clamp(40px, 8vw, 96px); padding-bottom: 16px; }
.page-title {
  margin: 8px 0 0;
  font: var(--head-weight) clamp(2.2rem, 6vw, 4rem)/1.04 var(--font-head);
  letter-spacing: var(--head-tracking);
}
.page-head .small { margin-top: 12px; }

.inline-search { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.inline-search input {
  flex: 1; min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1.05rem;
}
.inline-search input:focus { outline: none; border-color: var(--ink); }
.inline-search button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; cursor: pointer; }

/* =========================================================
   Yazı
   ========================================================= */
.article { padding-top: clamp(32px, 6vw, 72px); }
.article-title {
  margin: 0;
  font: var(--head-weight) clamp(2.1rem, 5.6vw, 3.75rem)/1.05 var(--font-head);
  letter-spacing: var(--head-tracking);
}
.lead { margin: 20px 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.article-head .meta { margin-top: 24px; font-size: .875rem; }
.article-head .author { color: var(--ink); font-weight: 500; }

.article-cover { margin: clamp(28px, 5vw, 48px) auto clamp(28px, 5vw, 56px); }
.article-cover .cover, .article-cover .gen-cover {
  aspect-ratio: 2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-cover figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .article-cover { padding-inline: 0; }
  .article-cover .cover, .article-cover .gen-cover { border-radius: 0; aspect-ratio: 3 / 2; }
}

.toc { margin-bottom: 36px; }
.toc summary {
  cursor: pointer; list-style: none;
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1rem; transition: transform .3s var(--ease-out); }
.toc[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.toc .lvl-3 { padding-left: 16px; font-size: .9rem; }
.toc a { color: var(--muted); transition: color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }

/* Okuma tipografisi */
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin: 0 0 1.35em; }
.prose h2, .prose h3, .prose h4 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.2;
  margin: 2em 0 .6em;
}
.prose h2 { font-size: clamp(1.55rem, 3vw, 1.95rem); }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.1rem; }
.prose .anchor {
  position: absolute; left: -1.1em;
  color: var(--muted); opacity: 0;
  transition: opacity .2s;
  font-weight: 400;
}
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: .6; }
@media (max-width: 760px) { .prose .anchor { display: none; } }

.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-thickness .2s; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose li.task { list-style: none; margin-left: -1.3em; }
.prose li.task input { accent-color: var(--accent); margin-right: 6px; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 1.2em;
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-size: 1.3em;
  line-height: 1.45;
  color: var(--ink);
}
[data-preset="editorial"] .prose blockquote { font-style: italic; }
.prose blockquote p { margin: 0; }

.prose code {
  font: .86em var(--font-mono);
  background: var(--surface-2);
  padding: .15em .4em;
  border-radius: 5px;
  color: var(--ink);
}
.prose pre {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #17171a;
  color: #e7e5df;
  font-size: .875rem;
  line-height: 1.7;
  tab-size: 2;
}
[data-theme="dark"] .prose pre { background: #0b0b0c; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute; top: 10px; right: 14px;
  font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  color: #8d8a83;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 10px;
  border: 1px solid #333; border-radius: 6px;
  background: #222225; color: #ddd;
  font: 500 .72rem var(--font-mono);
  cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.prose pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.prose pre:hover[data-lang]::before { opacity: 0; }
@media (hover: none) { .copy-btn { opacity: 1; } .prose pre[data-lang]::before { display: none; } }

.prose figure { margin: 2em 0; }
.prose img { display: block; height: auto; border-radius: var(--radius-sm); margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center; }

.prose hr { border: 0; text-align: center; margin: 2.6em 0; }
.prose hr::before { content: "• • •"; letter-spacing: .8em; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin: 1.8em 0; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { transition: transform .8s var(--ease-out), opacity .3s; opacity: .9; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt button { position: absolute; inset: 0; border: 0; background: none; color: #f00; cursor: pointer; display: grid; place-items: center; }
.yt button svg { transition: transform .3s var(--ease-out); filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.yt:hover button svg { transform: scale(1.1); }

/* Yazı sonu */
.article-foot { margin-top: 56px; padding-bottom: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { margin-right: 6px; font-size: .875rem; }
.share-btn {
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: .85rem;
  transition: border-color .2s, transform .3s var(--ease-out), background-color .2s;
}
.share-btn:hover { border-color: var(--ink); }
.share-btn:active { transform: scale(.95); }
.share-btn.is-done { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-btn[data-share="native"] { display: none; }
.can-share .share-btn[data-share="native"] { display: inline-block; background: var(--ink); color: var(--bg); border-color: var(--ink); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .4s var(--ease-out); }
.pn:hover { border-color: var(--ink); transform: translateY(-2px); }
.pn strong { font: var(--head-weight) 1.05rem/1.3 var(--font-head); letter-spacing: var(--head-tracking); }
.pn.next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .pn.next { grid-column: 1; } }

.related { padding-top: 48px; padding-bottom: clamp(56px, 8vw, 104px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); margin-top: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card-media { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.card-media .cover { transition: transform 1s var(--ease-out); }
.card:hover .card-media .cover { transform: scale(1.05); }
.card-title { margin: 0; font: var(--head-weight) 1.15rem/1.25 var(--font-head); letter-spacing: var(--head-tracking); display: inline; }
@media (max-width: 760px) {
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}

/* 404 */
.notfound { padding-top: clamp(56px, 12vw, 140px); padding-bottom: 120px; }
.big-num { display: flex; gap: .05em; margin: 0; font: 800 clamp(5rem, 22vw, 12rem)/1 var(--font-head); color: var(--accent); letter-spacing: -.04em; }
.big-num span { display: inline-block; animation: bob 2.4s var(--ease) infinite; }
.big-num span:nth-child(2) { animation-delay: .15s; color: var(--ink); }
.big-num span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.notfound .btn { margin-top: 28px; }

/* =========================================================
   Alt bilgi
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin: 12px 0 0; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; }
.footer-links a, .to-top { color: var(--muted); transition: color .2s; }
.footer-links a:hover, .to-top:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 40px; color: var(--muted); font-size: .8125rem; }

/* =========================================================
   Arama & mobil menü (dialog)
   ========================================================= */
.sheet {
  border: 0; padding: 0; margin: 0;
  max-width: none; max-height: none;
  background: transparent; color: var(--ink);
}
.sheet::backdrop { background: rgba(0,0,0,.25); background: color-mix(in oklab, var(--bg) 60%, transparent); }
.sheet[open] { animation: sheet-in .5s var(--ease-out); }
.sheet[open]::backdrop { animation: fade .4s var(--ease-out); }
.sheet.is-closing { animation: sheet-out .25s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade .25s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } }

.search-sheet { width: min(680px, calc(100% - 2 * var(--gutter))); margin: max(10vh, 72px) auto auto; }
.search-form {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.25);
}
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1.2rem var(--font-body); padding: 10px 0; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-hint { text-align: center; font-size: .8rem; margin-top: 14px; }

.menu-sheet { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--bg); padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) 32px; }
.menu-sheet[open] { display: flex; flex-direction: column; animation: fade .3s var(--ease-out); }
.menu-head { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.menu-list { display: flex; flex-direction: column; margin-top: 24px; }
.menu-list a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: var(--head-weight) 2rem/1.1 var(--font-head);
  letter-spacing: var(--head-tracking);
  opacity: 0; transform: translateY(18px);
  animation: fade-up .6s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.menu-list sup { font: 500 .75rem var(--font-mono); color: var(--muted); vertical-align: super; }

/* =========================================================
   Kaydırınca beliren öğeler
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Sayfa geçişleri (View Transitions)
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Tema değişiminde dairesel geçiş */
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* =========================================================
   Hareket hassasiyeti
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .site-footer, .share, .prevnext, .related, .progress, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   Reklam alanları
   ========================================================= */
.ad {
  display: flex; align-items: center; justify-content: center;
  width: min(100%, var(--dw));
  min-height: var(--dh);
  margin: 32px auto;
  overflow: hidden;
}
.ad.is-placeholder {
  flex-direction: column; gap: 4px;
  height: var(--dh);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in oklab, var(--line) 55%, transparent) 10px 11px),
    var(--surface);
  color: var(--muted);
  text-align: center;
}
.ad-label { font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ad-size { font: 600 .95rem/1 var(--font-mono); color: var(--ink-2); }
.ad-m { display: none; }
.ad-header { margin: 16px auto 0; }
.ad-feed { margin: 8px auto; }
.entries > .ad { border-top: 0; }
.prose > .ad { margin: 2em auto; }
.ad-footer { margin: 56px auto 40px; }

@media (max-width: 760px) {
  .ad { width: min(100%, var(--mw)); min-height: var(--mh); }
  .ad.is-placeholder { height: var(--mh); }
  .ad-d { display: none; }
  .ad-m { display: inline; }
}

/* =========================================================
   Manşet (ana sayfa üstü)
   ========================================================= */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px 48px; align-items: end;
  padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(20px, 3vw, 32px);
}
.hero-title.is-compact { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.05; max-width: 22ch; }
.intro .hero-sub { margin: 0; justify-self: end; max-width: 40ch; font-size: 1rem; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro .hero-sub { justify-self: start; }
}

.top { margin-bottom: clamp(24px, 4vw, 40px); }
.top-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.top-grid.is-single { grid-template-columns: 1fr; }
@media (max-width: 960px) { .top-grid { grid-template-columns: 1fr; } }

.js .top .manset { animation: lift-in 1s var(--ease-out) .2s both; }
@keyframes lift-in { from { transform: translateY(18px); } }

.manset { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.manset-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.manset-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide-link { position: relative; display: block; aspect-ratio: 16 / 9; min-height: 340px; overflow: hidden; color: #fff; isolation: isolate; }
.top-grid.is-single .slide-link { aspect-ratio: 21 / 9; }
.slide-media { position: absolute; inset: 0; z-index: -2; }
.slide-media .cover { transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .slide-media .cover { transform: scale(1); }
.slide-link:hover .slide-media .cover { transform: scale(1.03); transition-duration: 1.2s; }
.slide-link::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,10,10,.86) 0%, rgba(10,10,10,.55) 38%, rgba(10,10,10,0) 72%);
}
.slide-body {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 3.4vw, 40px);
  max-width: 760px;
}
.slide-body > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.slide.is-active .slide-body > * { opacity: 1; transform: none; }
.slide.is-active .slide-body > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-body > :nth-child(3) { transition-delay: .16s; }
.slide-meta { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: rgba(255,255,255,.8); }
.slide-meta .chip { background: var(--accent); color: var(--on-accent); }
.slide-title {
  margin: 0;
  font: var(--head-weight) clamp(1.5rem, 3.2vw, 2.6rem)/1.08 var(--font-head);
  letter-spacing: var(--head-tracking);
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.slide-excerpt { margin: 0; color: rgba(255,255,255,.82); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .manset-track { border-radius: var(--radius-sm); }
  .slide-link, .top-grid.is-single .slide-link { aspect-ratio: 4 / 5; min-height: 0; }
  .slide-excerpt { display: none; }
}

/* Manşet gezinme: numaralı ilerleme çubukları */
.manset-nav { display: flex; align-items: center; gap: 16px; }
.mn-dots { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.mn-dot { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted); }
.mn-num { font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; transition: color .3s; }
.mn-dot:hover .mn-num, .mn-dot.is-active .mn-num { color: var(--ink); }
.mn-bar { position: relative; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mn-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.mn-dot.is-active .mn-bar i { animation: mn-fill 6.5s linear forwards; }
.manset:hover .mn-dot.is-active .mn-bar i, .manset:focus-within .mn-dot.is-active .mn-bar i { animation-play-state: paused; }
@keyframes mn-fill { to { transform: scaleX(1); } }
.mn-arrows { display: flex; gap: 6px; }
.mn-arrow { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, transform .2s var(--ease-out); }
.mn-arrow:hover { border-color: var(--ink); }
.mn-arrow:active { transform: scale(.92); }
.mn-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .mn-arrows { display: none; } }

/* Son yazılar listesi */
.latest { display: flex; flex-direction: column; min-width: 0; }
.latest .section-label { margin-bottom: 4px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list a { display: flex; gap: 14px; padding: 14px 0; }
.latest-num { flex: none; width: 1.6em; font: 500 .8rem/1.9 var(--font-mono); color: var(--accent-ink); }
.latest-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.latest-title {
  font: var(--head-weight) 1.08rem/1.28 var(--font-head);
  letter-spacing: var(--head-tracking);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-list a:hover .latest-title { background-size: 100% 1px; }
.latest .meta { font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .mn-dot.is-active .mn-bar i { animation: none; transform: scaleX(1); }
}

/* Görsel reklam */
.ad.is-image { position: relative; display: block; min-height: 0; }
.ad.is-image a, .ad.is-image picture { display: block; }
.ad.is-image img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.ad.is-image a { transition: opacity .2s; }
.ad.is-image a:hover { opacity: .92; }
.ad-tag {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff;
  font: 500 .6rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}

/* Gecikmeler: satır içi style yerine sıra numarasına göre */
.hero-title .wm:nth-child(2) .w{--i:1}.hero-title .wm:nth-child(3) .w{--i:2}.hero-title .wm:nth-child(4) .w{--i:3}.hero-title .wm:nth-child(5) .w{--i:4}.hero-title .wm:nth-child(6) .w{--i:5}.hero-title .wm:nth-child(7) .w{--i:6}.hero-title .wm:nth-child(8) .w{--i:7}.hero-title .wm:nth-child(9) .w{--i:8}.hero-title .wm:nth-child(10) .w{--i:9}.hero-title .wm:nth-child(11) .w{--i:10}.hero-title .wm:nth-child(12) .w{--i:11}.hero-title .wm:nth-child(13) .w{--i:12}.hero-title .wm:nth-child(14) .w{--i:13}.hero-title .wm:nth-child(15) .w{--i:14}.hero-title .wm:nth-child(16) .w{--i:15}.hero-title .wm:nth-child(17) .w{--i:16}.hero-title .wm:nth-child(18) .w{--i:17}.hero-title .wm:nth-child(19) .w{--i:18}.hero-title .wm:nth-child(20) .w{--i:19}
.menu-list a:nth-child(2){--i:1}.menu-list a:nth-child(3){--i:2}.menu-list a:nth-child(4){--i:3}.menu-list a:nth-child(5){--i:4}.menu-list a:nth-child(6){--i:5}.menu-list a:nth-child(7){--i:6}.menu-list a:nth-child(8){--i:7}.menu-list a:nth-child(9){--i:8}.menu-list a:nth-child(10){--i:9}.menu-list a:nth-child(11){--i:10}.menu-list a:nth-child(12){--i:11}
.reveal:nth-child(2){--d:1}.reveal:nth-child(3){--d:2}.reveal:nth-child(4){--d:3}.reveal:nth-child(5){--d:4}.reveal:nth-child(6){--d:5}.reveal:nth-child(n+7){--d:6}
.prose .al-center{text-align:center}.prose .al-right{text-align:right}

/* Sayfa geçişinde yalnızca görünen manşet slaytı eşleşsin.
   Görünmeyen slaytlar geçiş sırasında kutunun dışına taşıp büyümüş gibi görünüyordu (Chrome/Brave). */
/* Geçiş sırasında kapak görsellerinin köşeleri yuvarlak kalsın (sayfanın kendisine dokunmadan) */
::view-transition-group(*.cover) { border-radius: var(--radius); overflow: hidden; }

/* =========================================================
   Aşamalı iyileştirmeler: yalnızca destekleyen tarayıcılarda uygulanır.
   Desteklemeyenlerde sayfa aynen çalışır, sadece bu süslemeler olmaz.
   ========================================================= */
@supports (-webkit-text-size-adjust: 100%) { html { -webkit-text-size-adjust: 100%; } }
@supports (text-size-adjust: 100%) { html { text-size-adjust: 100%; } }

@supports (-webkit-backdrop-filter: blur(1px)) {
  .site-header { -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .sheet::backdrop { -webkit-backdrop-filter: blur(8px); }
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(14px); }
  .sheet::backdrop { backdrop-filter: blur(8px); }
}

@supports (text-wrap: balance) {
  .hero-title, .feature-title, .entry-title, .article-title, .slide-title,
  .prose h2, .prose h3, .prose h4 { text-wrap: balance; }
}
@supports (text-wrap: pretty) {
  .hero-sub, .feature-excerpt, .lead, .latest-title { text-wrap: pretty; }
}

@supports (scrollbar-width: none) {
  .cats, .manset-track { scrollbar-width: none; }
  @media (max-width: 760px) { .cards { scrollbar-width: none; } }
}
@supports (overscroll-behavior-x: contain) { .manset-track { overscroll-behavior-x: contain; } }
@supports (scroll-snap-stop: always) { .slide { scroll-snap-stop: always; } }

@supports (color: color-mix(in oklab, red, blue)) {
  .ad.is-placeholder { border-color: color-mix(in oklab, var(--muted) 45%, transparent); }
}

@supports (view-transition-name: none) {
  .slide:not(.is-active) [data-vt] { view-transition-name: none; }
  [data-vt^="cover-"] { view-transition-class: cover; }
}