/* Gülnur Gündoğan Çizmeci — site stilleri */
:root {
    --bg: #faf6f0;
    --bg-tint: #f3ece2;
    --surface: #ffffff;
    --ink: #2a1f23;
    --ink-soft: #4a3d42;
    --muted: #7d6e72;
    --line: #e6dccf;
    --accent: #9b3550;
    --accent-dark: #7a2840;
    --accent-soft: #f4e3e7;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(42, 31, 35, .06), 0 8px 24px rgba(42, 31, 35, .07);
    --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.brand-sub { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--bg); padding: 12px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
    .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 12px 26px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker a { text-decoration: none; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--accent); }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--accent); border-radius: 200px 200px var(--radius) var(--radius); opacity: .35; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) {
    .hero { padding: 32px 0 48px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { max-width: 360px; margin: 0 auto; order: -1; }
    .hero-photo::before { inset: 16px -16px -16px 16px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head.center { justify-content: center; }
.section-head h2 { margin: 0; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: .2em; }
@media (max-width: 640px) { .section { padding: 52px 0; } .page-head { padding: 36px 0 0; } }

/* Books */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.book { text-decoration: none; color: var(--ink); text-align: center; }
.book h3 { margin: 18px 0 2px; font-size: 1.4rem; }
.book-cover { display: block; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--line); box-shadow: -6px 0 0 -2px rgba(0,0,0,.05), var(--shadow); transition: transform .25s, box-shadow .25s; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book-cover { transform: translateY(-6px) rotate(-1deg); }
@media (max-width: 900px) { .books { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

.book-list { display: grid; gap: 56px; }
.book-row { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.book-row h2 a { color: var(--ink); text-decoration: none; }
.book-row h2 a:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .book-row { grid-template-columns: 120px 1fr; gap: 20px; } .book-row h2 { font-size: 1.6rem; } }

.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.book-cover.large { margin: 0; position: sticky; top: 100px; }
.book-text p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .book-detail { grid-template-columns: 1fr; gap: 32px; } .book-cover.large { position: static; max-width: 260px; margin: 0 auto; } }

/* About */
.about-teaser { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-name { font-size: 2rem; }
.prose { color: var(--ink-soft); }
.prose p { max-width: 42em; }
@media (max-width: 820px) {
    .about-teaser, .about { grid-template-columns: 1fr; gap: 28px; }
    .about-photo { position: static; max-width: 380px; }
}

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe, .video-play, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: #000; }
.video-play img { object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s; }
.play-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play-icon { transform: scale(1.08); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(42,31,35,.06), 0 16px 36px rgba(42,31,35,.12); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 22px 22px; }
.card-body time { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.card-body h3 { margin: 4px 0 0; font-size: 1.3rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); color: var(--ink-soft); }
.pager a:hover { background: var(--accent-soft); }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Post detail */
.post-body { margin-bottom: 40px; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--line); }
.gallery img { width: 100%; transition: transform .35s, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.post-nav a span { display: block; font: 500 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.post-nav .next { text-align: right; }
.post-nav a:hover { color: var(--accent); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20, 14, 16, .94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; touch-action: pan-y; }
.lb.open { opacity: 1; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); user-select: none; }
.lb button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb button:hover { background: rgba(255,255,255,.2); }
.lb .lb-close { top: 18px; right: 18px; }
.lb .lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb .lb-next { right: 18px; top: 50%; margin-top: -26px; }
.lb .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 640px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 12px; margin: 0; } .lb .lb-count { bottom: 28px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-form form { background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 32px; } .contact-form form { padding: 22px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.field-error, .field-validation-error { color: #b42318; font-size: .9rem; }
.input-validation-error { border-color: #d92d20 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.notice.success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.notice.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.notice.error:empty, .validation-summary-valid { display: none; }
.notice ul { margin: 0; padding-left: 18px; }

/* Social */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); transition: background .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

/* Footer */
.site-footer { background: var(--ink); color: #e9dfe2; padding: 56px 0 24px; margin-top: 0; }
.site-footer .muted { color: #b4a5aa; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #fff; }
.site-footer .social a { border-color: rgba(255,255,255,.2); color: #e9dfe2; }
.site-footer .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: .9rem; color: #b4a5aa; }
.footer-bottom a { color: #e9dfe2; }

.error-page { padding: 40px 0; }

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