:root {
  /* Kapaktan alınan palet: krem arka kapak, koyu kahve sırt, gri-mavi deniz/gökyüzü */
  --bg: #f6f1e6;
  --bg-alt: #ffffff;
  --panel: #ded4bf;
  --ink: #2b2018;
  --ink-soft: #5a4c3c;
  --accent: #6b4526;
  --accent-dark: #2f1f14;
  --gold: #b98a4e;
  --sea: #78868c;
  --border: #e2d8c3;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(43, 32, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Animasyon anahtar kareleri --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-14px) rotate(1.2deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0, 0 0; }
  100% { background-position: 200% 0, 0 0; }
}

@keyframes rippleYayil {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* --- Scroll ile beliren elemanlar --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  animation: fadeInUp 0.65s ease both;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.45s; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 78px 0;
}

h1, h2, h3 {
  font-family: 'Georgia', serif;
  letter-spacing: 0.2px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

/* Üst gezinme */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

header.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 18px rgba(43, 32, 24, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  position: relative;
  padding-bottom: 6px;
  animation: fadeIn 0.8s ease both;
}

.logo::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav.main-nav {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

nav.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav.main-nav a:hover {
  color: var(--accent);
  border-color: var(--gold);
}

.nav-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--accent) 75%);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(107, 69, 38, 0.28);
  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.nav-cta:hover {
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 31, 20, 0.32);
  filter: brightness(1.05);
}

/* Hero */
.hero {
  padding: 80px 0 70px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(120,134,140,0.10), transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.cover-wrap {
  display: flex;
  justify-content: center;
  perspective: 900px;
}

@keyframes coverGiris {
  from { opacity: 0; transform: translateY(18px) scale(0.94) rotate(-1.2deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(-1.2deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(8px); opacity: 1; }
}

.book-cover-photo {
  width: 100%;
  max-width: 190px;
  border-radius: 3px;
  box-shadow: -8px 10px 0 rgba(0,0,0,0.08), var(--shadow);
  animation: coverGiris 0.8s ease both, float 6s ease-in-out 0.8s infinite;
  transition: box-shadow 0.3s ease;
  display: block;
}

.book-cover-photo:hover {
  animation-play-state: paused;
  box-shadow: -10px 14px 0 rgba(0,0,0,0.1), 0 20px 38px rgba(43, 32, 24, 0.24);
}

.hero .eyebrow {
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.05s;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 6px;
  color: var(--accent-dark);
  line-height: 1.2;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.15s;
}

.badge-new {
  display: inline-block;
  vertical-align: middle;
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 30px;
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(185, 138, 78, 0.35);
}

.hero .by-author {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-style: italic;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.25s;
}

.hero p.desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.45s;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.55s;
}

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 15px 32px;
  border-radius: 30px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  background-image:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 45%, transparent 60%),
    linear-gradient(135deg, var(--gold), var(--accent) 60%, var(--accent-dark));
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(107, 69, 38, 0.32);
  animation: shimmer 3.2s linear infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(47, 31, 20, 0.4);
  filter: brightness(1.04);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark) !important;
  border: 1.5px solid var(--accent-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  background: var(--accent-dark);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(47, 31, 20, 0.22);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: rippleYayil 0.65s ease-out;
}

.btn-outline .ripple {
  background: rgba(47, 31, 20, 0.25);
}

.meta-strip {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.65s;
}

.meta-strip strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.scroll-hint span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 22px;
}

.about p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Arka kapaktan / önsöz */
.foreword {
  background: var(--panel);
}

.foreword-inner {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 46px;
  align-items: start;
}

.foreword-image {
  position: sticky;
  top: 100px;
}

.foreword-image img {
  width: 100%;
  max-width: 190px;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foreword-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(43, 32, 24, 0.2);
}

.foreword-text .quote-mark {
  font-size: 3.4rem;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: -10px;
}

.foreword-text h2 {
  font-size: 1.9rem;
  color: var(--accent-dark);
  margin: 0 0 22px;
}

.foreword-text p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  font-style: italic;
  margin-bottom: 16px;
}

.foreword-signature {
  margin-top: 22px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: var(--accent);
  font-style: normal;
  text-align: right;
}

/* İkinci önsöz: ters düzen ve farklı zemin ile ayrışır */
.foreword-alt {
  background: var(--bg);
}

.foreword-alt .foreword-inner {
  grid-template-columns: 1fr 190px;
}

.foreword-alt .foreword-image {
  order: 2;
}

.foreword-alt .foreword-text {
  order: 1;
}

/* Yazar */
.author-section {
  background: var(--accent-dark);
  color: #ecdfc9;
}

.author-inner {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: center;
}

.author-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  font-family: Georgia, serif;
  box-shadow: var(--shadow), 0 0 0 8px rgba(185, 138, 78, 0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-photo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow), 0 0 0 12px rgba(185, 138, 78, 0.25);
}

.author-section h2 {
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: #fff;
}

.author-section .role {
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
}

.author-section p.bio {
  color: #ecdfc9;
  font-size: 1.02rem;
}

/* Satın alma / CTA */
.buy-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-align: center;
}

.buy-section h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.buy-section p {
  color: #ecdfc9;
  margin-bottom: 34px;
  font-size: 1.05rem;
}

.store-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-links a {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 30px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.store-links a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--ink);
  color: #a99c8a;
  padding: 34px 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

footer .footer-title {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* Yukarı çık butonu */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, visibility 0.3s;
  z-index: 60;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-group, .meta-strip {
    justify-content: center;
  }
  .foreword-inner,
  .foreword-alt .foreword-inner {
    grid-template-columns: 1fr;
  }
  .foreword-image,
  .foreword-alt .foreword-image {
    position: static;
    max-width: 260px;
    margin: 0 auto 30px;
    order: 0;
  }
  .foreword-alt .foreword-text {
    order: 0;
  }
  .foreword-signature {
    text-align: left;
  }
  .author-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* --- Mobil: hamburger menü --- */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  nav.main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(43, 32, 24, 0.1);
    padding: 10px 24px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  nav.main-nav.is-open {
    max-height: 380px;
    opacity: 1;
    padding: 14px 24px 22px;
  }

  nav.main-nav a {
    margin-left: 0;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav.main-nav a.nav-cta {
    width: auto;
    margin-top: 8px;
    border-bottom: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 56px 0;
  }
  .container {
    padding: 0 18px;
  }
  .logo {
    font-size: 0.95rem;
  }
  .hero {
    padding: 56px 0 46px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .badge-new {
    font-size: 0.56rem;
    padding: 3px 8px;
  }
  .hero .by-author {
    font-size: 1rem;
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-group .btn {
    text-align: center;
    padding: 14px 24px;
  }
  .meta-strip {
    gap: 18px;
  }
  .about h2,
  .foreword-text h2,
  .author-section h2,
  .buy-section h2 {
    font-size: 1.5rem;
  }
  .author-photo {
    width: 130px;
    height: 130px;
    font-size: 2rem;
  }
  .author-inner {
    grid-template-columns: 1fr;
  }
  .store-links {
    flex-direction: column;
    align-items: stretch;
  }
  .store-links a {
    text-align: center;
  }
}

/* --- Lansman duyurusu (sitenin en başı) --- */
.launch {
  padding: 64px 0 70px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(120, 134, 140, 0.18), transparent 60%),
    linear-gradient(180deg, #eef0ee 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.launch-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 52px;
  align-items: center;
}

.launch-poster {
  display: block;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  justify-self: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31, 52, 62, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.launch-poster:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(31, 52, 62, 0.28);
}

.launch-poster img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.launch-text {
  min-width: 0;
}

.launch-text .eyebrow {
  color: #1f5566;
}

.launch-text h2 {
  font-size: 2.2rem;
  margin: 0 0 18px;
  color: #1f4a58;
  line-height: 1.2;
}

.launch-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 14px;
}

.launch-text .launch-curator {
  font-style: italic;
  color: var(--accent);
  margin-top: 18px;
}

.launch-details {
  list-style: none;
  padding: 18px 20px;
  margin: 22px 0 26px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid #1f5566;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
}

.launch-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.launch-icon {
  width: 1.4em;
  text-align: center;
}

.launch-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.launch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}

.launch-tags span {
  color: #1f5566;
  background: rgba(31, 85, 102, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
}

@media (max-width: 780px) {
  .launch-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .launch-poster {
    max-width: 260px;
    margin: 0 auto;
  }
  .launch-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }
  .launch-text .eyebrow {
    text-align: center;
  }
  .launch-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .launch {
    padding: 32px 0 46px;
  }
  .launch-poster {
    max-width: 210px;
  }
  .launch-text h2 {
    font-size: 1.5rem;
  }
  .launch-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .launch-actions .btn {
    text-align: center;
  }
}

/* Boyut nitelikleri olan görseller oranını korusun */
.book-cover-photo,
.foreword-image img,
.launch-poster img {
  height: auto;
}
