/* ==========================================================
   omertugrulbayram.com — tasarım sistemi
   Zemin düz siyah; rengi ASCII okyanus taşır.
   ========================================================== */

@font-face {
  font-family: "Geist";
  src: url("../vendor/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../vendor/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --line: #272727;
  --line-strong: #313131;
  --text: #ededed;
  --muted: #9b9b9b;
  --faint: #6e6e6e;
  --wake: #6ee6ff;
  --danger: #ff6b5e;
  --ok: #7ee2a8;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 680px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--wake); color: #000; }

:focus-visible { outline: 2px solid var(--wake); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--text); color: #000; padding: 8px 12px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(64px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { text-wrap: pretty; margin: 0; }

.grad {
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navigasyon ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 9999px;
  white-space: nowrap;
}
.nav__home {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9999px;
  text-decoration: none; font-weight: 600; font-size: 14px; line-height: 20px;
}
.nav__mark {
  width: 24px; height: 24px; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--text); color: #000;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.nav__links { display: flex; gap: 4px; }
.nav__link {
  padding: 8px 12px; border-radius: 9999px;
  color: var(--muted); text-decoration: none;
  font-size: 14px; line-height: 20px; font-weight: 600;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--text); background: var(--line); }
.nav__link--icon { display: grid; place-items: center; padding: 8px; font-size: 16px; }

.nav__toggle {
  display: none; width: 36px; height: 36px; border: 0; border-radius: 9999px;
  background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.menu-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 96px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease);
}
.menu-open .menu-panel { opacity: 1; pointer-events: auto; }
.menu-panel a {
  font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--muted); padding: 8px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 300ms var(--ease);
}
.menu-panel a[aria-current="page"], .menu-panel a:hover { color: var(--text); }
.menu-open .menu-panel a { opacity: 1; transform: none; }
.menu-open .menu-panel a:nth-child(2) { transition-delay: 60ms; }
.menu-open .menu-panel a:nth-child(3) { transition-delay: 120ms; }
.menu-open .menu-panel a:nth-child(4) { transition-delay: 180ms; }
.menu-open .menu-panel a:nth-child(5) { transition-delay: 240ms; }
.menu-open { overflow: hidden; }

@media (max-width: 640px) {
  .nav { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 641px) { .menu-panel { display: none; } }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid transparent;
  font: 600 16px/24px var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--text); color: #000; }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 94, 0.4); }
.btn--danger:hover { background: rgba(255, 107, 94, 0.1); }
.btn--sm { font-size: 14px; line-height: 20px; padding: 4px 12px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero / okyanus ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.ocean {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  font-family: var(--mono); font-weight: 600;
}
/* Tüm sayfanın arkasında sabit duran okyanus. lvh: mobilde adres çubuğu
   açılıp kapandıkça kanvas yeniden boyutlanmasın. */
.ocean-bg {
  position: fixed; inset: auto; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh; pointer-events: none;
}
.nav, .menu-panel { z-index: 100; }
main, .footer, .flash { position: relative; z-index: 1; }
.flash { position: fixed; z-index: 160; }

/* İçerik perdesi: okyanus arkada görünür kalır, metin okunur olur.
   Üst kenardaki geçiş, okyanustan içeriğe yumuşak iner. */
.veil { position: relative; background: rgba(0, 0, 0, 0.8); }
.veil::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)); pointer-events: none;
}
.veil--read { background: rgba(0, 0, 0, 0.9); }
.veil--read::before { display: none; }
.footer { background: rgba(0, 0, 0, 0.92); }
.hero__intro {
  position: absolute; left: 0; right: 0; bottom: 48px;
  pointer-events: none;
}
.hero__card {
  pointer-events: auto;
  max-width: var(--measure);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__name { font-size: 48px; line-height: 1; }
.hero__lede { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--muted); }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__hint { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--faint); }
@media (max-width: 640px) {
  .hero__intro { bottom: 16px; }
  .hero__card { padding: 16px; }
  .hero__name { font-size: 36px; line-height: 40px; }
  .hero__lede { font-size: 16px; line-height: 24px; }
  .hero__hint { display: none; }
}

/* ---------- Bölümler ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.veil > .section:first-child { padding-top: 64px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__title { font-size: 30px; line-height: 36px; }
.section__link { color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: color 300ms var(--ease); }
.section__link:hover { color: var(--text); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* ---------- Yazı dizini ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__row { border-bottom: 1px solid var(--line); }
.index__link {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: baseline;
  padding: 24px 0; text-decoration: none;
}
.index__date { color: var(--faint); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.index__title {
  font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em;
  transition: color 300ms var(--ease);
}
.index__excerpt { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 20px; max-width: 64ch; }
.index__cat { color: var(--muted); font-size: 14px; line-height: 20px; white-space: nowrap; }
.index__link:hover .index__title { color: var(--wake); }
@media (max-width: 720px) {
  .index__link { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .index__date { order: -1; }
  .index__cat { white-space: normal; }
}

.empty {
  padding: 48px 24px; border: 1px solid var(--line); border-radius: 16px; text-align: center; color: var(--muted);
}
.empty strong { display: block; color: var(--text); font-size: 18px; line-height: 28px; margin-bottom: 8px; }

/* ---------- Kelime kelime aydınlanan cümle ---------- */
.reveal-line { font-size: 48px; line-height: 1.1; max-width: 860px; letter-spacing: -0.025em; font-weight: 600; }
.reveal-line .w { color: rgba(237, 237, 237, 0.28); transition: color 700ms var(--ease); }
.reveal-line .w.on { color: var(--text); }
@media (max-width: 640px) { .reveal-line { font-size: 30px; line-height: 36px; } }

/* ---------- Odak alanları ---------- */
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.focus__item i { font-size: 24px; color: var(--muted); }
.focus__item h3 { margin-top: 16px; font-size: 18px; line-height: 28px; }
.focus__item p { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .focus { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Sayfa başlığı (iç sayfalar) ---------- */
.page-head { padding: 160px 0 48px; }
.page-head h1 { font-size: 48px; line-height: 1; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 28px; max-width: var(--measure); }
@media (max-width: 640px) { .page-head { padding-top: 120px; } .page-head h1 { font-size: 36px; line-height: 40px; } }

/* ---------- Arama ve filtre ---------- */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.field {
  width: 100%; padding: 12px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 16px/24px var(--font);
  transition: border-color 300ms var(--ease);
}
.field::placeholder { color: var(--faint); }
.field:hover { border-color: var(--line-strong); }
.field:focus { outline: none; border-color: var(--wake); }
.search { position: relative; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .field { padding-left: 40px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600;
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-current="true"] { background: var(--text); border-color: var(--text); color: #000; }
.result-note { color: var(--faint); font-size: 14px; line-height: 20px; margin-bottom: 16px; }

/* ---------- Yazı sayfası ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; transform-origin: 0 50%; transform: scaleX(0); background: var(--wake); }
.article { padding: 160px 0 64px; }
.article__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; transition: color 300ms var(--ease); }
.article__back:hover { color: var(--text); }
.article__cat { margin-top: 32px; display: inline-block; color: var(--wake); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.article__title { margin-top: 12px; font-size: 48px; line-height: 1.05; }
.meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; line-height: 20px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .article { padding-top: 112px; } .article__title { font-size: 36px; line-height: 40px; } }

/* Markdown gövdesi */
.prose { margin-top: 48px; font-size: 18px; line-height: 30px; color: #d6d6d6; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 24px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 48px; }
.prose h1 { font-size: 30px; line-height: 36px; }
.prose h2 { font-size: 24px; line-height: 32px; }
.prose h3 { font-size: 20px; line-height: 28px; }
.prose h4 { font-size: 18px; line-height: 28px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--wake); text-underline-offset: 4px; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 16px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); display: block; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }
.prose :not(pre) > code {
  font-family: var(--mono); font-size: 0.85em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.prose kbd { font-family: var(--mono); font-size: 14px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }

/* Kod blokları */
.code {
  position: relative; border: 1px solid var(--line); border-radius: 12px; background: #0d0d0d; overflow: hidden;
}
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code__lang { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--faint); }
.code__copy { border: 0; background: transparent; color: var(--muted); font: 600 12px/16px var(--font); padding: 8px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.code__copy:hover { color: var(--text); background: var(--surface-2); }
.prose pre, .prose .codehilite pre { margin: 0; padding: 16px; overflow-x: auto; background: transparent; font-family: var(--mono); font-size: 14px; line-height: 22px; color: #dcdcdc; tab-size: 4; }
.prose pre code { font-family: inherit; font-size: inherit; background: none; border: 0; padding: 0; }
.prose .codehilite { background: transparent; }

.code .codehilite { overflow: hidden; }

/* Pygments jeton renkleri — sakin, okyanusla uyumlu */
.codehilite .c, .codehilite .c1, .codehilite .cm, .codehilite .cs, .codehilite .cp, .codehilite .ch, .codehilite .cpf { color: #6e6e6e; }
.codehilite .o, .codehilite .ow, .codehilite .p { color: #9b9b9b; }
.codehilite .k, .codehilite .kn, .codehilite .kd, .codehilite .kr, .codehilite .kc, .codehilite .kt, .codehilite .kp, .codehilite .nt { color: #c9b8ff; }
.codehilite .s, .codehilite .s1, .codehilite .s2, .codehilite .sb, .codehilite .sc, .codehilite .sd, .codehilite .se, .codehilite .sh, .codehilite .si, .codehilite .sx, .codehilite .sr, .codehilite .ss, .codehilite .sa, .codehilite .dl, .codehilite .gi { color: #9fe3cf; }
.codehilite .m, .codehilite .mi, .codehilite .mf, .codehilite .mh, .codehilite .mo, .codehilite .il { color: #f2c98a; }
.codehilite .nf, .codehilite .nc, .codehilite .fm, .codehilite .nd { color: #ffffff; }
.codehilite .nb, .codehilite .bp, .codehilite .nv, .codehilite .vi, .codehilite .vg, .codehilite .na, .codehilite .no { color: var(--wake); }
.codehilite .gd, .codehilite .err { color: var(--danger); }
.codehilite .gh, .codehilite .gu { color: #ffffff; font-weight: 600; }
.codehilite .gp { color: #6e6e6e; }

/* Eski yazılardaki özel sınıflar — sade yorumlarıyla korunuyor */
.prose .alert-box { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.prose .alert-danger { border-color: rgba(255, 107, 94, 0.45); color: #ffc9c3; }
.prose .alert-success { border-color: rgba(126, 226, 168, 0.45); color: #c9f5dc; }
.prose .spoiler { background: var(--surface-2); color: transparent; border-radius: 4px; padding: 0 6px; filter: blur(4px); cursor: pointer; transition: filter 300ms var(--ease), color 300ms var(--ease); }
.prose .spoiler:hover, .prose .spoiler.shown { color: var(--wake); filter: none; }
@keyframes blink { 50% { opacity: 0; } }

.tags { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.tag:hover { color: var(--text); border-color: var(--line-strong); }

.pager { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.pager a:hover { border-color: var(--line-strong); background: var(--surface); }
.pager small { display: block; color: var(--faint); font-size: 12px; line-height: 16px; }
.pager span { display: block; margin-top: 4px; font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

.admin-strip { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-strip p { color: var(--muted); font-size: 14px; line-height: 20px; margin-right: auto; }

/* ---------- Hakkımda ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-bottom: 96px; }
.about .prose { margin-top: 0; }
.about__side { display: flex; flex-direction: column; gap: 32px; }
.about__side h2 { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; font-weight: 600; transition: color 300ms var(--ease); }
.links a:hover { color: var(--wake); }
.links i { color: var(--muted); font-size: 18px; }
.links small { margin-left: auto; color: var(--faint); font-weight: 400; font-size: 14px; }
.badge-img { display: block; border-radius: 8px; border: 1px solid var(--line); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.skills dt { font-weight: 600; color: var(--text); }
.skills dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--faint); font-size: 14px; line-height: 20px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--muted); text-decoration: none; transition: color 300ms var(--ease); }
.footer a:hover { color: var(--text); }
.footer__credit { margin-top: 16px; font-size: 12px; line-height: 16px; }

/* ---------- Flash mesajları ---------- */
.flash { position: fixed; z-index: 160; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.flash__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; line-height: 20px; animation: rise 500ms var(--ease) both; }
.flash__item--error { border-color: rgba(255, 107, 94, 0.5); }
.flash__item--error i { color: var(--danger); }
.flash__item--success i { color: var(--ok); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Giriş ---------- */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 48px; }
.auth__box { width: 100%; max-width: 380px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.auth__box h1 { font-size: 24px; line-height: 32px; }
.auth__box > p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.form-row { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.auth .field { background: var(--bg); }
.auth .btn { margin-top: 24px; width: 100%; justify-content: center; }
.inline-error { margin-top: 16px; color: var(--danger); font-size: 14px; line-height: 20px; }

/* ---------- 404 ---------- */
.lost { position: relative; height: 100svh; min-height: 480px; overflow: hidden; }
.lost .hero__intro { bottom: auto; top: 50%; transform: translateY(-50%); }
.lost__code { font-family: var(--mono); color: var(--muted); font-size: 14px; line-height: 20px; }
.lost h1 { margin-top: 8px; font-size: 36px; line-height: 40px; }

/* ---------- Hareket tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal-line .w { color: var(--text); }
}

/* ==========================================================
   İç sayfa okyanus bandı
   ========================================================== */
.band { position: relative; }
.band .page-head { position: relative; padding: 200px 0 64px; pointer-events: none; }
.band .page-head > * { pointer-events: auto; }
.band__inner {
  display: inline-block; max-width: var(--measure);
  padding: 24px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.band__inner h1 { font-size: 48px; line-height: 1; }
.band__inner p { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 28px; }
@media (max-width: 640px) {
  .band .page-head { padding: 104px 0 24px; }
  .band__inner { padding: 16px; }
  .band__inner h1 { font-size: 36px; line-height: 40px; }
  .band__inner p { font-size: 16px; line-height: 24px; }
}

/* İstatistik şeridi: değerler gerçek veriden gelir */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats > div { padding: 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div + div { border-left: 0; }
  .stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats > div { padding: 16px; }
  .stats strong { font-size: 24px; line-height: 32px; }
}

/* ==========================================================
   Yazılar: liste + yan panel
   ========================================================== */
.library { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 48px 0 96px; }
.library__main { min-width: 0; }
.year { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 0; padding-bottom: 12px; }
.year:first-child { margin-top: 0; }
.year h2 { font-size: 24px; line-height: 32px; }
.year small { color: var(--faint); font-size: 14px; line-height: 20px; }
.library .index__link { grid-template-columns: 88px 1fr auto; }
.platform-pill { display: inline-block; margin-top: 4px; color: var(--faint); font-size: 12px; line-height: 16px; }

.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.side .panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; }
.side h2 { font-size: 14px; line-height: 20px; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; }
.rank a { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; transition: background-color 300ms var(--ease); }
.rank a:hover { background: var(--surface-2); }
.rank a::before { content: counter(r); color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; line-height: 20px; }
.rank span { font-size: 14px; line-height: 20px; font-weight: 600; }
.rank small { display: block; color: var(--faint); font-size: 12px; line-height: 16px; font-weight: 400; margin-top: 2px; }
.facet { list-style: none; margin: 0; padding: 0; }
.facet a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 20px; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.facet a:hover { background: var(--surface-2); color: var(--text); }
.facet a[aria-current="true"] { background: var(--line); color: var(--text); }
.facet b { font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud .tag { font-size: 12px; line-height: 16px; padding: 4px 8px; }
.subscribe p { color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.chip b { font-weight: 400; opacity: 0.6; margin-left: 4px; }

@media (max-width: 960px) {
  .library { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .side { grid-template-columns: 1fr; }
  .library .index__link { grid-template-columns: 1fr; }
}

/* ==========================================================
   Hakkımda
   ========================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding: 48px 0 0; }
.about-grid .prose { margin-top: 0; }
.block { padding: 64px 0; border-top: 1px solid var(--line); }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.block__head h2 { font-size: 30px; line-height: 36px; }
.block__head p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* Zaman çizelgesi: tarih sırası gerçek bir dizi olduğu için çizgiyle bağlı */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 167px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 144px 1fr; gap: 48px; padding: 0 0 32px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ""; position: absolute; left: 163px; top: 6px; width: 9px; height: 9px; border-radius: 9999px; background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li:first-child::after { border-color: var(--wake); background: var(--wake); }
.timeline time { color: var(--faint); font-size: 14px; line-height: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 18px; line-height: 28px; }
.timeline .org { color: var(--muted); font-size: 14px; line-height: 20px; }
.timeline p { margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) {
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::after { left: 0; }
  .timeline time { text-align: left; }
}

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.award { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.award__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.award__result { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.award__date { color: var(--faint); font-size: 14px; line-height: 20px; }
.award h3 { margin-top: 12px; font-size: 16px; line-height: 24px; }
.award p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }

.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talks li { display: grid; grid-template-columns: 144px 1fr auto; gap: 48px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.talks time { color: var(--faint); font-size: 14px; line-height: 20px; text-align: right; }
.talks h3 { font-size: 18px; line-height: 28px; }
.talks span { color: var(--muted); font-size: 14px; line-height: 20px; }
@media (max-width: 640px) {
  .talks li { grid-template-columns: 1fr; gap: 4px; }
  .talks time { text-align: left; }
}

/* Projeler */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
a.project:hover { border-color: var(--line-strong); background: var(--surface-2); }
.project__head { display: flex; align-items: center; gap: 12px; }
.project__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 20px; color: var(--wake); }
.project h3 { font-size: 18px; line-height: 28px; }
.project__link { margin-left: auto; color: var(--faint); font-size: 18px; transition: color 300ms var(--ease), transform 300ms var(--ease); }
a.project:hover .project__link { color: var(--text); transform: translate(2px, -2px); }
.project p { margin-top: 16px; color: var(--muted); flex: 1; }
.project__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.project__tags span { font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 9999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) { .projects { grid-template-columns: 1fr; } }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { color: var(--muted); font-size: 14px; line-height: 20px; padding: 4px 0; }
.side-list strong { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================
   Ana sayfa: tek ekranlık giriş
   ========================================================== */
.splash {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; padding: 96px 24px 24px;
}
/* Ortadaki yazının arkasında okyanusu yumuşakça karartan alan; kenarlar açık kalır */
.splash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 46% at 50% 47%, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%);
}
.splash__center {
  position: relative; align-self: center; justify-self: center;
  max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.splash__name { font-size: 72px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.splash__name .scramble { font-family: inherit; color: inherit; }
.splash__lede { margin-top: 24px; max-width: 560px; font-size: 20px; line-height: 30px; color: #b8b8b8; }
.splash__actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--lg { padding: 12px 20px; font-size: 16px; line-height: 24px; border-radius: 10px; }
.btn--ghost.btn--lg { background: rgba(0, 0, 0, 0.5); }
.splash__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-left: 4px;
  border-radius: 9999px; background: #000; color: #fff; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums;
}
.splash__latest {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 8px 8px 8px 12px; border-radius: 9999px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.6); text-decoration: none; font-size: 14px; line-height: 20px;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.splash__latest span { color: var(--wake); font-weight: 600; flex: none; }
.splash__latest strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.splash__latest i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 9999px; background: var(--surface-2); transition: transform 300ms var(--ease); }
.splash__latest:hover { border-color: var(--line-strong); background: rgba(24, 24, 24, 0.85); }
.splash__latest:hover i { transform: translateX(2px); }

.splash__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.splash__social { display: flex; gap: 4px; }
.splash__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9999px;
  color: var(--muted); font-size: 20px; text-decoration: none; background: rgba(0, 0, 0, 0.5);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.splash__social a:hover { color: var(--text); background: var(--surface-2); }
.splash__hint, .splash__credit { font-size: 12px; line-height: 16px; color: var(--faint); }
.splash__credit a { color: var(--muted); }

@media (max-width: 720px) {
  .splash { padding: 88px 16px 16px; }
  .splash::before { background: radial-gradient(ellipse 90% 50% at 50% 45%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0) 100%); }
  .splash__name { font-size: 48px; }
  .splash__lede { font-size: 16px; line-height: 24px; margin-top: 16px; }
  .splash__actions { margin-top: 32px; width: 100%; flex-direction: column; }
  .splash__actions .btn { justify-content: center; }
  .splash__latest { margin-top: 24px; }
  .splash__foot { justify-content: center; flex-direction: column; gap: 8px; }
  .splash__hint { display: none; }
}
