:root {
  --bg: #f4f1e8;
  --surface: #fffdf8;
  --text: #2c2a22;
  --muted: #6f6a59;
  --line: #e6e0cf;
  --accent: #4f7a46;
  --accent-strong: #3c6234;
  --accent-soft: #e7efdd;
  --earth: #9a7a4c;
  --earth-soft: #f1e8d7;
  --bloom: #c6794f;
  --sky-1: #eaf3ea;
  --sky-2: #f4f1e8;
  --hill-1: #d4e3c4;
  --hill-2: #aed19a;
  --hill-3: #83b270;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 50, 25, .05);
  --shadow: 0 14px 34px -18px rgba(55, 85, 45, .32), 0 3px 10px -6px rgba(55, 85, 45, .14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lora", "Iowan Old Style", Palatino, Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14160f; --surface: #1c1f17; --text: #e9e6d6; --muted: #a39e8a; --line: #30342a;
    --accent: #9ccf84; --accent-strong: #b6e0a0; --accent-soft: #243120;
    --earth: #d8b57c; --earth-soft: #352c1e; --bloom: #e0996e;
    --sky-1: #171b12; --sky-2: #14160f;
    --hill-1: #1f2a18; --hill-2: #2a3a20; --hill-3: #38502b;
    --shadow: 0 16px 40px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14160f; --surface: #1c1f17; --text: #e9e6d6; --muted: #a39e8a; --line: #30342a;
  --accent: #9ccf84; --accent-strong: #b6e0a0; --accent-soft: #243120;
  --earth: #d8b57c; --earth-soft: #352c1e; --bloom: #e0996e;
  --sky-1: #171b12; --sky-2: #14160f;
  --hill-1: #1f2a18; --hill-2: #2a3a20; --hill-3: #38502b;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; color: var(--text);
  font-family: var(--font-body); font-size: 18px; line-height: 1.7;
  overflow-x: hidden;
  background: radial-gradient(130% 62% at 50% -12%, var(--sky-1) 0%, transparent 60%), var(--sky-2);
  background-attachment: fixed;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.loading { padding: 5rem 0; text-align: center; font-family: var(--font-ui); color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--sky-2) 82%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--accent-strong); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .01em; }
.brand span { color: var(--text); }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; gap: 1.6rem; font-family: var(--font-ui); font-size: .95rem; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; padding: .35rem 0; position: relative; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-size: 1.1rem; padding: .3rem .65rem; cursor: pointer; }
@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sky-2); border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
}

/* Typography */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 2.5rem 0 .6rem; }
h2 { font-size: 1.6rem; margin: 2.75rem 0 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3rem 0 1.25rem; }
.section-head h2 { margin: 0; }
.section-head a { font-family: var(--font-ui); font-size: .9rem; font-weight: 500; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.lede { color: var(--muted); font-size: 1.2rem; margin-top: 0; max-width: 44ch; }

/* Hero */
.hero { padding: 4rem 0 0; margin-bottom: 1rem; }
.hero h1 { margin: 0 0 1rem; max-width: 16ch; line-height: 1.08; }
.hero .meaning { font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--earth); text-transform: uppercase; letter-spacing: .18em; margin: 0 0 1rem; }
.hero .lede { margin-bottom: 0; }
.hills { display: block; width: 100vw; margin-left: 50%; transform: translateX(-50%); margin-top: 2.5rem; margin-bottom: -6px; }

/* Goals */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease; }
.goal:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.goal-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-family: var(--font-ui); }
.goal h3 { margin: .9rem 0 .2rem; font-size: 1.3rem; }
.goal h3 a { color: inherit; text-decoration: none; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.tag.earth { background: var(--earth-soft); color: var(--earth); }
.goal-num { font-family: var(--font-ui); font-variant-numeric: tabular-nums; margin: .9rem 0 .6rem; }
.goal-num strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--accent-strong); }
.goal-num span { color: var(--muted); }
.bar { height: 12px; background: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7cb36a); transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.goal-foot { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 10; background: var(--earth-soft); object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-img.empty { display: grid; place-items: center; color: var(--earth); font-size: 2.6rem; }
.card-body { padding: 1.2rem 1.35rem 1.4rem; }
.card h3 { margin: .55rem 0 .4rem; font-size: 1.3rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.meta { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: center; }
.views { display: inline-flex; align-items: center; gap: .3rem; }
.views svg { opacity: .85; }
.konum { color: inherit; text-decoration: none; }
.konum:hover { color: var(--accent-strong); text-decoration: underline; }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; font-family: var(--font-ui); }
.chips a { text-decoration: none; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 500; background: var(--surface); transition: border-color .2s, color .2s; }
.chips a:hover { color: var(--text); border-color: var(--accent); }
.chips a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Article */
.article { max-width: 740px; margin: 0 auto; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 1.75rem 0 0; max-height: 540px; object-fit: cover; box-shadow: var(--shadow); }
.back { font-family: var(--font-ui); font-size: .9rem; font-weight: 500; text-decoration: none; display: inline-block; margin-top: 1.75rem; }
.back:hover { text-decoration: underline; }
.prose { margin-top: 1.75rem; font-size: 1.12rem; }
.prose p { margin: 1.3rem 0; }
.prose img, .prose video { border-radius: 12px; margin: 1.75rem auto; box-shadow: var(--shadow-sm); }
.prose blockquote { margin: 1.75rem 0; padding: .5rem 1.4rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: 12px; overflow-x: auto; font-size: .88rem; }
.prose code { font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: left; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin-top: 1rem; }
.gallery a, .gallery video { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--earth-soft); box-shadow: var(--shadow-sm); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(12, 14, 9, .94); display: grid; place-items: center; z-index: 50; padding: 24px; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #e9e6d6; font-family: var(--font-ui); font-size: .9rem; text-align: center; margin-top: .8rem; opacity: .85; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.3rem; }
.lb-count { position: absolute; top: 24px; left: 24px; color: #e9e6d6; font-family: var(--font-ui); font-size: .85rem; opacity: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .lb-btn { width: 40px; height: 40px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* Plantings log */
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: .95rem; }
.log li:first-child { border-top: 1px solid var(--line); }
.log .n { font-family: var(--font-display); font-weight: 600; min-width: 4.5rem; color: var(--accent-strong); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.log .d { color: var(--muted); font-size: .85rem; }
.log img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; box-shadow: var(--shadow-sm); }
.log .grow { flex: 1; min-width: 0; }

/* Empty state */
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); font-family: var(--font-ui); font-size: .98rem; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.empty-state .leaf { font-size: 2rem; display: block; margin-bottom: .6rem; }

/* Footer */
.site-footer { margin-top: 5rem; }
.foot-hills { display: block; width: 100vw; margin-left: 50%; transform: translateX(-50%); margin-bottom: -6px; }
.foot-inner { background: var(--accent-soft); padding: 2.5rem 0 3rem; font-family: var(--font-ui); font-size: .95rem; }
.foot-inner p { margin: .25rem 0; }
.foot-inner .big { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-strong); margin-bottom: .4rem; }

/* Page transition */
#app { animation: fade-up .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Dikim kaydı satırı: tümü tıklanır, detay sayfasına gider */
.log li { padding: 0; }
.log .log-row { display: flex; gap: 1rem; align-items: center; padding: .9rem .5rem; width: 100%; color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s ease; }
.log .log-row:hover { background: var(--earth-soft); }
.log .ozet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.log .ok { color: var(--muted); font-size: 1.4rem; line-height: 1; flex: none; }
.log .d { text-align: right; }
.log .grow .d { text-align: left; }

/* Ana sayfa: sağdaki "Defterden" özet kartı */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.defter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); font-family: var(--font-ui); }
.defter a { color: inherit; text-decoration: none; }
.defter-baslik { margin: 0 0 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); }
.defter-buyuk { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.defter-buyuk a { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; transition: transform .2s ease; }
.defter-buyuk a:hover { transform: translateY(-2px); }
.defter-buyuk strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.defter-buyuk span { font-size: .85rem; color: var(--muted); }
.defter-kucuk { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; font-size: .9rem; color: var(--muted); text-align: center; }
.defter-kucuk a + a { border-left: 1px solid var(--line); }
.defter-kucuk a:hover { color: var(--accent-strong); }
.defter-kucuk strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.defter-son { display: block; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--earth-soft); font-size: .9rem; }
.defter-son span:first-child { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--earth); margin-bottom: .15rem; }
.defter-son:hover { color: var(--accent-strong); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.defter-buyuk.tek { grid-template-columns: 1fr; }

/* ---------- Doku ve ışık: kâğıt grenli arka plan, hero'da gün ışığı ---------- */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glow-warm: rgba(198, 150, 80, .16);
  --glow-green: rgba(110, 160, 90, .20);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --glow-warm: rgba(216, 181, 124, .085); --glow-green: rgba(156, 207, 132, .10); --sky-1: #1c2216; }
}
:root[data-theme="dark"] { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --glow-warm: rgba(216, 181, 124, .085); --glow-green: rgba(156, 207, 132, .10); --sky-1: #1c2216; }

body {
  background:
    var(--grain),
    radial-gradient(130% 62% at 50% -12%, var(--sky-1) 0%, transparent 60%),
    var(--sky-2);
  background-attachment: fixed;
}
/* Hero: sol üstten sıcak bir ışık, sağda kartın arkasında yeşil hare, tepelere doğru ufuk */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; width: 100vw; transform: translateX(-50%); top: -2rem; bottom: 0;
  background:
    radial-gradient(42% 55% at 18% 30%, var(--glow-warm), transparent 70%),
    radial-gradient(35% 50% at 80% 45%, var(--glow-green), transparent 70%),
    linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--hill-1) 45%, transparent));
}
.defter { box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 30px 80px -30px var(--glow-green); }
/* Kartlar da hafif kâğıt dokulu */
.goal, .card, .defter { background-image: linear-gradient(color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 96%, transparent)), var(--grain); }

/* Tema düğmesi (Sistem / Açık / Koyu) */
.header-inner { justify-content: flex-start; }
.brand { margin-right: auto; }
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; margin-left: .4rem; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.theme-btn:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .menu-btn { order: 3; }
  .theme-btn { order: 2; margin-left: 0; }
}
.menu-btn { width: 38px; height: 38px; padding: 0; display: none; place-items: center; }
@media (max-width: 640px) { .menu-btn { display: inline-grid; } }
