/*
Theme Name: Yedinet
Theme URI: https://example.com/yedinet
Author: Yedinet
Author URI: https://example.com
Description: Görselsiz, aşırı sade ve minimal bir blog teması. Başlık, kısa açıklama, kategori ve tarihten ibaret bir okuma deneyimi sunar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: yedinet
*/

/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
	--color-paper: #fafaf8;
	--color-ink: #1c1c1a;
	--color-muted: #6b6a63;
	--color-line: #dcdad3;
	--color-accent: #2f5233;
	--color-accent-soft: #eef1ec;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--content-width: 1200px;
	--bleed-width: 1400px;
	--gutter: 24px;
}

@media (min-width: 900px) {
	:root {
		--gutter: 56px;
	}

	body {
		font-size: 18px;
	}
}

@media (min-width: 1600px) {
	:root {
		--gutter: 96px;
	}

	body {
		font-size: 19px;
	}
}

/* ---------------------------------------------
   Reset (minimal)
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input {
	font-family: inherit;
}

::selection {
	background: var(--color-accent-soft);
	color: var(--color-accent);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

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

/* ---------------------------------------------
   Layout shell
--------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wrap {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------------------------------------------
   Header / Navbar
--------------------------------------------- */
.site-header {
	border-bottom: 1px solid var(--color-line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 22px;
	padding-bottom: 22px;
	flex-wrap: wrap;
}

.site-logo {
	font-family: var(--font-display);
	font-size: clamp(20px, 1vw + 16px, 26px);
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.primary-nav {
	flex: 1 1 auto;
}

.primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.primary-nav a {
	font-size: 15px;
	color: var(--color-muted);
	transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
	color: var(--color-ink);
}

.primary-nav .current-menu-item > a {
	color: var(--color-ink);
}

/* Search */
.site-search {
	margin-left: auto;
}

.search-form {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--color-line);
	transition: border-color 0.15s ease;
}

.search-form:focus-within {
	border-color: var(--color-ink);
}

.search-form__input {
	border: none;
	background: transparent;
	padding: 4px 2px;
	font-size: 14px;
	width: 140px;
	color: var(--color-ink);
}

.search-form__input::placeholder {
	color: var(--color-muted);
}

.search-form__input:focus {
	outline: none;
	width: 180px;
}

.search-form__submit {
	border: none;
	background: none;
	padding: 4px 2px;
	cursor: pointer;
	color: var(--color-muted);
	font-size: 14px;
}

.search-form__submit:hover {
	color: var(--color-ink);
}

/* Small screens: menu wraps under logo/search */
@media (max-width: 560px) {
	.site-header .wrap {
		gap: 12px;
	}

	.primary-nav {
		order: 3;
		flex-basis: 100%;
	}

	.primary-nav ul {
		gap: 16px;
	}

	.search-form__input {
		width: 100px;
	}
}

/* ---------------------------------------------
   Main content
--------------------------------------------- */
.site-main {
	flex: 1 1 auto;
	padding: 48px 0 64px;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(26px, 1.2vw + 20px, 38px);
	font-weight: 600;
	margin: 0 0 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--color-line);
}

/* ---------------------------------------------
   Post list (home / archive / search)
--------------------------------------------- */
.post-list {
	display: flex;
	flex-direction: column;
}

.post-item {
	padding: 32px 0;
	border-bottom: 1px solid var(--color-line);
}

.post-item:first-child {
	padding-top: 0;
}

.post-item__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 1vw + 20px, 32px);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
}

.post-item__title a:hover {
	color: var(--color-accent);
}

.post-item__meta {
	font-size: 13px;
	color: var(--color-muted);
	margin-bottom: 12px;
}

.post-item__meta .cat {
	color: var(--color-accent);
}

.post-item__meta .sep {
	margin: 0 6px;
	color: var(--color-line);
}

.post-item__excerpt {
	color: var(--color-muted);
	font-size: 16px;
	max-width: 60ch;
}

.post-item__excerpt p {
	margin: 0;
}

/* ---------------------------------------------
   Single post / page
--------------------------------------------- */
.entry-header {
	margin-bottom: 32px;
}

.entry-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 1.6vw + 24px, 52px);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 12px;
}

.entry-meta {
	font-size: 13px;
	color: var(--color-muted);
}

.entry-meta .cat {
	color: var(--color-accent);
}

.entry-meta .sep {
	margin: 0 6px;
	color: var(--color-line);
}

.entry-content {
	font-size: 18px;
	line-height: 1.75;
	max-width: 68ch;
}

.entry-content > * + * {
	margin-top: 1.4em;
}

.entry-content h2 {
	font-family: var(--font-display);
	font-size: 24px;
	margin-top: 2em;
}

.entry-content h3 {
	font-family: var(--font-display);
	font-size: 20px;
	margin-top: 1.8em;
}

.entry-content blockquote {
	margin: 0;
	padding-left: 20px;
	border-left: 2px solid var(--color-accent);
	color: var(--color-muted);
	font-style: italic;
}

.entry-content a {
	color: var(--color-accent);
	border-bottom: 1px solid var(--color-line);
}

.entry-content a:hover {
	border-color: var(--color-accent);
}

/* Görseller metin sütununa sıkışmasın, biraz daha geniş nefes alsın */
.entry-content img,
.entry-content figure,
.entry-content .wp-block-image {
	max-width: min(var(--bleed-width), calc(100vw - 2 * var(--gutter)));
	width: 100%;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--color-muted);
	text-align: center;
}

.post-navigation {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--color-line);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
}

.post-navigation a {
	color: var(--color-muted);
}

.post-navigation a:hover {
	color: var(--color-accent);
}

/* ---------------------------------------------
   Pagination
--------------------------------------------- */
.pagination {
	margin-top: 40px;
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--color-muted);
}

.pagination a:hover {
	color: var(--color-accent);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--color-line);
	padding: 24px 0;
	font-size: 13px;
	color: var(--color-muted);
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------------------------------------------
   Empty state
--------------------------------------------- */
.no-results {
	color: var(--color-muted);
}

.no-results .search-form {
	margin-top: 20px;
	max-width: 280px;
}
