/*
Theme Name: RenzieBaluyutOnline
Theme URI: https://renziebaluyutonline.com
Author: Renzie Baluyut
Author URI: https://renziebaluyutonline.com
Description: A bold, modern dark WordPress theme for RenzieBaluyutOnline.com  -  practical notes on AI, content, marketing, remote work, and rebuilding smarter.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbo-theme
Tags: blog, personal, bold, modern, dark, one-column, two-columns, right-sidebar
*/

/* ============================================================
   Brand Tokens  -  RenzieBaluyutOnline Brand Guide v1.0
   ============================================================ */
:root {
  /* Brand colors */
  --signal-red:    #E63946;
  --signal-red-h:  #C1121F;
  --signal-red-ink:#D32F3C;   /* Signal Red tuned for white text (4.9:1) */
  --carbon:        #0F0F0F;
  --bone:          #F5F0E8;
  --slate:         #4A5568;
  --ash:           #E8E8E4;

  /* Dark-theme surface scale */
  --bg:            #0F0F0F;   /* Carbon  -  page background */
  --surface-1:     #161616;   /* cards, sidebar */
  --surface-2:     #1F1F1F;   /* hover states, nested surfaces */
  --surface-3:     #2A2A2A;   /* dividers, borders */

  /* Text scale */
  --text-primary:  #F5F0E8;   /* Bone  -  headlines & primary copy */
  --text-body:     #C8C3BB;   /* slightly dimmed bone for body */
  --text-muted:    #9CA3AF;   /* captions, meta, secondary */
  --text-faint:    #858D9B;   /* placeholder, disabled (AA on all surfaces) */

  /* Semantic aliases */
  --color-accent:  var(--signal-red);
  --color-accent-h:var(--signal-red-h);
  --color-border:  var(--surface-3);

  /* Fonts  -  Brand Guide spec */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-w:         1100px;
  --content-w:     720px;
  --radius:        4px;
  --radius-lg:     8px;
  --radius-xl:     12px;

  --transition:    0.18s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family:  var(--font-body);
  font-size:    17px;
  line-height:  1.75;
  color:        var(--text-body);
  background:   var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--signal-red);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--signal-red-h); }

ul, ol { list-style: none; }

/* ============================================================
   Typography  -  Brand Guide spec
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family:     var(--font-display);
  font-weight:     700;
  line-height:     1.12;
  letter-spacing:  -0.025em;
  color:           var(--text-primary);
}

h1 { font-size: clamp(2rem,   5vw,  3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

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

strong, b { font-weight: 700; color: var(--text-primary); }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--signal-red);
  padding: 1.1rem 1.5rem;
  margin: 2rem 0;
  background: var(--surface-1);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-2);
  padding: 0.15em 0.45em;
  border-radius: var(--radius);
  color: var(--signal-red);
  border: 1px solid var(--surface-3);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--surface-1);
  color: var(--text-body);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--surface-3);
}
pre code { background: none; border: none; color: inherit; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--surface-3);
  margin: 3rem 0;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--signal-red-ink);
  color: #fff;
  border-color: var(--signal-red);
}
.btn-primary:hover {
  background: var(--signal-red-h);
  border-color: var(--signal-red-h);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-3);
}
.btn-outline:hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.96);
  border-bottom: 1px solid var(--surface-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Red accent line on bottom of header */
.site-header::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--signal-red);
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding { display: flex; flex-direction: column; line-height: 1; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}
.site-title:hover { color: var(--signal-red); }

.site-description {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* Nav */
.main-nav ul { display: flex; gap: 0.25rem; align-items: center; }

.main-nav a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--text-primary);
  background: var(--surface-2);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--surface-1);
    border-bottom: 2px solid var(--signal-red);
    padding: 1rem 1.5rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.65rem 0; }
}

/* ============================================================
   Page Hero  -  used on blog index, archives, search
   ============================================================ */
.page-hero {
  background: var(--surface-1);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--surface-3);
  position: relative;
  overflow: hidden;
}

/* Subtle red accent stripe */
.page-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--signal-red);
}

.page-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 0.75rem;
}

.page-hero h1 { color: var(--text-primary); margin-bottom: 0.75rem; }
.page-hero p  { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* ============================================================
   Blog Index / Archive
   ============================================================ */
.blog-section { padding: 3.5rem 0 5rem; }

/* Post Card Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--signal-red);
  box-shadow: 0 8px 40px rgba(230, 57, 70, 0.12);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.92);
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.04);
  filter: brightness(1);
}

.post-card__body { padding: 1.5rem; }

.post-card__cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.post-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}
.post-card__title a:hover { color: var(--signal-red); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-3);
}
.post-card__meta .sep { color: var(--surface-3); }

/* Featured Post (first)  -  spans full width */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-xl);
}
.post-card--featured .post-card__thumb {
  aspect-ratio: auto;
  min-height: 280px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.post-card--featured .post-card__body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card--featured .post-card__title {
  font-size: 1.65rem;
  line-height: 1.15;
}
.post-card--featured .post-card__excerpt { -webkit-line-clamp: 4; }

@media (max-width: 680px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__thumb {
    min-height: 200px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--surface-3);
  background: var(--surface-1);
  transition: all var(--transition);
  text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--signal-red-ink);
  border-color: var(--signal-red);
  color: #fff;
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ============================================================
   Single Post
   ============================================================ */
.single-hero {
  background: var(--surface-1);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--surface-3);
  position: relative;
}
.single-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal-red);
}

.single-hero .post-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.cat-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--signal-red-ink);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}
.cat-label:hover { background: var(--signal-red-h); color: #fff; }

.single-hero h1 {
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  max-width: 800px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 500;
}
.post-meta-bar .sep { color: var(--surface-3); }

.featured-image-wrap {
  background: var(--surface-2);
  max-height: 480px;
  overflow: hidden;
}
.featured-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.9);
}

/* Post Content */
.post-content-area { padding: 3rem 0 5rem; }

.entry-content { max-width: var(--content-w); }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.entry-content p { color: var(--text-body); }

.entry-content ul,
.entry-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  list-style: revert;
  color: var(--text-body);
}
.entry-content li { margin-bottom: 0.4rem; }

.entry-content a {
  color: var(--signal-red);
  text-decoration: underline;
  text-decoration-color: rgba(230, 57, 70, 0.35);
  text-underline-offset: 3px;
}
.entry-content a:hover {
  text-decoration-color: var(--signal-red);
  color: var(--signal-red-h);
}

.entry-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid var(--surface-3);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.entry-content th {
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 2px solid var(--signal-red);
}
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-body);
}
.entry-content tr:nth-child(even) td { background: var(--surface-1); }

/* Tags */
.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-3);
}

.tag-chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--surface-1);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--surface-3);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.tag-chip:hover {
  background: var(--signal-red-ink);
  color: #fff;
  border-color: var(--signal-red);
}

/* Post Nav */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-3);
}

.nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-title:hover { color: var(--signal-red); }
.nav-next { text-align: right; }

@media (max-width: 600px) {
  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { font-size: 0.9rem; }

.widget { margin-bottom: 2.5rem; }

.widget-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--signal-red);
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--surface-3);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  color: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.widget ul li a:hover { color: var(--signal-red); }

/* About widget */
.widget-about {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}
.widget-about .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--signal-red);
}
.widget-about h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.widget-about p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Search widget */
.widget .search-form { display: flex; gap: 0.5rem; }
.widget .search-field {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--surface-1);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.widget .search-field::placeholder { color: var(--text-faint); }
.widget .search-field:focus {
  border-color: var(--signal-red);
}
.widget .search-submit {
  padding: 0.6rem 1rem;
  background: var(--signal-red-ink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
}
.widget .search-submit:hover { background: var(--signal-red-h); }

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--surface-3);
  max-width: var(--content-w);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.comment-list { list-style: none; }

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface-3);
}

.comment-meta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-3);
}

.comment-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-decoration: none;
}

.comment-content { font-size: 0.95rem; color: var(--text-body); }

/* Comment Form */
.comment-respond { margin-top: 2.5rem; }

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  background: var(--surface-1);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-faint); }
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--signal-red);
}
.comment-form textarea { resize: vertical; min-height: 130px; }

.form-submit .submit {
  background: var(--signal-red-ink);
  color: #fff;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: 0.01em;
}
.form-submit .submit:hover { background: var(--signal-red-h); }

/* ============================================================
   Static Pages
   ============================================================ */
.page-content-area { padding: 3.5rem 0 5rem; }
.page-content { max-width: var(--content-w); }

.page-title-bar {
  background: var(--surface-1);
  padding: 3rem 0;
  border-bottom: 1px solid var(--surface-3);
  position: relative;
}
.page-title-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal-red);
}
.page-title-bar h1 { color: var(--text-primary); }

/* ============================================================
   404 Page
   ============================================================ */
.not-found-wrap {
  text-align: center;
  padding: 6rem 1.5rem;
}
.not-found-wrap .code-404 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--signal-red);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}
.not-found-wrap h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.not-found-wrap p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Archive Header
   ============================================================ */
.archive-header {
  background: var(--surface-1);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--surface-3);
  position: relative;
}
.archive-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal-red);
}

.archive-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 0.5rem;
}
.archive-title { color: var(--text-primary); }
.archive-description {
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 540px;
}

/* ============================================================
   Accessibility
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}
.screen-reader-text:focus,
.skip-link:focus {
  background: var(--surface-2);
  border-radius: var(--radius);
  clip: auto;
  clip-path: none;
  color: var(--text-primary);
  display: block;
  height: auto;
  left: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

/* Visible keyboard focus everywhere (mouse clicks stay clean). */
:focus-visible {
  outline: 2px solid var(--signal-red);
  outline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */

/* ---- Subscribe strip ---- */
.footer-newsletter {
  background: var(--surface-2);
  border-top: 1px solid var(--surface-3);
  margin-top: 4rem;
}
.footer-newsletter + .site-footer {
  margin-top: 0;
  border-top: 0;
}
.footer-newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-newsletter__copy { flex: 1 1 360px; }
.footer-newsletter__copy h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.4rem;
}
.footer-newsletter__copy p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-body);
}
.footer-newsletter__form {
  flex: 0 1 460px;
  min-width: 0;
  width: 100%;
}
.footer-newsletter__form form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}
.footer-newsletter__form p { margin: 0; }
.footer-newsletter__form input[type="email"],
.footer-newsletter__form input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
}
.footer-newsletter__form input::placeholder { color: var(--text-faint); }
.footer-newsletter__form button,
.footer-newsletter__form input[type="submit"],
.footer-newsletter__form .wp-block-button__link {
  height: 48px;
  padding: 0 1.5rem;
  background: var(--signal-red-ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.footer-newsletter__form button:hover,
.footer-newsletter__form input[type="submit"]:hover,
.footer-newsletter__form .wp-block-button__link:hover {
  background: var(--signal-red-h);
  color: #fff;
}

/* ---- Wrapper ---- */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--surface-3);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

/* Brand column + Topics column. A third column appears only when a menu
   is assigned to "Footer: Also by Renzie". */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-grid.has-brands {
  grid-template-columns: 2fr 1.4fr 1fr;
}

@media ( max-width: 768px ) {
  .footer-grid,
  .footer-grid.has-brands {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Brand column ---- */
.footer-brand .site-title-footer {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.footer-brand .site-title-footer:hover { color: var(--signal-red); }
.footer-brand > p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 1.25rem;
}
.footer-brand .widget { margin-bottom: 1.25rem; }
.footer-brand .widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

/* ---- Social icons: up to five per row ---- */
.footer-social {
  max-width: 252px;
  margin-top: 0.25rem;
}
.footer-social .wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social .wp-block-social-links.is-style-logos-only .wp-social-link {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  transition: color var(--transition), border-color var(--transition);
}
.footer-social .wp-block-social-links.is-style-logos-only .wp-social-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
}
.footer-social .wp-block-social-links.is-style-logos-only .wp-social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.footer-social .wp-block-social-links.is-style-logos-only .wp-social-link:hover {
  color: var(--text-primary);
  border-color: var(--signal-red);
}

/* Text fallback if the core social icons block is ever unavailable */
.footer-social--text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-social--text a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  text-decoration: none;
}
.footer-social--text a:hover { color: var(--signal-red); border-color: var(--signal-red); }

/* ---- Link columns ---- */
.footer-col { padding-top: 0.25rem; }
.footer-col-title,
.footer-col .widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.footer-col .widget { margin-bottom: 1.5rem; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  font-size: 0.95rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); }

/* ---- Bottom bar ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--surface-3);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-bottom a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--text-primary); text-decoration: underline; }
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media ( max-width: 480px ) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-faint);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); text-decoration: underline; }
.breadcrumbs [aria-current="page"] span { color: var(--text-body); }

.updated-date { color: var(--text-muted); }

/* ============================================================
   Post template additions
   ============================================================ */

/* "In this post" jump links */
.entry-content h2 { scroll-margin-top: 5.5rem; }
.post-toc {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-left: 3px solid var(--signal-red);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.25rem;
}
.post-toc__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  list-style: decimal;
}
.post-toc li { margin: 0.35rem 0; font-size: 0.95rem; line-height: 1.45; }
.post-toc a { color: var(--text-body); text-decoration: none; }
.post-toc a:hover { color: var(--signal-red); text-decoration: underline; }

/* Author box */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
}
.author-box__avatar { flex: 0 0 72px; }
.author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box__label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.author-box__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.author-box__name a { color: var(--text-primary); text-decoration: none; }
.author-box__name a:hover { color: var(--signal-red); }
.author-box__bio { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.6; }
.author-box__more { font-size: 0.9rem; font-weight: 600; }
@media ( max-width: 480px ) {
  .author-box { flex-direction: column; }
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-3);
}
.related-posts__title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media ( max-width: 700px ) {
  .related-posts__grid { grid-template-columns: 1fr; }
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.related-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.related-card__title {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.related-card__title a { color: var(--text-primary); text-decoration: none; }
.related-card__title a:hover { color: var(--signal-red); }
.related-card__meta {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Sitemap page
   ============================================================ */
.sitemap-page {
  max-width: var(--content-w);
  padding: 3rem 0 5rem;
}
.sitemap-page h2 { margin: 2.5rem 0 1rem; }
.sitemap-page h2:first-child { margin-top: 0; }
.sitemap-topic { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.sitemap-topic a { color: var(--text-primary); }
.sitemap-topic a:hover { color: var(--signal-red); }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { margin: 0.4rem 0; }
.sitemap-list ul { padding-left: 1.25rem; list-style: none; }
.sitemap-list a { color: var(--text-body); }
.sitemap-list a:hover { color: var(--signal-red); text-decoration: underline; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .footer-newsletter, .sidebar, .post-navigation,
  .related-posts, .menu-toggle, .comment-respond, .post-toc, .skip-link {
    display: none !important;
  }
  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }
  h1, h2, h3, h4, strong, b { color: #000; }
  .single-hero, .page-title-bar { background: none; border: 0; padding: 0 0 1rem; }
  .single-hero::before { display: none; }
  .content-wrap { display: block; }
  .entry-content a { color: #000; text-decoration: underline; }
  .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .featured-image-wrap img { filter: none; height: auto; }
}
