/*
Theme Name:  ThoNu's Journey
Theme URI:   https://thonusjourney.com
Author:      ThoNu
Author URI:  https://thonusjourney.com
Description: A vintage-luxe personal blog theme for travel, tech reviews, hotel reviews and lifestyle content. Clean, professional, and distinctly feminine tech aesthetic.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thonu-journey
Tags:        blog, two-columns, left-sidebar, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --cream:      #f4f2ef;
  --parchment:  #eceae5;
  --gold:       #b49a6a;
  --gold-lt:    #d4bc96;
  --slate:      #2c3340;
  --slate-md:   #3e4a5c;
  --charcoal:   #1a1f28;
  --muted:      #7a8494;
  --white:      #fafaf8;
  --border:     #dddad4;
  --shadow:     rgba(26,31,40,.10);
  --accent:     #7c9aaa;
  --accent-lt:  #a8c0cc;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-pill:50px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.74;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', serif;
  color: var(--slate);
  line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   TOP BAR
───────────────────────────────────────── */
.site-topbar {
  background: var(--slate);
  color: var(--parchment);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-align: center;
  padding: 6px 20px;
}

/* ─────────────────────────────────────────
   HEADER & NAV
───────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1520px; margin: 0 auto; height: 74px;
}
.site-branding .site-title {
  font-family: 'Source Serif 4', serif;
  font-size: 28px; font-weight: 700;
  color: var(--slate); letter-spacing: -.02em;
  line-height: 1;
}
.site-branding .site-title span { color: var(--gold); font-style: italic; }
.site-branding .site-description {
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .06em;
}

/* Primary Navigation */
.main-navigation { display: flex; align-items: center; gap: 6px; }
.main-navigation ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-navigation ul li a {
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
  padding: 7px 15px; border-radius: var(--radius-pill);
  color: var(--muted); transition: background .2s, color .2s;
  display: block;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: var(--slate); color: var(--white);
}

/* Search toggle */
.header-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--parchment); border: 1.5px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; transition: background .2s;
  margin-left: 8px;
}
.header-search-btn:hover { background: var(--gold-lt); color: var(--white); }

/* ─────────────────────────────────────────
   LAYOUT WRAPPER
───────────────────────────────────────── */
.site-content-wrapper {
  max-width: 1520px; margin: 0 auto;
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  position: relative; z-index: 1;
}

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Widget base card */
.widget-card,
.widget {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 3px 4px 0 var(--parchment);
}

/* About Widget */
.widget-about { text-align: center; }
.widget-about .avatar-wrap {
  width: 104px; height: 104px; margin: 0 auto 14px;
  border-radius: 50%; border: 3px solid var(--gold);
  overflow: hidden; box-shadow: 4px 4px 0 var(--parchment);
}
.widget-about .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.widget-about .avatar-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-lt), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.widget-about .about-name {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; font-weight: 700; color: var(--slate);
  margin-bottom: 4px;
}
.widget-about .about-tagline {
  font-size: 12px; color: var(--muted); letter-spacing: .07em;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
}
.widget-about .about-bio { font-size: 14px; color: var(--muted); line-height: 1.72; }
.about-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; }
.about-tag {
  background: var(--parchment); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px 11px;
  font-size: 12px; color: var(--slate); letter-spacing: .04em;
  font-family: 'JetBrains Mono', monospace;
}
.social-links { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--parchment); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--slate); cursor: pointer;
  transition: all .2s; box-shadow: 2px 2px 0 var(--parchment);
  text-decoration: none;
}
.social-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); transform: translateY(-1px); }

/* Widget titles */
.widget-title,
.widgettitle {
  font-family: 'Source Serif 4', serif;
  font-size: 16px; font-weight: 700; color: var(--slate);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.widget-title::before,
.widgettitle::before { content: '✦'; font-size: 11px; color: var(--gold); font-family: sans-serif; }

/* Categories widget */
.widget_categories ul,
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.widget_categories ul li a,
.widget ul li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  font-size: 14px; color: var(--muted);
  border: 1.5px solid transparent; transition: all .2s;
}
.widget_categories ul li a:hover,
.widget ul li a:hover {
  background: var(--parchment); border-color: var(--border); color: var(--slate);
}
.widget_categories ul li .post-count {
  background: var(--parchment); border-radius: var(--radius-pill);
  padding: 1px 9px; font-size: 11px;
  font-family: 'JetBrains Mono', monospace; color: var(--gold);
}

/* Recent posts widget */
.widget_recent_entries ul li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a { font-size: 14px; color: var(--charcoal); padding: 0; border: none; display: block; }
.widget_recent_entries ul li a:hover { color: var(--gold); background: none; }
.widget_recent_entries ul li .post-date { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* Contact / text widget */
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--parchment); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 9px 13px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--charcoal);
  outline: none; transition: border .2s; resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn, button.btn, a.btn, input[type="submit"], .comment-form .submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .03em; transition: all .22s; text-decoration: none;
}
.btn-primary, input[type="submit"], .comment-form .submit {
  background: var(--slate); color: var(--white);
  box-shadow: 3px 3px 0 var(--gold);
}
.btn-primary:hover, input[type="submit"]:hover, .comment-form .submit:hover {
  background: var(--gold); box-shadow: 2px 2px 0 var(--slate);
  transform: translateY(-1px); color: var(--white);
}
.btn-outline {
  background: transparent; color: var(--slate);
  border: 1.5px solid var(--slate);
  box-shadow: 2px 2px 0 var(--parchment);
}
.btn-outline:hover { background: var(--slate); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ─────────────────────────────────────────
   HOMEPAGE HERO
───────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--slate-md) 100%);
  border-radius: var(--radius-lg); padding: 52px 60px;
  color: var(--white); position: relative; overflow: hidden;
  box-shadow: 0 6px 32px rgba(26,31,40,.18); margin-bottom: 44px;
}
.home-hero::after {
  content: '✦ ✦ ✦';
  position: absolute; right: 36px; bottom: 28px;
  font-size: 22px; opacity: .15; letter-spacing: 14px; pointer-events: none;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .18em;
  color: var(--gold-lt); margin-bottom: 12px; text-transform: uppercase;
}
.home-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 3rem; line-height: 1.15; color: var(--white);
  margin-bottom: 16px;
}
.home-hero h1 em { font-style: italic; color: var(--gold-lt); }
.home-hero p { font-size: 17px; opacity: .85; max-width: 520px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero { background: var(--white); color: var(--slate); box-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.btn-hero:hover { background: var(--gold-lt); color: var(--white); }

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: 26px; font-weight: 700; color: var(--slate);
  display: flex; align-items: center; gap: 8px;
}
.view-all {
  font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .05em;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--gold-lt); transition: all .2s;
}
.view-all:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ─────────────────────────────────────────
   POST CARDS GRID
───────────────────────────────────────── */
.post-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.post-row-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Card shell ── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,31,40,.07);
  transition: transform .24s, box-shadow .24s;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,31,40,.13);
}

/* ── Thumbnail area ── */
.post-card .post-thumb {
  height: 195px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
  flex-shrink: 0;
}
.post-card .post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }

/* Emoji/icon placeholder inside thumb */
.post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}

/* Category badge — overlaid on top-left of thumb */
.post-cat-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--charcoal); color: var(--white);
  padding: 4px 10px; border-radius: 50px;
  line-height: 1.4;
}
/* Colour variants per category slug */
.category-review       .post-cat-badge,
.category-san-pham     .post-cat-badge { background: #3d3226; }
.category-beauty       .post-cat-badge { background: #5a3a4a; }
.category-tech         .post-cat-badge,
.category-it-tips      .post-cat-badge { background: #1e2d3d; }
.category-du-lich      .post-cat-badge,
.category-travel       .post-cat-badge { background: #1e3530; }
.category-khach-san    .post-cat-badge { background: #2d2a1e; }
.category-lifestyle    .post-cat-badge { background: #3d2a3d; }

/* Bookmark icon — top-right of thumb */
.post-thumb-bookmark {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  transition: background .2s, color .2s;
}
.post-card:hover .post-thumb-bookmark { background: var(--gold); color: var(--white); }

/* ── Card body ── */
.post-card .post-body {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 7px;
}

.post-title {
  font-family: 'Source Serif 4', serif;
  font-size: 17px; font-weight: 700; color: var(--charcoal);
  line-height: 1.4; flex: 1;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--gold); }

.post-excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.post-meta-bookmark {
  font-size: 13px; color: var(--border);
  transition: color .2s; cursor: pointer;
}
.post-card:hover .post-meta-bookmark { color: var(--gold); }

/* Legacy .post-cat */
.post-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase;
}

/* ── Featured horizontal card (single post highlight) ── */
.featured-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,31,40,.07);
  display: grid; grid-template-columns: 200px 1fr;
  transition: transform .24s, box-shadow .24s; margin-bottom: 16px;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,31,40,.12);
}
.featured-thumb {
  background: linear-gradient(135deg, var(--accent), var(--slate-md));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; min-height: 150px; position: relative;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 22px 24px; }
.featured-body .post-title { font-size: 18px; margin-bottom: 8px; }
.featured-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }

/* ─────────────────────────────────────────
   HOME SECTIONS SPACING
───────────────────────────────────────── */
.home-section { margin-bottom: 36px; }
.section-divider {
  border: none; border-top: 1.5px dashed var(--border); margin: 8px 0 36px;
}

/* ─────────────────────────────────────────
   SINGLE POST / PAGE
───────────────────────────────────────── */
.single-post-wrap { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 3px 4px 0 var(--parchment); }

.post-hero-image { width: 100%; max-height: 420px; object-fit: cover; display: block; }

.post-content-inner { padding: 36px 44px; }

.entry-header { margin-bottom: 24px; }
.entry-category {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 8px;
}
.entry-title {
  font-family: 'Source Serif 4', serif;
  font-size: 2rem; color: var(--slate); line-height: 1.2; margin-bottom: 14px;
}
.entry-meta {
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.entry-meta span { display: flex; align-items: center; gap: 4px; }

.entry-content {
  font-size: 16px; line-height: 1.85; color: var(--charcoal);
  max-width: 720px;
}
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--slate); }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); padding: 14px 20px;
  background: var(--parchment); border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--muted); margin: 1.5em 0;
}
.entry-content img { border-radius: 10px; margin: 1.5em auto; }
.entry-content code {
  font-family: 'JetBrains Mono', monospace; font-size: .9em;
  background: var(--parchment); padding: 2px 7px; border-radius: 5px; color: var(--slate-md);
}
.entry-content pre {
  background: var(--charcoal); color: var(--gold-lt);
  padding: 20px 24px; border-radius: 12px; overflow-x: auto;
  font-family: 'JetBrains Mono', monospace; font-size: .9em; line-height: 1.65;
  margin: 1.5em 0;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }

/* Post tags */
.entry-tags { margin-top: 28px; padding-top: 20px; border-top: 1.5px dashed var(--border); }
.entry-tags a {
  display: inline-block; background: var(--parchment); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px 13px; font-size: 12px;
  color: var(--slate); margin: 3px 4px;
  font-family: 'JetBrains Mono', monospace; transition: all .2s;
}
.entry-tags a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 32px 0;
}
.post-nav a {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 2px 2px 0 var(--parchment); transition: all .2s;
  display: block;
}
.post-nav a:hover { border-color: var(--gold); box-shadow: 3px 3px 0 var(--gold-lt); }
.post-nav .nav-label { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; margin-bottom: 4px; }
.post-nav .nav-title { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--slate); font-weight: 600; }

/* ─────────────────────────────────────────
   COMMENTS
───────────────────────────────────────── */
.comments-area { padding: 32px 44px; border-top: 1.5px solid var(--border); }
.comments-title { font-family: 'Source Serif 4', serif; font-size: 22px; color: var(--slate); margin-bottom: 24px; }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.comment-list .comment { padding: 18px 20px; background: var(--parchment); border-radius: var(--radius); }
.comment-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.comment-author { font-weight: 600; font-size: 14px; color: var(--slate); }
.comment-date { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.comment-content { font-size: 14px; line-height: 1.72; }

.comment-form-title { font-family: 'Source Serif 4', serif; font-size: 20px; color: var(--slate); margin-bottom: 18px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form input,
.comment-form textarea {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--charcoal);
  outline: none; transition: border .2s; resize: none; width: 100%;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); }

/* ─────────────────────────────────────────
   CATEGORY / ARCHIVE PAGE
───────────────────────────────────────── */
.archive-header {
  background: linear-gradient(135deg, var(--charcoal), var(--slate-md));
  border-radius: var(--radius-lg); padding: 32px 40px;
  color: var(--white); margin-bottom: 28px;
  box-shadow: 4px 4px 0 var(--gold);
}
.archive-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em;
  color: var(--gold-lt); margin-bottom: 6px;
}
.archive-title { font-family: 'Source Serif 4', serif; font-size: 1.9rem; color: var(--white); }

.archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination {
  display: flex; gap: 6px; justify-content: center; margin: 32px 0;
}
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 14px; font-family: 'JetBrains Mono', monospace;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); transition: all .2s;
}
.pagination a:hover { background: var(--slate); color: var(--white); border-color: var(--slate); }
.pagination .current { background: var(--slate); color: var(--white); border-color: var(--slate); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--slate); color: var(--parchment);
  padding: 44px 28px 28px; margin-top: 20px;
  position: relative; z-index: 1;
}
.footer-top {
  max-width: 1520px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
  font-family: 'Source Serif 4', serif; font-size: 24px;
  color: var(--white); margin-bottom: 10px;
}
.footer-brand .footer-logo span { color: var(--gold-lt); font-style: italic; }
.footer-brand p { font-size: 14px; opacity: .7; line-height: 1.65; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  color: var(--gold-lt); text-transform: uppercase; margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 14px; color: var(--parchment); opacity: .75; transition: opacity .2s; }
.footer-links li a:hover { opacity: 1; color: var(--gold-lt); }

.footer-bottom {
  max-width: 1520px; margin: 20px auto 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; opacity: .5; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.footer-note { font-size: 12px; opacity: .45; font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-content-wrapper { grid-template-columns: 1fr; padding: 24px 24px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .post-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .main-navigation ul { flex-wrap: wrap; }
  .home-hero { padding: 28px 24px; }
  .home-hero h1 { font-size: 1.8rem; }
  .post-row { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .post-content-inner, .comments-area { padding: 24px 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 20px 20px; }
  .archive-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   EXTRA FIXES
───────────────────────────────────────── */

/* Hide Uncategorized section on homepage */
.home-section.category-uncategorized { display: none !important; }

/* Home section spacing */
.home-section { margin-bottom: 44px; }
.section-divider { border: none; border-top: 1.5px dashed var(--border); margin: 4px 0 44px; }

/* Nav font size */
.main-navigation ul li a {
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
  padding: 8px 17px; border-radius: var(--radius-pill);
}

/* Logo bigger */
.site-branding .site-title { font-size: 29px; }

/* Sidebar widget bigger text */
.widget_categories ul li a,
.widget ul li a { font-size: 15px; padding: 9px 12px; }

/* Fix &amp; encoding in badge — force font render clean */
.post-cat-badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* Uncategorized category — hide from sidebar cat list */
.cat-list li a[href*="uncategorized"] { display: none; }
