/*
Theme Name: Kenar Notları
Theme URI: https://cansutunca.com
Author: Cansu Tunca
Description: Cansu Tunca'nın kişisel yazıları için sade, editoryal ve özgün WordPress teması.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kenar-notlari
*/

:root {
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --blue: #c9e1ed;
  --blue-strong: #91bfd4;
  --navy: #13243f;
  --ink: #182238;
  --muted: #687386;
  --line: rgba(19, 36, 63, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 231, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { color: var(--navy); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; }
.brand-note { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--navy); padding: 10px 12px; border-radius: 999px; font: inherit; }
.nav-list, .nav-list ul { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; align-items: center; gap: 25px; }
.nav-list a { color: var(--navy); font-size: .92rem; font-weight: 600; text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: #3d7996; }

.hero { position: relative; overflow: hidden; padding: clamp(78px, 12vw, 155px) 0 clamp(75px, 10vw, 125px); }
.hero::before { content: ""; position: absolute; width: 470px; height: 470px; right: -120px; top: -170px; border-radius: 50%; background: var(--blue); opacity: .72; }
.hero::after { content: ""; position: absolute; width: 250px; height: 250px; right: 18%; bottom: -145px; border: 1px solid var(--blue-strong); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.eyebrow { margin: 0 0 18px; color: #477991; font-size: .79rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 780px; color: var(--navy); font-family: var(--serif); font-size: clamp(3.25rem, 8vw, 7.2rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero-text { max-width: 610px; margin: 30px 0 0; font-size: clamp(1.05rem, 2vw, 1.32rem); color: #4e596a; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--navy); font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; }

.section { padding: clamp(66px, 9vw, 112px) 0; }
.section-blue { background: var(--blue); }
.section-paper { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 38px; }
.section-title { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; line-height: 1.05; }
.section-link { color: var(--navy); font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { min-height: 320px; padding: 28px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(19,36,63,.09); }
.post-meta { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 18px 0 12px; color: var(--navy); font-family: var(--serif); font-size: clamp(1.65rem, 2.4vw, 2.25rem); font-weight: 500; line-height: 1.12; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0; color: #596476; }
.read-more { margin-top: auto; padding-top: 26px; color: #376f8a; font-weight: 750; text-decoration: none; }
.empty-note { grid-column: 1 / -1; padding: 38px; border: 1px dashed rgba(19,36,63,.3); background: rgba(255,255,255,.35); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.about-mark { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--navy); font-family: var(--serif); font-size: 3rem; }
.about-copy { max-width: 700px; }
.about-copy p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.5; }

.content-wrap { width: min(760px, calc(100% - 40px)); margin-inline: auto; padding: clamp(62px, 9vw, 110px) 0; }
.archive-wrap { width: min(1040px, calc(100% - 40px)); margin-inline: auto; padding: clamp(62px, 9vw, 110px) 0; }
.entry-header { margin-bottom: 42px; }
.entry-title { margin: 0 0 18px; color: var(--navy); font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.entry-meta { color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.entry-content { font-family: var(--serif); font-size: clamp(1.08rem, 1.5vw, 1.22rem); }
.entry-content > * { margin-top: 0; margin-bottom: 1.45em; }
.entry-content h2, .entry-content h3 { color: var(--navy); line-height: 1.2; }
.entry-content blockquote { margin-inline: 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--blue-strong); color: #445064; font-size: 1.18em; }
.entry-content a { color: #2f6f8f; }
.entry-content figure { margin-inline: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-weight: 700; }
.pagination { margin-top: 45px; }

.site-footer { background: var(--navy); color: #eef5f7; padding: 56px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.footer-title { margin: 0; font-family: var(--serif); font-size: 2rem; }
.footer-note { margin: 6px 0 0; color: #b9c9d2; }
.footer-meta { color: #b9c9d2; font-size: .84rem; text-align: right; }
.footer-meta a { color: inherit; }

@media (max-width: 800px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .brand-note { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 18px 20px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .nav-list { align-items: flex-start; flex-direction: column; gap: 15px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 270px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}

