/*
Theme Name: Poznavat
Theme URI: https://poznavat.cz/
Author: Redakce Poznavat
Author URI: https://poznavat.cz/
Description: Warm/earthy editorial magazine theme — Plus Jakarta Sans, terakota akcent, wave dividery, 8 topic barev, dark/light toggle, reading progress. Classic PHP theme, verze 5.1 (2026-04-22).
Version: 5.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poznavat
Tags: magazine, editorial, warm, earthy, dark-mode, responsive-layout, featured-images, custom-menu
*/

/* ===== Fonts (self-hosted Plus Jakarta Sans, latin + latin-ext) ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jakarta-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jakarta-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Design tokens ===== */
:root {
  --bg: #faf7f2;
  --bg-alt: #f4efe6;
  --bg-card: #ffffff;
  --bg-soft: #f7f2e9;
  --surface-warm: #efe7da;

  --ink: #241a12;
  --ink-2: #4a3d30;
  --ink-3: #7a6a58;
  --ink-4: #a89a85;
  --line: #e8e0d0;
  --line-2: #d9cfbb;

  --accent: #c25a3a;
  --accent-hover: #a94b2d;
  --accent-soft: #f4e4d9;
  --accent-ink: #7a3316;

  /* 8 topic accents — new design set + legacy slug aliases */
  --topic-bydleni: #a97353;
  --topic-zdravi: #6b8e4e;
  --topic-cestovani: #3d6b82;
  --topic-inspirace: #9a6b3d;
  --topic-zahrada: #5c7a3d;
  --topic-rodina: #c27a5a;
  --topic-vareni: #b85c3a;
  --topic-finance: #4a5f7a;
  --topic-penize-sluzby: var(--topic-finance);
  --topic-prace-vzdelani: var(--topic-vareni);
  --topic-technologie: var(--topic-cestovani);
  --topic-aktualne: var(--topic-inspirace);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: var(--font-sans);
  --font-serif: var(--font-sans);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(50, 30, 15, .05);
  --shadow-md: 0 4px 14px rgba(50, 30, 15, .08);
  --shadow-lg: 0 14px 40px rgba(50, 30, 15, .12);

  --page-w: 1240px;
  --page-px: 40px;
}

html[data-theme="dark"] {
  --bg: #1a1410;
  --bg-alt: #221a14;
  --bg-card: #221a13;
  --bg-soft: #2a2019;
  --surface-warm: #2e241b;

  --ink: #f5ece0;
  --ink-2: #d8cdbd;
  --ink-3: #a89a85;
  --ink-4: #7a6a58;
  --line: #3a2e24;
  --line-2: #4a3d30;

  --accent: #e07a55;
  --accent-hover: #eb8d6a;
  --accent-soft: #3a2218;
  --accent-ink: #f4c7a8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.screen-reader-text, .sr-only {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--bg);
  padding: 12px 16px; z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

/* ===== Page shell ===== */
.page { width: 100%; min-height: 100%; background: var(--bg); color: var(--ink); }
.container { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--page-px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-tld { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, color .15s;
  display: inline-block;
}
.nav-links a:hover { background: var(--surface-warm); color: var(--ink); }
.nav-links li.current-menu-item > a,
.nav-links li.current-page-ancestor > a,
.nav-links li.current-category-ancestor > a { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s, color .15s;
  background: transparent;
}
.icon-btn:hover { background: var(--surface-warm); color: var(--ink); }
.mobile-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s, color .15s;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 6px 18px rgba(194, 90, 58, .28);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 10px 16px; }
.btn-ghost:hover { background: var(--surface-warm); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ===== Wave divider utility ===== */
.wave { position: relative; }
.wave::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: var(--wave-h, 110px);
  background: var(--wave-next, var(--bg));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q 240 10 480 50 T 960 60 T 1440 40 L 1440 120 L 0 120 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q 240 10 480 50 T 960 60 T 1440 40 L 1440 120 L 0 120 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 2;
  pointer-events: none;
}
.wave.wave-flip::after { transform: scaleX(-1); }
.wave-top { position: relative; }
.wave-top::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: var(--wave-h, 110px);
  background: var(--wave-prev, var(--bg));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q 240 110 480 70 T 960 60 T 1440 80 L 1440 0 L 0 0 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q 240 110 480 70 T 960 60 T 1440 80 L 1440 0 L 0 0 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 2;
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--surface-warm);
  padding: 48px 0 140px;
  overflow: hidden;
  --wave-next: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero-left { padding-top: 8px; }
.hero-right { position: relative; }
.hero-title {
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--ink);
  max-width: 440px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 6' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4 Q 50 1 100 3 T 198 3' stroke='%23c25a3a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-badge { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 110px; max-width: 170px; }
.hero-badge-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-badge-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.hero-badge-sub { font-size: 12px; color: var(--ink-3); line-height: 1.35; }

.hero-media { position: relative; aspect-ratio: 4/3; width: 100%; }
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 100% at 70% 50%, transparent 40%, var(--surface-warm) 95%);
  z-index: 2; pointer-events: none;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 88% 95% at 62% 50%, black 55%, transparent 85%);
  mask-image: radial-gradient(ellipse 88% 95% at 62% 50%, black 55%, transparent 85%);
}

/* ===== Topics band ===== */
.hero-to-topics {
  background: var(--bg);
  padding: 24px 0 48px;
  text-align: center;
}
.topics-ornament { display: inline-flex; color: var(--accent); margin-bottom: 20px; opacity: .8; }
.topics-heading {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--ink);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; gap: 16px; align-items: stretch;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-align: left;
  min-height: 170px;
  color: inherit;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.topic-card-body { flex: 1; display: flex; flex-direction: column; }
.topic-card-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 10px;
  background: var(--accent-soft);
}
.topic-card-title { font-size: 19px; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.topic-card-desc { font-size: 13px; color: var(--ink-3); flex: 1; line-height: 1.45; margin-bottom: 10px; }
.topic-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  align-self: flex-start;
}
.topic-card-img {
  width: 130px; flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-warm);
  align-self: stretch;
}
.topic-card-img img { width: 100%; height: 100%; object-fit: cover; }

.topic-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 16px;
}
.topic-pills-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  padding: 0 18px;
}
.topic-pill { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.topic-pill-title { color: var(--ink-2); font-weight: 600; margin-bottom: 2px; font-size: 12px; display: block; }

/* ===== Section scaffold ===== */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-bg-soft { background: var(--bg-soft); }
.section-bg-warm { background: var(--surface-warm); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-head-left { display: flex; align-items: center; gap: 14px; }
.section-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.section-title { font-size: 34px; font-weight: 500; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.section-lead { font-size: 15px; color: var(--ink-3); max-width: 520px; margin-top: 6px; }
.section-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
}
.section-cta:hover { gap: 10px; }

.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--accent);
  margin: 24px 0;
}
.divider-ornament-line { height: 1px; width: 40px; background: var(--line-2); }

/* ===== Article cards grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.articles-grid-3 { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.article-card {
  display: flex; flex-direction: column;
  background: transparent;
  transition: transform .2s;
  color: inherit;
}
.article-card:hover { transform: translateY(-3px); }
.article-card-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-warm);
  margin-bottom: 14px;
}
.article-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--r-sm);
}
.article-card-bookmark {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s;
}
.article-card:hover .article-card-bookmark { opacity: 1; }
.article-card-title {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-wrap: pretty;
  color: var(--ink);
}
.article-card-meta {
  font-size: 12px;
  color: var(--ink-3);
  display: flex; gap: 10px; align-items: center;
  margin-top: auto;
}
.article-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* Tag colors */
.tag-bydleni { background: var(--topic-bydleni); }
.tag-zdravi { background: var(--topic-zdravi); }
.tag-cestovani { background: var(--topic-cestovani); }
.tag-inspirace { background: var(--topic-inspirace); }
.tag-zahrada { background: var(--topic-zahrada); }
.tag-rodina { background: var(--topic-rodina); }
.tag-vareni { background: var(--topic-vareni); }
.tag-finance { background: var(--topic-finance); }
.tag-penize-sluzby { background: var(--topic-finance); }
.tag-prace-vzdelani { background: var(--topic-vareni); }
.tag-technologie { background: var(--topic-cestovani); }
.tag-aktualne { background: var(--topic-inspirace); }

/* ===== Featured block (1 big + 3 mini) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.feature-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-warm);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  color: inherit;
}
.feature-hero-text {
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-hero-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.feature-hero-title {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature-hero-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.feature-hero-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.feature-hero-img { background: var(--accent-soft); aspect-ratio: 4/3; }
.feature-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.feature-side { display: flex; flex-direction: column; gap: 14px; }
.feature-mini {
  display: flex; gap: 14px;
  padding: 10px;
  border-radius: var(--r-md);
  transition: background .15s;
  align-items: center;
  color: inherit;
}
.feature-mini:hover { background: var(--bg-soft); }
.feature-mini-img {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-warm);
  flex-shrink: 0;
}
.feature-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-mini-title {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.feature-mini-meta { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Feature wide ===== */
.feature-wide {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: inherit;
}
.feature-wide-img { aspect-ratio: 4 / 3; background: var(--surface-warm); }
.feature-wide-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-wide-text { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.feature-wide-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.feature-wide-title { font-size: 28px; line-height: 1.15; margin-bottom: 12px; color: var(--ink); }
.feature-wide-desc { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }

/* ===== Travel dark cards ===== */
.travel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.travel-card {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.travel-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.travel-card:hover img { transform: scale(1.05); }
.travel-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,12,5,.75), rgba(20,12,5,.2) 55%, transparent);
}
.travel-card-inner { position: relative; z-index: 1; }
.travel-card-title {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.01em;
}
.travel-card-desc { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.travel-card-link {
  font-size: 13px; font-weight: 600; color: #fff;
  display: inline-flex; gap: 4px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 3px;
  align-self: flex-start;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--accent-soft);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  margin: 72px 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(194,90,58,.15), transparent 70%);
  border-radius: 50%;
}
.newsletter-text h2 { font-size: 28px; margin-bottom: 8px; color: var(--accent-ink); letter-spacing: -0.02em; }
.newsletter-text p { font-size: 14px; color: var(--ink-2); max-width: 360px; }
.newsletter-form {
  display: flex; gap: 10px;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.newsletter-form input {
  flex: 1;
  border: none; outline: none; background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.newsletter-checks {
  display: flex; gap: 20px; margin-top: 14px;
  font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.newsletter-check { display: inline-flex; gap: 6px; align-items: center; }
.newsletter-check::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); max-width: 260px; line-height: 1.55; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px; color: var(--ink-2);
  transition: color .15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-quote {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.footer-quote-title { font-family: var(--font-sans); font-size: 16px; font-weight: 500; margin-bottom: 6px; line-height: 1.3; }
.footer-quote-sub { font-size: 12px; color: var(--ink-3); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.footer-social:hover { background: var(--accent); color: #fff; }

/* ===== Search overlay ===== */
.search-overlay {
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 28px;
  box-shadow: var(--shadow-md);
  z-index: 30;
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner { display: flex; flex-direction: column; gap: 16px; }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  border: 1.5px solid transparent;
  transition: border-color .15s;
}
.search-input-wrap:focus-within { border-color: var(--accent); background: var(--bg); }
.search-input-wrap input, .search-input-wrap button {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; font-family: inherit; color: var(--ink); min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--ink-4); }
.search-suggestions-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-3);
}
.search-suggestions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-chip {
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  font-size: 14px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.search-chip:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ===== Article detail ===== */
.article-hero { padding: 48px 0 28px; }
.article-breadcrumb {
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 20px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb-sep { color: var(--ink-4); }
.article-category {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 24px;
  text-wrap: balance;
}
.article-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 32px;
  font-weight: 500;
}
.article-meta-row {
  display: flex; gap: 24px; align-items: center;
  font-size: 14px; color: var(--ink-3);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.article-author { display: flex; gap: 10px; align-items: center; }
.article-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); overflow: hidden;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.article-author-role { font-size: 12px; color: var(--ink-3); }
.article-meta-actions { margin-left: auto; display: flex; gap: 8px; }

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

.article-body, .prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-body p, .prose p { margin: 0 0 22px; }
.article-body h2, .prose h2 { font-size: 30px; margin: 40px 0 16px; color: var(--ink); letter-spacing: -0.015em; font-weight: 700; }
.article-body h3, .prose h3 { font-size: 22px; margin: 32px 0 12px; color: var(--ink); font-weight: 700; }
.article-body blockquote, .prose blockquote {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  color: var(--ink);
  font-style: normal;
}
.article-body ul, .article-body ol, .prose ul, .prose ol { padding-left: 24px; margin-bottom: 22px; }
.article-body li, .prose li { margin-bottom: 8px; }
.article-body img, .prose img { width: 100%; border-radius: var(--r-md); margin: 28px 0; }
.article-body figure, .prose figure { margin: 28px 0; }
.article-body figcaption, .prose figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.article-body a, .prose a { color: var(--accent); border-bottom: 1px solid rgba(194, 90, 58, .3); }
.article-body a:hover, .prose a:hover { border-bottom-color: var(--accent); }
.article-body strong, .prose strong { color: var(--ink); font-weight: 700; }

.article-body .callout, .prose .callout, .article-body .poz-callout {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--accent-ink);
  display: flex; gap: 14px; align-items: flex-start;
}
.article-body .callout-icon, .prose .callout-icon { flex-shrink: 0; color: var(--accent); }
.article-body .callout-title, .prose .callout-title {
  font-weight: 700;
  font-family: var(--font-sans);
  margin-bottom: 4px;
  color: var(--accent-ink);
}
.article-body .poz-pullquote, .prose .poz-pullquote {
  font-size: 28px; line-height: 1.2;
  font-weight: 700; color: var(--ink);
  margin: 40px 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.article-tags {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-tag {
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
}
.article-tag:hover { background: var(--accent-soft); color: var(--accent-ink); }

.article-share {
  max-width: 720px;
  margin: 24px auto 0;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-3);
}

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  width: 0;
  transition: width .08s linear;
}

/* ===== Category / archive ===== */
.category-hero {
  padding: 56px 0 120px;
  background: var(--surface-warm);
  --wave-next: var(--bg);
  position: relative;
}
.category-hero-inner { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.category-hero-text { max-width: 560px; }
.category-hero-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.category-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.category-hero-lead { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 480px; }
.category-hero-stats { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.category-stat-num {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.category-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.category-hero-media {
  width: 360px; height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.category-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.filter-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px; color: var(--ink-2);
  background: var(--bg-card);
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.filter-chip:hover { border-color: var(--line-2); }
.filter-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-sort {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-2);
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.category-featured {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.category-featured-main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  display: block;
}
.category-featured-main img { width: 100%; height: 100%; object-fit: cover; }
.category-featured-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,12,5,.85), transparent 60%);
}
.category-featured-text {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  color: #fff;
  z-index: 1;
}
.category-featured-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.category-featured-title {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #fff;
  max-width: 560px;
}
.category-featured-meta { font-size: 13px; color: rgba(255,255,255,.75); }

.category-featured-side { display: flex; flex-direction: column; gap: 16px; }
.category-featured-mini {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  align-items: center;
  color: inherit;
  transition: border-color .55s cubic-bezier(0.16, 1, 0.3, 1),
              background-color .55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .55s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-featured-mini:hover {
  border-color: var(--line-2);
  background: var(--bg-soft);
  box-shadow: 0 10px 30px -20px rgba(50, 30, 15, .22);
}
.category-featured-mini-img {
  width: 140px; aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-warm);
}
.category-featured-mini-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-featured-mini:hover .category-featured-mini-img img { transform: scale(1.05); }
.category-featured-mini-title {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
  transition: color .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-featured-mini:hover .category-featured-mini-title { color: var(--accent); }
.category-featured-mini-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.category-featured-mini-meta { font-size: 12px; color: var(--ink-3); }

.category-list { padding: 40px 0 72px; }
.category-list-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 28px;
  padding: 24px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  border-radius: var(--r-md);
  color: inherit;
  transition: background-color .55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .55s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-list-row:hover {
  background: var(--bg-soft);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(50, 30, 15, .18);
}
.category-list-img {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-warm);
}
.category-list-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-list-row:hover .category-list-img img { transform: scale(1.04); }
.category-list-title {
  font-family: var(--font-sans);
  font-size: 24px; font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-list-row:hover .category-list-title { color: var(--accent); }
.category-list-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.category-list-desc { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; max-width: 520px; }
.category-list-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.category-list-action {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: background-color .4s cubic-bezier(0.16, 1, 0.3, 1),
              color .4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color .4s cubic-bezier(0.16, 1, 0.3, 1),
              transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-list-row:hover .category-list-action {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateX(4px);
}

.pagination {
  display: flex; gap: 6px; justify-content: center; margin: 40px 0 16px;
}
.pagination a, .pagination span, .pagination .page-numbers {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; color: var(--ink-2);
  border: 1px solid transparent;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { background: var(--bg-soft); }
.pagination .current { background: var(--ink); color: var(--bg); }

/* ===== About page ===== */
.about-hero {
  padding: 80px 0 140px;
  background: var(--surface-warm);
  position: relative;
  overflow: hidden;
  --wave-next: var(--bg);
}
.about-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 20px;
}
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero-lead {
  font-size: 20px; color: var(--ink-2); line-height: 1.5;
  max-width: 620px;
}
.about-values {
  padding: 72px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.about-value-num {
  font-family: var(--font-sans);
  font-size: 48px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1;
}
.about-value-title {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.about-value-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.about-mission {
  padding: 130px 0 140px;
  background: var(--bg-soft);
  --wave-next: var(--bg);
  --wave-prev: var(--bg);
}
.about-mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-mission-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--accent-soft);
  box-shadow: var(--shadow-lg);
}
.about-mission-img img { width: 100%; height: 100%; object-fit: cover; }
.about-mission-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.about-mission-text h2 { font-size: 40px; margin-bottom: 20px; letter-spacing: -0.02em; }
.about-mission-text p {
  font-size: 17px; color: var(--ink-2); line-height: 1.65;
  margin-bottom: 16px;
}
.about-signature {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-top: 24px;
}
.about-signature small {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}

.about-team { padding: 72px 0; }
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.about-team-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-warm);
  margin-bottom: 14px;
}
.about-team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); }
.about-team-name { font-family: var(--font-sans); font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.about-team-role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.about-team-bio { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.related { padding-top: 72px; }

/* ===== Theme toggle ===== */
.theme-toggle { position: relative; width: 40px; height: 40px; }
.theme-toggle .sun { display: inline-flex; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline-flex; }

/* ===== Page states (404, empty search) ===== */
.page-state {
  padding: 96px 0;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.page-state h1 {
  font-size: clamp(48px, 6vw, 80px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.page-state p { font-size: 18px; color: var(--ink-2); margin-bottom: 28px; }

.page-content {
  padding: 64px 0 96px;
  max-width: 680px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px;
}
.page-content .content {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}
.page-content .content p { margin: 0 0 24px; }
.page-content .content h2 { font-size: 28px; margin: 48px 0 16px; color: var(--ink); font-weight: 700; }
.page-content .content a { color: var(--accent); border-bottom: 1px solid rgba(194, 90, 58, .3); }

/* ===== Comments ===== */
.comments-area { max-width: 720px; margin: 64px auto; padding: 0 var(--page-px); }
.comments-title { font-size: 24px; margin: 0 0 24px; font-weight: 700; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 24px 0; }
.comment-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-actions .theme-toggle,
  .nav-actions .btn.btn-primary.btn-sm { display: none; }
  .mobile-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: transparent; color: var(--ink-2);
    border-radius: 50%;
    border: none;
  }
  .mobile-toggle:hover { background: var(--surface-warm); color: var(--ink); }
  body.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: var(--shadow-md);
  }
  body.mobile-open .nav-links ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  body.mobile-open .nav-links a { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-template-columns: 1fr; }
  .feature-wide-img { aspect-ratio: 16/10; }
  .travel-grid { grid-template-columns: 1fr 1fr; }
  .category-featured { grid-template-columns: 1fr; }
  .category-list-row { grid-template-columns: 180px 1fr; }
  .category-list-action { display: none; }
  .about-mission-grid { grid-template-columns: 1fr; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .topic-pills-col { padding: 0 8px; }
}

@media (max-width: 720px) {
  :root { --page-px: 20px; }
  .hero { padding: 28px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { aspect-ratio: 16/11; }
  .topics-grid { grid-template-columns: 1fr; }
  .topic-pills-row { grid-template-columns: 1fr; }
  .topic-pills-col { grid-template-columns: 1fr 1fr; padding: 0; }
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .articles-grid-3 { grid-template-columns: 1fr 1fr; }
  .travel-grid { grid-template-columns: 1fr; }
  .feature-hero { grid-template-columns: 1fr; }
  .feature-hero-img { aspect-ratio: 16/10; }
  .newsletter { grid-template-columns: 1fr; padding: 28px 22px; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; box-shadow: none; }
  .newsletter-form input { background: #fff; border-radius: var(--r-pill); }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-values { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .about-team-grid { grid-template-columns: 1fr 1fr; }
  .category-hero-inner { flex-direction: column; align-items: flex-start; }
  .category-hero-media { width: 100%; height: 220px; }
  .category-list-row { grid-template-columns: 1fr; }
  .category-list-img { max-width: 320px; }
  .article-meta-row { gap: 12px; }
  .article-meta-actions { margin-left: 0; }
  .article-body, .prose { font-size: 17px; }
  .article-cover { aspect-ratio: 16/10; border-radius: var(--r-md); }
}

/* ===== WP admin-bar offsets ===== */
@media (min-width: 783px) {
  body.admin-bar .site-header { top: 32px; }
  body.admin-bar .progress-bar { top: 32px; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .progress-bar { top: 46px; }
}

/* ===== Print ===== */
@media print {
  .site-header, .footer, .newsletter, .related, .progress-bar, .article-meta-actions, .article-share { display: none; }
  body { background: #fff; color: #000; }
  .article-body, .prose { max-width: none; }
}
