/* =========================================================
   Blog (/blog) + yazı (/{slug})
   ========================================================= */
.page-blog .ch, .page-blog .wd { display: inline-block; }
.page-blog .wd { white-space: nowrap; }
.page-blog main { background: #f4f4f4; }

.bl-meta { display: inline-flex; flex-wrap: wrap; gap: 0; opacity: .6; }
.bl-meta span + span::before { content: "·"; margin: 0 8px; }

/* ---------- list hero ---------- */
.bl-hero { position: relative; z-index: 3; background: linear-gradient(180deg, #fcfcfc 0%, #f4f4f4 100%); color: #3c3c3e; padding: clamp(140px, 22vh, 200px) var(--pad) clamp(40px, 7vh, 70px); }
.bl-hero__eyebrow { display: block; opacity: .55; margin-bottom: 20px; }
.bl-hero__title { font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: .95; letter-spacing: -0.06em; max-width: 14ch; }
.bl-hero__sub { margin-top: 24px; opacity: .7; }

/* ---------- featured ---------- */
.bl-featured { position: relative; z-index: 3; background: #f4f4f4; padding: 0 var(--pad) clamp(60px, 10vh, 100px); }
.bl-feat { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; color: #3c3c3e; }
.bl-feat__media { display: block; border-radius: 8px; overflow: hidden; background: #e2e2e2; aspect-ratio: 16 / 10; }
.bl-feat__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.bl-feat:hover .bl-feat__media img { transform: scale(1.04); }
.bl-feat__body { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.bl-feat__title { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1.02; letter-spacing: -0.05em; transition: color .3s; }
.bl-feat:hover .bl-feat__title { color: var(--accent); }
.bl-feat__ex { opacity: .7; max-width: 440px; }
.bl-feat .mono-link { width: 190px; color: #3c3c3e; margin-top: 8px; }

/* ---------- list ---------- */
.bl-list { position: relative; z-index: 3; background: #f4f4f4; color: #3c3c3e; padding: 0 var(--pad) clamp(90px, 14vh, 140px); }
.bl-filter { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; border-top: 1px solid rgba(17,18,20,.14); margin-bottom: clamp(30px, 5vh, 50px); }
.bl-filter button { height: 36px; padding: 0 16px; border-radius: 100px; border: 1px solid rgba(17,18,20,.2); font-family: var(--f-display); font-size: 13px; color: #3c3c3e; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.bl-filter button sup { font-size: 9px; opacity: .6; margin-left: 2px; }
.bl-filter button:hover { border-color: #3c3c3e; }
.bl-filter button.is-on { background: #111214; border-color: #111214; color: #fff; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 6vh, 60px) clamp(16px, 2vw, 30px); }
.bl-card { display: flex; flex-direction: column; gap: 12px; }
.bl-card.is-hidden { display: none; }
.page-blog:not(.page-post) .bl-card--first { display: none; }
.page-blog:not(.page-post) .bl-grid.is-filtered .bl-card--first:not(.is-hidden) { display: flex; }
.bl-card__media { display: block; border-radius: 6px; overflow: hidden; background: #e2e2e2; aspect-ratio: 16 / 10; margin-bottom: 6px; }
.bl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.bl-card:hover .bl-card__media img { transform: scale(1.05); }
.bl-card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.1; letter-spacing: -0.035em; }
.bl-card__title a { transition: color .3s; }
.bl-card:hover .bl-card__title a { color: var(--accent); }
.bl-card__ex { opacity: .65; font-size: 14px; line-height: 1.45; }
.bl-card__more { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; margin-top: 4px; }
.bl-empty { opacity: .6; }

/* ---------- post ---------- */
.ps { position: relative; z-index: 3; background: #fcfcfc; color: #3c3c3e; padding-bottom: clamp(80px, 12vh, 120px); }
.ps-head { padding: clamp(140px, 22vh, 190px) var(--pad) 0; }
.ps-crumb { display: block; margin-bottom: 22px; opacity: .6; }
.ps-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.ps-crumb span { margin: 0 6px; }
.ps-title { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -0.055em; max-width: 20ch; }
.ps-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: clamp(22px, 4vh, 36px) 0 clamp(36px, 6vh, 60px); }
.ps-ex { font-family: var(--f-display); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 640px; opacity: .8; }
.ps-meta { flex: none; }
.ps-cover { border-radius: 8px; overflow: hidden; max-height: 70vh; aspect-ratio: 16 / 8; background: #e8e8e8; }
.ps-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ps-wrap { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); gap: clamp(30px, 6vw, 110px); padding: clamp(60px, 10vh, 100px) var(--pad) 0; }
.ps-side__in { position: sticky; top: 110px; display: flex; flex-direction: column; }
.ps-side__label { opacity: .5; margin-bottom: 14px; }
.ps-toc { list-style: none; margin-bottom: 36px; border-left: 1px solid rgba(17,18,20,.14); }
.ps-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.35; opacity: .6; transition: opacity .3s, color .3s, border-color .3s; }
.ps-toc a:hover { opacity: 1; }
.ps-toc a.is-on { opacity: 1; color: var(--accent); border-left-color: var(--accent); }
.ps-share { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.ps-share a, .ps-share button { text-decoration: underline; text-underline-offset: 3px; color: inherit; font: inherit; cursor: pointer; }
.ps-share a:hover, .ps-share button:hover { color: var(--accent); }

.ps-body { max-width: 740px; font-size: 17px; line-height: 1.75; color: rgba(17,18,20,.82); }
.ps-body > * + * { margin-top: 1.1em; }
.ps-body h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: -0.045em; color: var(--ink); margin-top: 2em; scroll-margin-top: 110px; }
.ps-body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.035em; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 110px; }
.ps-body strong { color: var(--ink); font-weight: 600; }
.ps-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(194,21,28,.6); text-underline-offset: 3px; }
.ps-body a:hover { color: var(--accent); }
.ps-body ul, .ps-body ol { padding-left: 1.3em; }
.ps-body li + li { margin-top: .4em; }
.ps-body ul li::marker { color: var(--accent); }
.ps-body img { width: 100%; height: auto; border-radius: 6px; margin: 1.6em 0; display: block; }
.ps-body blockquote { border-left: 2px solid var(--accent); padding-left: 20px; font-family: var(--f-display); font-size: 1.25em; line-height: 1.35; color: var(--ink); }
.ps-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ps-body th, .ps-body td { border-bottom: 1px solid rgba(17,18,20,.14); padding: 10px 8px; text-align: left; }
.ps-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 950; pointer-events: none; }
.ps-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.ps-cta { position: relative; z-index: 3; background: var(--bg); color: var(--fg); padding: clamp(90px, 15vh, 150px) var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ps-cta__title { font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: .95; letter-spacing: -0.06em; }
.ps-cta__links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.ps-cta__links .mono-link { width: 220px; color: var(--fg); }

.ps-related { padding-top: clamp(80px, 13vh, 130px); }
.ps-related__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.ps-related__head .title { opacity: .6; }
.ps-related__head .mono-link { width: 180px; color: #3c3c3e; }

@media (max-width: 900px) {
  .bl-feat { grid-template-columns: 1fr; }
  .bl-grid { grid-template-columns: 1fr 1fr; }
  .ps-headrow { flex-direction: column; align-items: flex-start; }
  .ps-wrap { grid-template-columns: 1fr; }
  .ps-side { order: 2; }
  .ps-side__in { position: static; }
  .ps-toc { display: none; }
  .ps-side__label:first-child { display: none; }
}
@media (max-width: 560px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-hero__sub br { display: none; }
  .ps-body { font-size: 16px; }
}
