/* Palatino'su olmayan cihazlar (ör. Android) için eşdeğeri: TeX Gyre Pagella, GUST Font License (fonts/GUST-FONT-LICENSE.txt).
   Yalnızca listede önceki yazı tipleri bulunamazsa indirilir; oklar gibi Palatino’da olmayan simgeler kapsam dışı
   bırakıldı ki Palatino’lu cihazlar bu dosyayı hiç indirmesin. */
@font-face { font-family: 'Pagella'; src: local('TeX Gyre Pagella'), local('TeXGyrePagella-Regular'), url('/fonts/pagella-regular.woff2?v=1') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-017F, U+0218-021B, U+02C6-02DC, U+0300-0308, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Pagella'; src: local('TeX Gyre Pagella Bold'), local('TeXGyrePagella-Bold'), url('/fonts/pagella-bold.woff2?v=1') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-017F, U+0218-021B, U+02C6-02DC, U+0300-0308, U+2000-206F, U+20AC, U+2122, U+2212; }
:root {
  color-scheme: dark;
  --bg: #0c0b0a;
  --surface: #13120f;
  --raise: #1a1814;
  --ink: #fff;
  --soft: #fff;
  --muted: #fff;
  --line: #262420;
  --accent: #fff;
  --danger: #d98a7a;
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', 'Pagella', serif;
  --sans: var(--serif);
  --wrap: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html *, html *::before { font-style: normal !important; font-synthesis: none; }
.body a, .card-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.embed { margin: 0 0 32px; }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; }
.embed .btn { margin-top: 10px; }
.reader-bar .nav { align-items: center; }
.reader-start { display: flex; align-items: center; min-width: 0; gap: 6px; }
.reader-start .mark { font-size: 20px; }
.reader-date { font-size: 14px; margin-right: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.latest-preview { padding-bottom: 0; }
.latest-preview .card { border-top: 0; padding-top: 16px; }
@media (max-width: 600px) { .reader-date { font-size: 12px; margin-right: 0; } .reader-bar .btn.ghost { padding: 0 10px; } }
@media (max-width: 600px) {
  .reader-start .mark { font-size: 16px; }
  .reader-start .reader-back-label { display: none; }
}

/* ---- iki sütun: içerik + sağ kenar çubuğu */
.wrap.wide { max-width: calc(1064px + var(--gutter) * 2); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.layout .wrap { padding: 0; max-width: none; margin: 0; }
.side { position: sticky; top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: clamp(56px, 8vw, 96px) 4px 48px; }
.side::-webkit-scrollbar { display: none; }
.side section + section { margin-top: 44px; }
.side h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.links { list-style: none; margin: 0; padding: 0; }
.links a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease); }
.links a:hover { padding-left: 4px; }
.links svg { width: 15px; height: 15px; flex: none; }
.tree details { font-size: 16px; }
.tree summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ''; flex: none; border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .2s var(--ease); }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.tree .months { padding-left: 16px; }
.tree ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; }
.tree li a { display: inline-block; background: none; border: 0; padding: 4px 0; min-height: 32px; text-align: left; font-size: 15px; line-height: 1.4; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.tree li a:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .latest-preview.enter-once { animation: site-arrive 360ms ease-out; }
  /* ilk açılış: üst çubuk, içerik ve kenar sırayla yumuşakça gelir */
  html.arrive .top > .wrap { animation: arrive-fade .7s ease-out both; }
  html.arrive #site-side { animation: arrive-fade 1s .35s ease-out both; }
  html.arrive #main > * { animation: arrive-rise .9s var(--ease) both; }
  html.arrive #main > :nth-child(1) { animation-delay: .1s; }
  html.arrive #main > :nth-child(2) { animation-delay: .2s; }
  html.arrive #main > :nth-child(3) { animation-delay: .3s; }
  html.arrive #main > :nth-child(n+4) { animation-delay: .4s; }
  /* doğrudan yazı bağlantısı: okuyucu açılınca içerik oradan yükselir, sunucu kopyası yalnızca gecikirse görünür */
  html.arrive #main > #server-post { animation: arrive-fade .6s .7s both; }
  html.arrive .reader.swap .reader-bar { animation: arrive-fade .7s ease-out both; }
  html.arrive .reader.swap #reader-body > * { animation: arrive-rise .9s var(--ease) .1s both; }
  html.arrive #main .card:nth-child(-n+8) { animation: arrive-rise .9s var(--ease) both; animation-delay: calc(.25s + var(--n, 0) * 70ms); }
  html.arrive #main .card:nth-child(2) { --n: 1; } html.arrive #main .card:nth-child(3) { --n: 2; }
  html.arrive #main .card:nth-child(4) { --n: 3; } html.arrive #main .card:nth-child(5) { --n: 4; }
  html.arrive #main .card:nth-child(6) { --n: 5; } html.arrive #main .card:nth-child(7) { --n: 6; }
  html.arrive #main .card:nth-child(8) { --n: 7; }
  @keyframes arrive-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes arrive-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  /* içerik gelene kadar ince bir yükleme çizgisi */
  #main:empty::before { content: ''; display: block; width: 64px; height: 1px; margin: 32vh auto; background: #fff; opacity: 0; animation: arrive-fade .4s .3s ease-out forwards, loading-line 1.2s .3s ease-in-out infinite; }
  @keyframes loading-line { 0%, 100% { transform: scaleX(.25); } 50% { transform: scaleX(1); } }
  @keyframes site-arrive { from { opacity: .35; } to { opacity: 1; } }
  @keyframes settle-in { from { opacity: .85; } to { opacity: 1; } }
  @supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) and selector(details::details-content) {
    .tree { interpolate-size: allow-keywords; }
    .tree details::details-content {
      block-size: 0;
      opacity: 0;
      overflow: clip;
      transition: block-size 180ms var(--ease), opacity 150ms ease, content-visibility 180ms allow-discrete;
    }
    .tree details[open]::details-content { block-size: auto; opacity: 1; }
  }
  @supports not ((interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) and selector(details::details-content)) {
    .tree details[open] > :is(.months, ul) { animation: settle-in 160ms ease-out; }
  }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; max-height: none; overflow: visible; padding: 48px 0 64px; border-top: 1px solid var(--line); }
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
/* hafif doku: tek bir sessiz ışık, gösterişsiz */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(1200px 600px at 50% -200px, rgba(255,255,255,.045), transparent 70%);
}
::selection { background: rgba(255,255,255,.24); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
img, video { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; font: 500 14px var(--sans); border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---- üst çubuk */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12,11,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font: italic 500 24px/1 var(--serif); letter-spacing: .01em; text-decoration: none; }
.mark span { color: var(--accent); }

/* ---- butonlar: tek sistem */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font: 500 14px/1 var(--sans); letter-spacing: .01em; color: var(--soft); text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:hover { color: var(--ink); border-color: #3a3730; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; color: var(--bg); }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---- giriş animasyonu (bir kez) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-enter] > * { animation: rise .9s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(n+5) { animation-delay: .32s; }

/* ---- son paylaşım */
.intro { padding: clamp(56px, 10vw, 112px) 0 20px; }
.on-this-day { margin: 0 0 22px; color: var(--muted); font-size: 14px; font-style: normal; }
.on-this-day h2 { margin: 0 0 4px; font-size: inherit; font-weight: 600; }
.on-this-day ul { margin: 0; padding: 0; list-style: none; }
.on-this-day a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.eyebrow .new { color: var(--accent); }
.reader article h2 {
  font-weight: 500; font-size: clamp(23px, 2.8vw, 28px); line-height: 1.25;
  margin: 14px 0 24px; text-wrap: balance;
}
.reader article.untitled > div { margin-top: 28px; }
.body { white-space: pre-wrap; overflow-wrap: break-word; margin: 0; color: var(--soft); }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
.prose .body { text-wrap: pretty; }
.figure { margin: 0 0 32px; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.figure img, .figure video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #000; }
.figure.zoom img { cursor: zoom-in; transition: transform .6s var(--ease); }
.figure.zoom:hover img { transform: scale(1.02); }

/* ---- müzik çalar */
.player { display: grid; grid-template-columns: 56px 1fr; gap: 8px 18px; align-items: center; }
.player .play { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: var(--bg); display: grid; place-items: center; transition: transform .15s var(--ease); }
.player .play:hover { transform: scale(1.05); }
.player .play:active { transform: scale(.96); }
.player .play svg { width: 20px; height: 20px; }
.wave { position: relative; height: 84px; cursor: pointer; touch-action: none; }
.wave canvas { display: block; width: 100%; height: 100%; }
.wave .wt { position: absolute; top: calc(70% - 20px); font-size: 12px; line-height: 1.4; padding: 1px 5px; background: rgba(12,11,10,.85); font-variant-numeric: tabular-nums; pointer-events: none; }
.wave .wt.cur { left: 0; }
.wave .wt.dur { right: 0; }
.player .volume { grid-column: 2; justify-self: end; }
.volume { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.volume svg { width: 18px; height: 18px; flex: none; }
.vol { width: 96px; accent-color: #fff; cursor: pointer; }
.blocks { display: flex; flex-direction: column; gap: 28px; }
.blocks > * { margin: 0 !important; }
.card-media.photo { aspect-ratio: auto; background: none; }
.card-media.photo img { height: auto; object-fit: contain; }
.figure figcaption { padding: 12px 2px 0; font-size: 15px; line-height: 1.5; background: var(--bg); }
.post-note-line { margin: 0 0 8px; }
.post-note-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border: 1px solid #ffffff66; border-radius: 999px; background: #ffffff0f; color: #fff; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.post-note-toggle:hover, .post-note-toggle:focus-visible { border-color: #fff; background: #ffffff1f; }
.post-note-toggle[aria-expanded="true"] { border-color: #fff; background: #fff; color: var(--bg); }
.post-note-toggle.inline-note { min-height: 0; margin: 0 1px; padding: 0 6px; gap: 0; border-radius: 4px; font-size: .72em; line-height: 1.5; vertical-align: super; }
.post-note-text { display: block; margin: 10px 0 14px; padding: 10px 16px; border-left: 3px solid #fff; border-radius: 0 var(--r) var(--r) 0; background: #ffffff0d; color: #fff; font-size: 17px; line-height: 1.55; white-space: normal; text-indent: 0; overflow-wrap: anywhere; }
.post-note-text a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- akış: önizleme kartları */
.feed { padding: 24px 0 120px; }
.card {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 40px 0; position: relative; color: inherit; isolation: isolate;
}
.card::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -.5); background: var(--surface); opacity: 0; border-radius: var(--r); transition: opacity .25s; z-index: -1; }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card > span { display: block; }
.card-head { display: flex !important; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.card-title { font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; line-height: 1.2; min-width: 0; text-wrap: balance; }
.card-kind { font-size: 15px; white-space: nowrap; flex: none; }
.reading-time { white-space: nowrap; }
@media (max-width: 600px) {
  .card-kind { text-align: right; }
  .card-kind .reading-time { display: block; }
  .card-kind .reading-time-separator { display: none; }
}
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.02); }
.card-media .badge { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(12,11,10,.7); display: grid; place-items: center; }
.card-media .badge svg { width: 20px; height: 20px; margin-left: 3px; }
.card-audio { display: flex !important; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; font-size: 16px; font-style: italic; }
.card-audio svg { width: 20px; height: 20px; flex: none; }
.card-text { white-space: pre-line; overflow-wrap: break-word; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card.poem .card-text { font-style: italic; -webkit-line-clamp: 4; line-clamp: 4; }
.card .search-snippet { white-space: pre-line; overflow-wrap: anywhere; }
/* aramada eşleşen kelime: koyu zeminde belirgin beyaz vurgu */
.search-snippet mark { background: #fff; color: #0c0b0a; font-style: normal; font-weight: 700; padding: 0 .18em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card-warning { margin-bottom: 8px; overflow-wrap: anywhere; }
.reader-warning { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); overflow-wrap: anywhere; }
.reader-warning p { margin: 0 0 12px; }
.card-more { margin-top: 14px; font-size: 15px; font-style: italic; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.card:hover .card-more { text-decoration-color: currentColor; }
.empty { padding: 48px 0; font-style: italic; text-align: center; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: clamp(40px, 7vw, 72px) 0 8px; }
.filter-bar h1 { font: italic 500 clamp(28px, 4vw, 36px)/1.1 var(--serif); margin: 0; }

/* ---- menü */
.left { display: flex; align-items: center; gap: 6px; margin-left: -12px; }
.burger { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s; }
.burger:hover { background: var(--raise); }
.burger svg { width: 22px; height: 22px; }
.drawer { margin: 0; height: 100dvh; width: min(340px, 86vw); background: var(--surface); border-right: 1px solid var(--line); }
.drawer[open] { animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-in { display: flex; flex-direction: column; height: 100%; padding: 12px 28px 28px; }
.drawer .sheet-head { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.drawer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; width: 100%; min-height: 56px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 26px; font-style: italic; text-align: left; transition: padding-left .25s var(--ease); }
.menu-item:hover { padding-left: 6px; }
.menu-item small { font-size: 14px; font-style: normal; font-variant-numeric: tabular-nums; }
.menu-item[aria-current="true"] span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---- boş site */
.blank { padding: clamp(96px, 18vh, 200px) 0; }
.blank h1 { font: italic 500 clamp(44px, 8vw, 80px)/1.02 var(--serif); margin: 0 0 20px; letter-spacing: -.02em; text-wrap: balance; }
.blank p { color: var(--soft); margin: 0 0 36px; max-width: 30ch; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 13px var(--sans); color: var(--muted); }
footer button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; min-height: 24px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
footer button:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---- diyaloglar */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6,5,4,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: pop .35s var(--ease); }
dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; transition: color .2s, background-color .2s; }
.close:hover { color: var(--ink); background: var(--raise); }
.close svg { width: 18px; height: 18px; }


.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font: 500 12px var(--sans); letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; outline: none; transition: border-color .2s; font-size: 20px; }
.input:focus { border-color: #8a8578; }
.input::placeholder { color: #5b564d; }
textarea.input { min-height: 200px; resize: vertical; line-height: 1.6; }
kbd { font: 500 11px var(--sans); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.error { color: var(--danger); font: 400 13px var(--sans); margin: 8px 0 0; min-height: 1em; }

/* ---- okuma görünümü */
.reader { width: 100vw; height: 100dvh; overflow-y: auto; background: var(--bg); overscroll-behavior: contain; }
.reader::backdrop { background: var(--bg); }
/* sunucudan gelen yazı okuyucuya geçerken ekran yerinde kalır */
.reader.swap[open], .reader.swap[open]::backdrop { animation: none; }
.reader-bar { position: sticky; top: 0; z-index: 2; background: rgba(12,11,10,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.reader-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 8px; }
.reader-bar .nav { display: flex; gap: 4px; }
.reader article { padding: clamp(40px, 8vw, 88px) 0 120px; }
.reader .body { font-size: clamp(18px, 2vw, 20px); color: var(--ink); }
/* şiir: her dize ayrı satır; dar ekranda sığmayan dizenin devamı içeriden başlar, dize bütünlüğü belli olur */
.poem .body .ln { display: block; padding-left: 1.4em; text-indent: -1.4em; }

.lightbox { width: 100%; height: 100dvh; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); cursor: zoom-out; }
.lightbox[open] { display: grid; }
.lightbox-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 0; touch-action: pan-y pinch-zoom; }
.lightbox[data-multiple] .lightbox-stage { padding-inline: 44px; }
/* görsel sahnenin kesin ölçüsüne göre sınırlanır: büyük ya da kare fotoğraflar da ekrana sığar, düğmeler görünür kalır */
.lightbox-stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox[data-multiple] .lightbox-stage img { inset: 0 44px; max-width: calc(100% - 88px); }
.lightbox::backdrop { background: rgba(6,5,4,.95); }
.lightbox-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); opacity: .6; }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible { opacity: 1; }
.lightbox-arrow:disabled { visibility: hidden; }
.lightbox-arrow[data-lightbox-step="-1"] { left: 0; }
.lightbox-arrow[data-lightbox-step="1"] { right: 0; }
.lightbox-footer { min-width: 0; max-width: 100%; text-align: center; cursor: default; }
.lightbox-caption, .lightbox-count { margin: 0 0 6px; font-size: 14px; }
.lightbox-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.lightbox-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; cursor: default; }
.lightbox-actions .btn { background: var(--bg); }
@media (max-width: 600px) {
  .lightbox[data-multiple] .lightbox-stage { padding-inline: 0; }
  .lightbox[data-multiple] .lightbox-stage img { inset: 0; max-width: 100%; }
  .lightbox-arrow { width: 36px; height: 36px; }
}
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.reading-end { height: 1px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font: 500 14px var(--sans); z-index: 100; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .player { grid-template-columns: 48px 1fr; gap: 8px 14px; }
  .player .play { width: 48px; height: 48px; }
  .wave { height: 68px; }
  .card-head { flex-direction: column; gap: 4px; }
}
/* ---- kartlar ve arşiv satırları artık bağlantı (yeni sekmede açılabilir) */
.card { text-decoration: none; }

/* ---- arama */
.right { display: flex; align-items: center; gap: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.search:focus-within { border-bottom-color: #fff; }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { width: 150px; background: none; border: 0; outline: 0; padding: 0; font-size: 15px; }
.search input::placeholder { color: rgba(255,255,255,.5); }
.drawer .search { margin: 14px 0 4px; }
.drawer .search input { flex: 1; width: auto; min-width: 0; font-size: 16px; }
.found { margin: 0 0 8px; font-size: 15px; }
.filter-bar h1 { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 720px) { .top .search { display: none; } }
.mobile-discover { display: none; }
#tree { scroll-margin-top: 110px; }
@media (max-width: 720px) {
  .mobile-discover { display: flex; gap: 8px; align-items: center; }
  .mobile-discover .btn { min-height: 36px; padding-inline: 9px; }
  .top.search-open .search { display: flex; position: absolute; top: 100%; left: 12px; right: 12px; width: auto; background: var(--bg); }
}

/* ---- menü: seriler */
.drawer-in { overflow-y: auto; }
#menu-series h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 28px 0 4px; }
.menu-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 18px; text-align: left; transition: padding-left .25s var(--ease); }
.menu-sub:hover { padding-left: 6px; }
.menu-sub small { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---- okurken: seri listesi ve aynı türden önceki / sonraki */
.series { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.series h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.series h3 a { text-decoration: none; }
.series h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.series h3 small { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.series ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.series li { counter-increment: s; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); }
.series li::before { content: counter(s); min-width: 1.5em; font-size: 14px; font-variant-numeric: tabular-nums; }
.series li a { flex: 1; min-width: 0; padding: 10px 0; font-size: 17px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.series li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.series li[aria-current] a { font-weight: 700; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.series + .post-nav { margin-top: 40px; }
.post-nav a { display: block; min-width: 0; text-decoration: none; }
.post-nav a.next { grid-column: 2; text-align: right; }
.post-nav small { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.post-nav span { display: block; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.post-nav a:hover span { text-decoration: underline; text-underline-offset: 4px; }


/* ---- alttaki küçük çalar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(19,18,15,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar-prog { height: 13px; margin-top: -7px; padding: 5px 0; background: var(--line) content-box; cursor: pointer; touch-action: none; }
.bar-prog i { display: block; height: 100%; width: 0; background: #fff; }
.bar-in { display: flex; align-items: center; gap: 6px; height: 58px; padding-bottom: 6px; }
.bar-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; transition: background-color .2s; }
.bar-btn:hover { background: var(--raise); }
.bar-btn[disabled] { opacity: .3; pointer-events: none; }
.bar-btn svg { width: 18px; height: 18px; }
.bar-btn .seek-label { font: 600 12px var(--sans); white-space: nowrap; }
#bar-speed { font: 600 13px var(--sans); font-variant-numeric: tabular-nums; }
.bar-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bar-play { background: #fff; color: var(--bg); }
.bar-title { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; text-decoration: none; }
.bar-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar-time { margin-right: 6px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.has-bar { padding-bottom: 64px; }
.has-bar .reader footer { padding-bottom: 104px; }
.has-bar .toast { bottom: 88px; }
@media (max-width: 600px) { .bar-time, #reader-random { display: none; } }
@media (max-width: 600px) {
  .bar-in { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); justify-items: center; gap: 2px 4px; height: auto; }
  .bar-title { grid-area: 1 / 1 / 2 / 6; justify-self: stretch; padding-inline: 0; }
  #bar-close { grid-area: 1 / 6; }
  body.has-bar { padding-bottom: 108px; }
  .has-bar .reader footer { padding-bottom: 148px; }
  .has-bar .toast { bottom: 132px; }
}

/* ---- biçim: kalın, ara başlık, alıntı */
.body strong, figcaption strong { font-weight: 700; }
.sub { font-size: clamp(20px, 2.2vw, 23px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
blockquote.body { border-left: 2px solid #fff; padding-left: 20px; }
/* ---- küçük çalarda ses */
.bar .volume { margin: 0 6px; }
.bar .vol { width: 84px; }
@media (max-width: 720px) { .bar .volume { display: none; } }
/* ---- hakkında sayfası */
.page { padding: clamp(56px, 10vw, 112px) 0 120px; }
.page h1 { font-weight: 500; font-size: clamp(23px, 2.8vw, 28px); line-height: 1.25; margin: 0 0 24px; text-wrap: balance; }
.page .body { font-size: clamp(18px, 2vw, 20px); }
a.menu-item { text-decoration: none; }
.foot-right { display: flex; align-items: center; gap: 20px; }
footer a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
footer a:hover { text-decoration-color: currentColor; }

/* ---- galeri */
.gallery { columns: 3 180px; column-gap: 16px; padding: 16px 0 120px; }
.gallery figure { break-inside: avoid; margin: 0 0 22px; }
.gallery img { width: 100%; height: auto; border-radius: var(--r); background: var(--surface); cursor: zoom-in; }
.gallery figcaption { padding-top: 8px; font-size: 14px; line-height: 1.4; }
.gallery figcaption a { display: block; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.gallery figcaption a:hover { text-decoration-color: currentColor; }
.gallery small { display: block; font-size: 12px; }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 12px; } }

/* ---- yorumlar */
.comments { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.c { padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.c-head strong { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.c-head time { font-variant-numeric: tabular-nums; }
.c-text { margin: 6px 0 2px; font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-act { display: flex; gap: 18px; }
.c-act button, .c-replying button { min-height: 32px; padding: 4px 0; background: none; border: 0; font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.c-act button:hover, .c-replying button:hover { text-decoration-color: currentColor; }
.c-replies { margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.c-empty { margin: 0; font-size: 16px; }
.c-form { display: grid; gap: 14px; margin-top: 32px; }
.c-form .field { margin: 0; }
.c-form .input { font-size: 17px; }
.c-form textarea.input { min-height: 120px; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-replying { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 15px; }
.c-note { margin: 0; font-size: 14px; line-height: 1.5; }
.c-text a { text-decoration: underline; text-underline-offset: 3px; }
.c-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.c-files img, .c-files video { max-width: 100%; max-height: 320px; border-radius: var(--r); background: #000; }
.c-files img { cursor: zoom-in; }
.c .embed { margin: 8px 0 4px; }
.c-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-limit { font-size: 13px; }
.c-files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.c-files-list:empty { display: none; }
.c-files-list li { display: flex; gap: 12px; align-items: center; }
.c-files-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-files-list button { margin-left: auto; background: none; border: 0; text-decoration: underline; font-size: 13px; padding: 4px 0; }
.c-form .error { margin: 0; font-size: 15px; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .c-row { grid-template-columns: 1fr; } }

.list { margin: 0; padding-left: 1.4em; font-size: clamp(18px, 2vw, 20px); line-height: 1.7; }
.list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.code { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font: 400 15px/1.6 Consolas, 'Cascadia Mono', Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.table { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.table th, .table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-weight: 700; }
.table a { text-decoration: underline; text-underline-offset: 3px; }
/* yan yana görseller */
.pair { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: start; }
.pair .figure { margin: 0; }
.big { font-size: 1.3em; line-height: 1.4; }
/* paylaş, sayfalama */
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.reader-speech { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 20px; }
.reader-speech label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.reader-speech select { min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.reader-speech .btn:disabled { opacity: .5; }
.more-row { margin: 0; padding: 32px 0 0; border-top: 1px solid var(--line); text-align: center; }
/* kenar çubuğu: diğer oluşumlar, abonelik, iletişim */
.links.kinds a::after { content: '→'; font-size: 15px; }
.sub-form { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line); border-radius: 999px; outline: 0; font-size: 15px; transition: border-color .2s; }
.sub-input:focus { border-color: #fff; }
.sub-input::placeholder { color: rgba(255,255,255,.5); }
.sub-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; line-height: 1.5; }
.foot-left a { display: block; margin-top: 4px; }
.about-mail { margin-top: 12px; }
/* telefonda kenar çubuğu: bağlantılar ve oluşumlar yan yana, tarih ve abonelik altında tam genişlik */
@media (max-width: 960px) {
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; align-items: start; }
  .side section + section { margin-top: 0; }
  .side section:nth-child(n+3) { grid-column: 1 / -1; }
  .side .links a { font-size: 15px; }
}

/* bildirim, açık pencerelerin de üstünde görünür */
.toast { top: auto; right: auto; margin: 0; border: 0; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* kaydırınca eklenen eski paylaşımlar yumuşakça belirir */
@media (prefers-reduced-motion: no-preference) {
  .card.card-new { animation: arrive-rise .7s var(--ease) both; }
}
