:root {
  --bg: #fdfcf9;
  --card: #ffffff;
  --text: #1b1a17;
  --muted: #74706a;
  --line: #ebe7df;
  --accent: #e76f51;
  --serif: Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] { --bg: #151514; --card: #1e1d1b; --text: #ece8e1; --muted: #9b968d; --line: #2c2a27; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.header { display: flex; align-items: center; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 26px 24px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-right: auto; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--text); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.intro { padding: 60px 0 50px; border-bottom: 1px solid var(--line); }
.intro h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.intro p { color: var(--muted); font-size: 19px; margin-top: 16px; max-width: 560px; }

.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); }
.featured img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.featured h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 10px 0; }
.featured:hover h2 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.featured p { color: var(--muted); }
.cat { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.meta { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 36px 0 24px; }
.topics { display: flex; gap: 6px; flex-wrap: wrap; }
.topic { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; }
.topic.active { background: var(--text); color: var(--bg); border-color: var(--text); }
#q { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; min-width: 240px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.post { display: flex; flex-direction: column; gap: 8px; animation: in .4s both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
.post img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 6px; transition: opacity .2s; }
.post:hover img { opacity: .85; }
.post h3 { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.post p { color: var(--muted); font-size: 15px; }
.post mark { background: #ffe6a8; color: inherit; border-radius: 3px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.more-wrap { text-align: center; padding: 40px 0; }
.more { padding: 12px 28px; border-radius: 999px; border: 1px solid var(--text); background: none; color: var(--text); cursor: pointer; font: inherit; }
.more:hover { background: var(--text); color: var(--bg); }

.newsletter { display: grid; grid-template-columns: 140px 1fr; gap: 30px; align-items: center; margin: 30px 0 70px; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.newsletter img { border-radius: 50%; }
.newsletter h2 { font-family: var(--serif); font-size: 28px; }
.newsletter p { color: var(--muted); }
.newsletter form { display: flex; gap: 8px; margin-top: 16px; max-width: 460px; }
.newsletter input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.newsletter button { padding: 12px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.newsletter small { display: block; margin-top: 8px; color: #2a9d8f; font-weight: 600; }

.footer { text-align: center; padding: 30px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Makale sayfası */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 50; }
.article { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.article h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 12px 0 24px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; }
.byline b { display: block; color: var(--text); }
.cover { border-radius: 14px; margin: 30px 0; width: 100%; }
.content { font-family: var(--serif); font-size: 20px; line-height: 1.75; }
.content p, .content ol, .content blockquote, .content pre { margin-bottom: 1.3em; }
.content .lead { font-size: 23px; color: var(--muted); }
.content h2 { font-family: var(--sans); font-size: 26px; margin: 1.6em 0 .6em; letter-spacing: -.01em; }
.content ol { padding-left: 1.3em; }
.content li { margin-bottom: .5em; }
.content blockquote { border-left: 3px solid var(--accent); padding-left: 22px; font-style: italic; font-size: 24px; }
.content pre { background: #1e1d1b; color: #f1ede6; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); }
.share button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: inherit; font-size: 14px; }
.share button[aria-pressed="true"] { color: #e0245e; border-color: #e0245e; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 200%); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; transition: transform .3s, opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 860px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
  .nav a:not(.active):not([href="index.html"]) { display: none; }
  #q { min-width: 0; width: 100%; }
  .newsletter { grid-template-columns: 1fr; padding: 26px; text-align: center; }
  .newsletter img { width: 100px; margin: 0 auto; }
  .newsletter form { flex-direction: column; }
  .content { font-size: 18px; }
}
