/* =============================================================
   Kerem Faruk Öztürk — tasarım sistemi
   Kurallar README.md > "Stil rehberi" bölümünde.
   ============================================================= */

/* ---------- 0. Fontlar ---------- */
/* IBM Plex — SIL Open Font License 1.1 (assets/fonts/OFL-LICENSE.txt).
   Yalnızca latin + latin-ext alt kümeleri: Türkçe karakterler (ğ ş İ) latin-ext içinde. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-300-normal.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:'IBM Plex Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-ext-300-normal.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:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-400-normal.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:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-ext-400-normal.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:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-500-normal.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:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-sans-latin-ext-500-normal.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:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-400-normal.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:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-ext-400-normal.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:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-500-normal.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:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-ext-500-normal.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:'IBM Plex Serif';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-serif-latin-400-normal.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:'IBM Plex Serif';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-serif-latin-ext-400-normal.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:'IBM Plex Serif';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-serif-latin-400-italic.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:'IBM Plex Serif';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-serif-latin-ext-400-italic.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}


/* ---------- 1. Tasarım değişkenleri ---------- */
:root {
  /* Renkler (ASUS Marshmallow KW100 klavyesinden türetildi) */
  --bg:       #FBFAF7;  /* zemin: neredeyse beyaz, hafif sıcak */
  --white:    #FFFFFF;  /* kart yüzeyi */
  --line:     #ECE8E1;  /* ince ayraç */
  --edge:     #E6E0D6;  /* kartların alt kenarı */
  --dash:     #DDD5C8;  /* "yakında" kutusu çizgisi */
  --grey:     #EFEEEA;  /* kod zemini */
  --media:    #F3EEE5;  /* animasyon / görsel alanı */
  --tan:      #C2AA8C;  /* imza rengi — sadece işaret ve vurgu */
  --tan-soft: #E7DCCB;  /* seçim rengi */
  --ink:      #24211E;  /* metin (zeminde 15.3:1) */
  --soft:     #6B655D;  /* ikincil metin (5.5:1) */
  --faint:    #736C64;  /* etiket, tarih (5.0:1) */
  --tan-text: #7A6750;  /* bej tonunda küçük metin (5.2:1) */

  /* Fontlar — tek aile, üç görev */
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;  /* başlık, arayüz */
  --serif: "IBM Plex Serif", Georgia, serif;                                   /* okuma metni */
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;         /* tarih, etiket, kod */

  /* Ölçüler */
  --radius: 14px;
  --gutter: 48px;
  --maxw: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Koyu tema — "gece laboratuvarı". İşletim sisteminin ayarını izler. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #171513;
    --white:    #201D1A;
    --line:     #2E2A26;
    --edge:     #2A2622;
    --dash:     #3A352F;
    --grey:     #26221F;
    --media:    #1D1A17;
    --tan-soft: #3A3128;
    --ink:      #ECE5DA;  /* 14.6:1 */
    --soft:     #B5AB9E;  /* 8.1:1 */
    --faint:    #9E9488;  /* 6.1:1 */
    --tan-text: #CDB696;  /* 9.3:1 */
    color-scheme: dark;
  }
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img, video, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--tan-soft); }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
.w { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; font-size: 14px; z-index: 20; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Ortak öğeler ---------- */
.bar   { display: block; width: 40px; height: 6px; border-radius: 6px; background: var(--tan); }  /* imza */
.label { margin: 0; font-weight: 400; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mono  { font-family: var(--mono); font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- 4. Üst bar ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.brand i { width: 10px; height: 10px; border-radius: 3px; background: var(--tan); }
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--soft); }
.nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 6px; padding-left: 24px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.lang a { padding: 4px 2px; transition: color .2s; }
.lang a:hover { color: var(--ink); }
.lang .on { color: var(--ink); }
.lang .sep { color: var(--line); }
.nav-ind { position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--tan); view-transition-name: nav-ind; }
/* Sayfa değişirken aktif menü çizgisi yeni yerine kayar (destekleyen tarayıcılarda; diğerlerinde normal geçiş) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(nav-ind) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

/* ---------- 5. Ana sayfa: giriş ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding: 104px 0 136px; }
.hero-text { grid-column: 1 / 8; }
.hero .bar { margin-bottom: 32px; }
.hero .kicker { margin-bottom: 22px; }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(34px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero h1 .soft { color: var(--soft); }
.hero .intro { max-width: 520px; margin: 36px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--soft); }
.hero .focus { margin-top: 18px; }
.hero .focus b { font-weight: 400; color: var(--ink); }
.media { grid-column: 8 / 13; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--media); border: 1px solid var(--line); }
.media canvas { width: 100%; height: 100%; }

/* ---------- 6. Bölümler ---------- */
.sec { padding-bottom: 112px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-head .label { display: flex; align-items: center; gap: 12px; }
.sec-head .label::before { content: ""; height: 4px; width: 0; border-radius: 4px; background: var(--tan); transition: width .9s var(--ease) .2s; }
.sec.in .sec-head .label::before { width: 24px; }
.sec-head a { font-size: 13px; color: var(--soft); }
.sec-head a:hover { color: var(--ink); }

/* Proje kartları */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { display: flex; flex-direction: column; min-height: 210px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--edge); transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: #DDD4C6; transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-weight: 500; font-size: 19px; letter-spacing: -.015em; }
.card p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--soft); }
.card .mono { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }
.dot { flex: none; animation: live 2.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(194, 170, 140, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(194, 170, 140, 0); } }

/* İkonlar (giriş animasyonundan) — üzerine gelince çizgi yeniden çizilir */
.icon { width: 48px; height: 32px; color: var(--soft); }
.icon .base { stroke: var(--line); }
.icon .draw { stroke: var(--tan); stroke-dasharray: 100; stroke-dashoffset: 0; }
.icon .nodes circle { fill: var(--white); }
.card-icon { height: 72px; display: flex; align-items: center; margin-bottom: 16px; }
.card-icon .icon { width: 63px; height: 42px; }
/* Kartlarda ikonlar sakin bir döngüde hareket eder: bej çizgi tabanın üzerinden çizilir, bekler, silinir */
.cards .card { --d: 0s; }
.cards .card:nth-child(3n+2) { --d: -1.7s; }
.cards .card:nth-child(3n+3) { --d: -3.4s; }
.card-icon .icon .draw { animation: trace 5.2s cubic-bezier(.45, 0, .25, 1) var(--d) infinite; }
.card-icon .icon .draw.d2 { animation-delay: calc(var(--d) + .5s); }
.card-icon .icon .draw.d3 { animation-delay: calc(var(--d) + 1s); }
.card-icon .icon .nodes circle { animation: node 5.2s ease var(--d) infinite; }
.card-icon .icon .nodes .n2 { animation-delay: calc(var(--d) + .7s); }
.card-icon .icon .nodes .n3 { animation-delay: calc(var(--d) + 1.4s); }
@keyframes trace { 0% { stroke-dashoffset: 100; } 40%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes node { 0%, 18% { fill: var(--white); } 32%, 62% { fill: var(--tan); } 80%, 100% { fill: var(--white); } }
.card-img { margin: -12px -12px 20px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--media); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.with-icon .icon { width: 27px; height: 18px; }

/* Yazı listesi */
.list li a { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.list h3 { margin: 0; font-weight: 400; font-size: 21px; letter-spacing: -.02em; transition: color .2s; }
.list li a:hover h3 { color: var(--soft); }
.list .cat { color: var(--ink); margin-right: 14px; }

/* "Yakında" */
.empty { display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 28px; border: 1px dashed var(--dash); border-radius: var(--radius); }
.empty svg { width: 48px; height: 24px; flex: none; }
.empty .mono { display: block; color: var(--ink); margin-bottom: 2px; }
.empty p { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--soft); }
.empty .cursor { width: 3px; height: 26px; border-radius: 2px; background: var(--tan); flex: none; margin: 0 22px; animation: blink 1.1s steps(1) infinite; }

/* ---------- 7. İç sayfalar ---------- */
.page { padding-top: 96px; padding-bottom: 120px; }
.page-head { max-width: 760px; margin-bottom: 64px; }
.page-head .bar { margin-bottom: 32px; }
.page-head h1 { margin: 0; font-weight: 300; font-size: 44px; line-height: 1.12; letter-spacing: -.035em; }
.page-head p { margin: 20px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--soft); }

/* Uzun metin (yazılar, hakkımda) */
.prose { max-width: 660px; font-family: var(--serif); font-size: 19px; line-height: 1.78; }
.prose p, .prose ul, .prose ol { margin: 0 0 24px; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 3px; border-radius: 3px; background: var(--tan); }
.prose ol { padding-left: 22px; }
.prose a { text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose h2 { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -.02em; line-height: 1.3; margin: 56px 0 14px; scroll-margin-top: 24px; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 18px; margin: 40px 0 10px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote { margin: 36px 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--tan); font-style: italic; color: var(--soft); }
.prose code { font-family: var(--mono); font-size: .8em; background: var(--grey); padding: 2px 6px; border-radius: 5px; }
.prose pre { font-family: var(--mono); font-size: 14px; line-height: 1.6; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; overflow-x: auto; margin: 0 0 28px; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img, .prose video { border-radius: 12px; border: 1px solid var(--line); margin: 32px 0; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-top: -20px; }
.prose hr { border: 0; height: 6px; width: 40px; border-radius: 6px; background: var(--tan); margin: 48px 0; }

/* Yazı sayfası */
.progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: var(--tan); transform: scaleX(0); transform-origin: 0 50%; z-index: 10; }
.article { padding-top: 72px; padding-bottom: 120px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.article .meta .k { color: var(--ink); }
.article h1 { max-width: 760px; margin: 0 0 22px; font-weight: 400; font-size: 44px; line-height: 1.12; letter-spacing: -.03em; }
.lede { max-width: 660px; margin: 0 0 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.55; color: var(--soft); }

/* Proje: datasheet düzeni */
.ds-strip { display: flex; flex-wrap: wrap; margin: 0 0 40px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.ds-strip > div { padding: 12px 18px; border-right: 1px solid var(--line); }
.ds-strip > div:last-child { border-right: 0; }
.ds-strip > .end { margin-left: auto; text-align: right; border-left: 1px solid var(--line); }
.ds-strip > .end:last-child { border-right: 0; }
.ds-strip dt { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.ds-strip dd { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ds-strip .end dd { justify-content: flex-end; }
.ds-strip .icon { width: 24px; height: 16px; }
.ds-grid { display: grid; grid-template-columns: minmax(0, 660px) 300px; gap: 64px; align-items: start; }
.ds-side { position: sticky; top: 32px; }
.ds-table { margin: 12px 0 0; }
.ds-table div { display: grid; grid-template-columns: 44% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ds-table dt { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ds-table dd { margin: 0; font-size: 14px; }
.ds-table a { text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; word-break: break-word; }
.ds-rev { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); }
.ds-rev table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.ds-rev td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ds-rev .r { font-family: var(--mono); font-size: 12px; color: var(--tan-text); width: 72px; white-space: nowrap; }
.ds-rev .d { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 130px; white-space: nowrap; }
/* Numaralı şekil */
.prose .figure, .figure { margin: 40px 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.figure img { width: 100%; border: 0; border-radius: 6px; margin: 0; }
.figure figcaption { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.figure figcaption b { font-weight: 500; color: var(--ink); }

/* Projeler sayfası: belge dizini */
.pindex { margin-top: 8px; }
.pindex-head, .pindex-row { display: grid; grid-template-columns: 110px 1fr 140px 64px; gap: 24px; align-items: baseline; }
.pindex-head { padding: 0 0 12px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pindex-row { padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.pindex-row:hover { background: linear-gradient(90deg, transparent, var(--white) 12%, var(--white) 88%, transparent); }
.pindex-row .doc, .pindex-row .yr { font-family: var(--mono); font-size: 13px; color: var(--tan-text); }
.pindex-row .yr { color: var(--faint); text-align: right; }
.pindex-row .ttl b { display: block; font-weight: 400; font-size: 20px; letter-spacing: -.015em; }
.pindex-row .ttl em { display: block; margin-top: 4px; font-style: normal; font-family: var(--serif); font-size: 15px; color: var(--soft); }
.pindex-row .st { font-family: var(--mono); font-size: 12.5px; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.pindex-head span:last-child { text-align: right; }

/* Mühendislik günlüğü */
.log { list-style: none; margin: 28px 0 0; padding: 0; }
.log li { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.log li:first-child { padding-top: 0; }
.log .d { font-family: var(--mono); font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.log p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.log .t { font-family: var(--mono); font-size: 11px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

/* Kenar notları */
.sn-ref { font-family: var(--mono); font-size: 11px; line-height: 0; margin-left: 1px; }
.sn-ref a { color: var(--tan-text); text-decoration: none; padding: 0 2px; }
.sn { display: block; margin: 14px 0 6px; padding-left: 14px; border-left: 2px solid var(--tan); font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--soft); }
.sn b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--ink); margin-right: 4px; }
@media (min-width: 1180px) {
  .article .prose .sn { float: right; clear: right; width: 220px; margin: 4px -270px 18px 0; }
  .ds .prose .sn { float: none; width: auto; margin: 14px 0 6px; }
}

/* Etkileşimli şekil: RC filtresi */
.rcf-plot { width: 100%; height: auto; overflow: visible; }
.rcf-grid line { stroke: var(--line); stroke-width: 1; }
.rcf-ax text { font-family: var(--mono); font-size: 11px; fill: var(--faint); }
.rcf-curve { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.rcf-fc { stroke: var(--tan); stroke-width: 1.5; stroke-dasharray: 4 4; }
.rcf-pt { fill: var(--tan); }
.rcf-ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.rcf-ctrl label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.rcf-ctrl output { color: var(--ink); min-width: 64px; text-align: right; }
.rcf input[type=range] { width: 100%; accent-color: var(--tan); }
.rcf-read { display: flex; flex-wrap: wrap; gap: 28px; margin: 14px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.rcf-read b { font-weight: 500; color: var(--ink); margin-left: 6px; }

/* Proje: kapak ve teknik künye */
.cover { max-width: 900px; margin: 0 0 48px; }
.cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.spec { max-width: 660px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.spec dl { margin: 16px 0 0; }
.spec dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec dd { margin: 0; font-size: 15px; }
.spec a { text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Formüller (KaTeX) */
.prose .katex { font-size: 1.05em; }
.prose .katex-display { margin: 28px 0; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* Hakkımda */
.about { display: grid; grid-template-columns: minmax(0, 660px) 200px; gap: 64px; align-items: start; }
.about .prose { grid-column: 1; grid-row: 1; }
.about-photo { grid-column: 2; grid-row: 1; margin: 6px 0 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--edge); }
.status { max-width: 660px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.status ul { margin-top: 14px; }
.status li { position: relative; padding: 8px 0 8px 24px; font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.status li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 3px; border-radius: 3px; background: var(--tan); }
.status b { font-family: var(--sans); font-weight: 500; font-size: 17px; }
.about-note { max-width: 660px; margin: 48px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--soft); }

/* Hakkımda: özgeçmiş */
.bg { max-width: 660px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.bg ul { margin-top: 10px; }
.bg li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 12px 0; align-items: baseline; }
.bg li + li { border-top: 1px solid var(--line); }
.bg .when { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.bg b { font-weight: 500; font-size: 16px; }
.bg .role { font-size: 15px; color: var(--soft); }
.bg b + .role::before { content: "· "; color: var(--faint); }
.bg p { margin: 6px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink); }

/* Hakkımda > iletişim */
.contact { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 660px; scroll-margin-top: 24px; }
.contact ul { margin-top: 18px; }
.contact li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact li a { text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* 404 */
.notfound .flatline { width: 100%; max-width: 600px; height: auto; margin-bottom: 56px; }
.notfound .flatline path { stroke: var(--tan); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; animation: flat 2.4s var(--ease) .2s forwards; }
@keyframes flat { to { stroke-dashoffset: 0; } }
.notfound .page-head .mono { display: block; margin-bottom: 18px; }
.notfound .tr-line { margin-top: 10px; font-size: 16px; }
.notfound .back { display: inline-block; margin-right: 28px; font-size: 15px; text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .notfound .flatline path { stroke-dashoffset: 0; } }

/* ---------- 8. Alt bilgi ---------- */
.site-footer { position: relative; }
.site-footer .w { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 44px; font-size: 13px; color: var(--soft); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .upd { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.site-footer .mail { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Saat darbesi: başlığın altındaki ve alt bilginin üstündeki ince çizgilerden,
   dijital devrelerdeki saat sinyali gibi düzenli aralıklarla küçük bir ışık darbesi geçer */
.site-top { position: relative; }
.site-top::after, .site-footer::before {
  content: ""; position: absolute; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--tan) 30%, var(--tan-text) 50%, var(--tan) 70%, transparent) no-repeat, var(--line);
  background-size: 200px 1px, 100% 1px; background-position: -200px 0, 0 0;
  animation: tick 7s cubic-bezier(.45, 0, .25, 1) infinite;
}
.site-top::after { left: 0; right: 0; bottom: 0; }
.site-footer::before { left: 0; right: 0; top: 0; animation-delay: -3.5s; }
@keyframes tick { 0% { background-position: -200px 0, 0 0; } 35%, 100% { background-position: calc(100% + 200px) 0, 0 0; } }

/* ---------- 9. Hareket ---------- */
@keyframes grow  { from { width: 0; } to { width: 40px; } }
@keyframes rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lift  { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
.hero .bar, .page-head .bar { animation: grow .9s var(--ease) .1s both; }
.hero h1 span { animation: lift .9s var(--ease) both; }
.hero h1 span:nth-child(1) { animation-delay: .25s; }
.hero h1 span:nth-child(2) { animation-delay: .38s; }
.hero h1 span:nth-child(3) { animation-delay: .51s; }
.hero .kicker { animation: fade .9s ease .15s both; }
.hero .intro { animation: rise .9s var(--ease) .65s both; }
.hero .focus { animation: fade .9s ease .85s both; }
.media { animation: fade 1.4s ease .3s both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .sec .sec-head .label::before { width: 24px; }
}

/* ---------- 10. Mobil ---------- */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 28px; padding-bottom: 20px; }
  .site-header { position: relative; }
  .header-right { width: 100%; }
  .nav { gap: 22px; flex-wrap: wrap; }
  .lang { position: absolute; top: 28px; right: var(--gutter); padding-left: 0; border-left: 0; }
  .hero { padding: 56px 0 80px; }
  .hero-text, .media { grid-column: 1 / 13; }
  .hero h1 { font-size: 31px; }
  .hero .intro { margin-top: 24px; }
  .media { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .sec { padding-bottom: 72px; }
  .list li a { grid-template-columns: 1fr; gap: 6px; }
  .list h3 { font-size: 18px; }
  .empty { padding: 22px 20px; gap: 18px; }
  .page, .article { padding-top: 48px; padding-bottom: 80px; }
  .page-head h1, .article h1 { font-size: 32px; }
  .prose { font-size: 18px; }
  .contact li, .spec dl div { grid-template-columns: 1fr; gap: 2px; }
  .ds-grid { grid-template-columns: 1fr; gap: 40px; }
  .ds-side { position: static; }
  .ds-strip > div { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .ds-strip > .end { margin-left: 0; text-align: left; border-left: 0; }
  .ds-strip .end dd { justify-content: flex-start; }
  .ds-rev .d { width: auto; }
  .pindex-head { display: none; }
  .pindex-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .pindex-row .doc { grid-column: 1; grid-row: 1; }
  .pindex-row .yr { grid-column: 2; grid-row: 1; }
  .pindex-row .ttl { grid-column: 1 / 3; }
  .pindex-row .st { grid-column: 1 / 3; }
  .log li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .log p { grid-column: 1 / 3; grid-row: 2; }
  .rcf-ctrl { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { grid-column: 1; grid-row: 1; width: 140px; margin: 0; }
  .about .prose { grid-row: 2; }
  .bg li { grid-template-columns: 1fr; gap: 4px; }
  .status li { font-size: 17px; }
  .site-footer .w { flex-direction: column; align-items: flex-start; gap: 14px; }
}
