/* ============================================================
   Kaan Özer – stil dosyası
   Renkleri değiştirmek için sadece aşağıdaki :root bloğunu düzenle.
   ============================================================ */
:root {
  --paper: #F4F6FA;   /* sayfa zemini */
  --sheet: #FCFDFE;   /* daha açık sayfa */
  --wash:  #E3E8F1;   /* hafif vurgu zemini */
  --ink:   #0F1B33;   /* ana yazı */
  --muted: #4A5670;   /* ikincil yazı */
  --rule:  #BCC6D8;   /* ince çizgiler */
  --primary: #17356B; /* lacivert: koyu bölümler ve düğmeler */
  --accent: #D9A520;  /* altın: çizgi, nokta ve vurgu (yazı rengi olarak kullanma) */
  --accent-text: #8A6100; /* altının okunabilir koyu tonu (yazı için) */
  --error: #B3261E;   /* sadece hata mesajları */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paper); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { max-width: 44rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- Üst çubuk ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 2rem; height: 2rem; flex: none; }
.logo__dot { fill: var(--accent); }
.logo__word { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.005em; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; font-size: .9375rem; padding-block: .25rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; }
.lang button { font: 500 .8125rem/1 var(--sans); padding: .45rem .6rem; background: none; color: var(--ink); border: 0; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; font: 500 .9375rem var(--sans); background: none; border: 1px solid var(--ink); border-radius: 2px; padding: .45rem .8rem; color: var(--ink); cursor: pointer; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule);
         flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem var(--gutter) 1.5rem; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: .5rem; }
  .nav a { font-size: 1.0625rem; }
}

/* ---------- Butonlar ---------- */
.btn { display: inline-block; font: 500 .9375rem/1.2 var(--sans); padding: .8rem 1.2rem; border: 1px solid var(--ink); border-radius: 2px;
       background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--primary); border-color: var(--primary); color: var(--paper); }
.on-dark .btn { color: var(--paper); border-color: var(--paper); }
.on-dark .btn:hover { background: var(--paper); color: var(--primary); }
.btn--light { background: var(--paper); color: var(--primary) !important; }
.btn--light:hover { background: var(--sheet); color: var(--primary) !important; }

/* ---------- Üst bölüm (hero) ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); letter-spacing: -0.015em; line-height: 1.05; max-width: 15em; }
.hero__lead { font-size: 1.1875rem; max-width: 34rem; color: var(--muted); margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 56rem) { .hero__grid { grid-template-columns: 1fr; } }

/* T-hesabı: sitenin tek "büyük" öğesi */
.ledger { margin: 0; background: var(--sheet); border: 1px solid var(--ink); padding: 1.25rem 1.5rem 0; box-shadow: 6px 6px 0 var(--wash); }
.ledger__title { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.ledger__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.ledger__head { padding: .75rem 1rem .75rem 0; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; }
.ledger__head strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.ledger__head span { font-size: .8125rem; color: var(--muted); }
.ledger__head--r { padding-left: 1rem; padding-right: 0; border-left: 2px solid var(--ink); }
.ledger__cell { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.35; }
.ledger__cell--r { padding-left: 1rem; padding-right: 0; border-left: 2px solid var(--ink); }
.ledger__balance { display: flex; justify-content: space-between; align-items: baseline; margin: 0 -1.5rem; padding: 1rem 1.5rem; border-top: 4px double var(--ink); font-weight: 500; }
.ledger__zero { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--primary); border-bottom: 3px solid var(--accent); line-height: 1.15; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .ledger__cell, .ledger__balance { animation: post .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i) * .16s); }
  .ledger__zero { animation: stamp .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.55s + var(--i) * .16s); }
}
@keyframes post { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }

/* ---------- Bölümler ---------- */
.section { border-top: 3px double var(--ink); padding-block: clamp(3rem, 7vw, 5.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.section__head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section__intro { color: var(--muted); font-size: .9375rem; margin-top: .75rem; max-width: 14rem; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .section__intro { max-width: none; } }

.prose p { max-width: 40rem; }
.facts { margin: 2.5rem 0 0; display: grid; gap: 0; max-width: 40rem; }
.facts > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 0; }
@media (max-width: 36rem) { .facts > div { grid-template-columns: 1fr; gap: .15rem; } }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 2.5rem; align-content: start; }
.group h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
.group li { padding: .5rem 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }

/* ---------- Projeler (yevmiye defteri) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { font: 500 .875rem/1 var(--sans); padding: .55rem .85rem; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--wash); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.journal { border-bottom: 1px solid var(--rule); }
.entry, .role, .post-item { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .25rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.entry__date { white-space: nowrap; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.entry h3, .post-item h3 { font-size: 1.5rem; font-weight: 600; }
.entry__title { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--muted); margin: .15rem 0 .6rem; }
.entry__body p:not(.entry__title) { max-width: 38rem; margin-bottom: .75rem; }
@media (max-width: 40rem) { .entry, .role, .post-item { grid-template-columns: 1fr; } .entry__date { white-space: normal; } }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .8125rem; line-height: 1; padding: .35rem .55rem; background: var(--wash); border-radius: 2px; color: var(--ink); }
.tag--main { background: var(--ink); color: var(--paper); }

.more { margin: 0 0 .9rem; }
.more summary { cursor: pointer; font-size: .9375rem; font-weight: 500; width: fit-content; list-style: none; padding: .25rem 0; border-bottom: 1px solid var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " –"; }
.more ul { margin-top: .75rem; display: grid; gap: .4rem; }
.more li { position: relative; padding-left: 1.1rem; max-width: 38rem; }
.more li::before { content: ""; position: absolute; left: 0; top: .75em; width: .5rem; height: 1px; background: var(--accent-text); }
.journal__more { margin-top: 1.75rem; }

/* ---------- Deneyim ---------- */
.orgs { display: grid; gap: 2.5rem; }
.org > h3 { font-size: 1.5rem; font-weight: 600; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.role h4 { font-size: 1.1875rem; font-weight: 500; font-style: italic; margin-bottom: .5rem; }
.role ul { display: grid; gap: .35rem; }
.role li { position: relative; padding-left: 1.1rem; max-width: 38rem; }
.role li::before { content: ""; position: absolute; left: 0; top: .75em; width: .5rem; height: 1px; background: var(--accent-text); }

/* ---------- Yazılar ---------- */
.post-item h3 a { text-decoration: none; }
.post-item h3 a:hover { text-decoration: underline; }
.post-item p { max-width: 38rem; margin: .35rem 0 .6rem; color: var(--muted); }
.posts { border-bottom: 1px solid var(--rule); }

.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); min-height: 60vh; }
.page h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
.page__intro { color: var(--muted); margin: .75rem 0 2.5rem; }
.post__back { font-size: .9375rem; margin-bottom: 2rem; }
.post h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
.post__meta { color: var(--muted); font-size: .9375rem; margin: 1rem 0 .75rem; }
.note { background: var(--wash); padding: .75rem 1rem; border-left: 3px solid var(--accent); font-size: .9375rem; margin-top: 1.5rem; }
.post__body { margin-top: 2.5rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; }
.post__body h2 { font-size: 1.6rem; font-weight: 600; margin: 2.5rem 0 .75rem; }
.post__body h3 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 .5rem; }
.post__body ul, .post__body ol { margin: 0 0 1.25em; padding-left: 1.4rem; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: .5em; padding-left: .25rem; }
.post__body a { color: var(--primary); }
.post__body blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); font-style: italic; }
.post__body blockquote p { margin: 0; }
.post__body code { font-family: var(--mono); font-size: .85em; background: var(--wash); padding: .1em .35em; border-radius: 2px; }
.post__body pre { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; overflow-x: auto; border-radius: 2px; margin: 0 0 1.5em; }
.post__body pre code { background: none; padding: 0; font-size: .9rem; }

/* ---------- İletişim ve alt bilgi ---------- */
.on-dark { background: var(--primary); color: var(--paper); }
.on-dark a:hover { color: var(--paper); }
.contact { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 3px double var(--accent); }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; max-width: 16em; }
.contact p { max-width: 34rem; margin-top: 1rem; opacity: .9; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem !important; }

.site-footer { border-top: 1px solid rgba(237, 241, 232, .25); padding-block: 2rem; }
.site-footer .logo { color: var(--paper); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9375rem; }
.footer__legal { flex-basis: 100%; margin: 0; font-size: .8125rem; opacity: .75; }

@media print {
  .site-header, .nav-toggle, .filters, .contact, .site-footer { display: none; }
  body { background: #fff; }
}

/* ---------- Yazı görselleri ---------- */
.figure { margin: 2rem 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; background: var(--wash); }
.figure figcaption { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }
.figure--cover { margin: 1.75rem 0 0; }
.post-item__thumb { display: block; width: min(100%, 22rem); margin-bottom: .9rem; }
.post-item__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; }

/* ---------- İletişim formu ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 18rem); gap: 3rem clamp(2rem, 7vw, 6rem); align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: .4rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; padding: .7rem .85rem; }
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--primary); }
.field--check label { font-weight: 400; font-size: .9375rem; margin: 0; line-height: 1.5; }
.field--check a { color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.5em; font-weight: 500; }
.form__status.is-ok { color: var(--primary); }
.form__status.is-error { color: var(--error); }
.side h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.side__item { padding: .9rem 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: .2rem; overflow-wrap: anywhere; }
.side__item span { color: var(--muted); font-size: .875rem; }
.linklike { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--accent-text); }
.post__body.legal { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; }
.post__body.legal h2 { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- Portre ---------- */
.portrait { margin: 1.75rem 0 0; width: min(100%, 13rem); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border: 1px solid var(--ink); border-radius: 2px; box-shadow: 6px 6px 0 var(--wash); background: var(--wash); }
@media (max-width: 52rem) { .portrait { width: 11rem; } }

/* ---------- Çalışma şekli (süreç) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; counter-reset: step; }
@media (max-width: 62rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--ink); }
.step__icon { width: 3rem; height: 3rem; color: var(--primary); display: block; margin-bottom: .9rem; }
.step__icon .acc { stroke: var(--accent); }
.step__num { position: absolute; top: .75rem; right: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* ---------- Sertifikalar ---------- */
.certs li { padding: .55rem 0; border-top: 1px solid var(--rule); }
.certs li:first-child { padding-top: 0; border-top: 0; }
.certs li:last-child { padding-bottom: 0; }
.cert__name { display: block; }
.cert__meta { display: block; color: var(--muted); font-size: .875rem; }

/* ---------- Statik blog sayfaları ---------- */
.lang a { display: inline-block; font: 500 .8125rem/1 var(--sans); padding: .45rem .6rem; background: none; color: var(--ink); text-decoration: none; }
.lang a + a { border-left: 1px solid var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:hover { color: var(--ink); background: var(--wash); }
.lang a[aria-current="true"]:hover { color: var(--paper); background: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.post-meta { margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.post-meta > div { padding: .7rem 1rem .7rem 0; }
.post-meta dt { color: var(--muted); font-size: .8125rem; }
.post-meta dd { margin: 0; font-size: .9375rem; font-weight: 500; }
.post__alt { margin: 1rem 0 0; font-size: .9375rem; }
.author { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.author img { width: 4.5rem; height: 4.5rem; object-fit: cover; object-position: center 25%; border: 1px solid var(--ink); border-radius: 2px; }
.author strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.author p { margin: .2rem 0 .5rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.author a { font-size: .9375rem; font-weight: 500; }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
.related li { padding: .85rem 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: .15rem; }
.related li a { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.related li a:hover { text-decoration: underline; }
.related li span { color: var(--muted); font-size: .9375rem; }
