/*
Theme Name: Hasan Emre Ural
Theme URI: https://hasanemreural.com
Author: Hasan Emre Ural
Description: Sinema, yol, fotoğraf, podcast ve ses çalışmalarını bir araya getiren kişisel yayın teması.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: heu
*/

:root {
  --ink: #171813;
  --ink-soft: #24251e;
  --paper: #f1ecdf;
  --paper-soft: #e4ddcc;
  --muted: #aaa493;
  --line: rgba(241, 236, 223, .16);
  --accent: #e56b38;
  --accent-dark: #af4321;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: .2s ease;
}
.button:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.button--ghost:hover { border-color: var(--accent); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(23, 24, 19, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
}
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.brand-name small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.main-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--paper-soft); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--paper); font-size: 1.5rem; }

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(229, 107, 56, .22), transparent 34%),
    linear-gradient(110deg, rgba(23, 24, 19, .98) 15%, rgba(23, 24, 19, .72) 60%, rgba(23, 24, 19, .9)),
    var(--hero-image, none) center/cover;
  content: "";
}
.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -28vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(241, 236, 223, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(241,236,223,.025), 0 0 0 120px rgba(241,236,223,.018);
  content: "";
}
.hero-inner { position: relative; z-index: 1; display: grid; align-items: end; min-height: 76vh; padding-block: 110px 80px; }
.hero-copy { max-width: 820px; }
.hero h1 {
  max-width: 780px;
  margin: 12px 0 24px;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero p { max-width: 680px; margin: 0 0 34px; color: var(--paper-soft); font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.manifesto { background: var(--paper); color: var(--ink); }
.manifesto-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; padding-block: 90px; }
.manifesto h2, .section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.manifesto-copy { max-width: 700px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.5; }
.manifesto-copy p:first-child { margin-top: 0; }

.section { padding-block: 100px; border-bottom: 1px solid var(--line); }
.section--soft { background: var(--ink-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-head h2 { margin-top: 10px; font-size: clamp(2.3rem, 5vw, 4.6rem); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--paper-soft); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { min-width: 0; }
.post-card-image { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 20px; background: #303127; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover img { transform: scale(1.035); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card-meta a { color: var(--accent); }
.post-card h3 { margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.empty-note { padding: 30px; border: 1px dashed var(--line); color: var(--muted); }

.worlds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.world-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 34px;
  background: var(--ink);
}
.world-card::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,24,19,.98), rgba(23,24,19,.18)), var(--world-image, none) center/cover; content: ""; transition: transform .5s ease; }
.world-card:hover::before { transform: scale(1.025); }
.world-card > * { position: relative; z-index: 1; }
.world-card h3 { margin: 8px 0 5px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.world-card p { max-width: 480px; margin: 6px 0 0; color: var(--paper-soft); }

.newsletter { background: var(--accent); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: center; padding-block: 76px; }
.newsletter h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 400; line-height: .98; }
.newsletter p { font-family: var(--serif); font-size: 1.2rem; }
.newsletter .button { background: var(--ink); border-color: var(--ink); }

.site-footer { padding-block: 54px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-title { margin: 0 0 12px; font-family: var(--serif); font-size: 1.8rem; }
.footer-copy { max-width: 440px; color: var(--muted); }
.footer-label { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-menu, .social-links { margin: 12px 0 0; padding: 0; list-style: none; }
.footer-menu li, .social-links li { margin-bottom: 7px; }
.copyright { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

.page-hero { padding-block: 100px 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; margin: 10px 0 0; font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.content-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 80px; padding-block: 70px 110px; }
.entry-content { color: var(--paper-soft); font-family: var(--serif); font-size: 1.14rem; }
.entry-content h2, .entry-content h3 { color: var(--paper); line-height: 1.15; }
.entry-content h2 { margin-top: 2em; font-size: 2.2rem; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: var(--paper); font-size: 1.4rem; }
.entry-content img { margin-block: 32px; }
.entry-sidebar { color: var(--muted); font-size: .85rem; }
.entry-sidebar strong { display: block; margin-bottom: 8px; color: var(--paper); }
.featured-wide { width: min(calc(100% - 40px), 1500px); max-height: 760px; margin: 0 auto; object-fit: cover; }
.pagination { display: flex; gap: 12px; margin-top: 50px; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--line); }
.pagination .current { background: var(--accent); border-color: var(--accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; padding: 20px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 16px; }
  .manifesto-inner, .newsletter-inner, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { gap: 30px; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .brand-name small { display: none; }
  .hero, .hero-inner { min-height: 70vh; }
  .hero-inner { padding-block: 70px 50px; }
  .section { padding-block: 70px; }
  .section-head { align-items: start; flex-direction: column; }
  .post-grid, .worlds { grid-template-columns: 1fr; }
  .world-card { min-height: 300px; padding: 24px; }
}
