/* Tanıtım ana sayfası (/<dil>/). Renkler uygulamanın paletinden
   (mobile/lib/core/librena.dart, LibrenaPalette). Yasal sayfalar style.css'te. */

@font-face { font-family: "Noto Serif"; src: url("/static/fonts/site/NotoSerif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("/static/fonts/site/NotoSerif-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("/static/fonts/site/NotoSerif-400Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F3EDE1;
  --paper2: #FFFCF5;
  --paper3: #E5DCCA;
  --ink: #1E3A5C;
  --ink2: #2C4E76;
  --on-ink: #F6F1E7;
  --text: #1B2331;
  --body: #3A4556;
  --muted: #535E6E;
  --line: #D8CFBD;
  --line-soft: #E5DCCA;
  --amber: #C6892A;
  --amber-soft: #F3E4C8;
  --on-amber: #3A2606;
  --amber-text: #7A4F10;
  --night: #101821;
  --night2: #17222E;
  --night3: #1F2C3B;
  --night-line: #2E3B4B;
  --night-text: #EBE3D2;
  --night-body: #C9C1B0;
  --night-muted: #93A0B1;
  --night-amber: #E2A64B;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101821;
    --paper2: #17222E;
    --paper3: #1F2C3B;
    --ink: #9DB6D6;
    --ink2: #B9CCE4;
    --on-ink: #0F1A28;
    --text: #EBE3D2;
    --body: #C9C1B0;
    --muted: #93A0B1;
    --line: #2E3B4B;
    --line-soft: #26323F;
    --amber: #E2A64B;
    --amber-soft: #3A2D18;
    --on-amber: #F9E9CC;
    --amber-text: #E2A64B;
    --night: #0A1017;
    --night2: #131C26;
    --night3: #1A2532;
  }
}

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

body.home {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
.home a { color: var(--ink); text-underline-offset: 3px; }
.home a:hover { color: var(--ink2); }
.home img { max-width: 100%; display: block; }
.home h1, .home h2, .home h3 { margin: 0; }
.home p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); }

/* Üst çubuk */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 600; }
.brand svg { width: 22px; height: 27px; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; font-size: 15px; }
.top nav a { text-decoration: none; padding-block: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
}
.home .btn-primary { background: var(--ink); color: var(--on-ink); }
.home .btn-primary:hover { background: var(--ink2); color: var(--on-ink); }
.home .btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; border-radius: 22px; padding: 0 20px; font-size: 15px; }
.btn-soon { border: 1.5px dashed var(--line); color: var(--muted); font-weight: 500; cursor: default; }
@media (max-width: 640px) {
  .top .btn-small { display: none; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .top nav a { white-space: nowrap; }
  .quest-main { gap: 14px; padding: 18px; }
  .quest-main img { width: 64px; }
}

/* Bölüm başlıkları */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-text); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; color: var(--ink); }
.lead { font-size: 18px; color: var(--body); }
.section { padding-block: clamp(64px, 9vw, 96px); }
.band { background: var(--paper2); border-block: 1px solid var(--line-soft); }
.head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; margin-bottom: 40px; }
.head > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.head > .lead { flex: 1 1 420px; }

/* Açılış */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(48px, 8vw, 104px) 64px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 72px); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
.hero .lead { font-size: 19px; max-width: 34em; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted); }

/* Sohbet kartı */
.chat { flex: 1 1 380px; min-width: 0; max-width: 480px; margin-inline: auto; background: var(--paper2); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px -30px rgba(30, 58, 92, 0.35); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 1px solid var(--line); background: var(--paper2); flex: none; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.who span { font-size: 13px; color: var(--muted); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.moment { align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--amber-soft); color: var(--on-amber); font-size: 13px; font-weight: 500; text-align: center; }
.msg-me { align-self: flex-end; max-width: 80%; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: var(--on-ink); font-size: 16px; }
.msg-them { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 6px; }
.action { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.bubble { padding: 14px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-soft); font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--text); }
.sub { padding-inline: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Karakter şeridi */
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper2); margin-bottom: clamp(48px, 8vw, 80px); }
.faces { display: flex; padding-inline-end: 10px; }
.faces img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--paper2); margin-inline-end: -10px; background: var(--paper2); }
.strip p { flex: 1 1 320px; font-size: 15px; color: var(--body); }
.strip strong { color: var(--ink); }

/* Zaman çizgisi */
.timeline-box { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 20px; background: var(--paper); margin-bottom: 48px; }
.timeline { min-width: 720px; padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.timeline-who { display: flex; align-items: center; gap: 12px; }
.timeline-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.stops::before { content: ""; position: absolute; inset-inline: 10% 50%; top: 11px; height: 2px; background: var(--ink); }
.stops::after { content: ""; position: absolute; inset-inline: 50% 10%; top: 11px; border-top: 2px dashed var(--line); }
.stops li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-inline: 8px; font-size: 14px; color: var(--body); }
.stops li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.stops li.now { font-size: 15px; font-weight: 600; color: var(--text); }
.stops li.now::before { background: var(--amber); box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 22%, transparent); }
.stops li.later { color: var(--muted); }
.stops li.later::before { background: var(--paper); border: 2px dashed var(--line); }
.timeline-note { font-size: 14px; color: var(--muted); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps div { display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--amber); }
.steps h3, .cards h3 { font-size: 19px; font-weight: 600; color: var(--ink); }
.steps p, .cards p { color: var(--body); }

/* Gece bandı: kitabın dilinde */
.night { background: var(--night); color: var(--night-text); }
.night .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.night-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.night .eyebrow { color: var(--night-amber); }
.night .h2 { color: #F6F1E7; }
.night .lead { color: var(--night-body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; }
.night .chat { background: var(--night2); border-color: var(--night-line); box-shadow: none; padding: 4px 0; }
.night .chat-head { border-color: var(--night-line); }
.night .who b { color: #F6F1E7; }
.night .who span, .night .sub { color: var(--night-muted); }
.night .avatar { border-color: var(--night-line); }
.night .msg-me { background: #9DB6D6; color: #0F1A28; }
.night .bubble { background: var(--night3); border-color: var(--night-line); color: var(--night-text); }

/* Karakter ızgarası */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 20px; list-style: none; margin: 0; padding: 0; }
.people li { display: flex; flex-direction: column; gap: 10px; }
.people img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--paper2); }
.people b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.people span { font-size: 14px; color: var(--muted); }
.people div { display: flex; flex-direction: column; }

/* Görevler */
.quests .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.quests-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.quest-cards { flex: 1 1 420px; min-width: 0; max-width: 540px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.quest { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.quest-main { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.quest-main img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.quest-main div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quest-meta { font-size: 13px; color: var(--muted); }
.quest h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.quest-goal { font-size: 15px; line-height: 1.55; color: var(--body); }
.quest-bar { padding: 18px 24px 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.bar { height: 10px; border-radius: 5px; background: var(--paper3); overflow: hidden; }
.bar span { display: block; width: 64%; height: 100%; border-radius: 5px; background: var(--amber); }
.quest-mini { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; }
.quest-mini img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.quest-mini div { display: flex; flex-direction: column; min-width: 0; }
.quest-mini b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.quest-mini span { font-size: 14px; color: var(--muted); }

/* Senin yerin */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards > div { padding: 28px; border-radius: 20px; background: var(--paper2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cards svg { width: 28px; height: 28px; stroke: var(--ink); }

/* Kitaplık */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.shelf li { display: flex; flex-direction: column; gap: 12px; }
.shelf img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--paper2); }
.shelf b { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.shelf span { font-size: 14px; color: var(--muted); }
.shelf div { display: flex; flex-direction: column; }

/* Güven */
.trust { display: flex; flex-wrap: wrap; gap: 24px; }
.trust > div { flex: 1 1 320px; padding: 32px; border-radius: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.trust h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.trust p { color: var(--body); }

/* Sorular */
.faq { max-width: 860px; }
.faq .h2 { font-size: clamp(30px, 3.5vw, 40px); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; color: var(--text); min-height: 28px; }
.faq details p { margin-top: 12px; color: var(--body); }

/* Son çağrı */
.final { background: var(--ink); color: var(--on-ink); text-align: center; }
@media (prefers-color-scheme: dark) { .final { background: var(--night3); color: var(--text); } }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.12; max-width: 16em; }
.final .buttons { justify-content: center; }
.home .final .btn-primary { background: var(--on-ink); color: var(--ink); }
.home .final .btn-soon { border-color: currentColor; color: inherit; opacity: 0.8; }
@media (prefers-color-scheme: dark) { .home .final .btn-primary { background: var(--ink); color: var(--on-ink); } }

/* Alt bilgi */
.foot { padding-block: 40px 56px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-direction: column; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.home .foot a { color: var(--muted); }
.home .foot a[aria-current] { color: var(--ink); font-weight: 600; }
.foot .langs a { display: inline-block; padding-block: 6px; text-decoration: none; }
