/*
Theme Name: Host Executive
Theme URI: https://hostexecutive.com
Author: Host Executive
Description: Bold, modern tech theme for hosting reviews and comparisons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: host-executive
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #E8151B;
  --red-dark:   #B50F13;
  --red-glow:   rgba(232, 21, 27, 0.18);
  --red-subtle: rgba(232, 21, 27, 0.08);
  --black:      #080808;
  --surface:    #111111;
  --surface-2:  #181818;
  --surface-3:  #222222;
  --border:     rgba(255,255,255,0.07);
  --border-red: rgba(232, 21, 27, 0.3);
  --white:      #FFFFFF;
  --off-white:  #F0F0F0;
  --muted:      #888888;
  --muted-2:    #555555;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-red: 0 0 40px rgba(232, 21, 27, 0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.6);

  --max-width: 1200px;
  --nav-height: 72px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { max-width: 68ch; }

.text-red   { color: var(--red); }
.text-muted { color: var(--muted); }
.uppercase  { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px rgba(232,21,27,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 36px rgba(232,21,27,0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--red); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out-expo);
}
.card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card__body { padding: 24px; }

.card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 10px;
  padding: 3px 8px;
  background: var(--red-subtle);
  border-radius: 3px;
  border: 1px solid var(--border-red);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
  line-height: 1.3;
}
.card__title a { transition: color 0.15s; }
.card__title a:hover { color: var(--red); }

.card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s;
}
#masthead.scrolled {
  border-bottom-color: var(--border-red);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img,
.custom-logo-link img,
.custom-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  display: block;
}
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.site-logo__text span { color: var(--red); }

/* Primary nav */
#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

#primary-navigation a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item > a {
  color: var(--white);
  background: var(--surface-3);
}

/* Dropdown */
#primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-card);
}
#primary-navigation li:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#primary-navigation li { position: relative; }

/* Nav CTA */
.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  #primary-navigation {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  #primary-navigation.open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 2px; }
  #primary-navigation a { padding: 12px 16px; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO (HOMEPAGE)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(232,21,27,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(232,21,27,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero__title {
  margin-bottom: 24px;
  color: var(--white);
}
.hero__title em {
  font-style: normal;
  color: var(--red);
  position: relative;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero__stat-num span { color: var(--red); }
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
  display: block;
}

.section-header h2 { color: var(--white); margin-bottom: 16px; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.featured-post:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}

.featured-post__thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.featured-post__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post__title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.featured-post__title a:hover { color: var(--red); }
.featured-post__title a { transition: color 0.15s; }
.featured-post__excerpt { color: var(--muted); margin-bottom: 28px; }

@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__body { padding: 28px; }
}

/* ============================================================
   BLOG GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
}

.post-header { margin-bottom: 48px; }
.post-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.post-header__meta .divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.post-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: 40px;
  border: 1px solid var(--border);
  max-height: 520px;
  object-fit: cover;
}

/* Post content */
.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding-top: 56px;
}

.post-content > * + * { margin-top: 1.5em; }

.post-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  color: var(--white);
}
.post-content h3 {
  font-size: 1.3rem;
  margin-top: 2em;
  color: var(--off-white);
}
.post-content h4 { font-size: 1.1rem; color: var(--off-white); margin-top: 1.5em; }

.post-content p {
  color: #C8C8C8;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 68ch;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(232,21,27,0.3);
}
.post-content a:hover { text-decoration-color: var(--red); }

.post-content ul, .post-content ol {
  padding-left: 24px;
  color: #C8C8C8;
}
.post-content li { margin-bottom: 6px; line-height: 1.75; }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }

.post-content blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--off-white);
  font-size: 1.1rem;
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--red);
}

.post-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--off-white);
  font-size: 0.88rem;
}

.post-content img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 8px auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.post-content th {
  background: var(--surface-3);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #C8C8C8;
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: var(--surface); }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ============================================================
   POST SIDEBAR
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
}

.sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.widget__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Table of contents */
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--white);
  background: var(--surface-3);
  border-left-color: var(--red);
  padding-left: 14px;
}

/* ============================================================
   CATEGORIES STRIP
   ============================================================ */
.categories-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}

.categories-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.categories-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--red-subtle);
  border-color: var(--border-red);
  color: var(--red);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 64px 0 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
}
.page-link:hover {
  border-color: var(--border-red);
  color: var(--red);
  background: var(--red-subtle);
}
.page-link.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 16px rgba(232,21,27,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 30ch;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ============================================================
   NOTICE BAR
   ============================================================ */
.notice-bar {
  background: var(--red);
  padding: 10px 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.notice-bar a { text-decoration: underline; opacity: 0.85; }
.notice-bar a:hover { opacity: 1; }

/* ============================================================
   ENTRY ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto; }
.alignwide { max-width: 900px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }

.wp-block-image { margin: 24px 0; }

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

/* Comments */
.comments-area {
  max-width: 740px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.comment-list { display: flex; flex-direction: column; gap: 24px; }
.comment-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.comment-author { font-weight: 600; color: var(--white); margin-bottom: 6px; }
.comment-metadata { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono); }
.comment-content p { font-size: 0.95rem; color: #C8C8C8; }

.comment-respond {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.comment-respond h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--white);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* Search form */
.search-form {
  display: flex;
  gap: 8px;
}
.search-field {
  flex: 1;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--font-body);
  padding: 10px 14px;
  font-size: 0.9rem;
}
.search-field:focus {
  outline: none;
  border-color: var(--red);
}
.search-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.search-submit:hover { background: var(--red-dark); }

/* ============================================================
   404
   ============================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 24px;
  padding-top: var(--nav-height);
}
.error-404__code {
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  color: var(--surface-3);
  line-height: 1;
  position: relative;
}
.error-404__code::after {
  content: '404';
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-red);
}
