/* dörtyüzdört — site stili (onaylı taslak: taslak/editorial-taslak.html) */
:root {
  --ink: #111; --paper: #ecebe6; --white: #fbfbf8; --muted: #6b6a63;
  --line: rgba(0,0,0,.14);
  --sans: "Montserrat Alternates", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 6px 10px; font-family: var(--mono); font-size: 12px; }
.skip:focus { left: 8px; }

/* ---- üst bar ---- */
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; }
.logo svg { width: 20px; height: 13px; }
.menu { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.menu a { opacity: .6; }
.menu a:hover, .menu a.on { opacity: 1; }
.menu .log { font-weight: 500; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; border: 1px solid var(--ink); padding: 3px 7px; opacity: 1; white-space: nowrap; }
.menu .log:hover, .menu .log.on { background: var(--ink); color: var(--white); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  width: 180px; height: 28px; padding: 0 10px; border: 1px solid var(--ink);
  color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-family: var(--sans); font-size: 12px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search:focus-within { color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---- etiket / kutucuk ---- */
.tag, .box {
  font-weight: 500; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  display: inline-grid; place-items: center;
  height: 20px; padding: 0 7px; border: 1px solid var(--ink); white-space: nowrap;
}
.box { min-width: 42px; padding: 0 6px; }
.tag:hover, .tag.fill, .box:hover, .box.on { background: var(--ink); color: var(--white); }

.label { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.empty { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 18px 0; }

/* =================== ANA SAYFA / LİSTE =================== */
.hero { padding: 56px 0 28px; }
.hero h1 { font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; max-width: 30ch; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero .crumb { padding: 0 0 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

.index { padding: 18px 0 40px; max-width: 760px; }
.rows { list-style: none; border-top: 1px solid var(--ink); }
.rows li a {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 16px; align-items: baseline;
  padding: 13px 8px; border-bottom: 1px solid var(--line);
  transition: background .12s, color .12s;
}
.rows li a:hover, .rows li a:focus-visible { background: var(--ink); color: var(--white); }
.rows li a:hover .meta, .rows li a:hover .n { color: inherit; }
.rows .n { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.rows h3 { font-size: 15px; font-weight: 500; line-height: 1.35; }
.rows h3 small { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; margin-left: 10px; opacity: .6; white-space: nowrap; }
.rows .meta { white-space: nowrap; }

.log-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 760px; padding: 18px 0 72px; }
.log-line .label { margin-right: 8px; padding: 3px 7px; border: 1px solid var(--ink); letter-spacing: .06em; color: var(--ink); }
.log-line .label:hover { background: var(--ink); color: var(--white); }
.log-line .more { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.log-line .more:hover { color: var(--ink); }

footer { padding: 48px 0 36px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover, .link-btn:hover { color: var(--ink); }
.link-btn { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* =================== MAKALE =================== */
.crumb { padding: 34px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.art { max-width: 680px; }
.art-head { padding: 26px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.art-head h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; margin: 14px 0 12px; }
.byline { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.toc { margin-bottom: 34px; }
.toc ol { list-style: none; margin-top: 10px; counter-reset: t; display: grid; gap: 4px; }
.toc li { counter-increment: t; font-size: 13px; }
.toc li a { opacity: .75; }
.toc li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-weight: 500; font-size: 10px; color: var(--muted); margin-right: 10px; }

.prose { font-family: var(--mono); font-size: 14.5px; line-height: 1.8; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.25; margin-top: 2.2em; scroll-margin-top: 20px; }
.prose a:not(.b-link) { text-decoration: underline; text-underline-offset: 3px; }

.sources { margin-top: 44px !important; padding-top: 18px; border-top: 1px solid var(--line); }
.sources h2.label { font-family: var(--mono); font-size: 11px; font-weight: 500; margin: 0; }
.sources ol { margin: 10px 0 0 18px; font-size: 12px; line-height: 1.9; }
.tags { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }

.pager { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0 24px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 13px; }
.pager a { max-width: 45%; }
.pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pager .label { display: block; margin-bottom: 6px; }
.pager .next { text-align: right; margin-left: auto; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em;
  cursor: pointer;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--white); }

/* ---- içerik blokları ---- */
.b-media img, .b-media video {
  display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain;
  background: #e2e1db; border: 1px solid var(--line);
}
.b-embed { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.b-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-media figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); }
.b-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--ink);
}
.b-link:hover { background: var(--ink); color: var(--white); }
.b-link:hover .b-link-host { color: inherit; }
.b-link-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-link-host { flex: none; font-size: 11px; color: var(--muted); }

/* =================== 404 LOG =================== */
.log-head { padding: 40px 0 8px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.log-head h1, .log-head .h1like { font-family: var(--mono); font-size: 22px; letter-spacing: .04em; font-weight: 500; }
.log-head p:not(.h1like) { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.months { padding: 20px 0 30px; }
.months .year { padding: 18px 0 4px; color: var(--ink); }
.month { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.month .label { padding-top: 3px; color: var(--ink); }
.month .boxes { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet { max-width: 680px; background: var(--white); border: 1px solid var(--line); padding: 34px 40px 40px; position: relative; margin-bottom: 40px; }
.sheet.show { animation: rise .16s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.sheet .x { position: absolute; right: 16px; top: 10px; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px; }
.sheet .x:hover { color: var(--ink); }
.sheet h2 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 12px 0 6px; }
.sheet .prose { font-size: 14px; margin-top: 22px; }
.permalink { display: inline-block; margin-top: 22px; font-family: var(--mono); font-size: 11px; color: var(--muted); border-bottom: 1px dashed var(--muted); }

/* =================== 404 =================== */
.nf { padding: 72px 0 40px; }
.nf h1 { font-size: 28px; font-weight: 600; margin: 10px 0 8px; }
.nf-links { margin-top: 24px; display: flex; gap: 6px; }

/* =================== çerez bandı =================== */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px;
  background: var(--white); border: 1px solid var(--ink); padding: 14px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.consent p { flex: 1 1 260px; }
.consent .btns { display: flex; gap: 6px; }
.consent button { font: inherit; font-weight: 500; font-size: 11px; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.consent button.primary, .consent button:hover { background: var(--ink); color: var(--white); }

/* ---- mobil ---- */
@media (max-width: 760px) {
  .nav { height: auto; flex-wrap: wrap; gap: 12px 18px; padding: 14px 16px; }
  .menu { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
  .search { width: 130px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 19px; }
  .rows li a { grid-template-columns: 26px 1fr; gap: 4px 12px; }
  .rows .meta { grid-column: 2; }
  .rows h3 small { display: block; margin: 4px 0 0; }
  .sheet { padding: 26px 20px; }
  .to-top { right: 16px; bottom: 16px; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
}
