/*
Theme Name: Kıbrıs Sol Haber
Description: Türkçe haber siteleri için manşet, son haberler, kategori bölümleri ve okunaklı haber sayfaları sunan WordPress teması.
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: kibris-sol-haber
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@font-face {
	font-family: Newsreader;
	src: url('assets/fonts/newsreader-latin-ext.woff2') format('woff2');
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Newsreader;
	src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin-ext.woff2') format('woff2');
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: #faf8f3;
	--sheet: #fffdf8;
	--ink: #201e1b;
	--muted: #625c53;
	--rule: #d7cfc3;
	--accent: #a42a2e;
	--wash: #f1ece3;
	--footer-muted: #d4c9bb;
	--display: Newsreader, Georgia, serif;
	--ui: 'Source Sans 3', system-ui, sans-serif;
	--site-width: 1200px;
	--gutter: clamp(18px, 4vw, 42px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
body > main { min-height: 48vh; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--display); line-height: 1.07; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button, input[type='submit'] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #f1d5d2; color: var(--ink); }

.site-width { width: min(var(--site-width), 100% - (2 * var(--gutter))); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { z-index: 20; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: .7rem 1rem; clip-path: none; background: var(--sheet); }

.site-header { border-top: 5px solid var(--accent); background: var(--sheet); }
.masthead { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; min-height: 122px; gap: 1rem; }
.edition-date { display: grid; justify-self: start; gap: .15rem; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.edition-date span { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.brand { min-width: 0; text-align: center; }
.wordmark { display: inline-block; font: 700 clamp(2.35rem, 5vw, 4.6rem)/.95 var(--display); letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; }
.wordmark-accent { color: var(--accent); }
.wordmark-dot { margin-left: .04em; color: var(--accent); }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { width: auto; max-height: 76px; object-fit: contain; }
.masthead-search { position: relative; justify-self: end; }
.masthead-search summary { display: flex; align-items: center; justify-content: center; gap: .55rem; min-width: 44px; min-height: 44px; padding: .4rem .65rem; list-style: none; cursor: pointer; font-size: .95rem; font-weight: 650; }
.masthead-search summary::-webkit-details-marker { display: none; }
.masthead-search summary:hover, .masthead-search[open] summary { color: var(--accent); }
.search-panel { position: absolute; z-index: 3; top: calc(100% + .5rem); right: 0; width: min(350px, 100vw - 2 * var(--gutter)); padding: .8rem; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 8px 25px rgb(32 30 27 / 10%); }
.search-form { display: flex; align-items: stretch; gap: .45rem; }
.search-form label { flex: 1; min-width: 0; }
.search-form input { width: 100%; height: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form button, .comments-area input[type='submit'], .post-password-form input[type='submit'] { padding: .55rem .9rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 650; }
.search-form button:hover, .comments-area input[type='submit']:hover, .post-password-form input[type='submit']:hover { background: #822025; }
.search-form button:active { transform: scale(.96); }
.primary-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav-list, .footer-menu { display: flex; align-items: center; gap: clamp(.85rem, 2.6vw, 2.1rem); margin: 0; padding: 0; list-style: none; }
.nav-list { flex-wrap: wrap; justify-content: center; }
.nav-list a { display: flex; align-items: center; min-height: 51px; padding-inline: .15rem; border-bottom: 2px solid transparent; font-size: .95rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
.nav-list a[aria-current='page'], .nav-list .current-menu-item > a { border-color: var(--accent); color: var(--accent); }
.nav-list a:focus-visible { outline-offset: -3px; }

.news-home { padding-block: 38px 68px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 2.57fr) minmax(250px, 1fr); align-items: start; gap: clamp(24px, 3.2vw, 48px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 19px; padding-top: 14px; border-top: 2px solid var(--ink); }
.section-heading h1, .section-heading h2 { font-size: clamp(1.95rem, 2.55vw, 2.45rem); font-weight: 650; letter-spacing: -.026em; }
.lead-section .section-heading { border-top-color: var(--accent); }
.lead-story { min-width: 0; }
.story-media { position: relative; display: block; overflow: hidden; background: var(--wash); }
.story-media::after { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); content: ''; pointer-events: none; }
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-media { aspect-ratio: 2.14; margin-bottom: 19px; }
.story-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .85rem; color: var(--muted); font: 450 .87rem/1.45 var(--ui); }
.category-labels { display: inline-flex; flex-wrap: wrap; gap: .2rem .55rem; color: var(--accent); font-weight: 700; }
.category-labels a { text-decoration: none; }
.category-labels a:hover { text-decoration: underline; }
.lead-story h2 { max-width: 26ch; margin: 10px 0 9px; font-size: clamp(2.4rem, 4.45vw, 4.15rem); font-weight: 650; letter-spacing: -.038em; }
.lead-story h2 a, .story-card :is(h2, h3) a, .latest-list a { text-decoration: none; }
.lead-story h2 a:hover, .story-card :is(h2, h3) a:hover, .latest-list a:hover { text-decoration: underline; }
.lead-summary { max-width: 65ch; color: var(--muted); font-size: clamp(1.07rem, 1.45vw, 1.23rem); line-height: 1.45; }
.news-rail .section-heading { margin-bottom: 0; padding-inline: 21px; border-top-color: var(--accent); background: var(--wash); }
.news-rail .section-heading h2 { font-size: clamp(1.65rem, 2.2vw, 2.06rem); }
.latest-list { margin: 0; padding: 3px 21px 5px; background: var(--wash); list-style: none; }
.latest-list li { display: grid; grid-template-columns: 3.15rem minmax(0, 1fr); align-items: baseline; gap: .8rem; padding-block: .98rem; }
.latest-list li + li { border-top: 1px solid var(--rule); }
.latest-list time { color: var(--accent); font-size: .83rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.latest-list a { font: 600 1.25rem/1.15 var(--display); overflow-wrap: anywhere; }

.topic-section { margin-top: 49px; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; min-height: 40px; color: var(--accent); font: 650 .95rem/1.2 var(--ui); text-decoration: none; }
.section-link:hover { text-decoration: underline; }
.section-link svg { flex-shrink: 0; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.story-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-bottom: 15px; border-bottom: 1px solid var(--rule); }
.card-media { width: 100%; aspect-ratio: 1.65; margin-bottom: 14px; }
.story-card :is(h2, h3) { margin-bottom: 7px; font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 650; letter-spacing: -.018em; }
.story-card .story-meta { margin-top: auto; }

.archive-view, .article-view { padding-block: 44px 72px; }
.archive-header { margin-bottom: 29px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.archive-header h1, .article-header h1, .empty-state h1 { font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 650; letter-spacing: -.037em; }
.archive-description { max-width: 66ch; margin-top: .6rem; color: var(--muted); }
.pagination, .comments-pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.page-numbers { display: grid; place-content: center; min-width: 44px; min-height: 44px; padding: .3rem .65rem; border: 1px solid var(--rule); font-weight: 650; text-decoration: none; }
.page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--sheet); }
.page-numbers.dots { border: 0; }

.article-header, .article-image, .comments-area { width: min(100%, 850px); margin-inline: auto; }
.article-header { padding: 22px 0 20px; border-top: 2px solid var(--accent); }
.article-header h1 { max-width: 29ch; }
.article-summary { max-width: 63ch; margin-top: .8rem; color: var(--muted); font-size: clamp(1.2rem, 2.3vw, 1.52rem); line-height: 1.4; }
.article-byline { margin-top: 16px; }
.article-byline a { text-decoration: none; }
.article-byline a:hover { text-decoration: underline; }
.article-image { margin-block: 0 28px; }
.article-image img { display: block; width: 100%; }
.article-image figcaption, .entry-content figcaption { margin-top: .4rem; color: var(--muted); font: .9rem/1.45 var(--ui); }
.entry-content { display: flow-root; width: min(100%, 67ch); margin-inline: auto; font: 1.23rem/1.65 var(--display); overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content :is(h2, h3, h4) { margin-top: 1.45em; }
.entry-content h2 { font-size: 1.65em; }
.entry-content a { color: var(--accent); }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.2rem; border-top: 1px solid var(--rule); background: var(--wash); }
.entry-content :is(pre, .wp-block-table) { overflow: auto; }
.entry-content .alignwide, .entry-content .alignfull { width: min(var(--site-width), 100vw - 2 * var(--gutter)); max-width: none; margin-inline: 50% 0; transform: translateX(-50%); }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignleft { float: left; margin-right: 1em; }
.entry-content .alignright { float: right; margin-left: 1em; }
.entry-content .wp-caption { max-width: 100%; }
.article-pages { display: flex; flex-wrap: wrap; gap: .6rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; font: 650 .9rem/1.2 var(--ui); }
.article-tags a { display: block; padding: .45rem .65rem; border: 1px solid var(--rule); text-decoration: none; }
.comments-area { margin-top: 36px; }
.comments-area .comment-list { padding-left: 1.2rem; }
.comment-body { margin-bottom: 1rem; }
.comment-form p + p { margin-top: .6rem; }
.comment-form label { display: block; }
.comment-form :is(input:not([type='submit'], [type='checkbox']), textarea), .post-password-form input[type='password'] { max-width: 100%; padding: .45rem; border: 1px solid var(--rule); border-radius: 0; background: var(--sheet); color: var(--ink); }
.comment-form textarea { width: 100%; }
.comment-form .comment-form-cookies-consent label { display: inline; }

.empty-state { display: grid; justify-items: start; align-content: center; gap: .9rem; min-height: 330px; padding: clamp(1.3rem, 5vw, 4rem); border-top: 2px solid var(--accent); background: var(--wash); }
.empty-state p { max-width: 60ch; color: var(--muted); font-size: 1.12rem; }
.empty-state .search-form { width: min(100%, 430px); margin-top: .3rem; }
.archive-empty { min-height: 245px; }
.error404 main { padding-block: 42px 62px; }

.site-footer { padding: 41px 0 19px; border-top: 4px solid var(--accent); background: var(--ink); color: var(--paper); }
.footer-brand .wordmark { font-size: clamp(2.25rem, 4vw, 3rem); }
.site-footer :is(.wordmark-accent, .wordmark-dot, a:hover) { color: #f3a6a5; }
.site-footer :focus-visible { outline-color: #f3a6a5; }
.footer-menu { flex-wrap: wrap; margin-top: .75rem; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; margin-top: 24px; padding-top: 10px; border-top: 1px solid #524940; color: var(--footer-muted); font-size: .9rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 850px) {
	.masthead { min-height: 99px; }
	.front-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.lead-media { aspect-ratio: 1.9; }
	.latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
	.latest-list li:nth-child(2) { border-top: 0; }
	.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
	.masthead { grid-template-columns: 1fr auto; min-height: 78px; gap: .45rem; }
	.brand { grid-row: 1; text-align: start; }
	.wordmark { font-size: clamp(1.8rem, 7.6vw, 3.1rem); }
	.edition-date { display: none; }
	.masthead-search summary { padding: .35rem; }
	.masthead-search summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.custom-logo { max-height: 52px; }
	.nav-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule) var(--sheet); }
	.nav-list { width: max-content; justify-content: flex-start; padding-inline: var(--gutter); }
	.nav-list a { min-height: 44px; }
	.news-home { padding-block: 25px 45px; }
	.lead-story h2 { font-size: clamp(2.35rem, 8vw, 3.7rem); }
	.section-heading { margin-bottom: 14px; }
	.latest-list { display: block; }
	.latest-list li:nth-child(2) { border-top: 1px solid var(--rule); }
	.latest-list li { padding-block: .9rem; }
	.topic-section { margin-top: 34px; }
	.archive-view, .article-view { padding-block: 29px 48px; }
	.entry-content { font-size: 1.14rem; }
	.entry-content :is(.alignleft, .alignright) { float: none; margin-inline: 0; }
}

@media (max-width: 560px) {
	.story-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
	.story-card { padding-bottom: 14px; }
	.card-media { aspect-ratio: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
	.search-form button:active { transform: none; }
}
