/* Aslı Gökçe Türkmen — site styles */

:root {
  --zemin:   #faf7f0;  /* ivory background */
  --kart:    #fffdf8;  /* card surface */
  --bant:    #f3efe6;  /* alternate section band */
  --metin:   #1f2329;  /* main text, dark */
  --ikincil: #474c55;  /* body paragraphs */
  --soluk:   #6f737b;  /* meta, captions */
  --cizgi:   #e3ddd0;  /* rules, borders */
  --koyu:    #262a33;  /* header & footer */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --genislik: 72rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--zemin); color: var(--metin);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.7;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--metin); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.015em; line-height: 1.15; margin: 0; color: var(--metin); }
p { margin: 0 0 1.1rem; }
.ic { max-width: var(--genislik); margin: 0 auto; padding: 0 1.25rem; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.ust { position: sticky; top: 0; z-index: 20; background: var(--koyu); color: #f4f1ea; }
.ust .ic { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.5rem; padding-top: .6rem; padding-bottom: .6rem; flex-wrap: wrap; }
.marka { text-decoration: none; line-height: 1.25; }
.marka b { display: block; font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; }
.marka span { display: block; font-size: .95rem; color: #c9c5bc; font-style: italic; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; font-family: var(--sans); font-size: .98rem; font-weight: 500; }
.menu a { text-decoration: none; color: #e9e5dc; padding: .25rem 0; border-bottom: 1px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: #8d8a83; }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: #f4f1ea; }
@media (max-width: 640px) {
  .ust { position: static; }
  .ust .ic { padding-top: 1rem; padding-bottom: 1rem; }
  .menu { gap: 0 1.25rem; font-size: .92rem; }
  .menu a { padding: .65rem 0; }
}

/* ---------- page heading (inner pages) ---------- */
.sayfa-basi { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--cizgi); }
.sayfa-basi h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.sayfa-basi p { margin: .8rem 0 0; color: var(--soluk); font-size: 1.1rem; max-width: 42rem; }
.yol { font-family: var(--sans); font-size: .85rem; color: var(--soluk); margin-bottom: 1rem; }
.yol a { text-decoration: none; display: inline-block; padding: .4rem 0; }
.yol a:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.bolum { padding: 4.5rem 0; }
.bolum.bant { background: var(--bant); }
.bolum-basi { text-align: center; max-width: 44rem; margin: 0 auto 2.75rem; }
.bolum-basi h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); }
.bolum-basi p { margin: .9rem 0 0; color: var(--ikincil); }
.metin { max-width: 44rem; color: var(--ikincil); }
.metin h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.metin h2:first-child { margin-top: 0; }
.metin ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.metin li { margin-bottom: .45rem; }
.metin strong { color: var(--metin); font-weight: 600; }

/* ---------- intro (home + about) ---------- */
.tanitim { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.tanitim h1, .tanitim h2.ad { font-size: clamp(2rem, 3.6vw, 2.5rem); margin-bottom: .35rem; }
.unvan { font-family: var(--sans); font-size: .95rem; letter-spacing: .04em; color: var(--soluk); margin-bottom: 1.75rem; }
.tanitim .metin { max-width: 46rem; }
@media (max-width: 760px) { .tanitim { grid-template-columns: 1fr; gap: 2rem; } }

/* portrait: shows a quiet placeholder until assets/img/portre.jpg exists */
.portre { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--bant); border: 1px solid var(--cizgi); max-width: 17rem; }
.portre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portre::before { content: "Fotoğraf"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; color: var(--soluk); }

/* ---------- cards ---------- */
.kartlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.kartlar.uclu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kart { display: flex; flex-direction: column; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 10px; padding: 2rem; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.kart:hover { border-color: #cfc7b6; box-shadow: 0 10px 24px -18px rgba(31, 35, 41, .35); }
.kart h3 { font-size: 1.55rem; margin-bottom: .7rem; }
.kart { overflow: hidden; }
.kart-gorsel { display: block; width: calc(100% + 4rem); max-width: none; margin: -2rem -2rem 1.4rem; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bant); border-bottom: 1px solid var(--cizgi); }
.kartlar.uclu .kart h3 { font-size: 1.35rem; }
.kart p { color: var(--ikincil); margin: 0 0 1.25rem; font-size: 1.05rem; }
.kart .kim { font-family: var(--sans); font-size: .85rem; color: var(--soluk); margin-bottom: .6rem; }
.devam { margin-top: auto; font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tarih { font-family: var(--sans); font-size: .85rem; color: var(--soluk); margin-bottom: .6rem; }
@media (max-width: 900px) { .kartlar.uclu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kartlar, .kartlar.uclu { grid-template-columns: 1fr; } .kart { padding: 1.5rem; } .kart-gorsel { width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1.2rem; } }

.bos { text-align: center; color: var(--soluk); padding: 2.5rem 1.5rem; border: 1px dashed var(--cizgi); border-radius: 10px; margin: 0; }
.ortala { text-align: center; margin-top: 2.25rem; }
.cizgili-bag { font-family: var(--sans); font-weight: 600; font-size: .95rem; text-underline-offset: .3em; }

/* ---------- article (migrated posts) ---------- */
.one-cikan { margin: 0 0 2.5rem; max-width: 44rem; }
.one-cikan img { width: auto; max-width: 100%; max-height: 80vh; height: auto; border-radius: 6px; }
.yazi-govde figure { margin: 2rem 0; }
.yazi-govde img { max-width: 100%; height: auto !important; border-radius: 4px; }
.yazi-govde figcaption { font-family: var(--sans); font-size: .85rem; color: var(--soluk); margin-top: .6rem; }
.yazi-govde blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.4rem; border-left: 2px solid var(--cizgi); font-style: italic; }
.yazi-govde blockquote p:last-child { margin-bottom: 0; }
.yazi-govde a { text-underline-offset: .2em; word-break: break-word; }
.yazi-govde mark { background: none; color: inherit; }
.yazi-govde .has-vivid-red-color { color: #b42318; }
/* category bar: stays under the sticky header while scrolling Yazılarım */
.kategori-cubuk { position: sticky; top: var(--ust-h, 4.5rem); z-index: 15; background: color-mix(in srgb, var(--zemin) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--cizgi); padding: .7rem 0; }
html:has(.kategori-cubuk) { scroll-padding-top: 9rem; }
.kategori-menu { display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--sans); font-size: .95rem; font-weight: 500; }
.kategori-menu a { text-decoration: none; padding: .45rem 1rem; border: 1px solid var(--cizgi); border-radius: 999px; background: var(--kart); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.kategori-menu a:hover { border-color: var(--metin); }
.kategori-menu a[aria-current] { background: var(--koyu); border-color: var(--koyu); color: #f4f1ea; }
.kategori-menu span { color: var(--soluk); font-weight: 400; }
.kategori-menu a[aria-current] span { color: #c9c5bc; }
.kategori-cubuk + .kategori-bolum { padding-top: 3rem; }
@media (max-width: 640px) {
  .kategori-cubuk { top: 0; padding: .55rem 0; }
  html:has(.kategori-cubuk) { scroll-padding-top: 4.5rem; }
  .kategori-menu { flex-wrap: nowrap; overflow-x: auto; gap: .45rem; font-size: .88rem; scrollbar-width: none; }
  .kategori-menu a { padding: .4rem .8rem; }
}
.kategori-bolum + .kategori-bolum { padding-top: 0; }
.kategori-baslik { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 1.75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--cizgi); }
.yukari { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; padding: .7rem 1.1rem; border-radius: 999px; background: var(--koyu); color: #f4f1ea; font-family: var(--sans); font-size: .9rem; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(31, 35, 41, .5); transition: opacity .2s; }
.yukari:hover { background: #1a1d24; }
.yukari.gizli { opacity: 0; pointer-events: none; }
/* smooth only after load (site.js adds .yumusak), so jumping to #kitaplar on arrival is instant and reliable */
@media (prefers-reduced-motion: no-preference) { html.yumusak { scroll-behavior: smooth; } }
.geri .cizgili-bag { display: inline-block; padding: .5rem 0; }
.geri { max-width: 44rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--cizgi); }
.sayfa-basi time { font-family: var(--sans); font-size: .95rem; }

/* ---------- contact ---------- */
.iletisim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.iletisim-kart { font-style: normal; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 2.25rem 1.5rem 2rem; transition: border-color .2s, box-shadow .2s; }
.iletisim-kart:hover { border-color: #d3cbbb; box-shadow: 0 12px 28px -22px rgba(31, 35, 41, .4); }
.kanal-simge { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--bant); border: 1px solid var(--cizgi); color: var(--metin); margin-bottom: 1.1rem; }
.kanal-simge svg, .linkedin-bag svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kanal-etiket { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soluk); margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--cizgi); min-width: 4rem; }
.iletisim-kart p { margin: 0; color: var(--ikincil); line-height: 1.5; }
.iletisim-kart p + p { margin-top: .8rem; }
.iletisim-kart b { display: block; color: var(--metin); font-weight: 500; font-size: 1.2rem; }
.kanal-deger { font-size: clamp(1rem, 1.45vw, 1.2rem); white-space: nowrap; color: var(--metin); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
.kanal-deger:hover { background-size: 100% 1px; }
.linkedin-bag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .55rem 1.1rem; border: 1px solid var(--cizgi); border-radius: 999px; background: var(--kart); }
.linkedin-bag:hover { border-color: var(--metin); }
@media (max-width: 900px) { .iletisim { grid-template-columns: 1fr; } .iletisim-kart { padding: 1.75rem 1.25rem; } }

/* ---------- footer ---------- */
.alt { background: var(--koyu); color: #c9c5bc; font-family: var(--sans); font-size: .95rem; margin-top: auto; }
.alt .ic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.alt h2 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8f8b83; margin-bottom: 1rem; }
.alt ul { list-style: none; margin: 0; padding: 0; }
.alt li { margin-bottom: .15rem; }
.alt a { text-decoration: none; color: #e9e5dc; display: inline-block; padding: .3rem 0; }
.alt a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.alt address { font-style: normal; line-height: 1.8; }
.telif { border-top: 1px solid #3a3e48; }
.telif .ic { display: block; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .85rem; color: #8f8b83; }
@media (max-width: 760px) { .alt .ic { grid-template-columns: 1fr; gap: 1.75rem; } }
