/*
Theme Name: respxwnd
Theme URI: https://respxwnd.com
Author: respxwnd
Author URI: https://respxwnd.com
Description: A modern, tech-forward blog theme for respxwnd — covering tech, gaming, anime and manga. Built on the respxwnd visual identity: void backgrounds, cyan + violet accents, Poppins display type and a monospace HUD label system. Classic PHP theme, optimised for Hostinger and PHP 8.3.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: respxwnd
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, full-width-template
*/

/* =================================================================
   1. DESIGN TOKENS
   ================================================================= */
:root {
  /* Core palette (locked by brand guidelines) */
  --void:   #0B0C14;
  --cyan:   #19E3FF;
  --violet: #7C5CFF;
  --snow:   #F4F5FB;
  --ash:    #8A8DA3;

  /* Derived surfaces */
  --surface-1: #11131D;
  --surface-2: #161927;
  --surface-3: #1D2030;
  --line:      rgba(244, 245, 251, 0.08);
  --line-soft: rgba(244, 245, 251, 0.05);
  --line-loud: rgba(244, 245, 251, 0.16);

  /* Division accents (used as category colour-coding) */
  --accent-managing: #F5B82E;
  --accent-editorial: #3DDC84;
  --accent-creative:  #7C5CFF;

  /* Signature gradient */
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, rgba(25,227,255,0.14), rgba(124,92,255,0.14));

  /* Type */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "DejaVu Sans Mono", ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow: 0 18px 40px -24px rgba(0,0,0,0.9);
  --shadow-glow: 0 0 0 1px var(--line), 0 24px 60px -28px rgba(25,227,255,0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =================================================================
   2. RESET & BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--snow);
  background-color: var(--void);
  /* Diagonal scanline texture echoing the pubmats */
  background-image:
    radial-gradient(900px 500px at 78% -8%, rgba(25,227,255,0.06), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(124,92,255,0.07), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 26px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--violet); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--snow);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }

p { margin-block: 0 1.1em; }
ul, ol { margin-block: 0 1.1em; padding-inline-start: 1.4em; }
li { margin-block: 0.3em; }

strong, b { font-weight: 700; color: var(--snow); }

blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--surface-1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--snow);
  font-size: 1.1rem;
}

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  color: var(--cyan);
}
pre {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.6em 0;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: var(--snow); }

hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.98rem; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }

::selection { background: rgba(25,227,255,0.28); color: var(--snow); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* =================================================================
   3. LAYOUT PRIMITIVES
   ================================================================= */
.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.4rem, var(--maxw-narrow)); margin-inline: auto; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--cyan); color: var(--void);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--font-mono); font-weight: 700;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* =================================================================
   4. SHARED ELEMENTS  (eyebrows, labels, buttons, mark)
   ================================================================= */

/* Monospace HUD eyebrow — the signature label system */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad);
}

/* Category chip, colour-coded by division accent */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: var(--snow);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { color: var(--snow); border-color: var(--accent, var(--cyan)); }
.chip::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 2px; margin-right: 0.5rem; vertical-align: middle;
  background: var(--accent, var(--cyan));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.8rem 1.3rem; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid var(--line-loud);
  background: var(--surface-2); color: var(--snow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--snow); }
.btn--primary {
  background: var(--grad); color: var(--void); border-color: transparent;
}
.btn--primary:hover { color: var(--void); box-shadow: 0 12px 30px -12px rgba(25,227,255,0.5); }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.03em; color: var(--snow);
}
.brand__word .x { color: var(--cyan); } /* wordmark X = cyan, never recoloured */

/* =================================================================
   5. SITE HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav ul { list-style: none; display: flex; gap: 0.2rem; padding: 0; margin: 0; }
.site-nav a {
  display: block; color: var(--ash);
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--snow); background: var(--surface-2); }
.site-nav .menu-item-has-children > a::after { content: " ▾"; color: var(--cyan); font-size: 0.7em; }

/* dropdowns */
.site-nav .sub-menu {
  position: absolute; display: none; flex-direction: column;
  min-width: 200px; padding: 0.4rem; margin-top: 0.4rem;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 50;
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* search toggle */
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--snow); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }

/* mobile toggle */
.nav-toggle { display: none; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--snow); margin: 4px auto; transition: 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* header search panel */
.header-search { display: none; border-top: 1px solid var(--line); background: rgba(11,12,20,0.95); }
.header-search.is-open { display: block; }
.header-search .search-form { display: flex; gap: 0.6rem; padding-block: 1rem; }

/* =================================================================
   6. SEARCH FORM
   ================================================================= */
.search-form { display: flex; gap: 0.6rem; width: 100%; }
.search-field {
  flex: 1; min-width: 0;
  background: var(--surface-1); border: 1px solid var(--line);
  color: var(--snow); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem;
}
.search-field::placeholder { color: var(--ash); }
.search-field:focus { outline: none; border-color: var(--cyan); }
.search-submit { white-space: nowrap; }

/* =================================================================
   7. PAGE HERO / ARCHIVE HEADER
   ================================================================= */
.page-hero { padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 3vw, 2rem); }
.page-hero .eyebrow { margin-bottom: 0.9rem; }
.page-hero__title { max-width: 18ch; }
.page-hero__desc { color: var(--ash); max-width: 60ch; margin-top: 0.9rem; }
.page-hero__rule { height: 1px; background: var(--line); margin-top: 1.6rem; }

/* =================================================================
   8. FEATURED HERO POST  (home)
   ================================================================= */
.feature {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-1); margin-bottom: var(--gap);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { box-shadow: var(--shadow-glow); border-color: var(--line-loud); }
.feature__media { position: relative; min-height: 320px; overflow: hidden; background: var(--surface-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,12,20,0.35));
}
.feature__body { padding: clamp(1.5rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1rem; }
.feature__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.feature__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.feature__title a { color: var(--snow); }
.feature__title a:hover { color: var(--cyan); }
.feature__excerpt { color: var(--ash); }
.feature__footer { margin-top: auto; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

/* =================================================================
   9. POST GRID + CARDS
   ================================================================= */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.layout--full { grid-template-columns: minmax(0,1fr); }

.post-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--line-loud); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--grad-soft);
}
.card__media-fallback svg { width: 64px; height: 64px; opacity: 0.7; }
.card__cat {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  backdrop-filter: blur(6px); background: rgba(11,12,20,0.6);
}
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__meta {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ash);
  display: flex; gap: 0.5rem; align-items: center;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ash); }
.card__title { font-size: 1.18rem; line-height: 1.25; }
.card__title a { color: var(--snow); }
.card__title a:hover { color: var(--cyan); }
.card__excerpt { color: var(--ash); font-size: 0.96rem; flex: 1; }
.card__more {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem;
}
.card__more span { transition: transform 0.2s var(--ease); }
.card:hover .card__more span { transform: translateX(4px); }

/* =================================================================
   10. SIDEBAR
   ================================================================= */
.sidebar { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 92px; }
.widget {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.widget-title {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--snow); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.widget-title::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-block: 0; padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft); }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var(--ash); }
.widget a:hover { color: var(--cyan); }
.widget .post-date, .widget .rss-date { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ash); letter-spacing: 0.1em; }
.widget select { width: 100%; background: var(--surface-2); border: 1px solid var(--line); color: var(--snow); padding: 0.6rem; border-radius: var(--radius-sm); }

/* =================================================================
   11. SINGLE POST / PAGE
   ================================================================= */
.single-hero { padding-top: clamp(2rem, 5vw, 3rem); }
.single-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.1rem; }
.single-hero__title { max-width: 24ch; }
.single-hero__sub {
  margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--ash);
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
}
.single-hero__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ash); }

.featured-media {
  margin: clamp(1.5rem,4vw,2.5rem) 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.featured-media img { width: 100%; }

.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-inline: auto; }
.entry-content h2 { margin-top: 1.8em; margin-bottom: 0.5em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(25,227,255,0.4); }
.entry-content a:hover { text-decoration-color: var(--violet); }
.entry-content img, .entry-content figure { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ash); text-align: center; margin-top: 0.6rem; letter-spacing: 0.05em; }
.alignwide { width: min(100%, calc(var(--maxw-narrow) + 180px)); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }

.wp-caption { max-width: 100%; }
.sticky .card, .post-sticky-flag { /* hook for sticky posts */ }

/* tags + share */
.entry-footer { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* author box */
.author-box {
  margin-top: 2.4rem; display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.author-box__avatar img { border-radius: 50%; }
.author-box__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.author-box__bio { color: var(--ash); font-size: 0.96rem; margin-top: 0.3rem; }

/* post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.post-nav a {
  display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.post-nav a:hover { border-color: var(--cyan); transform: translateY(-2px); }
.post-nav .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.post-nav .title { color: var(--snow); font-weight: 600; margin-top: 0.3rem; }
.post-nav .next { text-align: right; }

/* =================================================================
   12. COMMENTS
   ================================================================= */
.comments-area { margin-top: 3rem; }
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-bottom: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list ol { list-style: none; padding-left: 1.6rem; }
.comment-body {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.comment-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ash); letter-spacing: 0.08em; }
.comment-respond { margin-top: 2rem; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); margin-bottom: 0.4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--snow); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem;
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--cyan); }

/* =================================================================
   13. PAGINATION
   ================================================================= */
.pagination { margin-top: clamp(2rem,5vw,3rem); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px;
  padding: 0 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ash);
  background: var(--surface-1); transition: all 0.2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--cyan); color: var(--snow); }
.pagination .page-numbers.current { background: var(--grad); color: var(--void); border-color: transparent; font-weight: 700; }

/* =================================================================
   14. FOOTER
   ================================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem,7vw,5rem); background: linear-gradient(180deg, transparent, rgba(124,92,255,0.04)); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; padding-block: clamp(2.5rem,6vw,4rem); }
.footer-brand__tagline {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash); margin-top: 1rem;
}
.footer-brand__about { color: var(--ash); margin-top: 1rem; max-width: 40ch; font-size: 0.95rem; }
.footer-col .widget-title { margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding-block: 0.35rem; }
.footer-col a { color: var(--ash); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cyan); }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ash);
}
.social-links { display: flex; gap: 0.5rem; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ash); }
.social-links a:hover { color: var(--cyan); border-color: var(--cyan); }
.social-links svg { width: 17px; height: 17px; }

/* =================================================================
   15. STATES: 404 / no results
   ================================================================= */
.state {
  text-align: center; padding-block: clamp(3rem,8vw,6rem); max-width: 56ch; margin-inline: auto;
}
.state__code { font-family: var(--font-mono); font-size: clamp(3.5rem,12vw,7rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.state__title { margin-top: 0.6rem; }
.state__text { color: var(--ash); margin-top: 0.8rem; }
.state__actions { margin-top: 1.6rem; display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* =================================================================
   16. WP CORE / GUTENBERG HELPERS
   ================================================================= */
.wp-block-button__link { display:inline-block; background: var(--grad); color: var(--void); padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight:700; text-transform:uppercase; letter-spacing:0.1em; font-size:0.8rem; text-decoration:none; }
.wp-block-pullquote, .wp-block-quote { border-color: var(--cyan); }
.wp-block-code { background: var(--surface-1); border:1px solid var(--line); border-radius: var(--radius-sm); padding:1.2rem; }
.wp-block-image figcaption { color: var(--ash); }
.gallery { display:grid; gap:0.6rem; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }
.gallery img { border-radius: var(--radius-sm); }
.sticky-badge { display:inline-block; }
.bypostauthor { /* required by theme check */ }
.wp-block-separator { border-color: var(--line); }
.is-style-dots::before { color: var(--ash); }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px){ .admin-bar .site-header { top: 46px; } }

/* =================================================================
   17. RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 240px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch;
    background: var(--void); border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem; gap: 0.3rem;
    transform: translateY(-120%); transition: transform 0.3s var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; width: 100%; }
  .site-nav a { padding: 0.8rem 0.6rem; }
  .site-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding-left: 1rem; background: transparent; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .entry-footer { flex-direction: column; align-items: flex-start; }
}
