/*
Theme Name: PostChute Blog
Theme URI: https://postchute.com
Author: Beckie Brown
Author URI: https://beckiebrown.com
Description: A sharp, modern blog theme built from PostChute's brand identity — deep-violet sections, warm off-white surfaces, and the five-agent pipeline palette as automatic category accents. Includes home, single, archive, search and 404 templates plus a one-click demo-content importer.
Version: 1.2.3
Requires at least: 6.4
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: postchute-blog
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, block-styles, editor-style, threaded-comments, translation-ready
*/

/* ============================================================
   PostChute Blog — design tokens
   Ported from the PostChute design system so the theme is
   fully self-contained (no dependency on the design project).
   ============================================================ */
:root {
  /* Brand violet */
  --violet-deep: #1E1B4B;   /* dark sections: nav, hero, footer */
  --violet-mid:  #7C3AED;   /* primary accent, links, CTAs */
  --violet-soft: #F5F3FF;   /* light tint bg */

  /* Agent pipeline palette (pipeline order) — used as category accents */
  --writer:        #4F46E5;  --writer-soft:   #E0E7FF;
  --seo:           #0EA5E9;  --seo-soft:      #E0F2FE;
  --qc:            #D97706;  --qc-soft:       #FEF3C7;
  --design:        #E11D48;  --design-soft:   #FFE4E6;
  --human:         #7C3AED;  --human-soft:    #F5F3FF;
  --publisher:     #059669;  --publisher-soft:#D1FAE5;

  /* Neutrals */
  --bg:    #F8F7F4;   /* warm off-white page background */
  --white: #FFFFFF;   /* card & content surfaces */
  --ink:   #050505;   /* primary text */
  --ink-2: #2A2A2A;   /* body copy */
  --mute:  #6B6B6B;   /* captions, labels */
  --line:  #E5E3DE;   /* borders, dividers */

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 6px;  --radius-md: 8px;  --radius-lg: 10px;
  --radius-xl: 14px; --radius-2xl: 16px; --radius-pill: 100px;

  /* Shadow */
  --shadow-card: 0 12px 32px rgba(30, 27, 75, 0.10);

  /* Layout */
  --container: 1060px;
  --container-prose: 720px;
  --nav-height: 62px;
  --gutter: 48px;
  --gutter-mobile: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--violet-mid); text-decoration: none; }
a:hover { color: #6d28d9; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: #ddd6fe; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--violet-deep); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-md);
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; }
.container-prose { max-width: var(--container-prose); margin: 0 auto; }

@keyframes pcFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.pc-screen { animation: pcFadeUp 0.28s var(--ease); }

/* ============================================================
   Pipeline strip — the 6-stop brand signature bar
   ============================================================ */
.pipeline-strip {
  display: flex;
  height: 5px;
  width: 100%;
}
.pipeline-strip span { flex: 1; }
.pipeline-strip span:nth-child(1) { background: var(--writer); }
.pipeline-strip span:nth-child(2) { background: var(--seo); }
.pipeline-strip span:nth-child(3) { background: var(--qc); }
.pipeline-strip span:nth-child(4) { background: var(--design); }
.pipeline-strip span:nth-child(5) { background: var(--human); }
.pipeline-strip span:nth-child(6) { background: var(--publisher); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.site-logo:hover { color: var(--ink); }
.site-logo img { height: 26px; width: auto; }
.site-logo .custom-logo { height: 26px; width: auto; }
.blog-badge {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--violet-mid);
  background: var(--violet-soft);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-md);
}
.primary-nav a:hover { color: var(--violet-mid); background: var(--violet-soft); }
.primary-nav .current-menu-item > a { color: var(--violet-mid); }

.header-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 6px 0 12px; height: 40px; width: 300px;
  transition: border-color var(--ease) 0.15s;
}
.header-search:focus-within { border-color: var(--violet-mid); }
.header-search svg { flex: none; }
.header-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
}
.header-search button {
  border: none; background: var(--violet-deep); color: #fff;
  width: 30px; height: 28px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease);
}
.header-search button:hover { background: var(--violet-mid); }
.header-search[hidden] { display: none; }

.icon-button {
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: border-color 0.15s, color 0.15s;
}
.icon-button:hover { border-color: var(--violet-mid); color: var(--violet-mid); }

/* ============================================================
   Cover placeholder — branded violet card media
   (used when a post has no featured image)
   ============================================================ */
.pc-cover {
  position: relative; background: var(--violet-deep);
  overflow: hidden;
}
.pc-cover__glow { position: absolute; inset: 0; }
.pc-cover__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pc-cover__logo {
  position: absolute; right: -16px; bottom: -20px;
  width: 128px; opacity: 0.15; transform: rotate(-8deg);
}
.pc-cover img.pc-cover__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pc-cover__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,27,75,0) 40%, rgba(30,27,75,0.55) 100%);
}

/* Category tag (soft label sitting on the cover) */
.cat-tag {
  position: absolute; left: 14px; top: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-sm);
  z-index: 2;
}
.cat-tag--onphoto {
  color: #fff; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(4px);
}

/* ============================================================
   Avatar (initials)
   ============================================================ */
.avatar-initials {
  border-radius: 50%; color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}

/* ============================================================
   Post meta row
   ============================================================ */
.post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--mute);
}
.post-meta .sep { color: var(--line); }
.post-meta .author-name { color: var(--ink-2); font-weight: 500; }

/* ============================================================
   Blog home — hero
   ============================================================ */
.blog-hero {
  position: relative; overflow: hidden;
  background: var(--violet-deep); color: #fff;
  padding: 76px var(--gutter) 84px;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.blog-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 16px;
}
.blog-hero .eyebrow { color: rgba(255,255,255,0.55); }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 60px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
  margin: 0 0 18px; max-width: 820px;
}
.blog-hero p.tagline {
  font-size: 19px; color: rgba(255,255,255,0.72);
  max-width: 560px; line-height: 1.6; margin: 0;
}

/* ============================================================
   Posts section (home / archive / search body)
   ============================================================ */
.posts-section { background: var(--bg); padding: 56px var(--gutter); }
.posts-section__inner { max-width: var(--container); margin: 0 auto; }

/* Browse / category filter bar */
.browse-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.browse-bar .browse-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mute); margin-right: 4px;
}
.category-chip {
  cursor: pointer; font-family: var(--font-body);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 7px 15px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color 0.15s, color 0.15s;
}
.category-chip:hover { border-color: var(--violet-mid); color: var(--violet-mid); }
.category-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.category-chip.is-active { color: #fff; }
.category-chip.is-active .dot { background: #fff !important; }

/* ============================================================
   Featured card
   ============================================================ */
.featured-card {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-2xl); overflow: hidden;
  margin-bottom: 40px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.featured-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.featured-card__media { position: relative; min-height: 320px; }
.featured-card__media .pc-cover__logo { width: 230px; right: -30px; bottom: -40px; }
.featured-card .featured-flag {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.featured-card__body {
  padding: 40px; display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
}
.featured-card__body .cat-inline { align-self: flex-start; }
.featured-card__body h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.9px; line-height: 1.15; color: var(--ink); margin: 0;
}
.featured-card__body h2 a { color: var(--ink); }
.featured-card__body h2 a:hover { color: var(--violet-mid); }
.featured-card__body .excerpt {
  font-size: 16px; color: var(--ink-2); line-height: 1.65; margin: 0;
}
.featured-card__body .post-meta { font-size: 13px; margin-top: 4px; }

/* Category inline label (soft) */
.cat-inline {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-sm);
}

/* ============================================================
   Post grid + cards
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-2xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.post-card__media { position: relative; height: 168px; }
.post-card__body {
  padding: 20px 20px 22px; display: flex; flex-direction: column;
  gap: 11px; flex: 1;
}
.post-card__body h3, .post-card__title {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -0.4px; line-height: 1.28; color: var(--ink); margin: 0;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--violet-mid); }
.post-card__excerpt {
  font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; flex: 1;
}
.post-card .post-meta { margin-top: auto; padding-top: 4px; }

/* Section heading (used on archive/related) */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.6px; color: var(--ink); margin: 0;
}
.section-head a { font-size: 14px; font-weight: 500; }

/* Pagination (WP adds class "pagination" to all paginated nav) */
.navigation.pagination, .pc-pagination { margin-top: 44px; }
.navigation.pagination .nav-links, .pc-pagination .nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.navigation.pagination .page-numbers, .pc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--white); color: var(--ink-2);
  font-size: 14px; font-weight: 500;
}
.navigation.pagination a.page-numbers:hover, .pc-pagination a.page-numbers:hover {
  border-color: var(--violet-mid); color: var(--violet-mid);
}
.navigation.pagination .page-numbers.current, .pc-pagination .page-numbers.current {
  background: var(--violet-deep); border-color: var(--violet-deep); color: #fff;
}
/* The posts-section wraps pagination; keep it centred within the inner width */
.posts-section__inner > .navigation.pagination { max-width: 100%; }

/* ============================================================
   Single post
   ============================================================ */
.post-hero {
  position: relative; overflow: hidden;
  background: var(--violet-deep); color: #fff;
  padding: 56px var(--gutter) 64px;
}
.post-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.post-hero__glow { position: absolute; inset: 0; }
.post-hero__logo {
  position: absolute; right: -40px; bottom: -60px;
  width: 280px; opacity: 0.12; transform: rotate(-8deg);
}
.post-hero__inner { position: relative; max-width: var(--container-prose); margin: 0 auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 26px;
}
.back-link:hover { color: #fff; }
.post-hero .cat-chip-dark {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; margin-bottom: 20px;
}
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.1; margin: 0 0 24px;
}
.post-hero .post-meta { font-size: 14px; color: rgba(255,255,255,0.72); }
.post-hero .post-meta .author-name { color: #fff; font-weight: 600; }
.post-hero .post-meta .sep { color: rgba(255,255,255,0.4); }

.entry-cover-image {
  max-width: var(--container-prose); margin: -32px auto 0; padding: 0 var(--gutter);
  position: relative; z-index: 2;
}
.entry-cover-image img {
  width: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--line);
}

/* ============================================================
   Prose (long-form content)
   ============================================================ */
.prose {
  max-width: var(--container-prose); margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}
.prose > .lead {
  font-size: 20px; line-height: 1.7; color: var(--violet-deep); font-weight: 500;
}
.prose p { font-size: 17px; line-height: 1.78; color: var(--ink-2); margin: 0 0 22px; }
.prose h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.8px; color: var(--ink); margin: 44px 0 16px; line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--ink); margin: 34px 0 12px;
}
.prose h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--ink); margin: 28px 0 10px;
}
.prose ul, .prose ol {
  margin: 0 0 22px; padding-left: 22px; color: var(--ink-2);
  font-size: 17px; line-height: 1.78;
}
.prose li { margin: 0 0 8px; }
.prose a { color: var(--violet-mid); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--violet-mid);
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.4px; line-height: 1.4; color: var(--violet-deep);
}
.prose blockquote p { font: inherit; color: inherit; margin: 0; }
.prose img, .prose .wp-block-image { border-radius: var(--radius-xl); margin: 28px 0; }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; text-align: center; }
.prose pre {
  background: var(--violet-deep); color: #ede9fe; border-radius: var(--radius-xl);
  padding: 20px 22px; overflow-x: auto; font-size: 14px; margin: 28px 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  background: var(--violet-soft); color: var(--violet-deep);
  padding: 2px 6px; border-radius: var(--radius-sm);
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg); font-weight: 600; }

/* Callout block styles (registered in inc/block-styles.php) */
.is-style-postchute-note,
.postchute-note {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-xl); padding: 22px 24px; margin: 32px 0;
}
.is-style-postchute-note p, .postchute-note p { color: #78350f; margin: 0; font-size: 15px; line-height: 1.7; }
.is-style-postchute-note .callout-label, .postchute-note .callout-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: #92400e; margin-bottom: 10px; display: block;
}
.is-style-postchute-accent, .postchute-accent {
  background: var(--violet-soft); border: 1px solid #ddd6fe;
  border-radius: var(--radius-xl); padding: 22px 24px; margin: 32px 0;
}
.is-style-postchute-accent p, .postchute-accent p { color: var(--violet-deep); margin: 0; }

/* Share row + entry footer */
.entry-footer {
  max-width: var(--container-prose); margin: 0 auto;
  padding: 0 var(--gutter);
}
.share-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--line);
}
.share-row .share-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.share-btn {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 8px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.share-btn:hover { border-color: var(--violet-mid); color: var(--violet-mid); }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.tag-pill {
  font-size: 12px; color: var(--ink-2); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 12px;
}
.tag-pill:hover { border-color: var(--violet-mid); color: var(--violet-mid); }

/* Author bio */
.author-bio {
  max-width: var(--container-prose); margin: 40px auto 0; padding: 0 var(--gutter);
}
.author-bio__inner {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 22px 24px;
}
.author-bio h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.author-bio p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* AI disclosure (below post body) */
.ai-disclosure {
  max-width: var(--container-prose); margin: 40px auto 0; padding: 0 var(--gutter);
}
.ai-disclosure__inner {
  background: var(--human-soft); border: 1px solid #DDD6FE;
  border-left: 3px solid var(--human);
  border-radius: var(--radius-xl); padding: 22px 24px;
}
.ai-disclosure__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 8px;
}
.ai-disclosure p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.ai-disclosure__link { margin-top: 10px !important; }
.ai-disclosure__link a { color: var(--violet-mid); font-weight: 500; }
.ai-disclosure__link a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .ai-disclosure { padding: 0 var(--gutter-mobile); }
}

/* Related posts */
.related-section {
  background: var(--bg); border-top: 1px solid var(--line);
  margin-top: 32px; padding: 56px var(--gutter) 72px;
}
.related-section .post-card__media { height: 120px; }

/* ============================================================
   Static page template
   ============================================================ */
.page-hero { max-width: var(--container-prose); margin: 0 auto; padding: 64px var(--gutter) 24px; }
.page-hero .eyebrow { color: var(--mute); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 800;
  letter-spacing: -1.8px; line-height: 1.05; color: var(--ink); margin: 0 0 20px;
}
.page-hero .page-standfirst { font-size: 19px; color: var(--ink-2); line-height: 1.7; margin: 0; }

/* ============================================================
   Archive header
   ============================================================ */
.archive-header {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 52px var(--gutter) 40px;
}
.archive-header__inner { max-width: var(--container); margin: 0 auto; }
.archive-header .eyebrow { color: var(--mute); margin-bottom: 12px; }
.archive-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.archive-header h1 {
  font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 48px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.05; color: var(--ink); margin: 0;
}
.count-pill {
  font-size: 14px; color: var(--mute); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 14px;
}
.archive-description { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 14px 0 0; max-width: 640px; }

/* ============================================================
   Search
   ============================================================ */
.search-hero {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 52px var(--gutter) 44px;
}
.search-hero__inner { max-width: 760px; margin: 0 auto; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 0 8px 0 16px; height: 56px;
  transition: border-color 0.15s;
}
.search-field:focus-within { border-color: var(--violet-mid); }
.search-field input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 17px; color: var(--ink);
}
.search-field .search-submit {
  border: none; background: var(--violet-deep); color: #fff;
  height: 40px; padding: 0 18px; border-radius: var(--radius-md);
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: background 0.15s;
}
.search-field .search-submit:hover { background: var(--violet-mid); }
.search-summary { font-size: 14px; color: var(--mute); margin: 18px 0 0; }

.no-results-box { text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto; }
.no-results-box .nr-head {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--ink); margin-bottom: 10px;
}
.no-results-box p { font-size: 15px; color: var(--mute); line-height: 1.65; margin: 0 0 24px; }
.no-results-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   404
   ============================================================ */
.error-hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--violet-deep); color: #fff;
  padding: 96px var(--gutter) 104px;
}
.error-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.error-hero__inner { position: relative; max-width: 560px; margin: 0 auto; }
.error-code {
  font-family: var(--font-display); font-size: 96px; font-weight: 800;
  letter-spacing: -4px; line-height: 1; margin-bottom: 8px;
}
.error-hero h1 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -1px; margin: 0 0 14px;
}
.error-hero p { font-size: 17px; color: rgba(255,255,255,0.68); line-height: 1.6; margin: 0 0 32px; }
.error-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl); padding: 0 8px 0 16px; height: 52px;
  max-width: 420px; margin: 0 auto 20px;
}
.error-search:focus-within { border-color: rgba(255,255,255,0.5); }
.error-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; color: #fff;
}
.error-search input::placeholder { color: rgba(255,255,255,0.6); }
.error-search .search-submit {
  border: none; background: #fff; color: var(--violet-deep);
  height: 38px; padding: 0 16px; border-radius: var(--radius-md);
  cursor: pointer; font-weight: 600; font-size: 14px;
}
.btn-solid {
  display: inline-block; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--violet-deep); background: #fff; border: none;
  border-radius: var(--radius-lg); padding: 13px 26px;
}
.btn-solid:hover { color: var(--violet-deep); opacity: 0.9; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.site-footer__top {
  max-width: var(--container); margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
}
.footer-brand { max-width: 300px; }
.footer-brand .site-logo { font-size: 19px; margin-bottom: 12px; }
.footer-brand .site-logo img { height: 22px; }
.footer-brand p { font-size: 13.5px; color: var(--mute); line-height: 1.6; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col .footer-heading {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mute); margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--violet-mid); }
.site-footer__bottom { border-top: 1px solid var(--line); }
.site-footer__bottom .inner {
  max-width: var(--container); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.site-footer__bottom p { font-size: 13px; color: var(--mute); margin: 0; }

/* ============================================================
   WP core / accessibility helpers
   ============================================================ */
.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; word-wrap: normal !important;
}
.alignwide { max-width: 900px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { margin-bottom: 24px; }
.sticky-flag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--violet-mid); background: var(--violet-soft);
  padding: 3px 9px; border-radius: var(--radius-sm); margin-bottom: 8px;
}

/* Comments */
.comments-area { max-width: var(--container-prose); margin: 40px auto 0; padding: 40px var(--gutter) 0; }
.comments-area .comments-title { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author .fn { font-weight: 600; color: var(--ink); }
.comment-metadata { font-size: 12px; color: var(--mute); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 12px; font-family: var(--font-body); font-size: 15px; margin-top: 4px;
}
.comment-form .submit {
  background: var(--violet-deep); color: #fff; border: none;
  border-radius: var(--radius-md); padding: 11px 22px; font-weight: 600; cursor: pointer;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__media { min-height: 200px; }
  .post-grid, .post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .related-section .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: var(--gutter-mobile); }
  .site-header { padding: 0 var(--gutter-mobile); }
  .header-search { width: 200px; }
  .blog-badge { display: none; }
  .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
  .related-section .post-grid { grid-template-columns: 1fr; }
  .featured-card__body { padding: 26px 24px; }
  .blog-hero { padding: 56px var(--gutter-mobile) 60px; }
  .footer-cols { gap: 32px; }
  .primary-nav { display: none; }
}
