/* burakreis.blog: okumaya odakli, sade. Olculer blog/research/a ve b raporlarindaki araliklardan. */

/* Fontlar kendi sunucumuzdan: Inter (degisken, 400-600) ve Unbounded 600, Latin + Latin Extended. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/unbounded-600.woff2) format("woff2"); }
:root {
  --bg: #faf8f4;
  --surface: #f2eee7;
  --ink: #1a1614;
  --mute: #5f5650;
  --line: #e2dbd2;
  --accent: #c2391a;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42.5rem;   /* ~680 px, Turkcede 65-70 karakter */
  --body: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110e0d; --surface: #1a1615; --ink: #ede6de; --mute: #a59b92; --line: #2c2523; --accent: #ff6a4d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110e0d; --surface: #1a1615; --ink: #ede6de; --mute: #a59b92; --line: #2c2523; --accent: #ff6a4d;
  color-scheme: dark;
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--body) / 1.55 var(--text);
  font-feature-settings: "ss01" off;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img, video { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.col { max-width: var(--measure); }

/* Ust cubuk: yapiskan degil */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-block: 1.75rem; }
.mark { font: 600 1rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.9375rem; }
@media (max-width: 30rem) { .nav { gap: 0.9rem; } .nav .rss { display: none; } }
@media (max-width: 20rem) { .nav { gap: 0.75rem; font-size: 0.875rem; } }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme { border: 0; background: none; color: var(--mute); font: inherit; cursor: pointer; padding: 0.25rem; }
.theme:hover { color: var(--ink); }

/* Ana sayfa */
.intro { padding-block: 3.5rem 3rem; }
.intro h1 { margin: 0; font: 600 clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; max-width: 20ch; }
.intro .kicker { margin: 0 0 1rem; }
.intro p { margin: 1.25rem 0 0; color: var(--mute); max-width: 36rem; }

.section-label { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

.start { padding-block: 0.5rem 3rem; border-bottom: 1px solid var(--line); }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .start ol { grid-template-columns: 1fr; gap: 1.5rem; } }
.start li { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.start a.t { font-weight: 600; font-size: 1.125rem; line-height: 1.3; text-decoration: none; text-wrap: balance; }
.start a.t:hover { text-decoration: underline; }
.start p { margin: 0; color: var(--mute); font-size: 0.9375rem; line-height: 1.5; }

.archive { padding-block: 3rem 2rem; }
.year { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .year { grid-template-columns: 1fr; gap: 0.5rem; } }
.year h2 { margin: 0.2rem 0 0; font: 600 1rem/1.4 var(--text); color: var(--mute); font-variant-numeric: tabular-nums; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; }
.posts time { color: var(--mute); font-size: 0.9375rem; font-variant-numeric: tabular-nums; padding-top: 0.15rem; white-space: nowrap; }
.posts a { font-weight: 600; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 0.2rem 0 0; color: var(--mute); font-size: 0.9375rem; line-height: 1.5; }
.lang { display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border: 1px solid var(--line); border-radius: 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--mute); vertical-align: 0.2em; }

/* Yazi sayfasi */
.article { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 4rem; }
@media (min-width: 75rem) {
  .article { grid-template-columns: 13rem var(--measure); gap: 4rem; justify-content: center; }
  .article > .head, .article > .cover { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 3 / span 2; }
  .body, .end { grid-column: 2; }
}
.head { max-width: var(--measure); }
.kicker { margin: 0 0 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.kicker a { text-decoration: none; }
.head h1 { margin: 0; font: 600 clamp(2rem, 1.4rem + 2.4vw, 2.875rem)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.dek { margin: 1.25rem 0 0; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.9375rem; }
.meta strong { color: var(--ink); font-weight: 600; }
.disclaimer { margin: 1.25rem 0 0; padding: 0.75rem 1rem; background: var(--surface); border-radius: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--mute); }

.cover { margin: 2.5rem 0 0; max-width: min(100%, 60rem); }
@media (min-width: 75rem) { .cover { margin-inline: -5rem; max-width: none; width: calc(var(--measure) + 10rem); } }
.cover video { width: 100%; border-radius: 10px; background: var(--surface); }
.cover.tall { margin-inline: 0 !important; width: auto !important; max-width: var(--measure); }
.cover.tall video { width: auto; max-width: 100%; max-height: min(78vh, 46rem); margin-inline: auto; border-radius: 18px; }
.cover.tall figcaption { text-align: center; }
figcaption { margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.45; color: var(--mute); }

.toc { margin: 2.5rem 0 0; font-size: 0.875rem; }
.toc nav { position: static; }
@media (min-width: 75rem) { .toc { margin-top: 3.25rem; } .toc nav { position: sticky; top: 2rem; } }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding-left: 0.9rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--mute); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }

.body { max-width: var(--measure); margin-top: 2.5rem; }
.body > * { margin-block: 0 1.1em; }
.body h2 { margin: 2.5em 0 0.6em; font: 600 1.5rem/1.25 var(--text); letter-spacing: -0.015em; text-wrap: balance; scroll-margin-top: 2rem; }
.body h3 { margin: 2em 0 0.5em; font: 600 1.2rem/1.3 var(--text); }
.body ul, .body ol { padding-left: 1.25em; }
.body li + li { margin-top: 0.35em; }
.body blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--ink); }
.body figure { margin: 2em 0; }
.body sup a { text-decoration: none; color: var(--accent); font-weight: 600; padding-inline: 0.1em; }
.brief { padding: 1.25rem 1.5rem; background: var(--surface); border-radius: 10px; }
.brief h2 { margin: 0 0 0.5rem; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.brief ul { margin: 0; }
@media (max-width: 37.5rem) { .body { hyphens: auto; } }

.end { max-width: var(--measure); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--mute); }
.end h2 { margin: 0 0 0.75rem; font: 600 0.8125rem/1.4 var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
.end section + section { margin-top: 2rem; }
.end ol { padding-left: 1.25em; margin: 0; }
.end li + li { margin-top: 0.5em; }
.stamp { color: var(--ink); }
.author { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface); object-fit: cover; }
.author p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.linkbtn { border: 0; padding: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; cursor: pointer; }
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 37.5rem) { .series { grid-template-columns: 1fr; } }
.series a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.series a:hover { border-color: var(--ink); }
.series small { display: block; color: var(--mute); margin-bottom: 0.25rem; }
.series span { color: var(--ink); font-weight: 600; }

footer.site { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.875rem; }
footer.site .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

.proto { padding: 0.5rem 1.25rem; background: var(--ink); color: var(--bg); font-size: 0.8125rem; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
