/*
Theme Name: Exotics Blog
Theme URI: https://www.exotics.com.br/blog/
Author: Exotics
Author URI: https://www.exotics.com.br
Description: Clean, card-based blog theme for the Exotics brand.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: exotics-blog
*/

/* ── FONTS ───────────────────────────────────────────────────── */
@font-face {
  font-family: 'ZurichBT';
  src: url('zurich-light-bt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT';
  src: url('Zurich Light Italic BT.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT';
  src: url('Zurich Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT';
  src: url('Zurich Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT';
  src: url('zurich-bold-bt.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT';
  src: url('Zurich Black Extended BT.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ZurichBT Condensed';
  src: url('Zurich Bold Condensed BT.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ───────────────────────────────────────────────── */
:root {
  --navy:       #13192e;
  --navy-2:     #1e2745;
  --navy-dark:  #0c1220;
  --orange:     #ED6F2C;
  --orange-dk:  #c85a1a;
  --orange-lt:  #f58540;
  --white:      #ffffff;
  --off:        #f7f8fc;
  --muted:      #6b7385;
  --muted-2:    #9aa0b0;

  --border:     rgba(19,25,46,.08);
  --border-o:   rgba(237,111,44,.18);

  --max:        1200px;
  --max-prose:  740px;
  --r:          12px;
  --r-sm:       7px;
  --r-lg:       18px;

  --shadow-s:   0 2px 12px rgba(19,25,46,.07);
  --shadow-m:   0 8px 32px rgba(19,25,46,.11);
  --shadow-l:   0 20px 60px rgba(19,25,46,.15);
  --shadow-o:   0 8px 28px rgba(237,111,44,.25);

  --tr: .28s cubic-bezier(.4,0,.2,1);

  --font-body: 'ZurichBT', system-ui, -apple-system, sans-serif;
  --font-cond: 'ZurichBT Condensed', 'ZurichBT', system-ui, sans-serif;
  --lh-body:   1.74;
  --lh-head:   1.14;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; border: none; background: none; }
button { cursor: pointer; }

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--orange); color: var(--white);
  padding: .5rem 1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 10000; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── PROGRESS BAR ────────────────────────────────────────────── */
#reading-progress {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  z-index: 9999; transition: width .1s linear; pointer-events: none;
}
body.single #reading-progress { display: block; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.site-main { min-height: 60vh; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange); color: var(--white);
  font-weight: 700; padding: .75rem 1.75rem;
  border-radius: 100px; text-decoration: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  letter-spacing: .02em; font-size: .9rem;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-o);
  color: var(--white);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--navy);
  font-weight: 700; padding: .7rem 1.5rem;
  border-radius: 100px; border: 2px solid var(--border);
  text-decoration: none; font-size: .9rem;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── TYPOGRAPHY BASE ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-cond);
  color: var(--navy);
  line-height: var(--lh-head);
  font-weight: 700;
}
a { color: var(--orange); transition: color var(--tr); }
a:hover { color: var(--orange-dk); }

/* ── NAV ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-s);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
  display: flex; align-items: center; height: 68px;
}

.site-header__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-cond);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
  pointer-events: none;
  padding: 0 1rem;
}

.site-logo { text-decoration: none; flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 38px; width: auto; }
.site-logo__text {
  font-family: var(--font-cond);
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); letter-spacing: -.02em;
}

.primary-nav { display: flex; align-items: center; gap: .75rem; }

.nav-list { display: flex; align-items: center; gap: .125rem; }
.nav-list a {
  display: block; padding: .45rem .85rem;
  font-size: .85rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  border-radius: 100px;
  transition: background var(--tr), color var(--tr);
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--navy); background: var(--off);
}

.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 100px;
  color: var(--muted); background: none;
  transition: background var(--tr), color var(--tr);
}
.nav-search-btn:hover { background: var(--off); color: var(--navy); }

.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--white);
  font-size: .8rem; font-weight: 700;
  padding: .45rem 1.1rem; border-radius: 100px;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr);
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); color: var(--white); }

.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  color: var(--navy); background: none; margin-left: auto;
}
.nav-hamburger .icon-close { display: none; }
.nav-hamburger[aria-expanded="true"] .icon-menu { display: none; }
.nav-hamburger[aria-expanded="true"] .icon-close { display: block; }

.nav-search-drawer {
  border-top: 1px solid var(--border);
  padding: 1rem 0; background: var(--white);
}

/* ── POST META ───────────────────────────────────────────────── */
.post-meta {
  display: flex; align-items: center;
  gap: .5rem; flex-wrap: wrap;
}
.post-meta-cat {
  background: var(--border-o);
  color: var(--orange-dk);
  padding: .18rem .65rem;
  border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.post-meta-cat:hover { background: var(--orange); color: var(--white); }
.post-meta-date, .post-meta-author, .post-meta-reading {
  font-size: .75rem; color: var(--muted);
}
.post-meta-author { text-decoration: none; color: var(--muted); }
.post-meta-author:hover { color: var(--navy); }
.post-meta-dot {
  width: 3px; height: 3px; background: var(--muted-2);
  border-radius: 50%; flex-shrink: 0;
}

/* Post meta — inverted (for dark backgrounds) */
.post-meta--inv .post-meta-date,
.post-meta--inv .post-meta-author,
.post-meta--inv .post-meta-reading { color: rgba(255,255,255,.7); }
.post-meta--inv .post-meta-author:hover { color: var(--white); }
.post-meta--inv .post-meta-dot { background: rgba(255,255,255,.4); }

/* ── POSTS GRID ──────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  padding: 3.5rem 0 4rem;
}

/* Each regular card = 2 cols (3 per row) */
.posts-grid > article { grid-column: span 2; }

/* Post 1: full-width hero */
.posts-grid > article:first-child { grid-column: span 6; }

/* Posts 2 and 3: half width each */
.posts-grid > article:nth-child(2),
.posts-grid > article:nth-child(3) { grid-column: span 3; }

/* ── CARD BASE ───────────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  box-shadow: var(--shadow-s);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
  border-color: transparent;
}

.post-card-thumb {
  overflow: hidden; background: var(--off); flex-shrink: 0;
  aspect-ratio: 16/9;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-body {
  padding: 1.5rem; flex: 1;
  display: flex; flex-direction: column; gap: .75rem;
}

.post-card-title {
  font-family: var(--font-cond);
  font-size: 1.25rem; color: var(--navy);
  line-height: var(--lh-head); margin: 0;
}
.post-card-title a {
  text-decoration: none; color: inherit;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0 2px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--tr), color var(--tr);
  padding-bottom: 1px;
}
.post-card:hover .post-card-title a { background-size: 100% 2px; color: var(--navy); }

.post-card-excerpt {
  font-size: .875rem; color: var(--muted);
  line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.post-card-readmore {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700;
  color: var(--orange); text-decoration: none;
  transition: gap var(--tr), color var(--tr);
  margin-top: .25rem;
}
.post-card-readmore:hover { gap: .65rem; color: var(--orange-dk); }
.post-card-readmore svg { flex-shrink: 0; transition: transform var(--tr); }
.post-card-readmore:hover svg { transform: translateX(3px); }

/* ── HERO CARD (post 1) ──────────────────────────────────────── */
.post-card--hero {
  flex-direction: row;
  height: 460px;
  border: none;
  background: var(--navy-dark);
}
.post-card--hero:hover { transform: none; box-shadow: var(--shadow-l); }

.post-card--hero .post-card-body {
  flex: 1;
  padding: 3rem;
  justify-content: center;
  gap: 1rem;
  background: none;
  overflow: hidden;
}
.post-card--hero .post-card-thumb {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  aspect-ratio: auto;
  order: 2;
}
.post-card--hero .post-card-thumb a {
  display: block;
  height: 100%;
}
.post-card--hero .post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card--hero .post-card-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white);
}
.post-card--hero .post-card-title a {
  color: var(--white);
  background-image: linear-gradient(var(--orange-lt), var(--orange-lt));
}
.post-card--hero:hover .post-card-title a { background-size: 100% 2px; color: var(--white); }

.post-card--hero .post-card-excerpt {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  -webkit-line-clamp: 3;
  max-width: 480px;
}
.post-card--hero .post-card-readmore { color: var(--orange-lt); }
.post-card--hero .post-card-readmore:hover { color: var(--white); }

/* ── MID CARDS (2nd and 3rd) ─────────────────────────────────── */
.posts-grid > article:nth-child(2) .post-card-thumb,
.posts-grid > article:nth-child(3) .post-card-thumb {
  aspect-ratio: 4/3;
}
.posts-grid > article:nth-child(2) .post-card-title,
.posts-grid > article:nth-child(3) .post-card-title {
  font-size: 1.4rem;
}


/* ── DIVIDER LINE ────────────────────────────────────────────── */
.section-line {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.section-line span {
  font-family: var(--font-cond);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.section-line::before,
.section-line::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-line::before { background: linear-gradient(90deg, transparent, var(--orange)); width: 60px; flex: none; }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination { padding: 0 0 4rem; }
.nav-links { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border-radius: 100px;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: background var(--tr), color var(--tr), box-shadow var(--tr);
}
.nav-links a { background: var(--off); color: var(--navy); border: 1px solid var(--border); }
.nav-links a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); box-shadow: var(--shadow-o); }
.nav-links .current { background: var(--orange); color: var(--white); border: 1px solid var(--orange); }
.nav-links .dots { background: none; border: none; color: var(--muted); }

/* ── ARCHIVE HERO ────────────────────────────────────────────── */
.archive-hero {
  padding: 4rem 0 3.5rem;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 50%, rgba(237,111,44,.12) 0%, transparent 70%);
  pointer-events: none;
}
.archive-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.archive-hero-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: .5rem;
}
.archive-title {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); line-height: var(--lh-head);
}
.archive-hero mark {
  background: none; color: var(--orange);
}
.archive-desc {
  color: rgba(255,255,255,.6);
  font-size: 1rem; max-width: 500px;
  margin-top: .75rem;
}
.archive-count {
  font-family: var(--font-cond);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: rgba(255,255,255,.06);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

/* Posts grid without hero variant */
.posts-grid--archive > article { grid-column: span 2; }

/* ── SINGLE POST ─────────────────────────────────────────────── */
.single-hero-wrap {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
}
.single-hero-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,18,32,.1) 0%,
    rgba(12,18,32,.6) 60%,
    rgba(12,18,32,.95) 100%
  );
}
.single-hero-wrap img {
  width: 100%; max-height: 560px;
  object-fit: cover; display: block;
}
.single-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 1; padding: 3rem 0;
}
.single-hero-content .wrap { max-width: var(--max-prose); }

/* When no featured image */
.single-header-plain {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.single-header-plain .wrap { max-width: var(--max-prose); }

.entry-cat {
  display: inline-block;
  background: var(--border-o); color: var(--orange-dk);
  padding: .25rem .75rem; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; margin-bottom: 1.25rem;
  transition: background var(--tr), color var(--tr);
}
.entry-cat:hover { background: var(--orange); color: var(--white); }
.entry-cat--inv {
  background: rgba(237,111,44,.25);
  color: var(--orange-lt);
}
.entry-cat--inv:hover { background: var(--orange); color: var(--white); }

.entry-title {
  font-family: var(--font-cond);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  color: var(--navy); line-height: var(--lh-head);
}
.entry-title--inv { color: var(--white); }

.entry-title + .post-meta { margin-top: 1.25rem; }

/* Single body */
.single-body {
  padding: 3.5rem 0 4rem;
}
.single-body > .wrap { max-width: var(--max-prose); }

/* ── ENTRY CONTENT ───────────────────────────────────────────── */
.entry-content > * + * { margin-top: 1.5rem; }

/* Drop cap */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-cond);
  font-size: 4.25em; font-weight: 700;
  line-height: .75; float: left;
  margin: .05em .12em -.05em 0;
  color: var(--orange);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-cond);
  color: var(--navy);
  margin-top: 2.75rem;
  position: relative;
}
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.125rem; }

.entry-content h2::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: .6rem;
}

.entry-content a {
  color: var(--orange);
  text-decoration: underline; text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--orange-dk); }

.entry-content blockquote {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--off);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.05rem; font-style: italic; color: var(--navy-2);
}
.entry-content blockquote::before {
  content: '\201C';
  position: absolute; top: -.2rem; left: .75rem;
  font-size: 4.5rem; line-height: 1;
  color: var(--orange); opacity: .2;
  font-family: Georgia, serif;
  pointer-events: none;
}

.entry-content ul,
.entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: none; }
.entry-content ul > li {
  position: relative; padding-left: 1.25rem;
}
.entry-content ul > li::before {
  content: '';
  position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
}
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .5rem; }

.entry-content img { border-radius: var(--r); max-width: 100%; }
.entry-content figure { margin: 2.5rem 0; }
.entry-content figcaption {
  text-align: center; font-size: .8rem; color: var(--muted);
  margin-top: .75rem; font-style: italic;
}

.entry-content code {
  background: var(--off); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .1em .45em; font-size: .875em;
  font-family: 'Menlo','Consolas',monospace;
  color: var(--orange-dk);
}
.entry-content pre {
  background: var(--navy-dark); color: var(--off);
  padding: 1.75rem; border-radius: var(--r); overflow-x: auto;
}
.entry-content pre code {
  background: none; border: none; padding: 0;
  font-size: .875rem; color: var(--off);
}

.entry-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.entry-content th,
.entry-content td { padding: .75rem 1rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--off); font-weight: 700; color: var(--navy); }
.entry-content hr { border: none; border-top: 2px solid var(--border); margin: 3rem 0; }

/* Post navigation */
.single-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 3rem;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.single-nav a {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.25rem; border-radius: var(--r);
  border: 1px solid var(--border);
  text-decoration: none; background: var(--off);
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.single-nav a:hover {
  border-color: var(--orange); background: var(--white);
  box-shadow: var(--shadow-s);
}
.single-nav .nav-next a { text-align: right; align-items: flex-end; }
.nav-subtitle {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.nav-title { font-weight: 700; color: var(--navy); font-size: .9rem; line-height: 1.3; }

/* Entry footer: tags */
.entry-footer { margin-top: 2.5rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tag {
  background: var(--off); color: var(--muted);
  padding: .25rem .75rem; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.entry-tag:hover {
  background: var(--border-o); color: var(--orange-dk);
  border-color: var(--border-o);
}

/* Author box */
.author-box {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--off); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 1.75rem;
  margin-top: 2.5rem;
}
.author-box-avatar img { border-radius: 50%; flex-shrink: 0; }
.author-box-name {
  font-family: var(--font-cond);
  font-size: 1.1rem; margin-bottom: .35rem;
}
.author-box-bio { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ── SEARCH FORM ─────────────────────────────────────────────── */
.search-form__inner {
  display: flex; border-radius: 100px;
  overflow: hidden; border: 2px solid var(--border);
  background: var(--white); transition: border-color var(--tr);
}
.search-form__inner:focus-within { border-color: var(--orange); }
.search-field {
  flex: 1; padding: .75rem 1.25rem;
  font-size: .95rem; color: var(--navy); background: transparent; border: none;
}
.search-field:focus { outline: none; }
.search-submit {
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.25rem;
  background: var(--orange); color: var(--white);
  border: none; cursor: pointer;
  transition: background var(--tr);
}
.search-submit:hover { background: var(--orange-dk); }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-404-block {
  text-align: center; padding: 6rem 2rem;
  max-width: 540px; margin: 0 auto;
}
.error-404-num {
  font-family: var(--font-cond);
  font-size: clamp(7rem, 20vw, 12rem);
  font-weight: 700; color: var(--orange);
  line-height: 1; opacity: .12; display: block;
  letter-spacing: -.04em;
}
.error-404-block h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.error-404-block > p { color: var(--muted); margin-bottom: 2rem; }
.error-404-search { margin-top: 2.5rem; }
.error-404-search > p { color: var(--muted); font-size: .875rem; margin-bottom: .75rem; }

/* Empty state */
.no-results-block {
  padding: 5rem 0; text-align: center;
}
.no-results-block h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.no-results-block p { color: var(--muted); margin-bottom: 2rem; }

/* ── COMMENTS ────────────────────────────────────────────────── */
.comments-area {
  border-top: 2px solid var(--border); padding-top: 3rem; margin-top: 3rem;
}
.comments-title {
  font-family: var(--font-cond); font-size: 1.6rem; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.comments-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.comment-body {
  background: var(--off); border-radius: var(--r-lg);
  padding: 1.5rem; border: 1px solid var(--border);
}
.comment-author {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.comment-author img { border-radius: 50%; flex-shrink: 0; }
.comment-author cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem; }
.comment-metadata { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p { font-size: .9rem; color: var(--navy-2); line-height: 1.65; }
.reply { margin-top: .75rem; }
.comment-reply-link {
  font-size: .75rem; font-weight: 700; color: var(--orange);
  text-decoration: none;
}
.comment-reply-link:hover { color: var(--orange-dk); }
.comment-reply-title {
  font-family: var(--font-cond); font-size: 1.4rem; margin-bottom: 1.5rem;
}
.comment-form label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--navy); margin-bottom: .4rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: var(--off);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: .75rem 1rem; font-size: .95rem; color: var(--navy);
  transition: border-color var(--tr);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--orange); outline: none; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form p + p { margin-top: 1rem; }
.comment-navigation {
  display: flex; justify-content: space-between;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.comment-navigation a { color: var(--orange); text-decoration: none; }
.no-comments { color: var(--muted); font-style: italic; }

/* ── PAGE ────────────────────────────────────────────────────── */
.page-wrap { max-width: var(--max-prose); margin: 4rem auto; padding: 0 2rem; }
.page-hero { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2/1; margin-bottom: 2rem; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand-name {
  font-family: var(--font-cond);
  font-size: 1.5rem; font-weight: 700;
  color: var(--white); display: block; margin-bottom: .75rem;
}
.footer-brand-desc {
  font-size: .85rem; line-height: 1.65;
  color: rgba(255,255,255,.5);
  max-width: 260px;
}
.footer-col-title {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem; display: block;
}

/* Footer widget overrides */
.site-footer .widget { background: none; border: none; box-shadow: none; padding: 0; margin: 0; }
.site-footer .widget-title {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem; border: none; padding: 0;
  display: block;
}
.site-footer .widget a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; }
.site-footer .widget a:hover { color: var(--orange-lt); }
.site-footer .widget p { font-size: .875rem; color: rgba(255,255,255,.45); }
.site-footer .widget li + li { margin-top: .5rem; }
.site-footer .widget-cat-list li { border-color: rgba(255,255,255,.06); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0; flex-wrap: wrap;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-copy a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-copy a:hover { color: var(--white); }
.footer-nav-list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav-list a {
  font-size: .8rem; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color var(--tr);
}
.footer-nav-list a:hover { color: var(--white); }

/* Misc */
.edit-link { margin-top: 1rem; }
.edit-link a { font-size: .75rem; color: var(--muted); text-decoration: underline; }
.edit-link a:hover { color: var(--orange); }
.page-links {
  margin-top: 2rem; display: flex; gap: .5rem; align-items: center; font-size: .875rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid > article { grid-column: span 2; }
  .posts-grid > article:first-child { grid-column: span 4; }
  .posts-grid > article:nth-child(2),
  .posts-grid > article:nth-child(3) { grid-column: span 2; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 1.25rem; }

  .posts-grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem 0 3rem; }
  .posts-grid > article { grid-column: span 1 !important; }
  .posts-grid > article:first-child { grid-column: span 2 !important; }
  .post-card--hero { flex-direction: column; height: auto; }
  .post-card--hero .post-card-thumb { width: 100%; height: auto; aspect-ratio: 16/9; order: 0; }
  .post-card--hero .post-card-thumb a { height: auto; }
  .post-card--hero .post-card-body { padding: 1.5rem; }
  .post-card--hero .post-card-title { font-size: 1.5rem; }
  .post-card--hero .post-card-excerpt { -webkit-line-clamp: 2; }

  .single-hero-wrap img { max-height: 280px; }
  .single-hero-content { padding: 1.5rem 0; }

  .archive-hero { padding: 2.5rem 0 2rem; }
  .archive-count { display: none; }

  .single-nav { grid-template-columns: 1fr; }
  .single-nav .nav-next a { text-align: left; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }

  .nav-hamburger { display: flex; }
  .primary-nav {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 1.5rem;
    border-top: 1px solid var(--border); overflow-y: auto; z-index: 190;
  }
  .primary-nav.nav--open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; gap: .25rem; }
  .nav-list a { padding: .875rem 1rem; font-size: 1rem; width: 100%; border-radius: var(--r-sm); }
  .nav-cta { width: 100%; justify-content: center; padding: .875rem 1rem; border-radius: var(--r-sm); }
  .admin-bar .primary-nav { top: 114px; }
}

@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid > article:first-child { grid-column: span 1 !important; min-height: 280px; }
}
