/*
Theme Name: Garden Group
Theme URI: https://gardengroup.cz/
Author: Garden Group Redakce
Description: Warm editorial magazine theme for gardengroup.cz — Fraunces + Inter, oklch natural palette, dark mode, CMD+K search, reading progress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: gardengroup
*/

/* ============================================
   GARDEN GROUP — Design Tokens
   ============================================ */
:root {
  --bg: oklch(96.5% 0.012 85);
  --bg-raised: oklch(98.5% 0.008 85);
  --bg-sunken: oklch(93% 0.015 85);
  --surface-warm: oklch(90% 0.02 85);

  --ink: oklch(22% 0.015 140);
  --ink-2: oklch(38% 0.02 140);
  --ink-3: oklch(55% 0.018 140);
  --ink-4: oklch(72% 0.012 140);

  --line: oklch(86% 0.015 90);
  --line-2: oklch(80% 0.018 90);

  --leaf: oklch(48% 0.06 145);
  --leaf-dark: oklch(38% 0.05 145);
  --leaf-hover: oklch(42% 0.065 145);
  --sage: oklch(72% 0.04 135);
  --olive: oklch(55% 0.05 115);

  --terracotta: oklch(58% 0.11 45);
  --honey: oklch(75% 0.08 75);

  --cat-zahrada: oklch(52% 0.09 140);
  --cat-bydleni: oklch(55% 0.08 75);
  --cat-stavba: oklch(52% 0.06 55);
  --cat-zdravi: oklch(55% 0.09 165);
  --cat-bylinky: oklch(56% 0.1 130);
  --cat-inspirace: oklch(55% 0.09 25);
  --cat-tipy: oklch(52% 0.09 140);

  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px oklch(22% 0.02 140 / 0.04);
  --shadow-md: 0 4px 14px oklch(22% 0.02 140 / 0.06), 0 1px 3px oklch(22% 0.02 140 / 0.05);
  --shadow-lg: 0 12px 32px oklch(22% 0.02 140 / 0.1), 0 4px 12px oklch(22% 0.02 140 / 0.06);

  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

[data-theme="dark"] {
  --bg: oklch(18% 0.012 145);
  --bg-raised: oklch(22% 0.014 145);
  --bg-sunken: oklch(15% 0.012 145);
  --surface-warm: oklch(25% 0.016 145);

  --ink: oklch(94% 0.012 85);
  --ink-2: oklch(82% 0.014 85);
  --ink-3: oklch(65% 0.016 85);
  --ink-4: oklch(50% 0.014 85);

  --line: oklch(30% 0.018 145);
  --line-2: oklch(36% 0.02 145);

  --leaf: oklch(70% 0.09 140);
  --leaf-dark: oklch(60% 0.08 140);
  --leaf-hover: oklch(76% 0.1 140);
  --sage: oklch(68% 0.045 135);

  --shadow-sm: 0 1px 2px oklch(5% 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(5% 0 0 / 0.35), 0 1px 3px oklch(5% 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(5% 0 0 / 0.45), 0 4px 12px oklch(5% 0 0 / 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; margin: 0; }

::selection { background: var(--leaf); color: white; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Screen reader only */
.screen-reader-text, .sr-only {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute;
  word-wrap: normal !important;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding-top: 40px; padding-bottom: 40px; }
.section-tight { padding-top: 24px; padding-bottom: 24px; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 22px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.brand-top {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.brand-bottom {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  margin-top: 4px;
}

.nav-main {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main li { display: inline-flex; }
.nav-main a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-main a:hover, .nav-main a.active, .nav-main .current-menu-item > a {
  color: var(--ink);
}
.nav-main a.active::after, .nav-main .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn, .theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  background: none; border: none; cursor: pointer;
}
.icon-btn:hover, .theme-toggle:hover { background: var(--bg-sunken); color: var(--ink); }

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile nav toggle */
.mobile-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--leaf); color: white; }
.btn-primary:hover { background: var(--leaf-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  border-color: var(--line-2);
  color: var(--ink-2);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: var(--ink-2); padding: 10px 16px; }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--ink); }

/* ============================================
   Top utility bar (above header)
   ============================================ */
.topbar {
  background: oklch(92% 0.01 85);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
  color: var(--ink-3);
}
[data-theme="dark"] .topbar { background: oklch(14% 0.01 145); }
.topbar-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.topbar-tag { letter-spacing: 0.04em; }
.topbar-links { display: flex; gap: 20px; margin-left: auto; }
.topbar-links a { color: var(--ink-3); }
.topbar-links a:hover { color: var(--ink); }

/* ============================================
   Hero
   ============================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.hero-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10.3;
  background: var(--bg-sunken);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 400ms var(--ease);
  display: block;
}
.hero-main:hover { transform: translateY(-2px); }
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease);
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    oklch(15% 0.02 140 / 0.55) 75%,
    oklch(12% 0.02 140 / 0.85) 100%);
  pointer-events: none;
}
.hero-main .hero-content {
  position: absolute;
  left: 36px; right: 36px; bottom: 32px;
  color: white;
  z-index: 2;
}
.hero-content .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(92% 0.03 120);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-content .eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: oklch(92% 0.03 120);
}
.hero-main h1 {
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  color: white;
  max-width: 520px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-main .hero-desc {
  color: oklch(92% 0.02 120);
  margin-top: 14px;
  font-size: 14px;
  max-width: 520px;
  line-height: 1.55;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  color: oklch(88% 0.02 120);
}
.hero-meta svg { opacity: 0.85; }

.hero-aside {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}
.hero-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  align-items: center;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.hero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.hero-card .thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-sunken);
}
.hero-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-card h3 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
}
.hero-card .card-meta {
  display: flex; gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  align-items: center;
}

.cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.cat-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.cat-tag[data-cat="zahrada"] { color: var(--cat-zahrada); }
.cat-tag[data-cat="bydleni"] { color: var(--cat-bydleni); }
.cat-tag[data-cat="stavba"] { color: var(--cat-stavba); }
.cat-tag[data-cat="zdravi"] { color: var(--cat-zdravi); }
.cat-tag[data-cat="bylinky"] { color: var(--cat-bylinky); }
.cat-tag[data-cat="inspirace"] { color: var(--cat-inspirace); }
.cat-tag[data-cat="tipy"] { color: var(--cat-tipy); }

/* ============================================
   Category strip
   ============================================ */
.cat-strip {
  margin-top: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 8px;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
  cursor: pointer;
}
.cat-item:last-child { border-right: none; }
.cat-item:hover { background: var(--bg-sunken); }
.cat-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--leaf);
  flex-shrink: 0;
}
.cat-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.cat-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.35;
}

/* ============================================
   Editorial / featured
   ============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section-header .link-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.section-header .link-all:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.editorial-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 16px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
  display: block;
}
.article-card:hover { transform: translateY(-3px); }
.article-card .card-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  margin-bottom: 14px;
}
.article-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.article-card:hover .card-img img { transform: scale(1.05); }
.article-card h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  margin-top: 6px;
}
.article-card .card-meta {
  display: flex; gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  align-items: center;
}
.article-card .card-meta .dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }

/* Latest */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
.latest-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.latest-items .article-card .card-img { aspect-ratio: 4/3; }
.latest-items .article-card h3 { font-size: 16px; margin-top: 4px; }

.sidebar-block + .sidebar-block { margin-top: 32px; }
.sidebar-block h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ranked-list { display: grid; gap: 14px; }
.ranked-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  padding: 4px 0;
}
.ranked-item .num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--leaf);
  font-weight: 500;
  line-height: 1;
  padding-top: 2px;
}
.ranked-item .t {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.ranked-item:hover .t { color: var(--leaf); }

.trending-list { display: grid; gap: 14px; }
.trending-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  cursor: pointer;
  align-items: center;
}
.trending-item .mini {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-sunken);
}
.trending-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.trending-item .cat-tag { font-size: 9px; margin-bottom: 3px; }
.trending-item .t { font-size: 13px; line-height: 1.3; color: var(--ink-2); }

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 36px;
}
.feature-strip .copy {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-strip h2 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.feature-strip p {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 440px;
}
.feature-strip .cta-row { display: flex; align-items: center; gap: 16px; }
.feature-strip .img {
  background: var(--bg-sunken);
  min-height: 280px;
  overflow: hidden;
}
.feature-strip .img img { width: 100%; height: 100%; object-fit: cover; }

/* Lifestyle section */
.lifestyle-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 36px;
}
.lifestyle-head h2 {
  font-size: 26px;
  line-height: 1.2;
}
.lifestyle-head p {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 12px;
}
.lifestyle-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  background: var(--leaf);
  color: white;
  border-radius: var(--r-lg);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
[data-theme="dark"] .newsletter { color: oklch(15% 0 0); }
.newsletter h2 {
  font-size: 28px;
  color: inherit;
  margin-bottom: 8px;
}
.newsletter p {
  font-size: 13px;
  color: oklch(95% 0.02 120);
  opacity: 0.92;
  line-height: 1.5;
}
[data-theme="dark"] .newsletter p { color: oklch(25% 0 0); }
.newsletter-form {
  display: flex;
  background: white;
  border-radius: var(--r-sm);
  padding: 6px;
  gap: 6px;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: transparent;
  outline: none;
  color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--ink-3); }
.newsletter-form .btn { background: var(--leaf-dark); color: white; }
.newsletter-form .btn:hover { background: oklch(30% 0.06 145); transform: none; }
.newsletter-benefits { display: grid; gap: 10px; font-size: 13px; list-style: none; padding: 0; margin: 0; }
.newsletter-benefits li {
  display: flex; align-items: center; gap: 10px;
  color: oklch(95% 0.02 120);
}
[data-theme="dark"] .newsletter-benefits li { color: oklch(30% 0 0); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about p {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-social {
  display: flex; gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-sunken);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--leaf); color: white; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--ink-2); }
.footer-col a:hover { color: var(--leaf); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ============================================
   Article page
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--leaf);
  z-index: 100;
  transition: width 50ms linear;
}

.article-hero {
  padding: 40px 0 32px;
}
.article-hero .breadcrumbs {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.article-hero .breadcrumbs a:hover { color: var(--leaf); }
.article-hero .breadcrumbs .sep { margin: 0 8px; color: var(--ink-4); }
.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
  max-width: 880px;
  margin: 18px 0 20px;
}
.article-hero .lede {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 760px;
  font-weight: 400;
  font-style: italic;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-byline .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-sunken);
  overflow: hidden;
}
.article-byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline .who { font-size: 13px; }
.article-byline .who strong { color: var(--ink); font-weight: 600; }
.article-byline .who .meta { color: var(--ink-3); font-size: 12px; }
.article-byline .spacer { flex: 1; }
.article-byline .reading { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }

.article-cover {
  aspect-ratio: 21/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--bg-sunken);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article-body > * + * { margin-top: 20px; }
.article-body p { margin: 0; }
.article-body h2 {
  font-size: 30px;
  margin: 48px 0 16px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--ink);
}
.article-body blockquote {
  border-left: 3px solid var(--leaf);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 16px 0; }
.article-body li { margin: 8px 0; }
.article-body img { border-radius: var(--r-md); margin: 32px 0; width: 100%; height: auto; }
.article-body figure { margin: 32px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
}
.article-body strong, .article-body b { color: var(--ink); }
.article-body a { color: var(--leaf); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--leaf); }

/* WordPress image alignment */
.article-body .alignwide, .wp-block-image.alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.article-body .alignfull, .wp-block-image.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.article-body .alignleft { float: left; margin: 0 24px 16px 0; max-width: 50%; }
.article-body .alignright { float: right; margin: 0 0 16px 24px; max-width: 50%; }

.article-tags {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-2);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.tag-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.author-card {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
}
.author-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-sunken);
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}
.author-card .role {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.author-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.related-section {
  margin-top: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.related-section .section-header { margin-bottom: 24px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* ============================================
   Category / archive page
   ============================================ */
.category-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.category-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 12px;
}
.category-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.category-hero p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.6;
}
.category-sub {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.chip {
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--leaf); color: white; border-color: var(--leaf); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding: 40px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 64px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { background: var(--bg-sunken); color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================
   Author page
   ============================================ */
.author-hero {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.author-hero .avatar-lg {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-sunken);
}
.author-hero .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-hero .role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 8px;
}
.author-hero h1 {
  font-size: 44px;
  line-height: 1.08;
  margin-bottom: 12px;
}
.author-hero p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.6;
}
.author-stats {
  display: flex; gap: 32px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.author-stats strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ============================================
   Search
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  padding-top: 10vh;
}
.search-overlay.open { display: block; animation: fadeIn 180ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.search-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 18px;
  font-family: var(--font-sans);
  color: var(--ink);
}
.search-input-row .kbd {
  font-size: 11px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.search-results { max-height: 60vh; overflow-y: auto; }
.search-result {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.search-result:hover, .search-result.active { background: var(--bg-sunken); }
.search-result .thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-sunken);
}
.search-result .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result h4 { font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0; }
.search-result .meta { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.search-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.search-hint {
  padding: 14px 24px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg-sunken);
  display: flex;
  gap: 18px;
}

/* Search-results page body fallback */
.search-results-list { display: grid; gap: 24px; padding: 32px 0; }

/* ============================================
   Misc
   ============================================ */
.fade-in { animation: fadeUp 400ms var(--ease) backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.page-simple { padding: 80px 0; min-height: 50vh; max-width: 720px; margin: 0 auto; }
.page-simple h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.page-simple p { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin-top: 12px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .latest-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip .img { min-height: 220px; }
  .lifestyle-row { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-strip .cat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 820px) {
  .nav-main { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .editorial-grid, .latest-items, .related-grid, .category-grid, .lifestyle-items { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: 1fr; }
  .cat-strip .cat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .cat-strip .cat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-hero { grid-template-columns: 1fr; text-align: center; }
  .author-hero .avatar-lg { margin: 0 auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .editorial-panel { padding: 20px; }
  .feature-strip .copy { padding: 28px 24px; }
  .newsletter { padding: 28px 24px; }
  .topbar-links { display: none; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
  .newsletter-form input { background: #fff; border-radius: var(--r-sm); padding: 14px 16px; width: 100%; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .topbar-inner { padding: 0 16px; }
  .nav-row .container { padding: 0 16px; }
}

/* Dark mode refinements */
[data-theme="dark"] .topbar { border-bottom-color: var(--line); }
[data-theme="dark"] .hero-main::after {
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    oklch(5% 0 0 / 0.55) 75%,
    oklch(2% 0 0 / 0.9) 100%);
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 72px 24px 32px;
  display: none;
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 18px;
  font-family: var(--font-serif);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a:hover { background: var(--bg-sunken); }
.mobile-drawer .btn { margin-top: 24px; width: 100%; justify-content: center; }
.mobile-drawer .mobile-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}
.mobile-drawer .mobile-close:hover { background: var(--bg-sunken); }
.mobile-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 12, 8, 0.4);
  z-index: 190;
}
.mobile-drawer-backdrop[hidden] { display: none; }
body.mobile-locked { overflow: hidden; }
