/*
Theme Name: Sade Gri
Theme URI: https://example.com/sade-gri
Author: Özel WordPress Tema
Description: Geniş başlık alanı ve tek sütunlu içerik düzenine sahip, yönetim panelinden özelleştirilebilir sade tema.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sade-gri
*/

:root {
  --sg-header-bg: #999aa0;
  --sg-page-bg: #cecece;
  --sg-text: #17191d;
  --sg-accent: #ff7426;
  --sg-content-width: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sg-text);
  background: var(--sg-page-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 99999; width: auto; height: auto; padding: 12px;
  clip: auto; background: #fff; color: #111;
}

.site-header {
  min-height: 141px;
  display: flex;
  align-items: center;
  background: var(--sg-header-bg);
  border-bottom: 3px solid #1d1d1d;
}
.header-inner {
  width: min(79%, var(--sg-content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-width: 170px; max-height: 85px; object-fit: contain; }
.site-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4vw, 64px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
}
.site-title a { text-decoration: none; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: #111; }
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 4px;
  padding: 9px 12px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-main {
  width: min(79%, var(--sg-content-width));
  min-height: calc(100vh - 141px);
  margin: 0 auto;
  padding: 68px 0 80px;
}
.entry-header { margin-bottom: 23px; }
.entry-title {
  margin: 0;
  font-size: clamp(32px, 2.2vw, 43px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.7px;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-content { font-size: clamp(18px, 1.25vw, 24px); }
.entry-content p { margin: 0 0 30px; }
.entry-content h2 { margin: 48px 0 18px; font-size: 1.55em; line-height: 1.3; }
.entry-content h3 { margin: 38px 0 15px; font-size: 1.25em; line-height: 1.35; }
.entry-content ul, .entry-content ol { margin: 0 0 30px; padding-left: 28px; }
.entry-content li { margin: 2px 0; }
.entry-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content strong { font-weight: 700; }
.featured-image {
  display: block;
  width: min(375px, 100%);
  margin: 66px auto 35px;
}
.home-cta-wrap { margin: 44px 0 -30px; text-align: center; }
.home-cta {
  display: inline-block;
  min-width: 230px;
  padding: 14px 28px;
  border-radius: 3px;
  color: #fff;
  background: #111;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.home-cta:hover, .home-cta:focus-visible { color: #fff; opacity: .84; transform: translateY(-1px); }
.featured-image img { display: block; width: 100%; }
.starter-image {
  aspect-ratio: 4 / 4.4;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #fff;
  background: var(--sg-accent);
  text-align: center;
}
.starter-image strong { display: block; color: #111; font-size: 38px; line-height: 1.1; }
.starter-image span { display: block; margin-top: 20px; font-size: 21px; line-height: 1.45; }
.content-sidebar-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(250px, .95fr); gap: clamp(45px, 6vw, 90px); }
.blog-content { min-width: 0; }
.blog-heading { margin: 0 0 24px; font-size: clamp(34px, 2.4vw, 44px); line-height: 1.25; }
.post-list article { padding: 0 0 34px; margin: 0 0 34px; }
.post-list article:last-of-type { margin-bottom: 0; }
.post-list .entry-header { margin-bottom: 5px; }
.post-list .entry-title { position: relative; padding-left: 24px; font-size: clamp(20px, 1.4vw, 26px); font-weight: 400; }
.post-list .entry-title::before { position: absolute; left: 1px; content: '•'; }
.post-list .entry-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-list .entry-content { padding-left: 24px; font-size: clamp(17px, 1.15vw, 22px); }
.post-list .entry-content p { margin-bottom: 0; }
.entry-meta { margin-top: 8px; font-size: 15px; opacity: .72; }
.single-post-content .entry-title { font-size: clamp(32px, 2.4vw, 44px); font-weight: 600; }
.single-post-content .entry-meta { margin: 10px 0 45px; font-weight: 700; opacity: 1; }
.single-post-content .featured-image { width: 100%; margin: 32px 0; }
.blog-sidebar { padding: 0 0 25px clamp(30px, 4vw, 75px); border-left: 1px solid rgba(0,0,0,.75); }
.sidebar-section { margin: 0 0 30px; }
.sidebar-section h2 { margin: 0 0 2px; font-size: 22px; line-height: 1.35; }
.sidebar-section ul { margin: 0; padding: 0; list-style: none; }
.sidebar-section li { margin: 0 0 2px; font-size: 19px; line-height: 1.55; }
.sidebar-section a { text-decoration: none; }
.sidebar-section a:hover { text-decoration: underline; }
.pagination { margin-top: 45px; }
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.page-numbers { padding: 7px 12px; background: rgba(255,255,255,.45); text-decoration: none; }
.page-numbers.current { color: #fff; background: #222; }
.lower-content { padding-top: 15px; }
.lower-content h2 { margin-top: 62px; font-size: clamp(38px, 3vw, 62px); font-weight: 500; letter-spacing: -1.5px; }
.site-footer { padding: 27px max(5%, calc((100% - var(--sg-content-width)) / 2)) 16px; color: #111; background: #85858f; border-top: 1px solid #555; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 55px; text-align: center; }
.footer-column h2 { margin: 0 0 22px; color: #fff; font-size: 22px; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 7px 0; }
.footer-column a { text-decoration: none; }
.footer-column a:hover { text-decoration: underline; }
.footer-brand { display: flex; min-height: 110px; align-items: center; justify-content: center; }
.footer-brand .custom-logo { max-width: 190px; max-height: 100px; }
.footer-brand .site-title { font-size: 57px; }
.footer-copy { margin-top: 22px; padding-top: 13px; border-top: 1px solid rgba(0,0,0,.18); font-size: 13px; text-align: center; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 42px; height: 42px; border: 0; border-radius: 2px; color: #fff; background: #222; font-size: 25px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .site-header { min-height: 100px; }
  .header-inner, .site-main, .site-footer { width: min(90%, var(--sg-content-width)); }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    z-index: 10;
    top: 99px;
    right: 5%;
    left: 5%;
    display: none;
    padding: 10px 20px;
    background: #85868b;
    border: 1px solid rgba(0,0,0,.25);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 13px 5px; font-size: 18px; }
  .site-main { min-height: calc(100vh - 100px); padding-top: 45px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { order: -1; min-height: auto; }
  .content-sidebar-layout { grid-template-columns: 1fr; gap: 35px; }
  .blog-sidebar { padding: 28px 0 0; border-top: 1px solid rgba(0,0,0,.45); border-left: 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .custom-logo { max-width: 135px; max-height: 65px; }
  .site-title { font-size: 38px; }
  .site-main { padding-top: 34px; }
  .entry-content p { margin-bottom: 23px; }
  .featured-image { margin-top: 42px; }
}
