/*
Theme Name: Zahrádkov
Theme URI: https://zahradkov.cz
Author: Zahrádkov Redakce
Description: Magazín o zahradě, bydlení, stavbě a zdraví. Classic PHP téma, sage/neutral green paleta, Playfair Display + Inter.
Version: 1.0.0
Text Domain: zahradkov
*/

/* =========================================================
   Zahrádkov — design tokens (port z Claude Design handoff)
   Palette: sage/eucalyptus, cream, green-900
   Typography: Playfair Display (serif) + Inter (sans)
========================================================= */

:root {
  --cream: #E8EDE3;
  --paper: #F1F4EC;
  --paper-2: #DDE3D5;
  --ink: #1F2A1A;
  --ink-soft: #455240;
  --muted: #7B8578;
  --line: #CFD6C6;
  --line-soft: #DCE1D1;
  --green-900: #2F4A28;
  --green: #5C7A3E;
  --green-soft: #789956;
  --green-wash: #DDE5D1;
  --green-glow: rgba(120, 153, 86, 0.45);
  --warm: #C9A87C;
  --terracotta: #B86F4A;
  --header-bg: #FBF8F1;
  --shadow-sm: 0 1px 2px rgba(31, 42, 26, 0.04);
  --shadow: 0 8px 24px -12px rgba(31, 42, 26, 0.10);
  --shadow-lg: 0 24px 48px -24px rgba(31, 42, 26, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header-inner {
  display: flex; align-items: center; gap: 36px;
  padding: 18px 0;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--green-900);
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}
.logo .dot { color: var(--green); }
.logo .tld { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--green); font-weight: 500; letter-spacing: 0.02em; margin-left: 1px; align-self: baseline; }
.logo .leaf-accent { position: absolute; left: -14px; top: -2px; width: 10px; height: 10px; opacity: 0.85; transform: rotate(-30deg); }

.main-nav { display: flex; gap: 28px; align-items: center; flex: 1; }
.main-nav a {
  font-size: 15px; color: var(--ink); position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover { color: var(--green-900); }
.main-nav a:hover::after, .main-nav a.active::after, .main-nav a.current::after { transform: scaleX(1); }

.header-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); color: var(--green-900); }

.mobile-menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 0 rgba(47, 74, 40, 0.18);
}
.btn-primary:hover { background: var(--green-900); transform: translateY(-1px); color: #fff; }
.btn-primary.glow {
  box-shadow: 0 0 0 0 rgba(120, 153, 86, 0), 0 2px 0 rgba(47, 74, 40, 0.18);
  animation: subtleGlow 3.2s ease-in-out infinite;
}
@keyframes subtleGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(120,153,86,0), 0 2px 0 rgba(47,74,40,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(120,153,86,0.15), 0 2px 0 rgba(47,74,40,0.18); }
}
.btn-ghost { background: transparent; color: var(--green-900); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: #1E3219; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  aspect-ratio: 16 / 8.2;
  min-height: 420px;
  background: #2a3a28;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero:hover .hero-img { transform: scale(1.05); }
.hero-card {
  position: absolute; left: 36px; top: 36px; max-width: 460px;
  background: var(--paper); border-radius: var(--radius);
  padding: 28px 30px 26px; box-shadow: var(--shadow-lg);
}
.eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.hero-card h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 34px; line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 14px; color: var(--ink);
}
.hero-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }

/* ---------- Category tiles ---------- */
.cat-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 28px;
}
.cat-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border-radius: var(--radius);
  padding: 18px 22px; border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
  padding-right: 44px;
}
.cat-tile::after {
  content: '→'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted);
  transition: transform .3s var(--ease), color .3s var(--ease); font-size: 16px;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green-soft); }
.cat-tile:hover::after { transform: translate(4px, -50%); color: var(--green-900); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-wash); color: var(--green-900);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-tile .title { font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.cat-tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: block; }

/* ---------- Section headings ---------- */
main section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 20px; }
.section-head h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 28px; margin: 0; color: var(--ink); letter-spacing: -0.015em;
}
.section-head .more {
  font-size: 14px; color: var(--green); font-weight: 500;
  display: inline-flex; gap: 6px; align-items: center;
  transition: gap .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.section-head .more:hover { color: var(--green-900); gap: 10px; }

/* ---------- Article cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .eyebrow { margin-bottom: 0; }
.card h3 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 19px; line-height: 1.25; margin: 0; color: var(--ink); letter-spacing: -0.005em;
}
.card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.card .meta { margin-top: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; padding-top: 4px; }
.card .meta svg { opacity: .7; }

/* ---------- Seasonal inspiration ---------- */
.seasonal { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.seasonal-card {
  display: grid; grid-template-columns: 170px 1fr; gap: 0;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.seasonal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.seasonal-card .img { position: relative; overflow: hidden; background: var(--paper-2); }
.seasonal-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.seasonal-card:hover .img img { transform: scale(1.06); }
.seasonal-card .body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.seasonal-card h3 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 20px; line-height: 1.2; margin: 0; color: var(--ink); }
.seasonal-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.read-more {
  font-size: 13px; color: var(--green); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  transition: gap .25s var(--ease);
}
.read-more:hover { gap: 10px; }

/* ---------- Ranked lists ---------- */
.ranked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ranked {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line-soft); padding: 20px 22px;
}
.ranked h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0 0 14px; font-weight: 500; color: var(--ink); }
.ranked ol, .ranked ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ranked li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  transition: padding .2s var(--ease);
}
.ranked li:last-child { border-bottom: none; }
.ranked li:hover { padding-left: 4px; }
.ranked li a { display: contents; }
.ranked .rank { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--green); font-weight: 500; }
.ranked .text .eyebrow { font-size: 10px; margin-bottom: 2px; display: block; }
.ranked .text .t { font-size: 14px; color: var(--ink); line-height: 1.35; }
.ranked .thumb { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.ranked .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ranked .date { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Healthy living ---------- */
.healthy-head h2 { color: var(--green-900); font-style: italic; }
.healthy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.healthy-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 110px 1fr;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.healthy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.healthy-card .img { background: var(--paper-2); overflow: hidden; }
.healthy-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.healthy-card:hover .img img { transform: scale(1.05); }
.healthy-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.healthy-card h4 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; margin: 0; line-height: 1.25; color: var(--ink); }

/* ---------- Newsletter block ---------- */
.newsletter {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 40px; align-items: center;
  overflow: hidden;
}
.newsletter .leaf {
  position: absolute; right: -20px; bottom: -20px; width: 180px; opacity: 0.9; pointer-events: none;
  transform: rotate(8deg);
}
.newsletter h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 500; margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.newsletter .form { display: grid; grid-template-columns: 2fr auto; gap: 10px; }
.newsletter .copy p { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; }
.newsletter input {
  width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--cream);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.newsletter input:focus { outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 4px rgba(120,153,86,0.12); }
.newsletter-success {
  background: var(--green-wash); color: var(--green-900); padding: 14px 20px; border-radius: 999px;
  font-size: 14px; display: inline-flex; align-items: center; gap: 10px; animation: popIn .5s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.9) translateY(4px); } to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px; padding: 56px 0 30px; border-top: 1px solid var(--line);
  background: var(--cream);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-grid h5 { font-size: 13px; font-weight: 600; margin: 0 0 14px; color: var(--ink); letter-spacing: 0.02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a { font-size: 13.5px; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer-grid ul a:hover { color: var(--green-900); }
.footer-grid .about p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 0; max-width: 280px; }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--green-wash); color: var(--green-900);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.footer-nl input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; width: 100%; background: var(--paper); font-family: inherit; font-size: 13px; }
.footer-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(232, 237, 227, 0.96); backdrop-filter: blur(10px);
  display: none; flex-direction: column;
  animation: fadeIn .3s var(--ease);
}
.search-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-overlay .bar {
  display: flex; align-items: center; gap: 18px;
  max-width: 900px; margin: 80px auto 0; width: 90%;
  padding-bottom: 22px; border-bottom: 1.5px solid var(--green-900);
}
.search-overlay input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'Playfair Display', serif; font-size: 36px; color: var(--ink);
  padding: 4px 0;
}
.search-overlay input::placeholder { color: var(--muted); font-style: italic; }
.search-overlay .close { font-size: 14px; color: var(--ink-soft); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); }
.search-overlay .close:hover { background: var(--paper); }
.search-suggestions { max-width: 900px; margin: 28px auto 0; width: 90%; }
.search-suggestions h6 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.sugg-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sugg-chips a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
  background: var(--paper); transition: all .2s var(--ease);
}
.sugg-chips a:hover { background: var(--green-wash); border-color: var(--green-soft); color: var(--green-900); }
.search-results { max-width: 900px; margin: 28px auto 0; width: 90%; display: flex; flex-direction: column; gap: 8px; }
.search-results a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 10px 14px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.search-results a:hover { border-color: var(--green-soft); transform: translateY(-1px); }
.search-results .thumb { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.search-results .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-results .t { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--ink); }
.search-results .eyebrow { font-size: 10px; margin-bottom: 0; }
.search-results .cat { font-size: 12px; color: var(--muted); }
.search-empty { text-align: center; padding: 40px; color: var(--muted); font-style: italic; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 20px 0 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--ink-soft); transition: color .2s var(--ease); }
.breadcrumbs a:hover { color: var(--green-900); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--ink); }

/* ---------- Article detail ---------- */
.article-hero { margin-top: 10px; }
.article-hero .meta-row { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); margin: 14px 0 18px; flex-wrap: wrap; }
.article-hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 8px 0 22px; color: var(--ink); max-width: 900px;
}
.article-hero .lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 760px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.article-cover { margin: 36px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 30px; line-height: 1.2; margin: 40px 0 16px; color: var(--ink); letter-spacing: -0.015em; }
.article-body h3 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 22px; margin: 30px 0 12px; color: var(--ink); }
.article-body blockquote {
  margin: 32px 0; padding: 20px 28px; border-left: 3px solid var(--green);
  background: var(--paper); font-family: 'Playfair Display', serif; font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink);
}
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--green-900); text-decoration: underline; text-decoration-color: var(--green-soft); text-underline-offset: 3px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }

.article-layout { display: grid; grid-template-columns: 60px 1fr 260px; gap: 40px; align-items: start; margin-top: 40px; }
.article-sidebar { position: sticky; top: 100px; }
.toc { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; }
.toc h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 13.5px; color: var(--ink-soft); padding: 6px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all .2s var(--ease); cursor: pointer; }
.toc li::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc li:hover, .toc li.active { border-left-color: var(--green); color: var(--green-900); }

.share-rail { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.share-rail a {
  width: 38px; height: 38px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.share-rail a:hover { background: var(--green-wash); border-color: var(--green-soft); color: var(--green-900); transform: translateY(-2px); }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 60; pointer-events: none; }
.reading-progress .bar { height: 100%; background: var(--green); width: 0%; transition: width .1s linear; }

.author-box { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 28px; }
.author-box .avatar { width: 80px; height: 80px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 4px; }
.author-box .name { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0 0 4px; font-weight: 500; }
.author-box .bio { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 640px; }

/* ---------- Category page ---------- */
.category-hero {
  padding: 40px 44px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-top: 8px;
  position: relative; overflow: hidden;
}
.category-hero h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 500; margin: 10px 0 14px; letter-spacing: -0.02em; line-height: 1.05; }
.category-hero p { font-size: 16px; color: var(--ink-soft); max-width: 440px; margin: 0; }
.category-hero .count { font-size: 13px; color: var(--muted); margin-top: 16px; }
.category-hero .img { aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; }
.category-hero .img img { width: 100%; height: 100%; object-fit: cover; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0 22px; align-items: center; }
.filters .chip {
  padding: 8px 16px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  cursor: pointer; transition: all .2s var(--ease); color: var(--ink-soft);
}
.filters .chip:hover { background: var(--green-wash); border-color: var(--green-soft); color: var(--green-900); }
.filters .chip.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.filters .spacer { flex: 1; }
.filters .sort { font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }

.feature-article {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.feature-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-article .img { aspect-ratio: 16/10; overflow: hidden; }
.feature-article .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature-article:hover .img img { transform: scale(1.04); }
.feature-article .body { padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-article h2 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 32px; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
.feature-article p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- About page ---------- */
.about-hero { padding: 60px 0 30px; }
.about-hero h1 { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 22px; max-width: 800px; }
.about-hero h1 em { color: var(--green); font-style: italic; }
.about-hero .lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.about-col h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 500; margin: 0 0 12px; }
.about-col p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 40px; }
.value { padding: 26px 24px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.value .num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--green); font-weight: 500; margin-bottom: 8px; display: block; }
.value h4 { font-family: 'Playfair Display', serif; font-size: 19px; margin: 0 0 8px; font-weight: 500; }
.value p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.member { text-align: left; }
.member .portrait { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 12px; }
.member .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .portrait img { transform: scale(1.05); }
.member .name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; margin: 0; }
.member .role { font-size: 12.5px; color: var(--green); text-transform: uppercase; letter-spacing: 0.12em; margin: 2px 0 6px; font-weight: 500; }
.member .bio { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.stats-block { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 44px 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-block .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 0.18em; text-transform: uppercase; }
.stats-block .value-num { font-family: 'Playfair Display', serif; font-size: 42px; color: var(--ink); margin-top: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.contact-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 28px; }
.contact-card .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.contact-card h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0 0 8px; font-weight: 500; }
.contact-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- Newsletter page ---------- */
.nl-hero {
  min-height: 560px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  padding: 50px 0;
}
.nl-hero h1 { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; margin: 16px 0 20px; }
.nl-hero h1 em { color: var(--green); font-style: italic; }
.nl-hero .lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 500px; }
.nl-hero .form { margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 460px; }
.nl-hero input { padding: 16px 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; background: var(--paper); }
.nl-hero input:focus { outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 4px rgba(120,153,86,0.12); }
.nl-hero .trust { margin-top: 18px; font-size: 13px; color: var(--muted); }
.nl-hero .visual { aspect-ratio: 1/1.1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.nl-hero .visual img { width: 100%; height: 100%; object-fit: cover; }
.nl-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.nl-perk { padding: 28px 26px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.nl-perk .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-wash); color: var(--green-900); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.nl-perk h4 { font-family: 'Playfair Display', serif; font-size: 19px; margin: 0 0 8px; font-weight: 500; }
.nl-perk p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.nl-preview { margin-top: 60px; }
.nl-preview-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nl-preview h3 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 14px; }
.nl-mockup { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 28px; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.nl-mockup .eyebrow { margin: 0; }
.nl-mockup h4 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 10px 0 8px; font-weight: 500; }
.nl-mockup .sep { height: 1px; background: var(--line); margin: 18px 0; }
.nl-mockup .item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; margin-bottom: 14px; }
.nl-mockup .item .ph { aspect-ratio: 1; background: var(--green-wash); border-radius: 8px; overflow: hidden; }
.nl-mockup .item .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.nl-mockup .item .t { font-size: 13px; line-height: 1.4; color: var(--ink); }
.nl-mockup .item .s { font-size: 11px; color: var(--muted); margin-top: 2px; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-grid details { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 22px; }
.faq-grid summary { font-family: 'Playfair Display', serif; font-size: 17px; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.faq-grid details[open] summary::after { transform: rotate(45deg); }
.faq-grid details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.pagination a:hover { background: var(--green-wash); border-color: var(--green-soft); color: var(--green-900); }
.pagination .current { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* ---------- Mobile menu ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  padding: 80px 28px 40px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 16px 0; font-family: 'Playfair Display', serif; font-size: 22px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-nav a:hover { color: var(--green-900); }
.mobile-nav .close-mobile { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); }

/* ---------- Responsive (tablet & mobile) ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 14px; }
}
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .healthy-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .seasonal { grid-template-columns: 1fr; }
  .ranked-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 36px 32px; }
  .hero-card h1 { font-size: 28px; }
  .article-hero h1 { font-size: 38px; }
  .about-hero h1 { font-size: 44px; }
  .nl-hero { grid-template-columns: 1fr; }
  .nl-hero h1 { font-size: 42px; }
  .category-hero { grid-template-columns: 1fr; padding: 32px; }
  .feature-article { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .nl-perks { grid-template-columns: 1fr; }
  .nl-preview-inner { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: 2; }
  .share-rail { flex-direction: row; margin: 0 0 20px; }
  .stats-block { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .container, .container-wide { padding: 0 18px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: 1fr; }
  .healthy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { left: 14px; right: 14px; top: 14px; max-width: none; padding: 22px 22px 20px; }
  .hero-card h1 { font-size: 24px; }
  .hero { aspect-ratio: 4/5; }
  .section-head h2 { font-size: 22px; }
  .seasonal-card { grid-template-columns: 1fr; }
  .seasonal-card .img { aspect-ratio: 16/9; }
  .team { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 30px; }
  .author-box { grid-template-columns: 1fr; text-align: left; }
  .author-box .avatar { margin-bottom: 6px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
