/* Yazı tipleri sunucuda barındırılır (SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* =========================================================
   A. Vahap Dağkılıç
   Renkler: gece mürekkebi, kar, perde kırmızısı, kül
   Motif: “elif duruşlu şair” — tek, dik, inceltilmiş çizgi
   ========================================================= */

:root {
  --ink: #1C1F3A;
  --ink-deep: #12142A;
  --snow: #FFFFFF;
  --paper: #EEF0F4;
  --curtain: #8E1F33;
  --ash: #5F6580;

  --bg: var(--paper);
  --surface: #F8F9FB;
  --fg: var(--ink);
  --muted: var(--ash);
  --accent: var(--curtain);
  --rule: rgba(28, 31, 58, .14);
  --rule-strong: rgba(28, 31, 58, .28);
  --header-bg: rgba(238, 240, 244, .86);

  --f-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-script: "Great Vibes", "Cormorant Garamond", cursive;

  --step--1: .875rem;
  --step-0: 1.0rem;
  --step-1: 1.18rem;
  --step-2: 1.45rem;
  --step-3: clamp(1.7rem, 3vw, 2.1rem);
  --step-4: clamp(2rem, 3.6vw, 2.7rem);
  --step-5: clamp(2.3rem, 4.6vw, 3.4rem);

  --wrap: 72rem;
  --narrow: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.1rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15172B; --surface: #1B1E37; --fg: #E6E8F0; --muted: #A1A6BE; --accent: #D9637A;
    --rule: rgba(230, 232, 240, .12); --rule-strong: rgba(230, 232, 240, .26); --header-bg: rgba(21, 23, 43, .86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15172B; --surface: #1B1E37; --fg: #E6E8F0; --muted: #A1A6BE; --accent: #D9637A;
  --rule: rgba(230, 232, 240, .12); --rule-strong: rgba(230, 232, 240, .26); --header-bg: rgba(21, 23, 43, .86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--step-0)/1.72 var(--f-body);
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--snow); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow, .narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--snow); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Okuma ilerleme çizgisi ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
body:not(.is-reading) .progress { display: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.elif-mark { width: .62rem; height: 2.2rem; fill: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-script { font-family: var(--f-script); font-size: 1.42rem; line-height: .9; margin-bottom: .12rem; }
.logo-caps { font-family: var(--f-display); font-weight: 600; font-size: .74rem; letter-spacing: .34em; margin-left: .1rem; }
.logo-lg .elif-mark { height: 3.4rem; width: 1rem; }
.logo-lg .logo-script { font-size: 2.2rem; }
.logo-lg .logo-caps { font-size: 1.1rem; }

/* ---------- Üst bölüm ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s, color .3s;
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: .88rem; letter-spacing: .01em; position: relative; padding: .3rem 0; opacity: .82; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a[aria-current="page"]::after, .main-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1rem; height: 1px; background: currentColor;
}
.header-tools { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; background: none; border-radius: 50%;
  color: inherit;
}
.icon-btn:hover { background: var(--rule); color: inherit; }
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; flex-direction: column; gap: 6px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.search-bar { border-top: 1px solid var(--rule); padding: .8rem 0; }
.search-bar .wrap { display: flex; gap: .75rem; }
.search-bar input, .search-big input {
  flex: 1; min-width: 0; font: 400 var(--step-1) var(--f-display); font-style: italic; padding: .5rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule-strong); color: inherit;
}
.search-bar input:focus, .search-big input:focus { outline: none; border-color: var(--accent); }
.search-bar button { border: 0; background: none; color: var(--accent); font-weight: 500; }

/* Ana sayfada başlık, gece sahnesinin üzerinde şeffaf */
.is-home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; color: var(--snow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header:not(.is-scrolled):not(.is-open) .elif-mark { fill: #E4798D; }
.is-home .site-header { position: fixed; left: 0; right: 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--snow);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; border-left: 2px solid var(--curtain); padding-left: 1.25rem; }
.mobile-menu nav a { font: 500 clamp(1.6rem, 6.5vw, 2.1rem)/1.38 var(--f-display); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { font-style: italic; color: #E4798D; }
.mobile-mail { color: rgba(255, 255, 255, .7); }
.site-header.is-open { background: var(--ink); color: var(--snow); border-color: transparent; }
.site-header.is-open .elif-mark { fill: #E4798D; }

/* ---------- Düğmeler, bağlantılar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.35rem; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); text-decoration: none; font-size: .95rem; border-radius: 999px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--snow); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-snow { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.btn-snow:hover { background: var(--curtain); border-color: var(--curtain); color: var(--snow); }
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.text-link:hover { color: var(--fg); }
.text-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; font-size: .95rem; border-bottom: 1px solid currentColor; }
.link-snow { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: .1rem; }
.link-snow:hover { color: var(--snow); border-color: var(--snow); }
.badge { display: inline-block; font: 500 .72rem/1 var(--f-body); padding: .3rem .55rem; border-radius: 999px; background: var(--accent); color: var(--snow); vertical-align: middle; }

/* =========================================================
   GİRİŞ SAHNESİ — gece, kar, elif
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(142, 31, 51, .28), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(59, 92, 140, .25), transparent 60%),
    var(--ink-deep);
  color: var(--snow); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.hero-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: stretch; }
.hero-elif {
  width: 3px; border-radius: 3px; background: linear-gradient(to bottom, #E4798D, var(--curtain) 70%, transparent);
  transform-origin: top; animation: elif-draw 1.6s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes elif-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-copy { max-width: 46rem; }
.hero-verse { margin: 0 0 2.6rem; }
.hero-verse p { margin: 0; font: italic 400 clamp(1.5rem, 3.3vw, 2.35rem)/1.38 var(--f-display); }
.hero-verse .vl { display: block; animation: verse-in 1.1s ease both; }
.hero-verse .vl:nth-child(1) { animation-delay: .9s; }
.hero-verse .vl:nth-child(2) { animation-delay: 1.5s; }
.hero-verse .vl:nth-child(3) { animation-delay: 2.1s; }
.hero-verse .vl:nth-child(4) { animation-delay: 2.7s; }
@keyframes verse-in { from { opacity: 0; filter: blur(6px); transform: translateY(.3em); } to { opacity: 1; filter: none; transform: none; } }
.hero-verse footer { margin-top: 1rem; animation: verse-in 1s ease 3.2s both; }
.hero-verse footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
.hero-verse footer a::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.hero-verse footer a:hover { color: var(--snow); }
.hero-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .5em; margin: 0 0 .4rem; animation: verse-in 1s ease .4s both; }
.hn-script { font: 400 clamp(1.9rem, 4vw, 2.7rem)/1 var(--f-script); }
.hn-caps { font: 600 clamp(.95rem, 1.8vw, 1.2rem)/1 var(--f-display); letter-spacing: .36em; text-transform: uppercase; }
.hero-roles { color: rgba(255, 255, 255, .7); margin-bottom: 1.8rem; animation: verse-in 1s ease .6s both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; animation: verse-in 1s ease .8s both; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 1.4rem; font-size: .85rem; color: rgba(255, 255, 255, .55); margin: 0; }

/* =========================================================
   BÖLÜMLER
   ========================================================= */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-title { font-size: var(--step-3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head .section-title { margin: 0; }

/* ---------- Günün şiiri ---------- */
.daily-grid { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.daily-date { font-family: var(--f-display); font-style: italic; font-size: var(--step-1); color: var(--accent); margin-bottom: .3rem; }
.daily-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.today-lit { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.today-lit h3 { font-size: var(--step-1); }
.today-lit ul { list-style: none; padding: 0; margin: 0; }
.today-lit li { padding: .25rem 0; }
.poem-sheet { position: relative; padding-left: clamp(1.5rem, 4vw, 3rem); }
.sheet-elif, .poem-body-wrap::before {
  content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.poem-title { font-size: var(--step-3); margin-bottom: 1.4rem; }
.poem-title a { text-decoration: none; }
.sheet-foot { margin-top: 2rem; }

/* ---------- Şiir dizgisi ---------- */
.poem { font-family: var(--f-display); }
.poem .stanza { margin: 0 0 1.35em; }
.poem .ln { display: block; padding-left: 1.4em; text-indent: -1.4em; }
.poem-md { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.72; }
.poem-lg { font-size: calc(clamp(1.14rem, 1.7vw, 1.3rem) * var(--fs, 1)); line-height: 1.78; letter-spacing: .005em; transition: font-size .2s; }
.poem-sm { font-size: 1.08rem; line-height: 1.6; color: var(--muted); }
.poem-lg .ln.is-speaking { color: var(--accent); }

/* ---------- Şerit ---------- */
.ribbon { padding: 2.2rem 0; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.ribbon-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-row + .ribbon-row { margin-top: .6rem; }
.ribbon-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee var(--dur, 90s) linear infinite; }
.ribbon-row.is-reverse .ribbon-track { animation-direction: reverse; }
.ribbon-row:hover .ribbon-track, .ribbon-row:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon-track a { font: italic 400 clamp(1.3rem, 2.6vw, 1.85rem)/1.2 var(--f-display); text-decoration: none; white-space: nowrap; }
.ribbon-row.is-reverse .ribbon-track a { font-style: normal; color: var(--muted); }
.ribbon-row.is-reverse .ribbon-track a:hover { color: var(--accent); }
.ribbon-sep { width: .45rem; height: 1.7rem; fill: var(--accent); opacity: .7; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kalemden ---------- */
.lead-post { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; margin-bottom: 3rem; }
.lead-post.has-cover { grid-template-columns: 1.2fr 1fr; }
.lead-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.lead-text time, .post-rows time { font-size: .85rem; color: var(--muted); }
.lead-text h3 { font-size: var(--step-3); margin: .4rem 0 .9rem; }
.lead-text h3 a, .post-rows h3 a { text-decoration: none; }
.lead-text p { font-size: 1.12rem; max-width: 36rem; }
.post-rows { list-style: none; margin: 0; padding: 0; }
.post-rows li { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.post-rows li:nth-child(even) { padding-left: clamp(0rem, 8vw, 8rem); }
.post-rows h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.post-rows p { margin: 0; color: var(--muted); max-width: 40rem; }

/* ---------- Zaman tüneli (duvar) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .35rem; top: .6rem; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--rule) 30%, var(--rule)); }
.tl-item { position: relative; padding: 0 0 3rem; }
.tl-item::before { content: ""; position: absolute; left: -1.95rem; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-poem::before { background: var(--accent); }
.tl-kind { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; display: flex; gap: .6rem; }
.tl-kind time::before { content: ""; display: inline-block; width: 1rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.tl-item h2 { font-size: var(--step-2); margin-bottom: .6rem; }
.tl-item h2 a { text-decoration: none; }
.tl-img { margin: 1rem 0; border-radius: 3px; max-height: 34rem; width: auto; cursor: zoom-in; }
.tl-actions { display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; margin-top: .8rem; }
.tl-actions a { color: var(--muted); }
.timeline-compact .tl-item { padding-bottom: 1.8rem; }
.tl-note { display: block; text-decoration: none; font: italic 400 1.18rem/1.5 var(--f-display); }
.tl-item time { color: var(--muted); font-size: .85rem; display: block; margin-bottom: .3rem; }
.tl-kind time { display: inline; margin: 0; }

/* ---------- Kitap rafı ---------- */
.shelf { position: relative; overflow-x: auto; overflow-y: hidden; padding: 2rem var(--gutter) 0; scrollbar-width: thin; cursor: grab; scroll-snap-type: x proximity; }
.shelf.is-drag { cursor: grabbing; scroll-snap-type: none; }
.shelf-row { display: flex; align-items: flex-end; gap: 4px; width: max-content; margin-inline: auto; padding: 0 1rem; min-height: 300px; }
.spine {
  --c: #8E1F33; position: relative; flex: none; width: var(--w); height: var(--h); scroll-snap-align: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .14) 18%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18) 92%, rgba(0, 0, 0, .35)),
    var(--c);
  color: #FBF7F2; text-decoration: none; border-radius: 2px 2px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .9rem 0 .6rem;
  transition: transform .35s cubic-bezier(.3, .7, .2, 1);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .18), inset 0 -10px 0 rgba(0, 0, 0, .12);
}
.spine:hover, .spine:focus-visible { transform: translateY(-14px); color: #fff; }
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 1rem/1.1 var(--f-display); letter-spacing: .02em; max-height: calc(var(--h) - 3.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spine-mark { font: 600 .55rem/1 var(--f-display); letter-spacing: .2em; opacity: .7; }
.shelf-board { height: 14px; margin: 0 calc(var(--gutter) * -1); background: linear-gradient(var(--rule-strong), var(--rule)); }

/* ---------- Takvim ve klasik dize ---------- */
.almanac-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.quote-block { margin: 0; }
.quote-block blockquote { margin: 0 0 1rem; font: italic 400 clamp(1.35rem, 2.4vw, 1.75rem)/1.42 var(--f-display); transition: opacity .35s; }
.quote-block blockquote span { display: block; }
.quote-block figcaption { color: var(--muted); margin-bottom: 1.4rem; }
.quote-block figcaption::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.quote-block.is-changing blockquote, .quote-block.is-changing figcaption { opacity: 0; }
.cal-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.cal-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.cal-list time { font-family: var(--f-display); font-style: italic; font-size: 1.12rem; color: var(--accent); }
.cal-list small { display: block; color: var(--muted); }
.cal-list li.is-today { background: linear-gradient(90deg, rgba(142, 31, 51, .08), transparent); }
.cal-month { margin-bottom: 2.5rem; }
.cal-month h2 { font-size: var(--step-2); }

/* =========================================================
   İÇ SAYFALAR
   ========================================================= */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: var(--step-5); margin-bottom: .25em; font-weight: 400; letter-spacing: -.01em; }
.page-hero-tight h1 { font-size: var(--step-4); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.list-wrap { padding-bottom: 5rem; }
.empty { padding: 3rem 0; color: var(--muted); font-style: italic; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--accent); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); }

/* ---------- Şiir dizini ---------- */
.filters { margin-bottom: 2rem; }
.letters { display: flex; flex-wrap: wrap; gap: .15rem; margin-bottom: 1.2rem; font-family: var(--f-display); font-size: 1.25rem; }
.letters a, .letters span { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.3rem; padding: 0 .4rem; text-decoration: none; border-radius: 4px; }
.letters span { color: var(--rule-strong); }
.letters a:hover { background: var(--rule); color: var(--fg); }
.letters a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.filter-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: baseline; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.tags a, .sort a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.tags a[aria-current="true"], .sort a[aria-current="true"] { color: var(--accent); text-decoration: underline; }
.sort { margin: 0; font-size: .95rem; display: flex; gap: .8rem; color: var(--muted); }
.poem-index { list-style: none; margin: 0; padding: 0; columns: 2 26rem; column-gap: clamp(2rem, 6vw, 5rem); }
.poem-index li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--rule); }
.poem-index a { display: block; padding: 1rem 0; text-decoration: none; flex: 1; min-width: 0; }
.pi-title { display: block; font: 500 1.3rem/1.25 var(--f-display); transition: color .2s; }
.pi-first { display: block; font: italic 400 .98rem/1.45 var(--f-display); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poem-index a:hover .pi-title { color: var(--accent); }
.poem-index time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 2.5rem 0 0; font-size: .95rem; }
.pager a { color: var(--accent); }
.pager.is-loading { opacity: .5; }
.load-more { display: flex; justify-content: center; padding-top: 2.5rem; }

/* ---------- Şiir sayfası ---------- */
.poem-head { padding-top: clamp(3rem, 7vw, 5rem); text-align: center; }
.poem-head .crumbs { margin-bottom: 1.4rem; }
.poem-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.18; margin: 0 auto .7rem; max-width: 30rem; text-wrap: balance; }
.poem-head .meta { justify-content: center; font-size: .82rem; letter-spacing: .02em; }
.poem-head::after { content: ""; display: block; width: 2px; height: 2.6rem; margin: 2rem auto 0; border-radius: 2px; background: linear-gradient(var(--accent), transparent); }
.poem-figure { margin: 2rem auto; }
.poem-figure img { border-radius: 3px; }
.poem-body-wrap { position: relative; padding-top: 1.8rem; padding-bottom: 2rem; max-width: calc(32rem + var(--gutter) * 2); }
.poem-body-wrap::before { display: none; }
.reader-tools { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 2.4rem; }
.reader-tools button { border: 0; background: none; padding: .2rem 0; font-size: .78rem; letter-spacing: .02em; color: var(--muted); border-bottom: 1px solid transparent; }
.reader-tools button:hover, .reader-tools button[aria-pressed="true"] { color: var(--accent); border-color: currentColor; }
.poem-sign { font: 400 1.45rem/1 var(--f-script); color: var(--accent); margin: 2.2rem 0 2rem; text-align: right; }
.poem-note { border-left: 2px solid var(--rule-strong); padding: .3rem 0 .3rem 1.2rem; font-style: italic; color: var(--muted); margin: 0 0 2rem; }
.in-book { color: var(--muted); }
.in-book a { color: var(--accent); }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2rem 0 1.2rem; }
.like { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--rule-strong); background: none; padding: .35rem .85rem; border-radius: 999px; font-size: .84rem; transition: border-color .2s, color .2s; }
.like svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), fill .2s; }
.like:hover { border-color: var(--accent); color: var(--accent); }
.like[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.like[aria-pressed="true"] svg { fill: var(--accent); transform: scale(1.15); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: .82rem; }
.share-label { color: var(--muted); }
.share a, .share button { color: var(--fg); text-decoration: none; background: none; border: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
.share a:hover, .share button:hover { color: var(--accent); border-color: var(--accent); }
.tag-line { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
.tag-line a, .tag-line span { color: var(--muted); text-decoration: none; }
.tag-line a::before, .tag-line span::before { content: "#"; opacity: .5; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 3rem; }
.prevnext a { text-decoration: none; font: 500 1.25rem/1.25 var(--f-display); }
.prevnext a span { display: block; font: 400 .85rem/1.6 var(--f-body); color: var(--muted); margin-bottom: .2rem; }
.pn-next { text-align: right; grid-column: 2; }
.related { padding-block: 3rem; border-top: 1px solid var(--rule); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.related a { display: block; text-decoration: none; padding: 1rem 0; border-top: 2px solid var(--fg); }
.related strong { display: block; font: 500 1.22rem/1.25 var(--f-display); margin-bottom: .35rem; }
.related span { font: italic .98rem/1.45 var(--f-display); color: var(--muted); }
.related a { border-top-width: 1px; }

/* ---------- Yazılar ---------- */
.essay-list { display: flex; flex-direction: column; }
.essay { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding: 2.5rem 0; border-top: 1px solid var(--rule); align-items: center; }
.essay.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.essay.has-cover:nth-child(even) .essay-img { order: 2; }
.essay-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.essay h2 { font-size: var(--step-2); margin: .45rem 0 .7rem; }
.essay h2 a { text-decoration: none; }
.essay:not(.has-cover) .essay-text { max-width: 44rem; }
.essay:not(.has-cover):nth-child(even) .essay-text { margin-left: auto; }

.post-head { padding-top: clamp(3rem, 8vw, 5.5rem); }
.post-head h1 { font-size: var(--step-4); font-weight: 500; text-wrap: balance; }
.post-cover { margin: 2rem auto 3rem; max-width: 64rem; padding-inline: var(--gutter); }
.post-cover img { width: 100%; border-radius: 3px; }
.prose { font-size: 1.04rem; line-height: 1.82; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 2px solid var(--accent); font: italic var(--step-1)/1.6 var(--f-display); }
.prose img { margin: 2rem auto; border-radius: 3px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 2rem 0; }
.prose a { color: var(--accent); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-size-large { font-size: 1.3em; }
.prose-note { font: 400 1.2rem/1.62 var(--f-display); }
.is-note .post-head { padding-bottom: 0; }

/* ---------- Yorumlar ---------- */
.comments { padding: 3rem 0 5rem; }
.comments h2 { font-size: var(--step-2); }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.comment.is-new { animation: verse-in .6s ease both; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.comment-head time { font-size: .82rem; color: var(--muted); }
.comment-body { overflow-wrap: anywhere; }
.comment.is-author > .comment-body { font-family: var(--f-display); font-size: 1.2rem; font-style: italic; }
.comment-children { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--accent); }
.comment-children .comment { border-top: 0; padding: .6rem 0; }
.reply-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: .85rem; margin-top: .4rem; }
.comment-form { display: grid; gap: 1rem; padding: 1.8rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.comment-form label, .composer label { display: grid; gap: .35rem; font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: inherit; background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 4px; padding: .7rem .85rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(142, 31, 51, .15); }
textarea { resize: vertical; min-height: 6rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-msg { font-size: .92rem; margin: 0; }
.form-msg.is-err { color: var(--accent); }
.replying { margin: 0; font-size: .9rem; }
.replying button { border: 0; background: none; color: var(--accent); padding: 0; margin-left: .4rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Duvar yazma kutusu ---------- */
.composer { margin-bottom: 3rem; padding: 1.4rem; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface); }
.composer textarea { border: 0; background: none; padding: 0; font: italic 1.35rem/1.5 var(--f-display); min-height: 5rem; box-shadow: none; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: .6rem; }
.composer-foot .btn { margin-left: auto; }
.file-pick { position: relative; cursor: pointer; color: var(--accent); font-size: .92rem; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.composer-preview { max-height: 4rem; border-radius: 4px; }

/* ---------- Kitaplar ---------- */
.book-list { padding-bottom: 5rem; }
.book-row { display: grid; grid-template-columns: 11rem 1fr; gap: clamp(1.5rem, 5vw, 4rem); padding: 2.6rem 0; border-top: 1px solid var(--rule); align-items: center; }
.book-row:nth-child(even) { grid-template-columns: 1fr 11rem; }
.book-row:nth-child(even) .book-row-cover { order: 2; }
.book-row-text { max-width: 40rem; }
.book-row:nth-child(even) .book-row-text { margin-left: auto; text-align: right; }
.book-row:nth-child(even) .meta { justify-content: flex-end; }
.book-row h2 { font-size: var(--step-2); margin: .35rem 0; }
.book-row h2 a { text-decoration: none; }
.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 10px 14px 30px -12px rgba(18, 20, 42, .45); transition: transform .4s; }
.book-row-cover:hover .book-cover { transform: rotate(-2deg) translateY(-4px); }
.book-cover-gen {
  --c: #8E1F33; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem .9rem 1rem 1.2rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .1) 6%, transparent 12%), var(--c); color: #FBF7F2; overflow: hidden;
}
.book-cover-gen::after { content: ""; position: absolute; right: 18%; top: 12%; bottom: 12%; width: 2px; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.bc-author { font: 600 .62rem/1.2 var(--f-display); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.bc-title { font: 500 1.2rem/1.15 var(--f-display); max-width: 75%; }
.bc-genre { font: italic .78rem/1 var(--f-display); opacity: .8; }
.book-cover.is-large .bc-title { font-size: 1.9rem; }
.book-cover.is-large .bc-author { font-size: .8rem; }
.book-page { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 5rem); align-items: start; }
.book-visual { position: sticky; top: calc(var(--header-h) + 2rem); }
.book-info h1 { font-size: var(--step-4); text-wrap: balance; }
.book-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.book-facts dt { font-size: .8rem; color: var(--muted); }
.book-facts dd { margin: 0; font-family: var(--f-display); font-size: 1.2rem; }
.buy { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0; }
.plain-list { padding-left: 1.2rem; }

/* ---------- Galeri ---------- */
.gallery { columns: 3 16rem; column-gap: 1.2rem; }
.gallery figure { margin: 0 0 1.2rem; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.gallery img { width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery button:hover img { transform: scale(1.035); }
.gallery figcaption { font: italic .98rem/1.4 var(--f-display); color: var(--muted); padding-top: .45rem; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 13, 28, .94); display: grid; place-items: center; padding: 4rem 1rem 5rem; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 2px; }
.lightbox p { position: absolute; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); left: 1rem; right: 1rem; text-align: center; color: rgba(255, 255, 255, .8); font: italic 1.1rem var(--f-display); margin: 0; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 2rem; width: 3rem; height: 3rem; }
.lb-close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Hakkında ---------- */
.about-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.about-grid { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; filter: grayscale(.25) contrast(1.05); }
.portrait-placeholder { aspect-ratio: 4 / 5; background: var(--ink); display: grid; place-items: center; border-radius: 2px; }
.elif-big { width: 2.2rem; height: 9rem; fill: #E4798D; }
.about-intro h1 { display: flex; flex-direction: column; gap: .2em; margin-bottom: 1rem; }
.about-intro .hn-script { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.about-intro .hn-caps { font-size: clamp(1.05rem, 2vw, 1.4rem); }
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 6vw, 5rem); padding-bottom: 5rem; align-items: start; }
.prose-bio { max-width: 40rem; }
.prose-bio > p:first-child { font: 400 1.28rem/1.6 var(--f-display); }
.prose-bio > p:first-child::first-letter { float: left; font: 500 3.6rem/.8 var(--f-display); color: var(--accent); padding: .35rem .5rem 0 0; }
.works { position: sticky; top: calc(var(--header-h) + 2rem); border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.works h2 { font-size: var(--step-2); }
.works h3 { font: 500 .85rem/1.4 var(--f-body); color: var(--muted); margin: 1.2rem 0 .3rem; }
.works ul { list-style: none; padding: 0; margin: 0; }
.works li { padding: .15rem 0; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.35; }
.works a { text-decoration: none; }
.works-mail { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.works-mail a { color: var(--accent); }

/* ---------- İletişim, arama ---------- */
.contact { padding: clamp(4rem, 12vw, 9rem) 0; }
.contact h1 { font-size: var(--step-5); font-weight: 400; }
.contact-mail { display: inline-block; font: italic 400 clamp(1.4rem, 4vw, 2.3rem)/1.2 var(--f-display); color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; margin: 1.5rem 0 1rem; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--fg); }
.search-big { display: flex; gap: 1rem; align-items: center; }
.search-big input { font-size: var(--step-2); }
.result-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.result-list a { display: block; padding: 1rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.result-list strong { display: block; font: 500 1.22rem/1.3 var(--f-display); }
.result-list span { color: var(--muted); font-size: .95rem; }
mark { background: rgba(142, 31, 51, .16); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .78); padding: 4.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .elif-mark { fill: #E4798D; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-sign p { margin-top: 1.4rem; max-width: 24rem; font-size: .95rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; align-content: start; font-size: .95rem; }
.footer-contact p { margin: 0 0 .4rem; font-size: .9rem; }
.footer-mail { font: italic 1.3rem var(--f-display); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); overflow-wrap: anywhere; }
.footer-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem !important; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 150%); background: var(--fg); color: var(--bg); padding: .7rem 1.2rem; border-radius: 999px; font-size: .9rem; z-index: 95; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* =========================================================
   MOBİL
   ========================================================= */
@media (max-width: 64rem) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 52rem) {
  :root { --header-h: 4rem; }
  .daily-grid, .almanac-grid, .about-grid, .about-body, .book-page { grid-template-columns: 1fr; }
  .daily-side, .works, .book-visual { position: static; }
  .book-visual { max-width: 15rem; }
  .lead-post.has-cover, .essay.has-cover { grid-template-columns: 1fr; }
  .essay.has-cover:nth-child(even) .essay-img { order: 0; }
  .post-rows li { grid-template-columns: 1fr; gap: .2rem; }
  .post-rows li:nth-child(even) { padding-left: 0; }
  .book-row, .book-row:nth-child(even) { grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: start; }
  .book-row:nth-child(even) .book-row-cover { order: 0; }
  .book-row:nth-child(even) .book-row-text { margin-left: 0; text-align: left; }
  .book-row:nth-child(even) .meta { justify-content: flex-start; }
  .book-row h2 { font-size: var(--step-2); }
  .book-row .bc-title { font-size: .9rem; }
  .book-row .bc-author { font-size: .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .about-portrait { max-width: 16rem; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; }
  .poem-index { columns: 1; }
  .hero-verse p { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .hero-foot { position: static; padding-top: 2.5rem; }
  .hero { padding-bottom: 2rem; }
  .comment-form { padding: 1.2rem; }
  .shelf-row { min-height: 250px; }
  .spine { --h-scale: .82; height: calc(var(--h) * .82); width: calc(var(--w) * .85); }
  .spine-title { max-height: calc(var(--h) * .82 - 3.2rem); font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ribbon-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .ribbon-row { -webkit-mask-image: none; mask-image: none; }
  .ribbon-row.is-reverse { display: none; }
}

@media print {
  .site-header, .site-footer, .comments, .actions-row, .reader-tools, .prevnext, .related, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
.toast:empty { visibility: hidden; }
