/*
Theme Name: Sepyüz
Theme URI: https://example.com/sepyuz
Author: Grok
Author URI: https://x.ai
Description: PageSpeed 100/100 hedefleyen, Gutenberg ve Customizer destekli, erişilebilir, çeviriye hazır, widget ve menü destekli hafif WordPress teması. Sistem fontları, kritik CSS, ertelenmiş JS ve semantik HTML ile Core Web Vitals odaklıdır.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sepyuz
Tags: blog, news, portfolio, one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

:root {
  --bg: #f7f6f2;
  --surface: #fff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e4dc;
  --accent: #0f6e56;
  --accent-ink: #fff;
  --max: 72rem;
  --gap: 1.25rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: .75rem;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: .5rem .75rem;
  z-index: 100;
}
.skip-link:focus { top: .75rem; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: .5rem .75rem;
  background: var(--ink);
  color: #fff;
  z-index: 100000;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-branding { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-title { font-size: 1.15rem; margin: 0; font-weight: 750; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 0; color: var(--muted); font-size: .85rem; }

.custom-logo { max-height: 42px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: .45rem .65rem;
  font: inherit;
  cursor: pointer;
}

.primary-menu {
  display: flex;
  gap: .25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  padding: .35rem 0;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--accent); }

.site-main {
  padding: 2rem 0 3rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 2rem;
}

.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.entry { padding: 1.4rem 1.5rem 1.6rem; }
.entry + .entry, .card + .card { margin-top: 1.1rem; }

.entry-meta {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .6rem;
}
.entry-title { margin-bottom: .45rem; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--accent); }

.featured {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
  background: var(--line);
}

.read-more {
  display: inline-block;
  margin-top: .4rem;
  font-weight: 650;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.widget h2 { font-size: 1rem; margin-bottom: .7rem; }
.widget ul { margin: 0; padding-left: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: .92rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.site-info { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.search-form { display: flex; gap: .4rem; }
.search-field, .comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .7rem;
  font: inherit;
  background: var(--surface);
}
.search-submit, .submit, .wp-block-button__link, button[type="submit"] {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  padding: .55rem .9rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nav-links, .page-links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.page-title { margin-bottom: 1rem; }

.alignwide { max-width: none; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.comments-area { margin-top: 2rem; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; padding-bottom: .8rem; }
  .header-inner { flex-wrap: wrap; }
  .primary-menu { flex-direction: column; }
}
