/* Yena Blog — De Gustibus tarzı editoryal tasarım */
:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --navy: #0D1B2A;
  --turquoise: #39C8D8;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.ed-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.ed-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.ed-brand {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding: 0.45rem 0.85rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ed-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 0.5rem;
  filter: brightness(0) invert(1);
}
.ed-nav {
  display: none;
  gap: 1.35rem;
  align-items: center;
}
.ed-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.ed-nav a:hover { color: var(--turquoise); }
.ed-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.ed-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.ed-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--line);
}
.ed-mobile.open { display: flex; }
.ed-mobile a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

/* Index layout */
.ed-home {
  padding: 2rem 0 4rem;
}
.ed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.ed-side-title,
.ed-section-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.ed-pop-item {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.ed-pop-item:first-of-type { border-top: 1px solid var(--line); }
.ed-pop-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 0.75rem;
}
.ed-pop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(135deg, #f7f7f7 0%, #efefef 48%, #e8e8e8 100%);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}
.ed-no-cover span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ed-pop-item--text {
  padding-top: 1.1rem;
}
.ed-featured-media .ed-no-cover {
  aspect-ratio: 4/5;
  max-height: 720px;
  min-height: 280px;
}
.ed-card-img .ed-no-cover {
  aspect-ratio: 16/11;
}
.ed-post-cover .ed-no-cover {
  aspect-ratio: 16/7;
  min-height: 140px;
  max-height: 220px;
}
.ed-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ed-pop-item h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.ed-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.ed-featured h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.ed-featured-media {
  aspect-ratio: 4/5;
  max-height: 720px;
  overflow: hidden;
  background: #f2f2f2;
}
.ed-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-featured-meta {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ed-latest {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.ed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}
.ed-card { display: block; }
.ed-card-img {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 0.85rem;
}
.ed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ed-card:hover .ed-card-img img { transform: scale(1.03); }
.ed-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.35rem 0 0.45rem;
}
.ed-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Post page */
.ed-post {
  padding: 2.5rem 0 4.5rem;
}
.ed-post-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.ed-post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.ed-post-meta a:hover { color: var(--turquoise); }
.ed-post h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.35rem;
  color: var(--ink);
}
.ed-lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}
.ed-post-cover {
  margin: 0 auto 2.5rem;
  max-width: 960px;
  padding: 0 1.25rem;
}
.ed-post-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f4f4f4;
}
.ed-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #222;
}
.ed-article h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.9rem;
  line-height: 1.35;
}
.ed-article p { margin-bottom: 1.15rem; }
.ed-article ul {
  margin: 0.5rem 0 1.25rem 1.35rem;
  list-style: disc;
}
.ed-article li { margin-bottom: 0.4rem; }
.ed-article strong { font-weight: 700; }
.ed-cta {
  margin-top: 2.75rem;
  padding: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--sans);
}
.ed-cta p {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.ed-cta a {
  display: inline-flex;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ed-cta a:hover { background: #152a3d; }

.ed-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.ed-footer .ed-brand { margin: 0 auto 1rem; }
.ed-footer p {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}
.ed-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--sans);
}

@media (min-width: 900px) {
  .ed-nav { display: flex; }
  .ed-menu-btn { display: none; }
  .ed-layout {
    grid-template-columns: 300px 1fr;
    gap: 0;
  }
  .ed-sidebar {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
  }
  .ed-main { padding-left: 2.5rem; }
  .ed-grid { grid-template-columns: repeat(3, 1fr); }
  .ed-featured-media { aspect-ratio: 3/4; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
}
