/* meyupcetiner giriş dili — giriş (/), ortak blog (/blog/) ve 404 sayfaları.
   Önekler: hm- (ortak + giriş), bl- (blog). Diğer bölümler bu dosyayı kullanmaz.
   Font (/assets/css/fonts.css, önce yüklenir): gövde Avantique (--hm-font), başlık/özel NV Anthem Grotesk (--hm-display):
   giriş satırı, bölüm kelimeleri, 404 satırı, blog başlığı ve kart başlıkları. Monospace/Inter yok (kural: docs/PROJECT_CONTEXT). */

:root {
  --hm-bg: #070707;
  --hm-fg: #ffffff;
  --hm-muted: #a3a3a3;   /* #070707 üzerinde ~8:1 */
  --hm-line: #262626;
  --hm-font: var(--font-body);
  --hm-display: var(--font-display);
  /* Tasarımdaki Haas Grotesk XThin/Thin karşılığı: NV Anthem Grotesk. Büyük ekranda Thin 100 (tasarıma en yakın),
     dar ekranda yazı küçülünce Thin gri/silik göründüğü için ExtraLight 200 (Thin/ExtraLight 1440 ve 390'da karşılaştırıldı). */
  --hm-thin: 200;
  --hm-ease: cubic-bezier(.4, 0, .2, 1);
  --hm-dur: 300ms;       /* hover vurgusu */
}
@media (min-width: 900px) { :root { --hm-thin: 100; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
/* Zemin tüm ekranda tek renk: html'e de verilir (overscroll, adres çubuğu altı, dvh boşlukları aynı ton). */
html { background: var(--hm-bg); color-scheme: dark; }
body.hm-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--hm-bg);
  color: var(--hm-fg);
  font-family: var(--hm-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--hm-fg); outline-offset: 4px; }

/* ---------- Giriş: seçici ---------- */
.hm-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  overflow: hidden;
}
/* Ana satır ~1440px'te 60px (tasarım: 1470px'te ~61.5px). Mobilde tek satıra sığacak kadar küçülür. */
.hm-stage {
  --hm-fs: min(calc((100vw - 2.5rem) / 16.3), max(4.2vw, 1.85rem), 7.5rem);  /* 16.3: "www.meyupcetiner/photography" NV Anthem Grotesk ile ~16.15em; 320px dahil tek satır, kenar boşluğu korunur */
  --hm-s: .635;          /* küçük kelime / ana satır oranı (tasarım 39 / 61.5) */
  display: flex;
  align-items: baseline;
  font-size: var(--hm-fs);
  line-height: 1;
  white-space: nowrap;
  font-family: var(--hm-display);
  margin-top: -.2em;     /* üç satırlık grup, footer hariç alanda dikey ortalı */
}
.hm-host {
  font-weight: 400;
  letter-spacing: -.02em;
}
.hm-sel {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-slot {
  grid-area: 1 / 1;
  pointer-events: none;
}
.hm-opt {
  display: inline-block;
  pointer-events: auto;
  font-weight: var(--hm-thin);
  letter-spacing: -.02em;
  text-decoration: none;
  transform-origin: 0 82%;
  transition: opacity var(--hm-dur) var(--hm-ease);
  -webkit-tap-highlight-color: transparent;
}
/* Konumlar (sabit): orta = ana satır; üst/alt = küçük, ana satırdaki bölüm adının ortasına hizalı, hafif sola.
   "out" = geçişte ortadan çıkan kelime (ortadakiyle aynı yer, altında). */
.hm-slot[data-pos="mid"], .hm-slot[data-pos="out"] { transform: translate(0, 0); }
.hm-slot[data-pos="top"] { transform: translate(calc(50% - .3em), -1.62em); }
.hm-slot[data-pos="bot"] { transform: translate(calc(50% - .3em), 1.44em); }
.hm-slot[data-pos="mid"] .hm-opt, .hm-slot[data-pos="out"] .hm-opt { transform: scale(1) translateX(0); }
.hm-slot[data-pos="top"] .hm-opt,
.hm-slot[data-pos="bot"] .hm-opt { transform: scale(var(--hm-s)) translateX(-50%); }
.hm-slot[data-pos="mid"] { z-index: 1; }
.hm-opt { position: relative; }
.hm-opt::after { content: ""; position: absolute; inset: -.22em -.08em; }  /* geniş dokunma/hover alanı */
.hm-opt:focus-visible { outline-offset: .06em; outline-width: max(1px, .02em); }
/* Hover/odak: yer değiştirme yok; yalnız diğer iki bölüm adı hafifçe söner (varsayılan görünüm tasarımdaki gibi tam beyaz). */
@media (hover: hover) {
  .hm-sel:has(.hm-opt:hover) .hm-opt:not(:hover) { opacity: .55; }
}
.hm-sel:has(.hm-opt:focus-visible) .hm-opt:not(:focus-visible) { opacity: .55; }

/* ---------- Giriş: tıklama geçişi (hm.js) ---------- */
.hm-going { pointer-events: none; }
.hm-going :focus-visible { outline-color: transparent; }
.hm-fx {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}
.hm-fx__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--hm-bg);
  visibility: hidden;
}
.hm-fx.is-open .hm-fx__frame { visibility: visible; }
.hm-fx__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hm-fg);
  transform: scaleX(0);
}
.hm-fx__panel {
  position: absolute;
  inset: 0;
  background: var(--hm-bg);
  will-change: transform;
}
.hm-fx__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hm-fg);
  box-shadow: 0 0 8px rgba(255, 255, 255, .28);
}

/* ---------- Ortak footer ---------- */
.hm-foot {
  padding: 0 1rem 1.125rem;
  text-align: center;
}
.hm-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
}
.hm-menu li { display: flex; align-items: center; }
.hm-sep { padding: 0 .35em; }
.hm-menu a {
  display: inline-block;
  padding: .5em .1em;
  text-decoration: none;
}
.hm-menu a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-copy {
  margin: .15rem 0 0;
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
@media (max-width: 600px) {
  .hm-menu { font-size: .75rem; }
  .hm-menu a { padding: .9em .15em; }   /* dokunma alanı */
  .hm-copy { font-size: .625rem; }
}

/* ---------- 404 ---------- */
.hm-err { text-align: center; }
.hm-err__line {
  margin: 0;
  font-family: var(--hm-display);
  font-size: min(calc((100vw - 2.5rem) / 12.3), max(4.2vw, 1.75rem), 6rem);  /* 12.3: "www.meyupcetiner/404" ~12em (NV Anthem Grotesk) */
  line-height: 1;
  white-space: nowrap;
}
.hm-err__line a { font-weight: 400; letter-spacing: -.03em; text-decoration: none; }
.hm-err__line a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.hm-err__line span { font-weight: var(--hm-thin); letter-spacing: -.035em; }
.hm-err__title {
  margin: 2rem 0 0;
  font-family: var(--hm-display);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: -.01em;
}
.hm-err__text {
  margin: .75rem auto 0;
  max-width: 40ch;
  color: var(--hm-muted);
  font-size: .9375rem;
  line-height: 1.6;
  text-wrap: balance;
}
.hm-err__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.hm-err__nav a {
  display: inline-block;
  font-family: var(--hm-display);
  padding: .6rem .25rem;
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: -.02em;
  text-decoration: none;
}
.hm-err__nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Ortak blog (/blog/) ---------- */
.bl-wrap {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}
.bl-head {
  display: flex;
  font-family: var(--hm-display);
  align-items: baseline;
  flex-wrap: wrap;
  font-size: min(calc((100vw - 2.5rem) / 12.6), max(4.2vw, 1.75rem), 5rem);  /* 12.6: "www.meyupcetiner/blog" ~12.4em (NV Anthem Grotesk) */
  line-height: 1;
  white-space: nowrap;
}
.bl-home { font-weight: 400; letter-spacing: -.03em; text-decoration: none; }
.bl-home:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.bl-title {
  margin: 0;
  font-size: 1em;
  font-weight: var(--hm-thin);
  letter-spacing: -.035em;
}
.bl-intro {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  color: var(--hm-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.bl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.5rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0 0 .75rem;
  border-bottom: 1px solid var(--hm-line);
}
.bl-filter[hidden] { display: none; }
.bl-tab {
  appearance: none;
  margin: 0;
  padding: .5rem 0;
  border: 0;
  background: none;
  color: var(--hm-muted);
  font: inherit;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: -.01em;
  cursor: pointer;
}
.bl-tab:hover { color: var(--hm-fg); }
.bl-tab[aria-pressed="true"] {
  color: var(--hm-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.bl-count { margin-left: auto; color: var(--hm-muted); font-size: .8125rem; }
.bl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0 clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bl-list > li[hidden] { display: none; }
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--hm-line);
}
.bl-meta {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  color: var(--hm-muted);
  font-size: .75rem;
  letter-spacing: .02em;
}
.bl-label { color: var(--hm-fg); text-transform: uppercase; letter-spacing: .08em; }
.bl-card h2 {
  margin: .875rem 0 0;
  font-family: var(--hm-display);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.bl-card h2 a { text-decoration: none; }
.bl-card h2 a::after { content: ""; position: absolute; inset: 0; }  /* tüm kart tıklanır */
.bl-card:hover h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bl-card h2 a:focus-visible { outline: none; }
.bl-card:has(a:focus-visible) { outline: 1px solid var(--hm-fg); outline-offset: 6px; }
.bl-card p {
  margin: .75rem 0 0;
  color: var(--hm-muted);
  font-size: .9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.bl-more { margin-top: auto; padding-top: 1rem; font-size: .8125rem; }
.bl-empty { margin: 2rem 0 0; color: var(--hm-muted); }

@media (prefers-reduced-motion: reduce) {
  .hm-slot, .hm-opt { transition: none !important; }
}
.hm-fx__flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.hm-fx__layer { position: fixed; inset: 0; pointer-events: none; opacity: 0; }
.hm-fx__inv { background: #fff; mix-blend-mode: difference; }
.hm-fx__wash { opacity: 1; transform: scale(0); }
