:root {
  --bg: #0e1020;
  --ink: #f2f0ea;
  --muted: #565a72;
  --accent: #e8b04b;
  --line: rgba(242, 240, 234, 0.07);
  --line-strong: rgba(242, 240, 234, 0.12);

  /* Giris animasyonunun basladigi nokta: baslik, ustteki adin uzerinde
     kucuk halde duruyor, oradan buyuyerek yerine iniyor. */
  --hero-x: 60px;
  --hero-y: -83px;
  --hero-s: 0.22;
}

@media (max-width: 640px) {
  :root { --hero-x: 60px; --hero-y: -80px; --hero-s: 0.35; }
}

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroIn {
  0%   { opacity: 0; transform: translate(var(--hero-x), var(--hero-y)) scale(var(--hero-s)); filter: blur(6px); }
  24%  { opacity: 1; transform: translate(var(--hero-x), var(--hero-y)) scale(var(--hero-s)); filter: blur(0); }
  34%  {              transform: translate(var(--hero-x), var(--hero-y)) scale(var(--hero-s)); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}

@keyframes underlineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nameCenter  { from { transform: translateY(-9px); } to { transform: translateY(0); } }

.sahne {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 900px 500px at 70% -10%, rgba(232, 176, 75, 0.07), transparent),
    radial-gradient(ellipse 700px 400px at 0% 110%, rgba(90, 110, 220, 0.06), transparent);
}

.filigran {
  position: fixed;
  right: -80px;
  bottom: -100px;
  width: 480px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.kap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Baslik cubugu */
.ustbar { display: flex; align-items: center; justify-content: space-between; padding: 36px 0 0; }
.marka { display: flex; align-items: center; gap: 16px; }
.marka img { width: 44px; height: 44px; display: block; }
.marka-ad { display: flex; flex-direction: column; gap: 3px; }
.marka-ad b { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.home-template .marka-ad b { animation: nameCenter 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both; }
.marka-ad span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.marka:hover .marka-ad span { color: var(--muted); }

/* Giris */
.giris { padding: 64px 0 48px; }
.home-template .giris h1 {
  transform-origin: left top;
  animation: heroIn 3.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.giris h1 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.giris em { font-style: italic; }

.altcizgi { width: 72px; height: 2px; margin-top: 6px; background: var(--ink); }
.home-template .altcizgi {
  transform-origin: left;
  animation: underlineIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 4.4s both;
}

/* Yazi listesi */
.liste { animation: fadeUp 0.9s ease 0.15s both; }
.home-template .liste { animation: fadeUp 0.9s ease 5s both; }

.yil-basi { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.liste > .yil-basi:first-child { margin-top: 0; }
.yil-basi span:first-child {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cizgi { flex: 1; height: 1px; background: var(--line-strong); }

.satir {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease;
}
.satir .baslik {
  flex: 1;
  min-width: 0;
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  color: inherit;
}
.satir .tarih {
  flex-shrink: 0;
  width: 58px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s ease;
}
.satir:hover .tarih { color: var(--accent); }

.bos { color: var(--muted); font-size: 15px; padding: 8px 0 0; }

.sayfalama {
  padding: 34px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.sayfalama a { color: var(--muted); }
.sayfalama a:hover { color: var(--accent); }

/* Alt bilgi */
.altbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 72px 0 44px;
}
.altbar .imza { display: flex; align-items: center; gap: 12px; }
.altbar .imza img { width: 28px; height: 28px; opacity: 0.55; }
.altbar .imza span { font-size: 12px; color: var(--muted); }

/* Yazi sayfasi */
.yazi { padding: 56px 0 0; animation: fadeUp 0.7s ease both; }
.geri { display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.yazi h1 {
  margin: 26px 0 0;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.yazi .kunye { margin-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.one-cikan { margin: 38px 0 0; }
.one-cikan img { display: block; width: 100%; border-radius: 8px; }
.one-cikan figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* Yazi govdesi — Ghost'un urettigi icerik buraya giriyor */
.govde {
  margin-top: 38px;
  font-family: 'Newsreader', serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242, 240, 234, 0.88);
}
.govde > * { margin: 0 0 22px; }
.govde > *:last-child { margin-bottom: 0; }

.govde h2, .govde h3, .govde h4 {
  margin: 40px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.govde h2 { font-size: 15px; }
.govde h3 { font-size: 13px; }
.govde h4 { font-size: 12px; }

.govde a { color: var(--accent); border-bottom: 1px solid rgba(232, 176, 75, 0.35); }
.govde a:hover { border-bottom-color: var(--accent); }

.govde ul, .govde ol { padding-left: 24px; }
.govde li { margin-bottom: 8px; }

.govde strong { font-weight: 400; color: var(--ink); }
.govde em { font-style: italic; }

.govde blockquote {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: rgba(242, 240, 234, 0.72);
}

.govde hr { border: 0; height: 1px; background: var(--line-strong); margin: 40px 0; }

.govde code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  background: rgba(242, 240, 234, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.govde pre {
  background: rgba(242, 240, 234, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.govde pre code { background: none; padding: 0; font-size: inherit; }

.govde table { width: 100%; border-collapse: collapse; font-size: 16px; }
.govde th, .govde td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.govde th { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Ghost kart bloklari */
.govde .kg-card { margin: 34px 0; }
.govde figure img { display: block; width: 100%; border-radius: 8px; }
.govde figcaption { margin-top: 10px; font-size: 12px; font-family: 'Space Grotesk', sans-serif; color: var(--muted); text-align: center; }
.govde .kg-width-wide { width: min(100vw - 56px, 940px); margin-left: 50%; transform: translateX(-50%); }
.govde .kg-width-full { width: calc(100vw - 56px); margin-left: 50%; transform: translateX(-50%); }
.govde .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.govde .kg-embed-card iframe { max-width: 100%; }

@media (max-width: 560px) {
  .filigran { width: 320px; right: -60px; bottom: -70px; }
  .satir { gap: 12px; }
  .satir .baslik { font-size: 19px; }
  .govde { font-size: 18px; }
  .govde .kg-width-wide, .govde .kg-width-full { width: auto; margin-left: 0; transform: none; }
}

/* Ayni ziyarette ana sayfaya ikinci kez gelindiginde giris atlanir:
   baslik ve cizgi dogrudan yerinde, liste kisa bir belirmeyle geliyor. */
.giris-gecildi .home-template .giris h1,
.giris-gecildi .home-template .altcizgi,
.giris-gecildi .home-template .marka-ad b { animation: none; }
.giris-gecildi .home-template .liste { animation: fadeUp 0.9s ease 0.15s both; }

/* Isletim sisteminde "hareketi azalt" secili olan cihazlarda giris
   gosterisi atlaniyor; sayfa dogrudan son haliyle aciliyor. */
@media (prefers-reduced-motion: reduce) {
  .home-template .giris h1,
  .home-template .altcizgi,
  .home-template .liste,
  .home-template .marka-ad b,
  .yazi, .giris, .liste { animation: none !important; }
}
