/*
Theme Name: Furkan Çolak
Theme URI: https://furkancolak.tr
Author: Furkan Çolak
Author URI: https://furkancolak.tr
Description: Furkan Çolak için özel, minimalist klasik WordPress teması. Kitap, oyun, röportaj ve öykü çalışmalarını sergiler.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: furkan-colak
*/

/* ──────────────────────────────────────────────────────────────────────────
   Design tokens — sourced exactly from the approved Figma/Stitch export
   (colors, type scale, spacing). Do not adjust without a new export.
   ────────────────────────────────────────────────────────────────────────── */
:root {
	--color-bg: #141414;
	--color-surface: #1c1c1c;
	--color-card-image-bg: #0e0e0e;
	--color-text: #f0f0f0;
	--color-muted: #8a8a8a;
	--color-divider: #2a2a2a;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Epilogue', system-ui, sans-serif;

	--container-max: 1080px;
	--container-pad: 32px;
}

/* ──────────────────────────────────────────────────────────────────────────
   Self-hosted fonts (Turkish glyph coverage verified: ç ğ ı İ ö ş ü)
   ────────────────────────────────────────────────────────────────────────── */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url('fonts/fraunces-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Epilogue';
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url('fonts/epilogue-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Epilogue';
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url('fonts/epilogue-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ──────────────────────────────────────────────────────────────────────────
   Reset & base
   ────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
	background-color: var(--color-bg);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: 400;
	min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::-webkit-scrollbar { width: 0; height: 0; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	padding: 12px 18px;
	background: var(--color-surface);
	color: var(--color-text);
	z-index: 100;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

/* ──────────────────────────────────────────────────────────────────────────
   Header
   ────────────────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-divider);
}

.site-header__bar {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header__wordmark {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--color-text);
	white-space: nowrap;
	text-decoration: none;
}

.site-nav ul {
	display: flex;
	gap: 36px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-muted);
	transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item a,
.site-nav a[aria-current="page"] {
	color: var(--color-text);
}

.site-header__right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-header__search,
.site-header__menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-muted);
	padding: 4px;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}
.site-header__search:hover,
.site-header__search:focus-visible,
.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
	color: var(--color-text);
}

.site-header__menu-toggle { display: none; }

.site-header__search-form {
	display: none;
}

.mobile-nav {
	border-top: 1px solid var(--color-divider);
	padding: 20px var(--container-pad) 24px;
	display: none;
}
.mobile-nav.is-open { display: block; }

.mobile-nav ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav a {
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-muted);
	text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible { color: var(--color-text); }

/* ──────────────────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────────────────── */
.site-footer {
	border-top: 1px solid var(--color-divider);
	padding: 40px var(--container-pad) 36px;
}

.site-footer__row {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-footer__social {
	display: flex;
	gap: 20px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__social a {
	color: var(--color-muted);
	transition: color 0.2s;
	display: flex;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible { color: var(--color-text); }

.site-footer__bottom {
	max-width: var(--container-max);
	margin: 28px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--color-divider);
}
.site-footer__bottom p {
	font-size: 11px;
	color: var(--color-muted);
	letter-spacing: 0.04em;
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   Section heading row (shared across list sections)
   ────────────────────────────────────────────────────────────────────────── */
.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-divider);
}
.section-heading__label {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin: 0;
}
.section-heading__link {
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.section-heading__link:hover,
.section-heading__link:focus-visible { color: var(--color-text); }

/* ──────────────────────────────────────────────────────────────────────────
   Home — hero
   ────────────────────────────────────────────────────────────────────────── */
.hero {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 72px var(--container-pad) 80px;
}

.hero__photo {
	width: 100%;
	max-width: 520px;
	margin: 0 auto 48px;
	aspect-ratio: 9 / 11;
	overflow: hidden;
	background-color: var(--color-surface);
}
.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(20%) brightness(0.9);
}
.hero__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero__body {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}
.hero__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 28px;
	color: var(--color-text);
}
.hero__bio p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--color-muted);
	font-weight: 300;
	margin: 0 0 12px;
}
.hero__bio p:last-child { margin-bottom: 0; }
.hero__bio a {
	color: var(--color-text);
	text-decoration: none;
	border-bottom: 1px solid var(--color-divider);
}

/* ──────────────────────────────────────────────────────────────────────────
   Post list rows (Son Yazılar / Diğer Yazılar)
   ────────────────────────────────────────────────────────────────────────── */
.post-list-section {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad) 96px;
}

.post-row-list { list-style: none; margin: 0; padding: 0; }

.post-row {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 0 24px;
	align-items: baseline;
	padding: 22px 0;
	border-bottom: 1px solid var(--color-divider);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.post-row:hover,
.post-row:focus-visible { opacity: 0.6; }

.post-row__date {
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--color-muted);
	white-space: nowrap;
	padding-top: 2px;
}
.post-row__title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 300;
	color: var(--color-text);
	display: block;
	margin-bottom: 4px;
	line-height: 1.3;
}
.post-row__excerpt {
	font-size: 13px;
	color: var(--color-muted);
	font-weight: 300;
	line-height: 1.5;
}
.post-row__type {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
	white-space: nowrap;
	align-self: center;
}

/* Works "Diğer Yazılar" rows are visually identical but slightly denser */
.works-row {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	gap: 0 24px;
	align-items: baseline;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-divider);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.works-row:hover,
.works-row:focus-visible { opacity: 0.6; }
.works-row .post-row__title { font-size: 17px; }

/* ──────────────────────────────────────────────────────────────────────────
   Biography
   ────────────────────────────────────────────────────────────────────────── */
.biography {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 64px var(--container-pad) 96px;
}

.bio-grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 0 64px;
	align-items: start;
	margin-bottom: 80px;
}

.bio-grid__photo {
	position: sticky;
	top: 88px;
	background-color: var(--color-surface);
	overflow: hidden;
	aspect-ratio: 3 / 4;
}
.bio-grid__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(25%) brightness(0.88);
}

.bio-grid__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--color-text);
	margin: 0 0 10px;
}
.bio-grid__text p {
	font-size: 15px;
	line-height: 1.8;
	font-weight: 300;
	color: var(--color-muted);
	margin: 0 0 24px;
}
.bio-grid__text p:first-child { color: var(--color-text); }

/* Interviews & talks — hand-authored below the bio in the same page
   content, distinguished from the bio paragraphs by heading + list
   styling rather than a separate field/CPT. */
.bio-grid__text h2,
.content-page__body h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
	padding-bottom: 12px;
	margin: 56px 0 4px;
	border-bottom: 1px solid var(--color-divider);
}

.bio-grid__text ul,
.content-page__body ul,
.bio-grid__text ol,
.content-page__body ol {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.bio-grid__text li,
.content-page__body li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 20px;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-divider);
	font-size: 12px;
	color: var(--color-muted);
	font-weight: 300;
}
.bio-grid__text li a,
.content-page__body li a {
	font-family: var(--font-display);
	font-size: 14px;
	color: var(--color-text);
	border-bottom: none;
	text-decoration: none;
}
.bio-grid__text li a:hover,
.content-page__body li a:hover { opacity: 0.7; }

.interviews-list { list-style: none; margin: 0; padding: 0; }

.interview-row {
	display: grid;
	grid-template-columns: 1fr 160px 72px;
	gap: 0 20px;
	align-items: baseline;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-divider);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.interview-row:hover,
.interview-row:focus-visible { opacity: 0.55; }

.interview-row__title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 300;
	color: var(--color-text);
	line-height: 1.4;
}
.interview-row__outlet {
	font-size: 11px;
	color: var(--color-muted);
	font-weight: 300;
	text-align: right;
	white-space: nowrap;
}
.interview-row__date {
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--color-muted);
	text-align: right;
	white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   Works — featured cards
   ────────────────────────────────────────────────────────────────────────── */
.works {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 64px var(--container-pad) 96px;
}

.featured-section { margin-bottom: 72px; }
.featured-section .section-heading { margin-bottom: 36px; }

.featured-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.featured-card {
	text-decoration: none;
	color: inherit;
	display: block;
	background-color: var(--color-surface);
}

.featured-card__image {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: var(--color-card-image-bg);
	position: relative;
}
.featured-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(30%) brightness(0.75);
	transition: transform 0.55s cubic-bezier(0.25, 0, 0, 1);
}
.featured-card:hover .featured-card__image img,
.featured-card:focus-visible .featured-card__image img {
	transform: scale(1.025);
}

.featured-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}
.featured-card__image--placeholder svg { color: var(--color-divider); }

.featured-card__body { padding: 20px 24px 24px; }
.featured-card__type {
	display: inline-block;
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 10px;
}
.featured-card__title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--color-text);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}
.featured-card__excerpt {
	font-size: 13px;
	color: var(--color-muted);
	font-weight: 300;
	line-height: 1.55;
	margin: 0;
}

.works-list-section .section-heading { margin-bottom: 0; }
.works-row-list { list-style: none; margin: 0; padding: 0; }

/* ──────────────────────────────────────────────────────────────────────────
   Pagination
   ────────────────────────────────────────────────────────────────────────── */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 36px;
	gap: 16px;
	flex-wrap: wrap;
}
.pagination .page-numbers {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s;
	padding: 6px 4px;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { color: var(--color-text); }

/* ──────────────────────────────────────────────────────────────────────────
   Generic single / page / search / 404 content
   (Not defined in the Figma export — kept consistent with the token system
   above so pages WordPress requires but the design didn't mock up still
   look intentional rather than broken.)
   ────────────────────────────────────────────────────────────────────────── */
.content-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 64px var(--container-pad) 96px;
}
.content-page__eyebrow {
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin: 0 0 16px;
}
.content-page__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--color-text);
	margin: 0 0 32px;
}
.content-page__meta {
	font-size: 12px;
	color: var(--color-muted);
	letter-spacing: 0.04em;
	margin: 0 0 40px;
}
.content-page__body { font-size: 16px; line-height: 1.8; font-weight: 300; color: var(--color-muted); }
.content-page__body p { margin: 0 0 24px; }
.content-page__body a { color: var(--color-text); border-bottom: 1px solid var(--color-divider); text-decoration: none; }
.content-page__body h2 { font-family: var(--font-display); font-weight: 300; color: var(--color-text); font-size: 26px; margin: 40px 0 16px; }
.content-page__body img { margin: 32px 0; }
.content-page__body figure { margin: 32px 0; }
.content-page__body blockquote {
	margin: 32px 0;
	padding-left: 24px;
	border-left: 1px solid var(--color-divider);
	font-family: var(--font-display);
	font-style: normal;
	color: var(--color-text);
}

.search-form { display: flex; gap: 12px; margin: 0 0 48px; }
.search-form__input {
	flex: 1;
	background: var(--color-surface);
	border: 1px solid var(--color-divider);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 12px 16px;
}
.search-form__input::placeholder { color: var(--color-muted); }
.search-form__submit {
	background: none;
	border: 1px solid var(--color-divider);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 12px 20px;
	cursor: pointer;
	transition: border-color 0.2s;
}
.search-form__submit:hover,
.search-form__submit:focus-visible { border-color: var(--color-text); }

/* ──────────────────────────────────────────────────────────────────────────
   Responsive — mirrors the breakpoint used in the approved export (720px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.site-nav { display: none; }
	.site-header__menu-toggle { display: flex; }

	.bio-grid {
		grid-template-columns: 1fr;
		gap: 40px 0;
	}
	.bio-grid__photo {
		position: static;
		max-width: 320px;
		margin: 0 auto;
	}

	.featured-grid {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.post-row,
	.works-row {
		grid-template-columns: 1fr;
		gap: 4px 0;
	}
	.post-row__type,
	.works-row .post-row__type { align-self: start; }

	.interview-row {
		grid-template-columns: 1fr;
		gap: 4px 0;
	}
	.interview-row__outlet,
	.interview-row__date { text-align: left; }
}

@media (max-width: 420px) {
	:root { --container-pad: 20px; }
}
