/* dedekorkut.nodante.com — "Ateş başında bir kitap"
   Gündüz: parşömen kitap. Gece: bozkırda ateş başı. Tema [data-theme] ile
   seçilir; seçilmemişse sistem tercihi. Palet uygulamayla senkron. */

@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/Cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/Lora.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('/assets/fonts/jbmono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #F2E8D5;
  --bg-2: #E9DCC2;
  --panel: #F8F1E3;
  --panel-2: #EFE3CB;
  --ink: #2B2620;
  --ink-soft: rgba(43, 38, 32, .68);
  --ink-faint: rgba(43, 38, 32, .14);
  --lapis: #1B3A5C;
  --lapis-2: #24507E;
  --kiremit: #B5402E;
  --altin: #C9A227;
  --altin-2: #9A7B1C;
  --turkuaz: #2E7D7B;
  --accent: var(--kiremit);
  --heading: var(--lapis);
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 8px 28px rgba(60, 40, 10, .10);
  --radius: 14px;
  --sky-top: #F6E9CC;
  --sky-bottom: #F2E8D5;
  --hill-1: #D9C49B;
  --hill-2: #C9AE7E;
  --hill-3: #A88A5C;
  --sun: #E7B63C;
  --night: 0;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F1420;
  --bg-2: #0A0E17;
  --panel: #161D2C;
  --panel-2: #1C2538;
  --ink: #EDE3CF;
  --ink-soft: rgba(237, 227, 207, .70);
  --ink-faint: rgba(237, 227, 207, .12);
  --lapis: #8FB5DB;
  --lapis-2: #B4CFEA;
  --kiremit: #E0694F;
  --altin: #E2B94B;
  --altin-2: #F0CF73;
  --turkuaz: #5BB8B3;
  --accent: #E8A33D;
  --heading: #F0D9A8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35);
  --sky-top: #070B14;
  --sky-bottom: #141B2B;
  --hill-1: #1A2233;
  --hill-2: #131A28;
  --hill-3: #0C111C;
  --sun: #EDE3C8;
  --night: 1;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1420; --bg-2: #0A0E17; --panel: #161D2C; --panel-2: #1C2538;
    --ink: #EDE3CF; --ink-soft: rgba(237, 227, 207, .70); --ink-faint: rgba(237, 227, 207, .12);
    --lapis: #8FB5DB; --lapis-2: #B4CFEA; --kiremit: #E0694F; --altin: #E2B94B; --altin-2: #F0CF73;
    --turkuaz: #5BB8B3; --accent: #E8A33D; --heading: #F0D9A8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px rgba(0, 0, 0, .35);
    --sky-top: #070B14; --sky-bottom: #141B2B; --hill-1: #1A2233; --hill-2: #131A28; --hill-3: #0C111C;
    --sun: #EDE3C8; --night: 1; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 'Lora', Georgia, serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: background-color .5s ease, color .5s ease;
}
body.has-player { padding-bottom: 84px; }

/* parşömen dokusu (gündüz) / yıldız tozu (gece) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: calc(1 - var(--night) * .6);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
.display {
  font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
h2.display { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.kicker {
  font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 .6em;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
p { margin: 0 0 1em; }

/* ---------- kilim bandı (imza motif) ---------- */
.kilim {
  height: 18px; width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 9 L9 0 L18 9 L9 18Z' fill='%23B5402E'/%3E%3Cpath d='M18 9 L27 0 L36 9 L27 18Z' fill='%231B3A5C'/%3E%3Cpath d='M9 6 L12 9 L9 12 L6 9Z' fill='%23C9A227'/%3E%3Cpath d='M27 6 L30 9 L27 12 L24 9Z' fill='%23F2E8D5'/%3E%3C/svg%3E") repeat-x center / 36px 18px;
  opacity: .85;
}
.kilim.thin { height: 10px; background-size: 20px 10px; opacity: .7; }
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--altin); margin: 1.2em 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; max-width: 140px; background: linear-gradient(90deg, transparent, var(--altin)); }
.ornament::after { transform: scaleX(-1); }

/* ---------- üst bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-faint);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .1em; font-size: 1.02rem; text-transform: uppercase; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .95rem; padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--panel-2); color: var(--heading); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  appearance: none; border: 1px solid var(--ink-faint); background: var(--panel); color: var(--ink);
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 .82rem 'Lora', serif; text-decoration: none;
}
.icon-btn:hover { border-color: var(--altin); color: var(--heading); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--ink-faint); padding: 10px 16px 18px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--sky-top), var(--sky-bottom)); transition: background .6s ease; }
.scene::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: radial-gradient(60% 70% at 70% 100%, rgba(232, 140, 50, .22), transparent 70%);
  opacity: var(--night); transition: opacity .8s ease;
}
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .orb { fill: var(--sun); transition: fill .6s ease; }
.scene .orb-shade { fill: var(--sky-top); opacity: var(--night); transition: opacity .8s ease, fill .6s ease; }
.scene .clouds { stroke: var(--altin); }
.scene .clouds .puff { fill: color-mix(in srgb, var(--bg) 70%, #fff); }
.scene .pole { stroke: var(--hill-3); }
.scene .stars { opacity: var(--night); transition: opacity .8s ease; }
.scene .clouds { opacity: calc(.6 - var(--night) * .5); transition: opacity .8s ease; }
.scene .hill1 { fill: var(--hill-1); } .scene .hill2 { fill: var(--hill-2); } .scene .hill3 { fill: var(--hill-3); }
.scene .hill1, .scene .hill2, .scene .hill3 { transition: fill .6s ease; }
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(3n) { animation-delay: 1.3s; } .stars circle:nth-child(4n) { animation-delay: 2.6s; }
@keyframes twinkle { 50% { opacity: .35; } }
.clouds g { animation: drift 60s linear infinite alternate; }
@keyframes drift { to { transform: translateX(60px); } }
.embers { position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; opacity: var(--night); transition: opacity .8s ease; }
.embers i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #F6B24A; box-shadow: 0 0 8px 2px rgba(246, 150, 50, .7);
  animation: ember 7s linear infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; }
  100% { transform: translate(30px, -420px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stars circle, .clouds g, .embers i { animation: none; }
  .embers { display: none; }
}

.hero-in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 72px 0 96px;
}
.hero h1 {
  font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1.02; margin-bottom: .25em;
}
.hero .lead { max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; font: 600 1rem 'Lora', serif; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--kiremit); color: #FFF8EC; }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--accent); color: #1A1206; } }
.btn-primary:hover { transform: translateY(-1px); color: inherit; filter: brightness(1.05); }
.btn-ghost { border-color: var(--ink-faint); color: var(--ink); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.btn-ghost:hover { border-color: var(--altin); color: var(--heading); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* kemer çerçeve (Selçuklu kemeri) */
.arch {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; justify-self: center;
  border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px;
  padding: 10px; background: linear-gradient(160deg, var(--altin), var(--altin-2));
  box-shadow: var(--shadow);
}
.arch::after {
  content: ""; position: absolute; inset: 4px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255, 245, 220, .55);
}
.arch picture, .arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 12px 12px / 35% 35% 12px 12px; }
.arch .night-img { display: none; }
:root[data-theme="dark"] .arch .day-img { display: none; }
:root[data-theme="dark"] .arch .night-img { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .arch .day-img { display: none; }
  :root:not([data-theme="light"]) .arch .night-img { display: block; }
}

@media (max-width: 820px) {
  .scene svg { height: 500px; }
  .hero-in { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 32px; }
  .arch { max-width: 320px; order: -1; }
}

/* ---------- bölümler ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4em 0 0; max-width: 40em; }

.card {
  background: var(--panel); border: 1px solid var(--ink-faint); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}

/* boy ızgarası */
.tales { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tale {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--ink-faint); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
a.tale:hover { transform: translateY(-3px); border-color: var(--altin); color: var(--ink); }
.tale .thumb { aspect-ratio: 1; overflow: hidden; background: var(--panel-2); }
.tale .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.tale:hover .thumb img { transform: scale(1.04); }
.tale .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tale .no { font-family: 'Cinzel', serif; font-size: .74rem; letter-spacing: .18em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.tale h3 { font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; margin: 0; line-height: 1.3; }
.tale p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.tale .chips { margin-top: auto; padding-top: 8px; }
.tale.soon { box-shadow: none; background: transparent; border-style: dashed; }
.tale.soon .thumb {
  display: grid; place-items: center; aspect-ratio: auto; height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24Z' fill='none' stroke='%23C9A227' stroke-opacity='.35'/%3E%3Cpath d='M24 16 L32 24 L24 32 L16 24Z' fill='%23C9A227' fill-opacity='.18'/%3E%3C/svg%3E") center / 48px;
}
.tale.soon .thumb span { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--altin); opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); color: var(--ink-soft); border: 1px solid var(--ink-faint);
}
.chip.app { background: color-mix(in srgb, var(--turkuaz) 16%, transparent); color: var(--turkuaz); border-color: transparent; }
.chip.pod { background: color-mix(in srgb, var(--kiremit) 14%, transparent); color: var(--kiremit); border-color: transparent; }

/* iki sütunlu tanıtım */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pod-split { grid-template-columns: .7fr 1.3fr; }
@media (max-width: 820px) {
  .split, .pod-split, .tale-hero .split { grid-template-columns: 1fr; gap: 28px; }
  .pod-split img { max-width: 240px !important; }
}

/* söz bandı */
.saying-band { text-align: center; padding: 64px 0; }
.saying-band blockquote { margin: 0 auto; max-width: 34em; }
.saying-band .q { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.45; color: var(--heading); font-style: italic; }
.saying-band .orig { color: var(--ink-soft); margin-top: .8em; font-size: .95rem; }

/* bölüm (podcast) listesi */
.episodes { display: grid; gap: 14px; }
.ep {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--ink-faint); border-radius: var(--radius); padding: 14px 16px;
}
.ep img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ep h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--heading); }
.ep .meta { font-size: .85rem; color: var(--ink-soft); }
.ep p { font-size: .93rem; margin: 6px 0 0; color: var(--ink-soft); }
.play-btn {
  appearance: none; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--kiremit); color: #FFF8EC; flex: none;
}
:root[data-theme="dark"] .play-btn { background: var(--accent); color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .play-btn { background: var(--accent); color: #1A1206; } }
.play-btn svg { width: 20px; height: 20px; }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
@media (max-width: 560px) {
  .ep { grid-template-columns: 52px 1fr auto; gap: 12px; }
  .ep img { width: 52px; height: 52px; }
  .ep p { display: none; }
}

/* platform düğmeleri */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms .btn { padding: 10px 16px; font-size: .92rem; }

/* kalıcı oynatıcı */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ink-faint); box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  transform: translateY(110%); transition: transform .3s ease;
}
.player:not(.show) { visibility: hidden; }
.player.show { transform: none; }
@media (max-width: 560px) {
  .player .p-back, .player .p-fwd, .player .speed { display: none; }
  .player-in { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .player img { width: 44px; height: 44px; }
}
.player-in { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; height: 76px; }
.player img { width: 48px; height: 48px; border-radius: 8px; }
.player .t { font-weight: 600; color: var(--heading); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.player input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; }
.player .ctl { display: flex; gap: 6px; align-items: center; }
.player .play-btn { width: 44px; height: 44px; }
.player .speed { font: 700 .78rem 'Lora', serif; }

/* boy sayfası */
.tale-hero { padding: 48px 0 24px; }
.tale-hero .split { grid-template-columns: .9fr 1.1fr; }
.tale-hero .arch { max-width: 400px; aspect-ratio: 1 / 1.1; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.2em 0; font-size: .93rem; color: var(--ink-soft); }
.facts b { color: var(--ink); font-weight: 600; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2.display { font-size: 1.3rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { padding: 16px 18px; }
.person h3 { font-size: 1.02rem; margin: 0 0 4px; }
.person p { font-size: .93rem; margin: 0; color: var(--ink-soft); }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values .chip { font-size: .85rem; padding: 6px 14px; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.gallery button { all: unset; cursor: zoom-in; scroll-snap-align: start; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery button:focus-visible { outline: 2px solid var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-auto-columns: 72%; } }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 14, .92); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 10px; }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 12px; top: 50%; } .lightbox .next { right: 12px; top: 50%; }

.endings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.endings figure { margin: 0; }
.endings img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.endings figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { padding: 16px 18px; text-decoration: none; }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--ink-soft); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* uygulama */
.phones { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
.phone {
  flex: 0 0 220px; scroll-snap-align: center; border-radius: 28px; padding: 8px; background: #1b1b1f;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 21px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.mode h3 { font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: .08em; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none; border: 1px solid #333;
}
.store-badge small { display: block; font-size: .7rem; opacity: .8; }
.store-badge b { font-size: 1.05rem; }

/* zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--altin); }
.timeline li { position: relative; padding: 0 0 22px 8px; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--kiremit); border: 2px solid var(--bg);
}
.timeline b { color: var(--heading); display: block; font-family: 'Cinzel', serif; letter-spacing: .06em; }

/* sözlük */
.search {
  width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--ink-faint);
  background: var(--panel); color: var(--ink); font: inherit; margin-bottom: 20px;
}
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.term { padding: 18px 20px; }
.term h3 { margin: 0 0 4px; font-size: 1.1rem; }
.term .en { font-size: .82rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.term p { margin: 6px 0 0; font-size: .95rem; }
.term .ex { font-style: italic; color: var(--ink-soft); font-size: .9rem; }

/* sözler */
.sayings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.saying { display: flex; flex-direction: column; gap: 10px; }
.saying .q { font-size: 1.15rem; line-height: 1.5; color: var(--heading); font-style: italic; }
.saying .orig { font-size: .9rem; color: var(--ink-soft); }
.saying .actions { margin-top: auto; display: flex; gap: 8px; }

/* aile köşesi */
.qa { counter-reset: q; list-style: none; padding: 0; margin: 0; }
.qa li { counter-increment: q; position: relative; padding: 0 0 12px 40px; }
.qa li::before {
  content: counter(q); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .85rem 'Cinzel', serif; background: var(--panel-2); color: var(--accent);
}
.family-tale { margin-bottom: 28px; }
.family-tale header { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.family-tale header img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }

/* footer */
.site-footer { margin-top: auto; padding: 48px 0 32px; border-top: 1px solid var(--ink-faint); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-family: 'Cinzel', serif; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--accent); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink-faint); font-size: .85rem; color: var(--ink-soft); }

/* Nodante imzası: imzalayanın renklerini taşır (hub sayfalarıyla aynı rozet) */
.nd-badge {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 6px 12px 6px 6px; border-radius: 999px; transition: background .15s ease;
  background: rgba(10, 12, 16, .04);
}
:root[data-theme="dark"] .nd-badge { background: rgba(228, 147, 60, .06); }
.nd-badge:hover { background: rgba(228, 147, 60, .12); }
.nd-emblem { flex: 0 0 auto; width: 22px; height: 22px; display: block; }
.nd-text { font-size: .8rem; color: var(--ink-soft); }
.nd-word { font-family: 'JBMono', ui-monospace, 'SF Mono', Consolas, monospace; font-weight: 600; font-size: .84rem; color: #c97a26; display: inline-flex; align-items: baseline; }
:root[data-theme="dark"] .nd-word { color: #e4933c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nd-word { color: #e4933c; } }
.nd-dot { display: inline-block; width: .5em; height: .5em; background: #f2a94f; margin-left: .16em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--panel); padding: 8px 14px; border-radius: 8px; }

@media print {
  .site-header, .site-footer, .player, .btns, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* mobil son söz: sonradan tanımlanan ızgara kurallarını ezer */
@media (max-width: 820px) {
  .tale-hero .split, .pod-split { grid-template-columns: 1fr; }
}
