/* =========================================================
   Lublin112 — Main Stylesheet
   Palette: navy #0f172a | crimson #dc2626 | amber #f59e0b | white | slate
   Typography: Outfit (headings) + Source Serif 4 (body)
   ========================================================= */

:root {
  --navy:       #0f172a;
  --navy-mid:   #1e293b;
  --navy-soft:  #334155;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --surface-3:  #f1f5f9;
  --ink:        #0f172a;
  --ink-soft:   #475569;
  --muted:      #94a3b8;
  --line:       #e2e8f0;
  --crimson:    #dc2626;
  --crimson-dk: #b91c1c;
  --amber:      #f59e0b;
  --amber-dk:   #d97706;
  --success:    #16a34a;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(15,23,42,.08), 0 6px 20px rgba(15,23,42,.06);
  --shadow-lg:  0 8px 32px rgba(15,23,42,.14);
  --maxw:       1240px;
  --font-head:  "Outfit", system-ui, sans-serif;
  --font-body:  "Source Serif 4", Georgia, serif;
  --header-h:   66px;
}

/* Dark mode */
html[data-theme="dark"] {
  --surface:   #0f172a;
  --surface-2: #1e293b;
  --surface-3: #0b1120;
  --ink:       #f1f5f9;
  --ink-soft:  #94a3b8;
  --muted:     #64748b;
  --line:      #1e293b;
  --shadow:    0 1px 3px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

/* ===== Reset & Base ===== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .45em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; }
ul,ol { padding-left: 1.4em; }
blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  border-left: 4px solid var(--crimson);
  background: var(--surface-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}
code {
  background: var(--surface-3);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .88em;
}
pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 1.4em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
pre code { background: transparent; padding: 0; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th,td { padding: .7em 1em; border: 1px solid var(--line); text-align: left; font-size: .9rem; }
th { background: var(--surface-3); font-family: var(--font-head); font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 10px 18px; background: var(--crimson); color: #fff; border-radius: var(--radius-sm); z-index: 9999; font-family: var(--font-head); font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--crimson); color: #fff; border: 0;
  padding: 11px 22px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .12s;
}
.btn:hover { background: var(--crimson-dk); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--crimson); border: 2px solid var(--crimson);
}
.btn-outline:hover { background: var(--crimson); color: #fff; }
.btn-hero {
  padding: 13px 28px; font-size: 1rem; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(220,38,38,.35);
}
.icon-btn {
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink); padding: 8px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--crimson); }
html[data-theme="dark"] .icon-btn:hover { background: var(--navy-mid); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 3px solid var(--crimson);
  box-shadow: 0 1px 12px rgba(15,23,42,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.header-brand { flex: 0 0 auto; }
.brand-wordmark {
  display: flex; flex-direction: column; text-decoration: none;
  line-height: 1.05;
}
.brand-wordmark:hover { text-decoration: none; }
.brand-l {
  font-family: var(--font-head); font-weight: 900; font-size: 2rem;
  color: var(--crimson); letter-spacing: -.04em; line-height: 1;
}
.brand-num {
  font-family: var(--font-head); font-weight: 900; font-size: 2rem;
  color: var(--navy); letter-spacing: -.04em; line-height: 1;
}
html[data-theme="dark"] .brand-num { color: #f1f5f9; }
.brand-sub {
  font-family: var(--font-head); font-size: .68rem; font-weight: 600;
  color: var(--muted); letter-spacing: .03em; text-transform: uppercase;
  margin-top: 1px;
}
.nav-primary { flex: 1; display: flex; justify-content: center; }
.nav-primary .nav-list {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-primary .nav-list li { position: relative; }
.nav-primary .nav-list a {
  display: block; padding: 6px 14px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--ink-soft); text-decoration: none;
  transition: color .12s, background .12s;
}
.nav-primary .nav-list a:hover,
.nav-primary .nav-list .current-menu-item > a,
.nav-primary .nav-list .current_page_item > a {
  color: var(--crimson); background: rgba(220,38,38,.07);
}
/* Dropdown */
.nav-primary .nav-list .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); list-style: none;
  padding: 6px 0; margin: 0; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .15s, transform .15s;
  z-index: 100;
}
.nav-primary .nav-list li:hover > .sub-menu,
.nav-primary .nav-list li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-primary .nav-list .sub-menu a {
  padding: 9px 16px; border-radius: 0;
  font-size: .88rem; color: var(--ink-soft);
}
.header-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.dark-toggle .icon-moon { display: none; }
html[data-theme="dark"] .dark-toggle .icon-sun  { display: none; }
html[data-theme="dark"] .dark-toggle .icon-moon { display: block; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; }
.ham-line {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s, opacity .2s;
  display: block;
}
.search-drawer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px 0;
  animation: slideDown .18s ease;
}
@keyframes slideDown { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: none; } }
.search-drawer-inner { display: flex; align-items: center; gap: 12px; }
.search-close { margin-left: auto; }
.search-form-inner { display: flex; flex: 1; max-width: 600px; }
.search-input {
  flex: 1; padding: 10px 16px; border: 2px solid var(--line);
  border-right: 0; border-radius: 6px 0 0 6px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-head); font-size: .95rem;
  outline: none;
}
.search-input:focus { border-color: var(--crimson); }
.search-submit {
  padding: 10px 16px; background: var(--crimson); color: #fff;
  border: 0; border-radius: 0 6px 6px 0; cursor: pointer;
  display: flex; align-items: center;
  transition: background .12s;
}
.search-submit:hover { background: var(--crimson-dk); }

/* ===== Breaking News Bar ===== */
.breaking-bar {
  background: var(--navy); color: #f1f5f9;
  font-family: var(--font-head); font-size: .82rem;
}
html[data-theme="dark"] .breaking-bar { background: #060e1f; }
.breaking-inner { display: flex; align-items: center; gap: 0; min-height: 38px; overflow: hidden; }
.breaking-label {
  flex: 0 0 auto; background: var(--crimson); color: #fff;
  padding: 0 14px; height: 38px; display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.breaking-track {
  flex: 1; overflow: hidden; white-space: nowrap;
  padding: 0 16px;
  animation: marquee 32s linear infinite;
}
.breaking-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.breaking-track a { color: #cbd5e1; margin-right: 10px; text-decoration: none; }
.breaking-track a:hover { color: #fff; text-decoration: underline; }
.ticker-sep { color: var(--muted); margin-right: 10px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: .8rem; font-family: var(--font-head);
}
.breadcrumbs-inner {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px; color: var(--muted);
}
.breadcrumbs-inner a { color: var(--ink-soft); }
.breadcrumbs-inner a:hover { color: var(--crimson); }
.breadcrumbs-inner span:last-child { color: var(--ink); font-weight: 600; }
.bc-sep { color: var(--muted); font-size: .75rem; }

/* ===== Reading Progress Bar ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 3px; background: transparent; pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0%; background: var(--crimson);
  transition: width .1s linear;
}

/* ===== Mobile Nav Drawer ===== */
.mobile-nav {
  position: fixed; top: 0; right: -320px; bottom: 0;
  width: 300px; background: var(--surface);
  z-index: 200; overflow-y: auto;
  transition: right .25s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { right: 0; }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.mobile-nav-title {
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: var(--crimson);
}
.mobile-nav-list { list-style: none; margin: 0; padding: 12px 0; }
.mobile-nav-list li a {
  display: block; padding: 12px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-nav-list li a:hover { color: var(--crimson); background: var(--surface-3); }
.mobile-nav-list .sub-menu { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list .sub-menu a { padding-left: 36px; font-weight: 500; font-size: .88rem; color: var(--ink-soft); }
.mobile-nav-contact {
  padding: 16px 20px; font-size: .83rem; color: var(--muted);
  font-family: var(--font-head);
}
.mobile-nav-contact a { color: var(--crimson); }
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 190; backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ===== Hero Section ===== */
.hero-section { background: var(--surface); padding: 48px 0; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 18px; }
.hero-cat-badge {
  display: inline-flex; align-items: center;
  background: var(--crimson); color: #fff;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  text-decoration: none; width: fit-content;
}
.hero-cat-badge:hover { background: var(--crimson-dk); text-decoration: none; color: #fff; }
.hero-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.1; margin: 0;
}
.hero-title a { color: var(--ink); text-decoration: none; }
.hero-title a:hover { color: var(--crimson); }
.hero-excerpt {
  font-size: 1.05rem; color: var(--ink-soft); margin: 0; line-height: 1.65;
}
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-head); font-size: .82rem; color: var(--muted);
}
.meta-author,.meta-date,.meta-read {
  display: flex; align-items: center; gap: 5px;
}
.hero-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; min-height: 340px;
  border-radius: var(--radius);
}
.hero-placeholder span {
  font-family: var(--font-head); font-weight: 900; font-size: 4rem;
  color: rgba(255,255,255,.15); letter-spacing: -.03em;
}

/* ===== Section Headers ===== */
.section-header { margin-bottom: 28px; }
.section-title {
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  display: flex; align-items: center; gap: 12px; margin: 0;
}
.section-title span {
  display: inline-block; padding: 2px 0;
  border-bottom: 3px solid var(--crimson);
}

/* ===== Widget Strip ===== */
.widget-strip { padding: 20px 0; }

/* ===== Featured Grid ===== */
.featured-section { padding: 48px 0; background: var(--surface-2); }
.featured-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.featured-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card-img-wrap { display: block; aspect-ratio: 8/5; overflow: hidden; }
.featured-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.featured-card:hover .featured-card-img-wrap img { transform: scale(1.04); }
.featured-card-body { padding: 18px 20px 22px; }
.card-cat {
  display: inline-block; font-family: var(--font-head); font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--crimson); margin-bottom: 8px;
}
.card-cat:hover { text-decoration: underline; }
.featured-card-title {
  font-size: 1rem; font-weight: 800; line-height: 1.3; margin: 0 0 8px;
}
.featured-card-title a { color: var(--ink); text-decoration: none; }
.featured-card-title a:hover { color: var(--crimson); }
.featured-card-excerpt {
  font-size: .85rem; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55;
}
.card-meta {
  display: flex; gap: 12px; font-family: var(--font-head);
  font-size: .75rem; color: var(--muted);
}

/* ===== Latest Section ===== */
.latest-section { padding: 48px 0; }
.latest-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.latest-sidebar { position: sticky; top: calc(var(--header-h) + 80px); }

/* ===== Post Grid ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img-wrap { display: block; aspect-ratio: 8/5; overflow: hidden; }
.post-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-img-wrap img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-size: 1.05rem; font-weight: 800; line-height: 1.28; margin: 0 0 10px;
}
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--crimson); }
.post-card-excerpt {
  font-size: .88rem; color: var(--ink-soft); flex: 1; margin: 0 0 14px; line-height: 1.55;
}
.card-meta-date,.card-meta-read {
  font-family: var(--font-head); font-size: .75rem; color: var(--muted);
}

/* ===== Load More ===== */
.load-more-wrap { margin-top: 36px; text-align: center; }

/* ===== Archive ===== */
.archive-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.archive-header { margin-bottom: 32px; }
.archive-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 8px;
  padding-bottom: 12px; border-bottom: 3px solid var(--crimson);
  display: inline-block;
}
.archive-desc { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; }
.search-count { color: var(--muted); font-family: var(--font-head); font-size: .88rem; }
.no-results { padding: 60px 0; text-align: center; }
.no-results h2 { margin-bottom: 12px; }

/* ===== Pagination ===== */
.pagination { margin: 48px 0 20px; display: flex; justify-content: center; }
.pagination .page-numbers {
  display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  border: 1.5px solid var(--line); color: var(--ink-soft);
  text-decoration: none; transition: background .12s, color .12s;
}
.pagination .page-numbers li a:hover { background: var(--surface-3); color: var(--crimson); border-color: var(--crimson); }
.pagination .page-numbers li .current { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* ===== Single Post ===== */
.single-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.single-article { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.article-header { padding: 36px 40px 0; }
.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-cat-badge {
  background: var(--crimson); color: #fff;
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; text-decoration: none;
}
.article-cat-badge:hover { background: var(--crimson-dk); text-decoration: none; color: #fff; }
.article-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; line-height: 1.12; margin: 0 0 20px; }
.article-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.meta-group { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-head); font-size: .82rem; color: var(--muted); align-items: center; }
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-updated { color: var(--amber-dk); }
.article-thumbnail { margin: 0; }
.article-thumbnail img { width: 100%; max-height: 520px; object-fit: cover; }
.article-thumbnail figcaption { padding: 10px 40px; font-size: .82rem; color: var(--muted); font-style: italic; background: var(--surface-3); }
.article-body {
  padding: 36px 40px;
  font-size: 1.05rem; line-height: 1.82; color: var(--ink);
}
.article-body h2 { margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--line); }
.article-body h3 { margin-top: 1.4em; }
.article-body a { color: var(--crimson-dk); text-decoration: underline; }
.article-body img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.article-body .wp-caption { margin: 1.5em 0; }
.article-body .wp-caption-text { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: center; }

/* Tags */
.article-tags {
  padding: 0 40px 30px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; color: var(--muted);
}
.tag-pill {
  background: var(--surface-3); color: var(--ink-soft);
  padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  font-family: var(--font-head); text-decoration: none;
  border: 1px solid var(--line);
  transition: background .12s, color .12s;
}
.tag-pill:hover { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* Post navigation */
.post-navigation {
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next { display: flex; flex-direction: column; gap: 4px; }
.post-navigation .nav-next { text-align: right; align-items: flex-end; }
.post-navigation a { text-decoration: none; }
.nav-dir {
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--crimson);
}
.nav-post-title {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--ink); line-height: 1.3;
}
.post-navigation a:hover .nav-post-title { color: var(--crimson); }

/* Author box */
.author-box {
  margin: 28px 40px;
  padding: 24px; background: var(--surface-3);
  border-radius: var(--radius); display: flex; gap: 20px; align-items: flex-start;
}
.author-box-avatar img { border-radius: 50%; flex: 0 0 auto; }
.author-box-name { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin: 0 0 6px; }
.author-box-name a { color: var(--ink); }
.author-box-name a:hover { color: var(--crimson); }
.author-box-bio { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* Share buttons */
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-family: var(--font-head); font-size: .78rem; color: var(--muted); }
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  cursor: pointer; text-decoration: none; transition: transform .15s, background .15s;
}
.share-btn:hover { transform: scale(1.12); }
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #000; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-copy{ background: var(--surface-3); color: var(--ink-soft); }
.share-copy:hover { background: var(--line); }

/* Related posts */
.related-posts { padding: 0 40px 40px; }
.related-posts-title {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--crimson);
  display: inline-block;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 10px; }
.related-card-img { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-title { font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin: 0 0 4px; line-height: 1.3; }
.related-card-title a { color: var(--ink); text-decoration: none; }
.related-card-title a:hover { color: var(--crimson); }
.related-card-date { font-family: var(--font-head); font-size: .75rem; color: var(--muted); }

/* ===== Page / Single page ===== */
.page-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.page-article { background: var(--surface); border-radius: var(--radius); }
.page-header { padding: 36px 40px 24px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin: 0; }
.page-thumbnail img { width: 100%; max-height: 460px; object-fit: cover; }
.page-body { padding: 36px 40px; font-size: 1.02rem; line-height: 1.78; }

/* ===== Comments ===== */
.comments-area { padding: 0 40px 40px; }
.comments-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 24px; padding-bottom: 10px; border-bottom: 2px solid var(--crimson); display: inline-block; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-body { display: flex; gap: 16px; }
.comment-avatar img { border-radius: 50%; flex: 0 0 auto; }
.comment-content { flex: 1; }
.comment-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.comment-meta time { font-size: .78rem; color: var(--muted); font-family: var(--font-head); }
.comment-awaiting { font-style: italic; color: var(--muted); font-size: .85rem; }
.comment-actions { display: flex; gap: 10px; margin-top: 8px; font-family: var(--font-head); font-size: .8rem; }
.comment-actions a { color: var(--crimson); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-head); font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding-bottom: 10px; border-bottom: 2px solid var(--crimson);
  margin: 0 0 16px; color: var(--ink);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: .88rem; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--ink-soft); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.widget ul li a:hover { color: var(--crimson); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 80px; }
html[data-theme="dark"] .site-footer { background: #060e1f; }
.footer-top { padding: 60px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
}
.footer-brand-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-wordmark { text-decoration: none; display: flex; gap: 0; }
.footer-brand-wordmark .brand-l { font-size: 2.2rem; color: var(--crimson); }
.footer-brand-wordmark .brand-num { font-size: 2.2rem; color: #f1f5f9; }
.footer-tagline { font-size: .82rem; color: #94a3b8; line-height: 1.5; margin: 0; }
.footer-email {
  display: flex; align-items: center; gap: 8px;
  color: #94a3b8; font-size: .82rem; font-family: var(--font-head);
  text-decoration: none;
}
.footer-email:hover { color: #f1f5f9; }
.footer-widget-col .widget-title { color: #e2e8f0; border-color: var(--crimson); }
.footer-widget-col .widget { background: transparent; padding: 0; box-shadow: none; }
.footer-widget-col ul li { border-color: rgba(255,255,255,.06); }
.footer-widget-col ul li a { color: #94a3b8; }
.footer-widget-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { margin: 0; font-size: .8rem; color: #64748b; font-family: var(--font-head); }
.footer-copy a { color: #94a3b8; }
.footer-copy a:hover { color: #fff; }
.footer-nav-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer-nav-list a { font-family: var(--font-head); font-size: .78rem; color: #64748b; padding: 4px 8px; }
.footer-nav-list a:hover { color: #fff; }

/* ===== 404 ===== */
.error-404 { padding: 100px 0; text-align: center; }
.error-404-inner { max-width: 480px; margin: 0 auto; }
.error-404-code {
  font-family: var(--font-head); font-weight: 900; font-size: 8rem;
  color: var(--crimson); line-height: 1; margin: 0 0 12px; letter-spacing: -.04em;
}
.error-404-title { font-size: 1.8rem; margin: 0 0 12px; }
.error-404-desc { color: var(--ink-soft); margin: 0 0 32px; }
.error-404-search { max-width: 380px; margin: 0 auto 28px; }

/* ===== Entry Content (WP block styles) ===== */
.entry-content > * { margin-left: auto; margin-right: auto; max-width: 780px; }
.entry-content .alignwide { max-width: calc(var(--maxw) - 80px); }
.entry-content .alignfull { max-width: 100%; margin-left: -40px; margin-right: -40px; }
.entry-content .wp-block-image { margin: 1.8em 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content .has-drop-cap:first-letter {
  float: left; font-family: var(--font-head); font-size: 4.5em;
  font-weight: 900; line-height: .78; margin: .06em .12em 0 0;
  color: var(--crimson);
}
.entry-content ol li,.entry-content ul li { margin-bottom: .45em; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid     { grid-template-columns: repeat(2, 1fr); }
  .latest-wrap, .archive-wrap, .single-wrap, .page-wrap { grid-template-columns: 1fr; }
  .latest-sidebar { position: static; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-image { order: -1; }
  .nav-primary { display: none; }
  .nav-hamburger { display: flex; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; align-items: flex-start; }
  .article-header,.article-body,.article-thumbnail figcaption,
  .article-tags,.post-navigation,.author-box,.related-posts,.comments-area {
    padding-left: 20px; padding-right: 20px;
  }
  .entry-content .alignfull { margin-left: -20px; margin-right: -20px; }
  .page-header,.page-body { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 58px; }
  .wrap { padding: 0 16px; }
  .featured-grid { grid-template-columns: 1fr; }
  .post-grid     { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .hero-section  { padding: 28px 0; }
  .featured-section,.latest-section { padding: 32px 0; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .article-header,.article-body { padding: 20px 16px; }
  .article-title { font-size: 1.55rem; }
  .error-404-code { font-size: 5rem; }
}

/* ===== Print ===== */
@media print {
  .site-header,.breaking-bar,.breadcrumbs,.sidebar,
  .site-footer,.share-buttons,.related-posts,.comments-area,
  .post-navigation { display: none !important; }
  .single-wrap,.page-wrap { display: block; }
  .article-body { padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; color: #666; }
}
