/*
Theme Name: HamCoach Blog
Theme URI: https://hamcoach.ai
Author: HamCoach AI
Author URI: https://hamcoach.ai
Description: Dark, radio-equipment-inspired blog theme that mirrors the HamCoach AI app design system — deep navy surfaces, brand-cyan signal accent, Space Grotesk / Inter / JetBrains Mono. Built for the HamCoach blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: hamcoach-blog
Tags: blog, dark, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Design tokens — mirrors packages/ui/src/tokens.ts
   ============================================================ */
:root {
  /* Brand */
  --hc-primary: #3a6fb0;
  --hc-primary-dark: #1e3a5f;
  --hc-accent: #4de3ff;
  --hc-accent-bright: #8aedff;
  --hc-signal: #4de3ff;
  /* Surfaces */
  --hc-bg-deep: #0a1118;
  --hc-bg: #0b1220;
  --hc-card: #121b2c;
  --hc-card-elevated: #1a2438;
  --hc-border: #243349;
  --hc-border-bright: #33486a;
  /* Text */
  --hc-text: #f3f6fb;
  --hc-text-muted: #94a3bd;
  --hc-text-faint: #5c6a86;
  /* Semantic */
  --hc-success: #4de3ff;
  --hc-warning: #f0b858;
  --hc-danger: #e26269;
  --hc-info: #5ba3d0;

  /* Radii */
  --hc-radius-sm: 6px;
  --hc-radius-md: 10px;
  --hc-radius-lg: 14px;
  --hc-radius-xl: 20px;

  /* Spacing */
  --hc-xs: 4px;
  --hc-sm: 8px;
  --hc-md: 12px;
  --hc-lg: 16px;
  --hc-xl: 24px;
  --hc-xxl: 32px;

  /* Elevation / glow */
  --hc-shadow-panel: 0 1px 0 0 rgba(255, 255, 255, 0.03) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.65);
  --hc-shadow-panel-hover: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
    0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --hc-glow: 0 0 0 1px rgba(77, 227, 255, 0.35),
    0 6px 22px -6px rgba(77, 227, 255, 0.45);
  --hc-glow-signal: 0 0 18px -4px rgba(77, 227, 255, 0.55);

  /* Gradients */
  --hc-gradient-panel: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0) 42%
  );

  /* Fonts */
  --hc-font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --hc-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    sans-serif;
  --hc-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Reading column */
  --hc-content-width: 1120px;
  --hc-article-width: 760px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--hc-text);
  font-family: var(--hc-font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--hc-bg-deep);
  /* Deep base + faint signal-blue radial bloom. */
  background-image: radial-gradient(
      1200px 600px at 50% -10%,
      rgba(77, 227, 255, 0.12) 0%,
      rgba(77, 227, 255, 0) 60%
    ),
    linear-gradient(180deg, #0a1118 0%, #0b1220 100%);
  background-attachment: fixed;
  position: relative;
}

/* Fixed scan grid overlay — radio-equipment vibe. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(36, 51, 73, 0.33) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 51, 73, 0.33) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

.site {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img,
svg,
iframe,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hc-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--hc-accent-bright);
}

/* ============================================================
   Typography
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hc-font-display);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--hc-text);
  margin: 0 0 var(--hc-md);
}
h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.1rem;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table,
figure {
  margin: 0 0 var(--hc-lg);
}

strong,
b {
  color: var(--hc-text);
  font-weight: 600;
}

small {
  font-size: 0.85em;
  color: var(--hc-text-muted);
}

hr {
  border: 0;
  height: 1px;
  margin: var(--hc-xl) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--hc-border) 12%,
    var(--hc-border) 88%,
    transparent 100%
  );
}

blockquote {
  border-left: 3px solid var(--hc-accent);
  padding: var(--hc-xs) 0 var(--hc-xs) var(--hc-lg);
  color: var(--hc-text-muted);
  font-style: italic;
}
blockquote p:last-child {
  margin-bottom: 0;
}

code,
kbd,
pre {
  font-family: var(--hc-font-mono);
  font-size: 0.9em;
}
code {
  background: var(--hc-card-elevated);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  padding: 0.1em 0.4em;
}
pre {
  background: var(--hc-card-elevated);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-md);
  padding: var(--hc-lg);
  overflow-x: auto;
  line-height: 1.6;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid var(--hc-border);
  padding: var(--hc-sm) var(--hc-md);
  text-align: left;
}
th {
  background: var(--hc-card-elevated);
  font-family: var(--hc-font-display);
}

::selection {
  background: rgba(77, 227, 255, 0.28);
  color: var(--hc-text);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.hc-container {
  width: 100%;
  max-width: var(--hc-content-width);
  margin: 0 auto;
  padding: 0 var(--hc-xl);
}

.site-main {
  flex: 1 0 auto;
  padding: var(--hc-xxl) 0 calc(var(--hc-xxl) * 2);
}

/* Radio baseline-trace divider. */
.hc-trace {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--hc-border) 12%,
    var(--hc-border) 88%,
    transparent 100%
  );
}

/* Mono uppercase eyebrow, like an equipment readout label. */
.hc-label {
  font-family: var(--hc-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hc-text-faint);
}

/* Inline status pill with a glowing signal dot. */
.hc-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--hc-xs);
  border: 1px solid var(--hc-border);
  background: var(--hc-card-elevated);
  border-radius: 999px;
  padding: var(--hc-xs) var(--hc-sm);
  font-family: var(--hc-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hc-text-muted);
}
.hc-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hc-signal);
  box-shadow: var(--hc-glow-signal);
}
a.hc-chip:hover {
  border-color: var(--hc-border-bright);
  color: var(--hc-text);
}

/* Panel / card. */
.hc-card {
  position: relative;
  border: 1px solid var(--hc-border);
  background-color: var(--hc-card);
  background-image: var(--hc-gradient-panel);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-panel);
}

/* ============================================================
   Buttons
   ============================================================ */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hc-sm);
  border-radius: var(--hc-radius-md);
  padding: var(--hc-sm) var(--hc-lg);
  font-family: var(--hc-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.hc-btn-primary {
  background: var(--hc-accent);
  color: #1a1206;
}
.hc-btn-primary:hover {
  background: var(--hc-accent-bright);
  color: #1a1206;
  box-shadow: var(--hc-glow);
}
.hc-btn-secondary {
  border-color: var(--hc-border);
  background: var(--hc-card-elevated);
  color: var(--hc-text);
}
.hc-btn-secondary:hover {
  border-color: var(--hc-border-bright);
  background: var(--hc-card);
  color: var(--hc-text);
}
.hc-btn-ghost {
  color: var(--hc-text-muted);
}
.hc-btn-ghost:hover {
  background: var(--hc-card-elevated);
  color: var(--hc-text);
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hc-border);
  background: rgba(10, 17, 24, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--hc-xl);
  min-height: 68px;
}

.site-branding {
  display: flex;
  align-items: center;
}
.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--hc-sm);
}
.site-logo-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--hc-signal);
  box-shadow: var(--hc-glow-signal);
}
.site-title {
  margin: 0;
  font-family: var(--hc-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hc-text);
}
.site-title a {
  color: inherit;
}
.site-title .site-title-accent {
  color: var(--hc-accent);
}
.custom-logo {
  max-height: 38px;
  width: auto;
}
.site-description {
  margin: 2px 0 0;
  font-family: var(--hc-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-text-faint);
}

/* Primary nav */
.main-navigation {
  margin-left: auto;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--hc-xs);
}
.main-navigation a {
  display: block;
  padding: var(--hc-sm) var(--hc-md);
  border-radius: var(--hc-radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--hc-text-muted);
}
.main-navigation a:hover {
  color: var(--hc-text);
  background: var(--hc-card-elevated);
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--hc-text);
}
.main-navigation .sub-menu {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--hc-sm);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: var(--hc-sm);
  background: var(--hc-card-elevated);
  border: 1px solid var(--hc-border);
  color: var(--hc-text);
  border-radius: var(--hc-radius-md);
  padding: var(--hc-sm) var(--hc-md);
  font-family: var(--hc-font-sans);
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle .bars {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.menu-toggle .bars::before {
  top: -5px;
}
.menu-toggle .bars::after {
  top: 5px;
}

/* ============================================================
   Page hero (archive / blog index header)
   ============================================================ */
.page-hero {
  margin-bottom: var(--hc-xxl);
}
.page-hero .hc-label {
  display: block;
  margin-bottom: var(--hc-sm);
}
.page-hero h1 {
  margin-bottom: var(--hc-sm);
}
.page-hero .page-hero-desc {
  color: var(--hc-text-muted);
  max-width: var(--hc-article-width);
  margin: 0;
}

/* ============================================================
   Post list (index / archive)
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hc-xl);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}
.post-card:hover {
  border-color: var(--hc-border-bright);
  box-shadow: var(--hc-shadow-panel-hover);
  transform: translateY(-2px);
}
.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--hc-border);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--hc-sm);
  padding: var(--hc-lg);
  flex: 1;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-sm);
}
.post-card-title {
  font-size: 1.3rem;
  margin: 0;
}
.post-card-title a {
  color: var(--hc-text);
}
.post-card-title a:hover {
  color: var(--hc-accent);
}
.post-card-excerpt {
  color: var(--hc-text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.post-card-readmore {
  margin-top: auto;
  padding-top: var(--hc-sm);
  font-family: var(--hc-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The meta line — date + reading detail */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-sm);
  font-family: var(--hc-font-mono);
  font-size: 12px;
  color: var(--hc-text-faint);
}
.entry-meta .sep {
  opacity: 0.5;
}

/* ============================================================
   Single post / page
   ============================================================ */
.article-wrap {
  max-width: var(--hc-article-width);
  margin: 0 auto;
}
.article-wrap.has-sidebar {
  max-width: var(--hc-content-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--hc-xxl);
  align-items: start;
}

.entry-header {
  margin-bottom: var(--hc-xl);
}
.entry-header .hc-label {
  display: block;
  margin-bottom: var(--hc-md);
}
.entry-title {
  margin: 0 0 var(--hc-md);
}
.entry-header .entry-meta {
  margin-top: var(--hc-md);
}

.entry-featured {
  margin: 0 0 var(--hc-xl);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hc-border);
}
.entry-featured img {
  display: block;
  width: 100%;
}

/* Long-form content */
.entry-content {
  font-size: 1.05rem;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content h2 {
  margin-top: var(--hc-xxl);
}
.entry-content h3 {
  margin-top: var(--hc-xl);
}
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(77, 227, 255, 0.4);
}
.entry-content a:hover {
  text-decoration-color: var(--hc-accent-bright);
}
.entry-content img {
  border-radius: var(--hc-radius-md);
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content li {
  margin-bottom: var(--hc-xs);
}
.entry-content figcaption,
.wp-caption-text {
  font-family: var(--hc-font-mono);
  font-size: 12px;
  color: var(--hc-text-faint);
  text-align: center;
  margin-top: var(--hc-xs);
}

/* WP alignment helpers */
.alignleft {
  float: left;
  margin: var(--hc-xs) var(--hc-lg) var(--hc-md) 0;
}
.alignright {
  float: right;
  margin: var(--hc-xs) 0 var(--hc-md) var(--hc-lg);
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignwide {
  margin-left: calc(var(--hc-article-width) / -2 + 50%);
  margin-right: calc(var(--hc-article-width) / -2 + 50%);
}
.wp-block-image,
.wp-block-embed {
  margin: var(--hc-xl) 0;
}
.sticky-badge {
  color: var(--hc-accent);
}

/* Entry footer — tags + share */
.entry-footer {
  margin-top: var(--hc-xl);
  padding-top: var(--hc-lg);
}
.entry-footer .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Author box */
.author-box {
  display: flex;
  gap: var(--hc-lg);
  align-items: flex-start;
  padding: var(--hc-lg);
  margin-top: var(--hc-xl);
}
.author-box img {
  border-radius: 999px;
  border: 1px solid var(--hc-border);
}
.author-box .author-name {
  font-family: var(--hc-font-display);
  font-size: 1.1rem;
  margin: 0 0 var(--hc-xs);
}
.author-box .author-bio {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 0.95rem;
}

/* Post navigation (prev / next) — the_post_navigation() markup */
.post-nav {
  margin-top: var(--hc-xl);
}
.post-nav .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hc-lg);
}
.post-nav .nav-previous,
.post-nav .nav-next {
  border: 1px solid var(--hc-border);
  background-color: var(--hc-card);
  background-image: var(--hc-gradient-panel);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-panel);
  transition: border-color 0.15s ease;
}
.post-nav .nav-previous:hover,
.post-nav .nav-next:hover {
  border-color: var(--hc-border-bright);
}
.post-nav .nav-next {
  text-align: right;
}
.post-nav a {
  display: block;
  padding: var(--hc-lg);
}
.post-nav .hc-label {
  display: block;
  margin-bottom: var(--hc-xs);
}
.post-nav .nav-title {
  display: block;
  color: var(--hc-text);
  font-family: var(--hc-font-display);
}

/* CTA panel inside articles */
.app-cta {
  margin-top: var(--hc-xxl);
  padding: var(--hc-xl);
  text-align: center;
  background-image: linear-gradient(
    110deg,
    rgba(77, 227, 255, 0.16) 0%,
    rgba(77, 227, 255, 0.07) 45%,
    rgba(58, 111, 176, 0) 80%
  );
}
.app-cta h2 {
  margin-bottom: var(--hc-sm);
}
.app-cta p {
  color: var(--hc-text-muted);
  margin-bottom: var(--hc-lg);
}

/* ============================================================
   Sidebar / widgets
   ============================================================ */
.sidebar .widget {
  padding: var(--hc-lg);
  margin-bottom: var(--hc-xl);
}
.sidebar .widget:last-child {
  margin-bottom: 0;
}
.widget-title {
  font-size: 1rem;
  margin-bottom: var(--hc-md);
  padding-bottom: var(--hc-sm);
  border-bottom: 1px solid var(--hc-border);
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget ul li {
  padding: var(--hc-xs) 0;
  border-bottom: 1px solid rgba(36, 51, 73, 0.5);
  color: var(--hc-text-muted);
}
.widget ul li:last-child {
  border-bottom: 0;
}
.widget a {
  color: var(--hc-text-muted);
}
.widget a:hover {
  color: var(--hc-accent);
}

/* ============================================================
   Search form
   ============================================================ */
.search-form {
  display: flex;
  gap: var(--hc-sm);
}
.search-field,
input[type='text'],
input[type='email'],
input[type='url'],
input[type='search'],
input[type='password'],
textarea {
  width: 100%;
  background: var(--hc-card-elevated);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-md);
  padding: var(--hc-sm) var(--hc-md);
  color: var(--hc-text);
  font-family: var(--hc-font-sans);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder,
textarea::placeholder {
  color: var(--hc-text-faint);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(77, 227, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(77, 227, 255, 0.18);
}
.search-submit {
  white-space: nowrap;
}

/* ============================================================
   Pagination
   ============================================================ */
.hc-pagination {
  margin-top: var(--hc-xxl);
}
.hc-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-sm);
  justify-content: center;
}
.hc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--hc-md);
  border: 1px solid var(--hc-border);
  background: var(--hc-card-elevated);
  border-radius: var(--hc-radius-md);
  color: var(--hc-text-muted);
  font-family: var(--hc-font-mono);
  font-size: 13px;
}
.hc-pagination .page-numbers:hover {
  border-color: var(--hc-border-bright);
  color: var(--hc-text);
}
.hc-pagination .page-numbers.current {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
  color: #1a1206;
}
.hc-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
  margin-top: var(--hc-xxl);
}
.comments-title,
.comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: var(--hc-lg);
}
.comment-list {
  list-style: none;
  margin: 0 0 var(--hc-xl);
  padding: 0;
}
.comment-list .children {
  list-style: none;
  margin: 0;
  padding-left: var(--hc-xl);
}
.comment-body {
  padding: var(--hc-lg);
  margin-bottom: var(--hc-lg);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--hc-sm);
  margin-bottom: var(--hc-sm);
}
.comment-author .fn {
  font-family: var(--hc-font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--hc-text);
}
.comment-metadata {
  font-family: var(--hc-font-mono);
  font-size: 12px;
  color: var(--hc-text-faint);
}
.comment-author img.avatar {
  border-radius: 999px;
  border: 1px solid var(--hc-border);
}
.comment-respond {
  padding: var(--hc-lg);
}
.comment-form label {
  display: block;
  font-family: var(--hc-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hc-text-faint);
  margin-bottom: var(--hc-xs);
}
.comment-form p {
  margin-bottom: var(--hc-md);
}
.comment-form .form-submit {
  margin-bottom: 0;
}
.comment-form input[type='submit'] {
  background: var(--hc-accent);
  color: #1a1206;
  border: 0;
  border-radius: var(--hc-radius-md);
  padding: var(--hc-sm) var(--hc-lg);
  font-weight: 500;
  cursor: pointer;
}
.comment-form input[type='submit']:hover {
  background: var(--hc-accent-bright);
  box-shadow: var(--hc-glow);
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--hc-border);
  background: rgba(10, 17, 24, 0.7);
  padding: var(--hc-xxl) 0;
  margin-top: var(--hc-xxl);
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hc-xl);
  margin-bottom: var(--hc-xl);
}
.footer-widgets .widget {
  padding: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hc-md);
  padding-top: var(--hc-lg);
}
.footer-bottom .footer-brand {
  display: flex;
  align-items: center;
  gap: var(--hc-sm);
  font-family: var(--hc-font-display);
  font-weight: 600;
  color: var(--hc-text);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-lg);
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--hc-text-muted);
  font-size: 14px;
}
.footer-nav a:hover {
  color: var(--hc-accent);
}
.footer-copy {
  color: var(--hc-text-faint);
  font-family: var(--hc-font-mono);
  font-size: 12px;
}

/* ============================================================
   Misc / accessibility
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip-link:focus {
  left: var(--hc-lg);
  top: var(--hc-lg);
  background: var(--hc-accent);
  color: #1a1206;
  padding: var(--hc-sm) var(--hc-md);
  border-radius: var(--hc-radius-md);
}

.no-results {
  padding: var(--hc-xl);
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .article-wrap.has-sidebar {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hc-container {
    padding: 0 var(--hc-lg);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-navigation {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--hc-bg-deep);
    border-bottom: 1px solid var(--hc-border);
    padding: var(--hc-md) var(--hc-lg);
  }
  .main-navigation.is-open {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-navigation a {
    padding: var(--hc-md);
    border-bottom: 1px solid rgba(36, 51, 73, 0.5);
  }
  .site-header-inner {
    position: relative;
  }
  .post-nav .nav-links {
    grid-template-columns: 1fr;
  }
}
