/*
Theme Name: Venison Magazine
Theme URI: https://venisonmagazine.com
Author: Venison Magazine
Author URI: https://venisonmagazine.com
Description: A fast-loading, fully responsive magazine theme for Venison Magazine. Features a clean editorial design with homepage hero layout, category strips, trending sidebar, newsletter widget, and full Gutenberg compatibility. Optimized for Core Web Vitals and mobile performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: venison-magazine
Tags: magazine, news, blog, custom-logo, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, full-site-editing

This theme, like WordPress, is licensed under the GPL.
*/

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --vm-ink:        #0d0d0d;
  --vm-paper:      #f5f0e8;
  --vm-cream:      #faf7f2;
  --vm-white:      #ffffff;
  --vm-accent:     #c8402a;
  --vm-accent2:    #2a6fc8;
  --vm-muted:      #7a7268;
  --vm-border:     #d8d0c4;
  --vm-serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --vm-sans:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --vm-radius:     6px;
  --vm-shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --vm-shadow-md:  0 8px 24px rgba(0,0,0,.12);
  --vm-max-width:  1280px;
  --vm-gap:        28px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--vm-cream);
  color: var(--vm-ink);
  font-family: var(--vm-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--vm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── SCREEN READER TEXT ── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--vm-cream); border-radius: 4px;
  box-shadow: 0 0 0 3px var(--vm-accent); clip: auto !important;
  clip-path: none; color: var(--vm-ink); display: block;
  font-size: .875rem; font-weight: 700; height: auto;
  left: 8px; line-height: normal; padding: 12px 20px;
  text-decoration: none; top: 8px; width: auto; z-index: 9999;
}

/* ── SKIP LINK ── */
.skip-link { position: absolute; top: -999px; }
.skip-link:focus { top: 8px; left: 8px; z-index: 9999; }

/* ── CONTAINER ── */
.vm-container {
  max-width: var(--vm-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 5vw;
  padding-right: 5vw;
}

/* ────────────────────────────
   TOP BAR
──────────────────────────── */
.vm-topbar {
  background: var(--vm-ink);
  color: var(--vm-paper);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 5vw;
}
.vm-topbar a { color: var(--vm-accent); text-decoration: none; }
.vm-topbar a:hover { text-decoration: underline; }

/* ────────────────────────────
   HEADER
──────────────────────────── */
#masthead {
  background: var(--vm-cream);
  border-bottom: 2px solid var(--vm-ink);
  position: sticky;
  top: 0;
  z-index: 200;
}
.vm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Site Branding */
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo-link img { height: 48px; width: auto; }
.site-branding .site-title {
  font-family: var(--vm-serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}
.site-branding .site-title a { color: var(--vm-ink); text-decoration: none; }
.site-branding .site-title a span { color: var(--vm-accent); }
.site-branding .site-description { display: none; }

/* Primary Navigation */
#site-navigation { display: flex; align-items: center; }
#primary-menu { display: flex; gap: 0; }
#primary-menu li { position: relative; }
#primary-menu li a {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vm-ink);
  padding: 8px 13px;
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a { background: var(--vm-ink); color: var(--vm-cream); text-decoration: none; }

/* Dropdown */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--vm-white);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  box-shadow: var(--vm-shadow-md);
  z-index: 300;
  padding: 8px 0;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li a {
  padding: 9px 18px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
#primary-menu .sub-menu li a:hover { background: var(--vm-paper); color: var(--vm-ink); }

/* Header CTA */
.vm-header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.vm-btn-subscribe {
  background: var(--vm-accent);
  color: var(--vm-white) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
  transition: opacity .15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.vm-btn-subscribe:hover { opacity: .85; }

/* Hamburger */
.vm-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.vm-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--vm-ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.vm-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vm-menu-toggle.active span:nth-child(2) { opacity: 0; }
.vm-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.vm-mobile-nav {
  display: none;
  background: var(--vm-cream);
  border-top: 1px solid var(--vm-border);
  padding: 16px 5vw 24px;
  position: absolute;
  left: 0; right: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 199;
}
.vm-mobile-nav.open { display: block; }
.vm-mobile-nav ul { list-style: none; }
.vm-mobile-nav ul li a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--vm-ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--vm-border);
  text-decoration: none;
}
.vm-mobile-nav ul li:last-child a { border: none; }
.vm-mobile-nav ul li a:hover { color: var(--vm-accent); }
.vm-mobile-nav .vm-btn-subscribe { display: inline-block; margin-top: 16px; font-size: 12px; }

/* ────────────────────────────
   BREAKING NEWS TICKER
──────────────────────────── */
.vm-ticker-wrap {
  background: var(--vm-ink);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.vm-ticker-label {
  background: var(--vm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.vm-ticker-scroll { overflow: hidden; flex: 1; }
.vm-ticker-track {
  display: flex;
  animation: vmTicker 50s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.vm-ticker-track a {
  color: var(--vm-paper);
  font-size: 12px;
  padding: 0 36px;
  text-decoration: none;
}
.vm-ticker-track a::after { content: '·'; margin-left: 36px; color: var(--vm-accent); }
.vm-ticker-track a:hover { color: var(--vm-accent); }
@keyframes vmTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ────────────────────────────
   HERO / FEATURED AREA
──────────────────────────── */
.vm-hero {
  padding-top: 36px;
  padding-bottom: 0;
}
.vm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* Main Feature Post */
.vm-hero-main {
  position: relative;
  border-radius: var(--vm-radius);
  overflow: hidden;
  cursor: pointer;
}
.vm-hero-main a { display: block; text-decoration: none; }
.vm-hero-main .vm-post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vm-hero-main:hover .vm-post-thumb { transform: scale(1.02); }
.vm-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  padding: 32px 28px 28px;
}
.vm-cat-badge {
  display: inline-block;
  background: var(--vm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-decoration: none;
}
.vm-cat-badge:hover { opacity: .85; text-decoration: none; }
.vm-hero-title {
  font-family: var(--vm-serif);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
  text-decoration: none;
}
.vm-hero-title:hover { text-decoration: underline; color: #fff; }
.vm-post-meta { font-size: 12px; color: rgba(255,255,255,.65); }
.vm-post-meta a { color: rgba(255,255,255,.85); text-decoration: none; }
.vm-post-meta a:hover { text-decoration: underline; }
.vm-post-meta .sep { margin: 0 6px; }

/* Hero Side List */
.vm-hero-side { display: flex; flex-direction: column; }
.vm-side-article {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--vm-border);
  text-decoration: none;
  transition: opacity .15s;
}
.vm-side-article:first-child { padding-top: 0; }
.vm-side-article:last-child { border-bottom: none; }
.vm-side-article:hover { opacity: .75; }
.vm-side-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vm-accent);
  margin-bottom: 5px;
}
.vm-side-title {
  font-family: var(--vm-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vm-ink);
  margin-bottom: 6px;
}
.vm-side-meta { font-size: 11px; color: var(--vm-muted); }
.vm-side-article img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.vm-side-thumb-placeholder {
  width: 80px;
  height: 60px;
  background: var(--vm-border);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ────────────────────────────
   SECTION HEADING
──────────────────────────── */
.vm-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.vm-section-head h2, .vm-section-head h3 {
  font-family: var(--vm-serif);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  color: var(--vm-ink);
}
.vm-section-line { flex: 1; height: 2px; background: var(--vm-border); }
.vm-section-more {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vm-accent);
  text-decoration: none;
  white-space: nowrap;
}
.vm-section-more:hover { text-decoration: underline; }

/* ────────────────────────────
   MAIN CONTENT LAYOUT
──────────────────────────── */
#primary-content {
  padding-top: 44px;
  padding-bottom: 44px;
}
.vm-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ── POST CARDS ── */
.vm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vm-gap);
}
.vm-card { cursor: pointer; transition: transform .2s ease; }
.vm-card:hover { transform: translateY(-3px); }
.vm-card a { text-decoration: none; }
.vm-card-thumb {
  border-radius: var(--vm-radius);
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 14px;
  background: var(--vm-border);
}
.vm-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vm-card:hover .vm-card-thumb img { transform: scale(1.04); }
.vm-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vm-accent);
  margin-bottom: 6px;
  text-decoration: none;
}
.vm-card-title {
  font-family: var(--vm-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vm-ink);
  margin-bottom: 8px;
  display: block;
}
.vm-card-title:hover { color: var(--vm-accent); text-decoration: none; }
.vm-card-excerpt {
  font-size: 13px;
  color: var(--vm-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.vm-card-meta { font-size: 11px; color: var(--vm-muted); }
.vm-card-meta .sep { margin: 0 6px; }

/* Pagination */
.vm-pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1.5px solid var(--vm-border);
  border-radius: 4px; font-size: 13px; font-weight: 600;
  color: var(--vm-ink); text-decoration: none; transition: all .15s;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover { background: var(--vm-ink); color: var(--vm-cream); border-color: var(--vm-ink); }
.nav-links .page-numbers.dots { border: none; width: auto; }

/* ────────────────────────────
   SIDEBAR WIDGETS
──────────────────────────── */
#secondary { display: flex; flex-direction: column; gap: 36px; }

.widget { }
.widget-title {
  font-family: var(--vm-serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--vm-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vm-ink);
}

/* Recent Posts Widget */
.widget_recent_entries ul li { border-bottom: 1px solid var(--vm-border); padding: 12px 0; }
.widget_recent_entries ul li:last-child { border: none; }
.widget_recent_entries ul li a { font-family: var(--vm-serif); font-size: 14px; font-weight: 700; color: var(--vm-ink); text-decoration: none; line-height: 1.3; }
.widget_recent_entries ul li a:hover { color: var(--vm-accent); }
.widget_recent_entries ul li .post-date { display: block; font-size: 11px; color: var(--vm-muted); margin-top: 4px; }

/* Categories Widget */
.widget_categories ul li { border-bottom: 1px solid var(--vm-border); }
.widget_categories ul li:last-child { border: none; }
.widget_categories ul li a {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-size: 13px; font-weight: 500;
  color: var(--vm-ink); text-decoration: none; transition: color .15s;
}
.widget_categories ul li a:hover { color: var(--vm-accent); }

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud .tagcloud a {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--vm-ink);
  border: 1.5px solid var(--vm-border);
  padding: 5px 11px;
  border-radius: 40px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.widget_tag_cloud .tagcloud a:hover { background: var(--vm-ink); color: var(--vm-cream); border-color: var(--vm-ink); }

/* Search Widget */
.widget_search .search-form { display: flex; }
.widget_search .search-field {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--vm-border);
  border-right: none; border-radius: 4px 0 0 4px; font-size: 13px;
  background: var(--vm-white); outline: none; transition: border-color .15s;
}
.widget_search .search-field:focus { border-color: var(--vm-accent); }
.widget_search .search-submit {
  padding: 10px 16px; background: var(--vm-ink); color: var(--vm-cream);
  border: 1.5px solid var(--vm-ink); border-radius: 0 4px 4px 0;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: opacity .15s;
}
.widget_search .search-submit:hover { opacity: .8; }

/* Newsletter Widget (custom) */
.vm-newsletter-widget {
  background: var(--vm-ink);
  border-radius: 8px;
  padding: 24px 22px;
  color: var(--vm-paper);
}
.vm-newsletter-widget .widget-title { color: var(--vm-paper); border-bottom-color: rgba(255,255,255,.2); }
.vm-newsletter-widget p { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; line-height: 1.55; }
.vm-newsletter-form input[type="email"] {
  width: 100%; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 4px; color: var(--vm-paper);
  font-size: 13px; margin-bottom: 10px; outline: none;
  transition: border-color .15s;
}
.vm-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.vm-newsletter-form input[type="email"]:focus { border-color: var(--vm-accent); }
.vm-newsletter-form button {
  width: 100%; padding: 11px; background: var(--vm-accent);
  color: #fff; border: none; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; transition: opacity .15s;
}
.vm-newsletter-form button:hover { opacity: .85; }

/* ────────────────────────────
   CATEGORY STRIP
──────────────────────────── */
.vm-cat-strip { padding-top: 0; padding-bottom: 52px; }
.vm-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.vm-cat-card {
  display: block;
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vm-cat-card:hover { transform: translateY(-4px); box-shadow: var(--vm-shadow-md); text-decoration: none; }
.vm-cat-icon { font-size: 28px; margin-bottom: 10px; }
.vm-cat-name { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vm-cat-count { font-size: 11px; color: var(--vm-muted); margin-top: 3px; }

/* ────────────────────────────
   FEATURE / EDITORS PICKS
──────────────────────────── */
.vm-feature-section { padding-bottom: 56px; }
.vm-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--vm-gap); }
.vm-feature-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.vm-feature-card a { display: block; height: 100%; text-decoration: none; }
.vm-feature-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.vm-feature-card:hover img { transform: scale(1.04); }
.vm-feature-card .vm-feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 2;
}
.vm-feature-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--vm-accent); margin-bottom: 8px;
}
.vm-feature-title {
  font-family: var(--vm-serif);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 8px;
}
.vm-feature-meta { font-size: 11px; color: rgba(255,255,255,.6); }

/* ────────────────────────────
   SINGLE POST
──────────────────────────── */
.vm-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 56px;
}
.vm-post-header { margin-bottom: 28px; }
.vm-post-header .vm-cat-badge { margin-bottom: 14px; }
.entry-title {
  font-family: var(--vm-serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--vm-ink);
  margin-bottom: 16px;
}
.vm-post-header .vm-post-meta { font-size: 13px; color: var(--vm-muted); margin-bottom: 24px; }
.vm-featured-img { border-radius: var(--vm-radius); overflow: hidden; margin-bottom: 32px; }
.vm-featured-img img { width: 100%; height: auto; }

.entry-content { font-size: 17px; line-height: 1.75; color: #1a1a1a; }
.entry-content h2 { font-family: var(--vm-serif); font-size: 26px; font-weight: 900; margin: 36px 0 14px; color: var(--vm-ink); }
.entry-content h3 { font-family: var(--vm-serif); font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.entry-content p { margin-bottom: 22px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 22px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--vm-accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--vm-paper);
  border-radius: 0 4px 4px 0;
  font-family: var(--vm-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--vm-ink);
}
.entry-content img { border-radius: var(--vm-radius); margin: 24px 0; }
.entry-content a { color: var(--vm-accent); text-decoration: underline; }
.entry-content a:hover { opacity: .8; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.entry-content th { background: var(--vm-ink); color: var(--vm-cream); padding: 10px 14px; text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--vm-border); }
.entry-content tr:last-child td { border: none; }
.entry-content code { background: var(--vm-paper); padding: 2px 6px; border-radius: 3px; font-size: .9em; }
.entry-content pre { background: var(--vm-ink); color: var(--vm-paper); padding: 20px; border-radius: var(--vm-radius); overflow-x: auto; margin-bottom: 22px; font-size: 14px; line-height: 1.6; }

/* Post Tags */
.vm-post-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--vm-border); }
.vm-post-tags span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-muted); margin-right: 10px; }
.vm-post-tags a {
  display: inline-block; font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--vm-border); padding: 4px 10px;
  border-radius: 40px; color: var(--vm-ink); margin: 4px 4px 4px 0; text-decoration: none;
  transition: all .15s;
}
.vm-post-tags a:hover { background: var(--vm-ink); color: var(--vm-cream); border-color: var(--vm-ink); }

/* Author Box */
.vm-author-box {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; background: var(--vm-paper);
  border-radius: 8px; margin-top: 36px;
}
.vm-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vm-author-name { font-family: var(--vm-serif); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.vm-author-bio { font-size: 13px; color: var(--vm-muted); line-height: 1.55; }

/* Related Posts */
.vm-related-posts { margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--vm-ink); }

/* Comments */
.comments-area { margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--vm-ink); }
.comments-title { font-family: var(--vm-serif); font-size: 24px; font-weight: 900; margin-bottom: 28px; }
.comment-list { list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--vm-border); }
.comment-author .fn { font-family: var(--vm-serif); font-size: 15px; font-weight: 700; }
.comment-metadata { font-size: 11px; color: var(--vm-muted); margin-bottom: 10px; }
.comment-content p { font-size: 14px; line-height: 1.65; }
.reply { margin-top: 10px; }
.reply a { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vm-accent); text-decoration: none; }

.comment-respond { margin-top: 40px; }
.comment-reply-title { font-family: var(--vm-serif); font-size: 22px; font-weight: 900; margin-bottom: 22px; }
.comment-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--vm-border);
  border-radius: 4px; font-size: 14px;
  margin-bottom: 18px; outline: none; transition: border-color .15s;
  background: var(--vm-white);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--vm-accent); }
.comment-form textarea { height: 140px; resize: vertical; }
.comment-form .submit {
  background: var(--vm-accent); color: #fff; border: none;
  padding: 12px 28px; border-radius: 4px; font-size: 13px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: opacity .15s;
}
.comment-form .submit:hover { opacity: .85; }

/* ────────────────────────────
   PAGE / ARCHIVE
──────────────────────────── */
.vm-archive-header { padding: 36px 0 28px; border-bottom: 2px solid var(--vm-ink); margin-bottom: 36px; }
.vm-archive-header .archive-title { font-family: var(--vm-serif); font-size: clamp(26px,4vw,40px); font-weight: 900; }
.vm-archive-header .archive-description { font-size: 15px; color: var(--vm-muted); margin-top: 10px; }

/* ────────────────────────────
   404 / SEARCH
──────────────────────────── */
.vm-error-page, .vm-search-page { padding: 60px 0; text-align: center; }
.vm-error-page h1 { font-family: var(--vm-serif); font-size: 80px; font-weight: 900; color: var(--vm-border); line-height: 1; }
.vm-error-page h2, .vm-search-page h2 { font-family: var(--vm-serif); font-size: 32px; font-weight: 900; margin-bottom: 14px; }
.vm-error-page p, .vm-search-page p { font-size: 16px; color: var(--vm-muted); margin-bottom: 28px; }

/* ────────────────────────────
   FOOTER
──────────────────────────── */
#colophon {
  background: var(--vm-ink);
  color: var(--vm-paper);
  margin-top: 72px;
  padding: 56px 5vw 32px;
}
.vm-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.vm-footer-brand .site-title { font-family: var(--vm-serif); font-size: 28px; font-weight: 900; color: var(--vm-paper); }
.vm-footer-brand .site-title a { color: var(--vm-paper); text-decoration: none; }
.vm-footer-brand .site-title span { color: var(--vm-accent); }
.vm-footer-brand p { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 280px; }
.vm-footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.vm-footer-col ul li { margin-bottom: 0; }
.vm-footer-col ul li a { display: block; font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; padding: 5px 0; transition: color .15s; }
.vm-footer-col ul li a:hover { color: var(--vm-accent); }
.vm-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}
.vm-footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.vm-footer-bottom a:hover { color: var(--vm-accent); }
.vm-footer-social { display: flex; gap: 14px; }
.vm-footer-social a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ────────────────────────────
   UTILITY
──────────────────────────── */
.vm-section-pad { padding-top: 52px; padding-bottom: 52px; }
.vm-divider { height: 2px; background: var(--vm-border); margin: 40px 0; }
.vm-badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vm-badge-accent { background: var(--vm-accent); color: #fff; }
.vm-badge-ink { background: var(--vm-ink); color: var(--vm-cream); }

/* ────────────────────────────
   ANIMATIONS
──────────────────────────── */
@keyframes vmFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vm-hero { animation: vmFadeUp .55s ease both; }
.vm-ticker-wrap { animation: vmFadeUp .55s .05s ease both; }
#primary-content { animation: vmFadeUp .55s .1s ease both; }

/* ────────────────────────────
   RESPONSIVE BREAKPOINTS
──────────────────────────── */

/* Large tablets */
@media (max-width: 1100px) {
  .vm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .vm-card-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablets */
@media (max-width: 900px) {
  .vm-hero-grid { grid-template-columns: 1fr; }
  .vm-hero-side { display: none; }
  .vm-content-grid { grid-template-columns: 1fr; }
  #secondary { display: none; }
  .vm-single-layout { grid-template-columns: 1fr; }
  .vm-single-layout #secondary { display: flex; }
  .vm-feature-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  #site-navigation { display: none; }
  .vm-btn-subscribe { display: none; }
  .vm-menu-toggle { display: flex; }
  .vm-card-grid { grid-template-columns: 1fr; }
  .vm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .vm-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .vm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-hero-overlay { padding: 20px 18px 18px; }
  .entry-title { font-size: 24px; }
}

/* Print */
@media print {
  #masthead, #colophon, #secondary, .vm-ticker-wrap { display: none !important; }
  body { font-size: 12pt; }
  .entry-content { font-size: 12pt; }
  a { color: var(--vm-ink); }
}
