:root {
  --nv-primary-accent: #2d6a4f;
  --nv-secondary-accent: #52b788;
  --nv-site-bg: #fffdf7;
  --nv-light-bg: #ebf5ee;
  --nv-dark-bg: #1a3c2f;
  --nv-text-color: #2c3e35;
  --nv-text-dark-bg: #f0f9f4;
  --nv-c-1: #f4a526;
  --header-bg: #000000;
  --header-text: #ffffff;
  --header-height: 88px;
  --font: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Nunito, Inter, sans-serif;
}

html[data-palette="dark"] {
  --nv-primary-accent: #00c2ff;
  --nv-secondary-accent: #00a8db;
  --nv-site-bg: #121212;
  --nv-light-bg: #1a1a1a;
  --nv-dark-bg: #000000;
  --nv-text-color: #e8e8e8;
  --nv-text-dark-bg: #e8e8e8;
  --nv-c-1: #ffd166;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nv-site-bg);
  color: var(--nv-text-color);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

a { color: var(--nv-primary-accent); }

.screen-reader,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo img {
  width: 90px;
  height: auto;
  display: block;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 30px;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a[aria-current="page"] {
  color: var(--nv-primary-accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  appearance: none;
  background: transparent;
  color: #ffffff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus {
  color: var(--nv-primary-accent);
  outline: none;
}

.nav-toggle { display: none; }

.search-panel {
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 28px 20px;
}

.search-panel[hidden] { display: none; }

.search-form input[type="search"] {
  width: min(640px, 100%);
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1c1c1c;
  color: #fff;
  padding: 0 14px;
  font: inherit;
}

.search-results,
.archive-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.search-results a,
.archive-list a {
  color: var(--nv-text-dark-bg);
  text-decoration: none;
  font-weight: 600;
}

.search-panel .search-results a { color: #fff; }

.search-results li,
.archive-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-list li { border-bottom-color: rgba(44, 62, 53, 0.12); }
.archive-list time { color: #5f6368; font-size: 14px; margin-left: 8px; }

.site-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid #000;
}

.site-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px 28px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; font-size: 14px; }

.footer-nav { display: none; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--nv-text-dark-bg);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover { color: var(--nv-secondary-accent); }

.archive { padding: 40px 20px 72px; }

.archive-head,
.single-head {
  max-width: 900px;
  margin: 0 auto 28px;
}

.archive-head h1,
.single-head h1,
.cover-body h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--nv-primary-accent);
}

.cover-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cover-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 60, 47, 0.08);
  display: flex;
  flex-direction: column;
}

html[data-palette="dark"] .cover-card { background: #1a1a1a; }

.cover-media { display: block; aspect-ratio: 16 / 10; background: var(--nv-light-bg); overflow: hidden; }
.cover-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cover-body { padding: 16px 18px 20px; }
.cover-body h2 { font-size: 20px; }
.cover-body h2 a { color: inherit; text-decoration: none; }
.cover-body h2 a:hover { color: var(--nv-primary-accent); }
.cover-body p { margin: 0; color: #5f6368; }
html[data-palette="dark"] .cover-body p { color: #c8c8c8; }

.cover-date { margin: 0 0 8px; color: #5f6368; font-size: 13px; }

.single { padding: 36px 20px 72px; }
.entry-thumb { max-width: 900px; margin: 0 auto 24px; }
.entry-thumb img { width: 100%; border-radius: 12px; display: block; }

.entry-content,
.raw-page .entry-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--display);
  line-height: 1.3;
  color: inherit;
}

.entry-content a { color: #1a73e8; }
.entry-content img { border-radius: 8px; }
.entry-content iframe { max-width: 100%; }

.elementor-page .elementor { width: 100%; }

.search-form-page {
  max-width: 720px;
  margin: 0 auto 24px;
  display: flex;
  gap: 8px;
}

.search-form-page input[type="search"] {
  flex: 1;
  height: 48px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
  color: #202124;
}

.search-form-page button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--nv-primary-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  :root { --header-height: 64px; }
  .site-logo img { width: 120px; }
  .site-header-inner { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .footer-nav { display: block; }
  .primary-nav {
    display: none;
    position: fixed;
    z-index: 1001;
    inset: var(--header-height) 0 0 0;
    background: #000;
    padding: 12px 8px 32px;
    overflow: auto;
  }
  body.nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { display: block; padding: 12px 16px; font-size: 18px; line-height: 1.4; }
  .cover-grid { grid-template-columns: 1fr; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .primary-nav a { font-size: 13px; }
  .primary-nav ul { gap: 6px 14px; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
}
