/* ---- Yazı tipleri (sunucudan; dış istek yok) ------------------------------------- */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata Variable';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata Variable';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/amiri-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/amiri-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---- Temalar ---------------------------------------------------------------- */
:root,
[data-theme='light'] {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f0e9;
  --text: #1d1b18;
  --text-soft: #45413a;
  --muted: #736d63;
  --line: #e6e1d6;
  --accent: #0f6b5c;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe9;
  --ar: #0b4f44;
  --mark: #ffe27a;
  --mark-ink: #1d1b18;
  --danger: #b3261e;
  --shadow-sm: 0 1px 2px rgb(40 30 10 / 6%);
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 8px 24px rgb(40 30 10 / 8%);
  --shadow-lg: 0 2px 4px rgb(40 30 10 / 6%), 0 18px 48px rgb(40 30 10 / 13%);
  color-scheme: light;
}
[data-theme='sepia'] {
  --bg: #f4ecd8;
  --surface: #fbf5e6;
  --surface-2: #ebe0c6;
  --text: #3b2f20;
  --text-soft: #54442f;
  --muted: #7d6b53;
  --line: #dfd0b0;
  --accent: #8a4b16;
  --accent-ink: #fff8ea;
  --accent-soft: #ecdcb9;
  --ar: #6b3410;
  --mark: #f5cf6b;
  --mark-ink: #2d2210;
  --danger: #a3271f;
  --shadow-sm: 0 1px 2px rgb(70 45 10 / 8%);
  --shadow: 0 1px 2px rgb(70 45 10 / 8%), 0 8px 24px rgb(70 45 10 / 10%);
  --shadow-lg: 0 2px 4px rgb(70 45 10 / 8%), 0 18px 48px rgb(70 45 10 / 15%);
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #16181c;
  --surface: #1f2228;
  --surface-2: #262a31;
  --text: #dcd9d2;
  --text-soft: #bdb9b0;
  --muted: #959086;
  --line: #2f343c;
  --accent: #5cc2ad;
  --accent-ink: #0c211d;
  --accent-soft: #1d3a35;
  --ar: #a5e3d5;
  --mark: #8a6d12;
  --mark-ink: #fff6d6;
  --danger: #ff8a80;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 20px 50px rgb(0 0 0 / 45%);
  color-scheme: dark;
}
[data-theme='black'] {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #171717;
  --text: #cbc8c1;
  --text-soft: #aaa69e;
  --muted: #858078;
  --line: #222222;
  --accent: #5cc2ad;
  --accent-ink: #06110f;
  --accent-soft: #14302b;
  --ar: #9bdccd;
  --mark: #7a6010;
  --mark-ink: #fff6d6;
  --danger: #ff8a80;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 50%);
  --shadow: 0 1px 2px rgb(0 0 0 / 50%), 0 10px 30px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 50%), 0 20px 50px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

:root {
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Literata Variable', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-ar: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Times New Roman', serif;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
body > main,
body > #icerik {
  flex: 1;
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
mark {
  background: var(--mark);
  color: var(--mark-ink);
  border-radius: 3px;
  padding: 0 1px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
kbd {
  font: 600 11px/1 var(--font-ui);
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
}
.icon {
  flex: none;
  vertical-align: -0.18em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 0.9s linear infinite;
  color: var(--muted);
}
[data-theme='dark'] .when-light,
[data-theme='black'] .when-light,
:root:not([data-theme='dark']):not([data-theme='black']) .when-dark {
  display: none;
}

/* ---- Ortak bileşenler ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 550;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, filter 0.15s;
}
.btn:hover {
  border-color: var(--muted);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
}
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover {
  border-color: var(--danger);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--text);
}
.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13.5px;
}
.btn small {
  font-weight: 400;
  opacity: 0.75;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover,
.icon-btn.is-on {
  background: var(--surface-2);
  color: var(--accent);
}
.icon-text {
  font: 650 17px/1 var(--font-serif);
}
.empty-note {
  padding: 18px 4px;
  color: var(--muted);
}
.center-state {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
}
.center-state h1 {
  font: 650 clamp(1.5rem, 4vw, 2.1rem) / 1.2 var(--font-serif);
  color: var(--text);
}
.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ---- Üst menü / alt bilgi --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.is-home .site-header {
  border-bottom-color: transparent;
}
.site-header-in {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 650 20px/1 var(--font-serif);
  letter-spacing: 0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
}
.site-nav {
  display: flex;
  gap: 2px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-weight: 550;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--surface-2);
  color: var(--accent);
}
.site-header-gap {
  flex: 1;
}
.site-search {
  flex: 1;
  min-width: 0; /* dar ekranda kutu küçülebilsin (yoksa üst menü taşar) */
  max-width: 380px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
}
.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.inline-search {
  margin: 18px 0 0;
  max-width: 520px;
  height: 46px;
}
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer strong {
  color: var(--text-soft);
}

/* ---- Ana sayfa: soru kutusu ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(36px, 11vh, 120px) 0 clamp(28px, 6vh, 64px);
  text-align: center;
  background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--accent-soft) 75%, transparent), transparent 72%);
  transition: padding 0.3s;
}
.hero-in {
  max-width: 820px;
}
.hero-orn {
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 14px;
}
.hero h1 {
  font: 650 clamp(2rem, 5.4vw, 3.5rem) / 1.1 var(--font-serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-empty {
  margin-top: 22px;
  color: var(--muted);
}
.hero-empty a {
  color: var(--accent);
  text-decoration: underline;
}

.ask {
  position: relative;
  max-width: 720px;
  margin: 34px auto 0;
  text-align: left;
}
.ask-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 9px 9px 9px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ask-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-lg);
}
.ask-icon {
  display: grid;
  place-items: center;
  height: 46px;
  color: var(--accent);
}
.ask-box textarea,
.ask-box input {
  flex: 1;
  min-width: 0;
  max-height: 180px;
  padding: 11px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 18px;
  line-height: 1.35;
}
.ask-box input {
  height: 46px;
}
.ask-box textarea::placeholder,
.ask-box input::placeholder {
  color: var(--muted);
}
.ask-box input::-webkit-search-cancel-button {
  display: none;
}
.ask-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.ask-send:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.ask.is-busy .ask-send {
  opacity: 0.6;
  pointer-events: none;
}
.ask-suggest {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.ask-suggest li a,
.ask-suggest li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--text-soft);
}
.ask-suggest li .icon {
  color: var(--muted);
}
.ask-suggest li[aria-selected='true'] a,
.ask-suggest li a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.ask-inline {
  margin-top: 56px;
  text-align: center;
}
.ask-inline h2 {
  font: 650 1.5rem/1.2 var(--font-serif);
  margin-bottom: 18px;
}
.ask-inline .ask-box {
  align-items: center;
  box-shadow: var(--shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.chips-left {
  justify-content: flex-start;
  margin-top: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.3;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover,
.chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.chip small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Soru sorulduktan sonra: başlık küçülür, cevap öne çıkar */
.is-asked .hero {
  padding: 22px 0 8px;
  background: none;
}
.is-asked .hero-orn,
.is-asked .hero h1,
.is-asked .hero-sub,
.is-asked #ask-chips,
.is-asked #home-rest {
  display: none;
}
.is-asked .ask {
  margin-top: 0;
}
.answer-zone {
  max-width: 860px;
  padding-top: 18px;
  padding-bottom: 20px;
}
.thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px 4px;
  color: var(--muted);
  font-size: 1.05rem;
}
.thinking-dots {
  display: inline-flex;
  gap: 5px;
}
.thinking-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.result {
  animation: rise 0.35s ease-out;
}
.result-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}
.result-eyebrow b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}
.result h2 {
  margin: 12px 0 6px;
  font: 650 clamp(1.5rem, 3.6vw, 2.15rem) / 1.2 var(--font-serif);
  text-wrap: balance;
}
.result h2 a:hover {
  color: var(--accent);
}
.result-note {
  color: var(--muted);
  font-size: 14.5px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.alt-box {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.alt-box h3,
.related h2 {
  font: 650 1.25rem/1.3 var(--font-serif);
  margin-bottom: 10px;
}
.no-match {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.no-match h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.no-match p {
  margin-top: 8px;
  color: var(--text-soft);
}

/* ---- Ana sayfa bölümleri ------------------------------------------------------------- */
.home-section {
  margin-top: 64px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  font: 650 1.6rem/1.2 var(--font-serif);
}
.section-head a {
  color: var(--accent);
  font-weight: 550;
  font-size: 15px;
}
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.section-links [data-shuffle] {
  color: var(--muted);
}
.section-links [data-shuffle]:hover {
  color: var(--accent);
}
.section-sub {
  margin: -8px 0 22px;
  color: var(--muted);
}
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.q-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.q-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.q-card h3 {
  font: 650 1.12rem/1.32 var(--font-serif);
  text-wrap: balance;
}
.q-card p {
  flex: 1;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.q-card-meta {
  color: var(--muted);
  font-size: 13px;
}
.q-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font: 550 1.04rem/1.4 var(--font-serif);
}
.q-list li a:hover {
  color: var(--accent);
}
.q-list li a .icon {
  color: var(--muted);
}

/* ---- Liste sayfaları -------------------------------------------------------------------- */
.list-page {
  padding-top: 26px;
}
.list-head {
  margin: 10px 0 26px;
}
.list-head h1 {
  font: 650 clamp(1.8rem, 4.4vw, 2.6rem) / 1.15 var(--font-serif);
}
.list-head > p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--text-soft);
}
.q-rows {
  margin-top: 22px;
  max-width: 860px;
}
.q-rows li a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.q-rows h2 {
  font: 650 1.3rem/1.3 var(--font-serif);
  transition: color 0.15s;
}
.q-rows a:hover h2 {
  color: var(--accent);
}
.q-rows p {
  margin: 6px 0 8px;
  color: var(--text-soft);
  line-height: 1.6;
}
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 860px;
  margin-top: 30px;
  color: var(--muted);
}
.pager > :last-child {
  justify-self: end;
}
.pager > :first-child {
  justify-self: start;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.crumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  opacity: 0.6;
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs li[aria-current] {
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Soru sayfası (blog yazısı) ----------------------------------------------------------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 250px);
  justify-content: space-between;
  column-gap: 56px;
  padding-top: 26px;
}
.article,
.after-article {
  grid-column: 1;
  min-width: 0;
}
.article-head {
  margin: 18px 0 22px;
}
.article-head h1 {
  font: 680 clamp(1.9rem, 4.8vw, 2.9rem) / 1.14 var(--font-serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta span:not(:last-child)::after {
  content: '·';
  margin: 0 9px;
}
.summary {
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.summary h2 {
  font: 700 12.5px/1 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.summary p {
  font: 1.12rem/1.65 var(--font-serif);
  color: var(--text);
}
.aliases {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}
.aliases em {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-style: normal;
}
.article-lead {
  color: var(--text-soft);
  line-height: 1.65;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.answer {
  margin-top: 34px;
  scroll-margin-top: 84px;
}
.answer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.answer-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 13.5px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.answer-src {
  font: 650 1.08rem/1.35 var(--font-ui);
}
.answer-src a {
  color: var(--accent);
}
.answer-src a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.answer-src small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
}
.answer-body {
  padding: 22px clamp(16px, 3.4vw, 28px) 8px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.answer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 10px;
  padding-left: 3px;
  color: var(--muted);
  font-size: 13.5px;
}
.answer-foot cite {
  font-style: normal;
}
.answer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.answer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.answers-more {
  width: 100%;
  margin-top: 28px;
}
.article-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.after-article {
  margin-top: 48px;
}
.rail {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 46px;
  scrollbar-width: thin;
}
.rail-box h2 {
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.rail-toc li a {
  display: flex;
  gap: 9px;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.35;
}
.rail-toc li a:hover,
.rail-toc li a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
}
.rail-toc b {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rail-books li {
  padding: 4px 0;
  font-size: 14.5px;
}
.rail-books a {
  color: var(--accent);
}
.rail-books a:hover {
  text-decoration: underline;
}
.about h2 {
  font: 650 1.35rem/1.3 var(--font-serif);
  margin: 1.6em 0 0.5em;
}
.about p {
  margin-bottom: 1em;
  color: var(--text-soft);
}
.about a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Metin blokları (alıntılar ve okuyucu ortak) ---------------------------------------------- */
.prose {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  font-variant-numeric: oldstyle-nums;
}
.bk {
  position: relative; /* meal kutusu bloğa göre konumlanır */
  margin: 0 0 0.95em;
  overflow-wrap: break-word;
}
.bk-p {
  text-wrap: pretty;
}
.bk-h {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--accent);
}
.bk-h1 {
  font-size: 1.55em;
  text-align: center;
  margin: 1.5em 0 0.8em;
}
.bk-h2 {
  font-size: 1.24em;
  text-align: center;
  margin: 1.4em 0 0.7em;
}
.bk-h3 {
  font-size: 1.06em;
  margin: 1.3em 0 0.5em;
}
.prose .bk-h1,
.prose .bk-h2 {
  font-size: 1.18em;
  text-align: left;
  margin: 0.2em 0 0.7em;
}
.bk-sep {
  text-align: center;
  color: var(--muted);
  letter-spacing: 1em;
  margin: 1.4em 0;
  font-size: 0.8em;
}
.bk-sep span::before,
.bk-sep span::after {
  content: '✦';
  margin: 0 0.5em;
  opacity: 0.5;
}
.ar {
  font-family: var(--font-ar);
  font-size: 1.28em;
  line-height: 1.7;
  color: var(--ar);
  unicode-bidi: isolate;
}
.bk-ar {
  text-align: center;
  margin: 1.25em 0;
}
.bk-ar .ar {
  font-size: 1.5em;
  line-height: 1.95;
}
.meal {
  font-size: 0.84em;
  font-style: italic;
  color: var(--muted);
  margin-inline: 0.3em;
}
.meal::before {
  content: '(';
}
.meal::after {
  content: ')';
}
.bk-ar .meal {
  display: block;
  margin: 0.25em auto 0;
  max-width: 46em;
  line-height: 1.55;
}
.bk-ar .meal::before,
.bk-ar .meal::after {
  content: none;
}
.bk-h .ar {
  font-size: 1.1em;
}
.has-meal {
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, box-shadow 0.15s;
}
.has-meal:focus-visible,
.has-meal[aria-expanded='true'] {
  background: var(--accent-soft);
  box-shadow: 0 0 0 5px var(--accent-soft);
  outline: none;
}
@media (hover: hover) {
  .has-meal:hover {
    background: var(--accent-soft);
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
}
@keyframes pop {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
}
.meal-pop {
  position: absolute;
  z-index: 4;
  display: block;
  width: max-content;
  max-width: min(100%, 34em);
  padding: 0.7em 1em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-family: var(--font-read, var(--font-serif));
  font-size: 0.84em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: normal;
  hyphens: manual;
  cursor: auto;
  animation: pop 0.16s ease-out;
}
.meal-pop::before {
  content: '';
  position: absolute;
  top: -6px;
  left: calc(var(--arrow, 50%) - 6px);
  width: 10px;
  height: 10px;
  border: solid var(--line);
  border-width: 1px 0 0 1px;
  background: var(--surface);
  transform: rotate(45deg);
}
.meal-pop .ar {
  font-size: 1.15em;
  line-height: 1.5;
}
.bk-fn {
  margin: 1.1em 0;
  padding: 0.75em 1em 0.75em 1.1em;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.86em;
  line-height: 1.62;
}
.fn-label {
  display: inline-block;
  margin-right: 0.6em;
  font: 700 0.78em/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Kapak ----------------------------------------------------------------------- */
.cover {
  --w: 100%;
  display: block;
  position: relative;
  width: var(--w);
  aspect-ratio: 2 / 3;
  border-radius: 4px 9px 9px 4px;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 28%) 0, rgb(255 255 255 / 10%) 3.5%, rgb(0 0 0 / 12%) 6.5%, transparent 10%),
    radial-gradient(120% 90% at 80% 0%, rgb(255 255 255 / 20%), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 86%, #fff), color-mix(in srgb, var(--c) 78%, #000));
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 10px 22px -6px rgb(0 0 0 / 35%);
  color: #f6ecd2;
  padding: 9% 8% 9% 13%;
  container-type: inline-size;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cover-frame {
  height: 100%;
  border: 1px solid rgb(246 236 210 / 45%);
  outline: 1px solid rgb(246 236 210 / 20%);
  outline-offset: 3px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6cqw;
  text-align: center;
  padding: 8cqw 5cqw;
}
.cover-orn {
  font-size: 9cqw;
  opacity: 0.8;
}
.cover-title {
  font: 600 13cqw/1.18 var(--font-serif);
  letter-spacing: 0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.cover-title.is-long {
  font-size: 10cqw;
}
.cover-author {
  font: 500 5.4cqw/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: auto;
}
.cover-sm {
  --w: 64px;
  flex: none;
}
.cover-sm {
  padding: 7px 6px 7px 9px;
}
.cover-sm .cover-author,
.cover-sm .cover-title {
  display: none;
}
.cover-sm .cover-orn {
  font-size: 16px;
}
.cover-lg {
  --w: min(200px, 46vw);
}

/* ---- Kitaplık ------------------------------------------------------------------------ */
.shelf + .shelf,
.list-head + .shelf {
  margin-top: 44px;
}
.shelf-title {
  font: 650 1.4rem/1.2 var(--font-serif);
  margin-bottom: 18px;
}
.shelf-title small {
  font: 500 14px var(--font-ui);
  color: var(--muted);
  margin-left: 6px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px 24px;
}
.book-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px;
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-card:hover .cover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%), 0 18px 30px -8px rgb(0 0 0 / 40%);
}
.book-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.book-card-info strong {
  font: 600 16px/1.3 var(--font-serif);
}
.book-card-info span {
  color: var(--muted);
  font-size: 13px;
}
.book-row .book-card-info strong {
  font-size: 14.5px;
}
.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.continue-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.continue-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.continue-info strong {
  font: 600 16px/1.25 var(--font-serif);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-info span {
  color: var(--muted);
  font-size: 13px;
}
.bar {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.book-page {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 26px;
}
.book-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-side .cover {
  margin-bottom: 14px;
}
.book-side h1 {
  font: 650 30px/1.15 var(--font-serif);
}
.book-author,
.book-stats,
.book-progress {
  color: var(--muted);
}
.book-progress {
  font-size: 13.5px;
}
.book-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 14px 0 6px;
}
.book-desc {
  color: var(--text-soft);
  line-height: 1.65;
  white-space: pre-line;
}
.toc-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  line-height: 1.35;
}
.toc-item:hover {
  background: var(--surface-2);
}
.toc-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.toc-title {
  flex: 1;
  min-width: 0;
}
.toc-page {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.toc-item.lvl-0 {
  font-weight: 600;
}
.toc-item.lvl-1 {
  padding-left: 26px;
}
.toc-item.lvl-2 {
  padding-left: 42px;
  font-size: 14.5px;
}
.toc-item.lvl-3 {
  padding-left: 58px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.toc-item.lvl-4 {
  padding-left: 74px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---- Arama sonuçları ----------------------------------------------------------------- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.search-form .inline-search {
  margin: 0;
  flex: 1 1 260px;
}
.search-form select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.search-form .btn {
  min-height: 46px;
}
.result-count {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}
.result-group {
  margin-top: 26px;
  max-width: 900px;
}
.result-group h2 {
  font: 600 18px/1.3 var(--font-serif);
  padding-left: 12px;
  border-left: 4px solid var(--c, var(--accent));
  margin-bottom: 8px;
}
.result-group h2 small {
  font: 500 13px var(--font-ui);
  color: var(--muted);
}
.result-list li > a,
.result-list li > button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  line-height: 1.55;
}
.result-list li > a:hover,
.result-list li > button:hover {
  background: var(--surface-2);
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 2px;
}
.result-meta i {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.snippet {
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* ---- Dar ekran -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .article-wrap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
  }
  .rail {
    display: none;
  }
  .book-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }
  .site-header-in {
    height: 56px;
  }
  .brand-name {
    display: none;
  }
  .site-nav a {
    padding: 8px 9px;
  }
  .site-search {
    max-width: none;
  }
  .site-search input::placeholder {
    font-size: 14px;
  }
  .ask-box {
    padding: 7px 7px 7px 14px;
    border-radius: 22px;
  }
  .ask-box textarea,
  .ask-box input {
    font-size: 17px;
  }
  .book-page {
    grid-template-columns: 1fr;
  }
  .book-side {
    position: static;
    align-items: center;
    text-align: center;
  }
  .book-actions {
    width: 100%;
  }
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 24px 16px;
  }
  .prose {
    font-size: 1.06rem;
    line-height: 1.75;
  }
  .answer-body {
    border-radius: 0 12px 12px 0;
  }
  .home-section {
    margin-top: 48px;
  }
}
@media (max-width: 420px) {
  .site-nav a {
    font-size: 14px;
    padding: 8px 7px;
  }
  .book-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .book-row li:nth-child(n + 7) {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .rail,
  .after-article,
  .article-foot,
  .answer-link {
    display: none !important;
  }
  .answer-body {
    box-shadow: none;
  }
  .answer[hidden] {
    display: block !important;
  }
}
