:root {
  --ink: #1a2e2a;
  --ink-soft: #3d5a52;
  --muted: #6b857c;
  --paper: #f3f7f5;
  --surface: #ffffff;
  --line: rgba(26, 46, 42, 0.1);
  --accent: #0d7a5f;
  --accent-hover: #0a5f4a;
  --accent-soft: #e4f3ee;
  --shadow: 0 12px 32px rgba(26, 46, 42, 0.08);
  --radius: 18px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 122, 95, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(196, 140, 60, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(13, 122, 95, 0.08), transparent 60%),
    linear-gradient(180deg, #eef5f2 0%, var(--paper) 40%, #e8f0ec 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a2e2a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
  text-align: center;
  animation: rise 0.7s ease both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #0d7a5f 0%, #159a78 55%, #c48c3c 100%);
  box-shadow: 0 8px 20px rgba(13, 122, 95, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px 14px 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  border-left-width: 5px;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-lead {
  margin: 0.9rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.65s ease both;
}

.book-card:nth-child(1) { animation-delay: 0.05s; }
.book-card:nth-child(2) { animation-delay: 0.12s; }
.book-card:nth-child(3) { animation-delay: 0.19s; }
.book-card:nth-child(4) { animation-delay: 0.26s; }
.book-card:nth-child(5) { animation-delay: 0.33s; }
.book-card:nth-child(6) { animation-delay: 0.4s; }

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 46, 42, 0.12);
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #dce8e3, #c7d8d1);
  box-shadow:
    inset -8px 0 16px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(26, 46, 42, 0.12);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.08) 6%,
    transparent 14%
  );
}

.book-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.book-meta {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.board-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.board-btn:hover {
  background: var(--accent-hover);
}

.board-btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.board-btn:active {
  transform: scale(0.98);
}

.board-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet: 2 kolon */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil: 1 kolon */
@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .book-cover {
    aspect-ratio: 4 / 3;
    max-height: 200px;
  }

  .site-header {
    padding-top: 1.75rem;
  }
}

/* Geniş ekran rahatlığı */
@media (min-width: 1200px) {
  .book-title {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
