/* 4homes stage — ortak tasarım sistemi (Tavola v1.5 konsept diliyle) */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/lora.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/opensans-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/opensans-600.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/opensans-700.woff2') format('woff2'); }

:root {
  --ink: #221c16; --ink-soft: #4a4238; --paper: #fbfaf7; --greige: #f0ebe7;
  --greige-deep: #e4dcd4; --line: #ddd5cc; --taupe: #8c8276; --red: #c8102e; --red-deep: #9d0c23;
  --serif: 'Lora', Georgia, serif; --sans: 'Open Sans', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 40px; min-height: 76px; }
.logo-img { height: 40px; width: auto; display: block; }
nav.main { display: flex; gap: 28px; margin-left: auto; }
nav.main a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
nav.main a:hover, nav.main a.active { color: var(--ink); border-bottom-color: var(--red); }

/* Categories dropdown */
.nav-drop { position: relative; }
.nav-drop > button { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); background: none; border: none; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color .15s, border-color .15s; }
.nav-drop > button::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .2s; opacity: .6; }
.nav-drop:hover > button, .nav-drop:focus-within > button { color: var(--ink); border-bottom-color: var(--red); }
.nav-drop:hover > button::after, .nav-drop:focus-within > button::after { transform: rotate(225deg) translateY(-1px); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 240px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(34,28,22,.14); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 60; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 11px; height: 11px; background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.nav-menu a { display: block; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-bottom: none; transition: background .12s, color .12s; }
.nav-menu a:hover { background: var(--greige); color: var(--red); border-bottom: none; }
.nav-menu .all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--ink); }
.btn { display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 700; text-decoration: none; padding: 12px 26px; background: var(--red); color: #fff; border: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
header.site .btn { padding: 10px 20px; }
@media (max-width: 900px) { nav.main { display: none; } header.site .btn { margin-left: auto; } }

/* sayfa hero */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4vw, 44px); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 0; max-width: 20ch; text-wrap: balance; }
.page-hero .lede { margin: 18px 0 0; max-width: 62ch; font-size: 17px; color: var(--ink-soft); }
.crumb { font-size: 12.5px; color: var(--taupe); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--red); }

/* bölümler */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.greige { background: var(--greige); }
.section.ink { background: var(--ink); color: var(--paper); }
.section.ink .eyebrow { color: #e5b3bd; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.section-sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.section.ink .section-sub { color: #b3aa9e; }

/* prose (CMS gövde metni) */
.prose { max-width: 70ch; color: var(--ink-soft); }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); margin: 30px 0 8px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--red); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.chip { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; text-decoration: none; transition: all .15s; }
.chip:hover { border-color: var(--taupe); color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }


/* marka grid — logo kutucukları */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.brand-card { position: relative; background: #fff; border: 1px solid var(--line); min-height: 104px; display: flex; align-items: center; justify-content: center; padding: 20px 18px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--taupe); box-shadow: 0 5px 16px rgba(34,28,22,.09); }
.brand-card.has-logo img { max-width: 80%; max-height: 48px; object-fit: contain; display: block; }
.brand-card .brand-name-text { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); transition: color .15s; }
.brand-card:hover .brand-name-text { color: var(--red); }
.brand-card .cat-badge { position: absolute; top: 8px; right: 10px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }

/* A-Z atlama çubuğu + harf grupları */
.az-bar { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 0; }
.az-bar a { min-width: 27px; text-align: center; padding: 4px 5px; font-size: 13px; font-weight: 700; color: var(--ink-soft); text-decoration: none; border-radius: 4px; transition: background .12s, color .12s; }
.az-bar a:hover { background: var(--ink); color: var(--paper); }
.az-bar a.off { color: var(--greige-deep); pointer-events: none; }
.letter-group { margin-bottom: clamp(30px, 4vw, 46px); }
.letter-group:last-child { margin-bottom: 0; }
.letter-head { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--red); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
[id^="letter-"] { scroll-margin-top: 92px; }
.count-note { font-size: 13px; color: var(--taupe); margin: 22px 0 0; }
.count-note a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.count-note a:hover { color: var(--red); border-color: var(--red); }

/* kitaplık (katalog kartları) */
.cat-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(18px, 2.6vw, 30px); align-items: start; }
.book { text-decoration: none; display: block; perspective: 900px; }
.book .cover { position: relative; aspect-ratio: 3 / 4.1; background: #f6f2ec; padding: 16px 16px 16px 20px;
  display: flex; flex-direction: column; justify-content: center; transform-origin: left center;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: inset 9px 0 14px -9px rgba(0,0,0,.38), 1px 0 0 #d9d2c7, 3px 0 0 #efe9df, 4px 1px 0 #d9d2c7, 6px 2px 0 #efe9df, 10px 14px 28px rgba(0,0,0,.45); }
.book:hover .cover { transform: rotateY(-14deg); }
.book .cover::before { content: ''; position: absolute; inset: 0 auto 0 6px; width: 1px; background: rgba(0,0,0,.08); }
.book .cover-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.book .brand-name { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; color: var(--ink); text-align: center; text-wrap: balance; letter-spacing: -0.01em; }
.book .under { margin-top: 12px; font-size: 12px; line-height: 1.45; color: #b3aa9e; display: block; }
.book .under b { color: var(--paper); font-weight: 600; }
.section:not(.ink) .book .under { color: var(--taupe); }
.section:not(.ink) .book .under b { color: var(--ink); }
.book .cover .lang-badge { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; color: #fff; background: rgba(0,0,0,.35); }
/* full-bleed rendered PDF covers */
.book.has-cover .cover { padding: 0; background: #fff; overflow: hidden; }
.book .cover-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.book.has-cover .cover::before { z-index: 2; inset: 0 auto 0 0; width: 16px; background: linear-gradient(to right, rgba(0,0,0,.30), rgba(0,0,0,.05) 55%, transparent); }
/* landscape/wide covers: show the whole cover (no zoom-crop) on a clean card */
.book.is-wide .cover { background: #fff; }
.book.is-wide .cover-img { object-fit: contain; object-position: center; }
.book.is-wide .cover::before { display: none; }

/* kart listeleri (retail) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--greige-deep); border: 1px solid var(--greige-deep); }
.card { background: var(--paper); padding: 32px 30px 36px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: background .15s; }
.card:hover { background: #fff; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.card p { font-size: 14.5px; color: var(--ink-soft); flex-grow: 1; }
.card .meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.card .go { font-size: 13.5px; font-weight: 700; color: var(--red); }

/* lokasyon akordiyonu */
.loc-acc { border-top: 2px solid var(--ink); max-width: 760px; }
.loc-acc details { border-bottom: 1px solid var(--line); }
.loc-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.loc-acc summary::-webkit-details-marker { display: none; }
.loc-acc summary .n { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--taupe); }
.loc-acc details[open] summary .n::after { content: ' —'; }
.loc-list { padding: 0 4px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.loc { background: var(--greige); padding: 14px 16px; font-size: 13.5px; }
.loc b { display: block; font-weight: 600; margin-bottom: 3px; }
.loc span { display: block; color: var(--ink-soft); line-height: 1.4; }
.loc a { color: var(--red); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.loc a:hover { text-decoration: underline; }

/* stat band (retail ülke özeti vb.) */
.stat-rail { display: grid; }
.stat { padding: clamp(24px, 3vw, 40px) 22px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: none; padding-left: 0; }
.section.ink .stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--paper); }
.section.ink .stat span { display: block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
@media (max-width: 700px) { .stat-rail { grid-template-columns: repeat(3,1fr) !important; } .stat { padding: 20px 14px; } .stat:nth-child(3n+1) { border-left: none; padding-left: 0; } }

/* görsel bantlar */
.figure-band { margin-left: auto; margin-right: auto; margin-bottom: clamp(28px, 4vw, 44px); }
.figure-band img { width: 100%; aspect-ratio: 5 / 2; max-height: 400px; object-fit: cover; object-position: center; display: block; }

/* footer */
footer.site { background: var(--ink); color: #b3aa9e; padding: 56px 0 40px; font-size: 13.5px; }
main + footer.site { margin-top: 0; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 34ch; line-height: 1.7; }
.foot-brand img { height: 34px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.foot-cols { display: flex; gap: clamp(36px, 5vw, 80px); flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6f675c; margin-bottom: 4px; }
.foot-col a { color: #cfc8bf; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-social { display: flex; gap: 10px; margin-top: 22px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid #3a332b; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #cfc8bf; transition: background .15s, color .15s, border-color .15s; }
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.foot-social svg { width: 18px; height: 18px; display: block; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a332b; display: flex; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; font-size: 12.5px; color: #6f675c; }
.foot-legal-links a { color: #8c8276; text-decoration: none; }
.foot-legal-links a:hover { color: #cfc8bf; }

.stage-badge { position: fixed; bottom: 18px; right: 18px; z-index: 90; background: var(--ink); color: #f0ebe7; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.28); opacity: .92; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
