/*
Theme Name: Catsup
Theme URI: https://catsup.io
Author: Catsup Media LLC
Author URI: https://catsup.io
Description: A clean, fast, editorial WordPress theme for catsup.io — the internet's definitive source for ketchup history, news, reviews, and culture. Built with performance and readability in mind.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: catsup
Tags: blog, news, editorial, food, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --c-red: #C41E1E;
  --c-red-dark: #8B1A1A;
  --c-rust: #D44A2C;
  --c-cream: #F7F2E8;
  --c-cream-light: #FDF6EE;
  --c-brown-dark: #2A1A0A;
  --c-brown-deep: #3A2A1A;
  --c-brown-mid: #5C4A30;
  --c-brown-soft: #6B5A40;
  --c-tan: #8B6B4A;
  --c-tan-light: #B8A890;
  --c-border: #E2D9C8;
  --c-border-dark: #3D2E1E;
  --c-white: #FFFFFF;
  --c-text: #3A2A1A;
  --c-text-light: #6B5A40;

  --font-display: 'Source Serif 4', serif;
  --font-body: 'Source Serif 4', serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --content-width: 720px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 20px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-brown-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

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

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--c-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 6px;
}

.site-brand__icon-img {
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 4px;
}

.site-brand__icon {
  display: none;
  width: 30px;
  height: 30px;
  background: var(--c-cream);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.site-brand__name {
  color: var(--c-cream);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: 'Newsreader', serif;
  text-transform: uppercase;
  line-height: 1;
}

.site-brand__name a { color: inherit; }

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--c-cream);
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.9;
  transition: opacity var(--transition);
  text-transform: capitalize;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  opacity: 1;
  border-bottom: 1.5px solid var(--c-cream);
  padding-bottom: 2px;
}

/* Dropdown Menus */
.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  padding-top: 20px;
  padding-bottom: 20px;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--c-brown-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  z-index: 1000;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.main-nav > ul > li:hover > .sub-menu {
  display: flex;
}

.main-nav .sub-menu li {
  width: 100%;
}

.main-nav .sub-menu a {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  text-transform: none;
  white-space: nowrap;
  border-bottom: none;
  opacity: 1;
  transition: background 0.15s, color 0.15s;
}

.main-nav .sub-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-bottom: none;
  padding-bottom: 7px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-cream);
  margin: 4px 0;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--c-red-dark) 0%, var(--c-red) 40%, var(--c-rust) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #F7C2A0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 2.25rem;
  color: var(--c-cream);
  margin-bottom: 14px;
  max-width: 540px;
}

.hero__desc {
  font-size: 15px;
  color: #F0BFA8;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-cream);
  color: var(--c-red-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 24px;
  letter-spacing: 0.5px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__cta:hover {
  transform: translateY(-1px);
  color: var(--c-red-dark);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.section-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
}

.section-label__dot--rust { background: var(--c-rust); }
.section-label__dot--tan { background: var(--c-tan); }

.section-label__text {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-tan);
  font-weight: 500;
  text-transform: uppercase;
}

.section-label__line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
  margin-left: 8px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(42, 26, 10, 0.06);
}

.card__image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card__image--red { background-color: var(--c-red-dark); }
.card__image--rust { background-color: var(--c-rust); }
.card__image--tan { background-color: var(--c-tan); }
.card__image--brown { background-color: var(--c-brown-mid); }
.card__image--green { background-color: #2A6B4A; }

.card__body { padding: 16px; }

.card__category {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-block;
}

.cat-history { background: #FAE8D0; color: #854F0B; }
.cat-interview { background: #E8D6D6; color: #8B4A4A; }
.cat-review { background: #E8D6D6; color: #8B4A4A; }
.cat-culture { background: #D6E0E8; color: #4A5A6B; }
.cat-science { background: #D6E8D6; color: #4A6B4A; }
.cat-opinion { background: #E8E0D6; color: #5C4A30; }
.cat-news { background: #FAE8D0; color: #854F0B; }

.card__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-brown-dark);
  margin: 6px 0 8px;
  line-height: 1.3;
}

.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-red); }

.card__excerpt {
  font-size: 12px;
  color: var(--c-text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--c-tan);
}

.card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-cream);
  background: var(--c-red);
}

.card__meta-sep { color: var(--c-tan-light); }

/* Small cards */
.card--small {
  padding: 12px;
}

.card--small .card__date {
  font-size: 10px;
  color: var(--c-tan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card--small .card__title {
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
}

/* ============================================
   POST LIST (Blog archive)
   ============================================ */
.post-list-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: flex-start;
}

.post-list-item:last-child { border-bottom: none; }

.post-list-item__thumb {
  min-width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.post-list-item__content { flex: 1; }

.post-list-item__header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.post-list-item__date {
  font-size: 11px;
  color: var(--c-tan-light);
}

.post-list-item__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-brown-dark);
  margin-bottom: 5px;
  line-height: 1.35;
}

.post-list-item__title a { color: inherit; }
.post-list-item__title a:hover { color: var(--c-red); }

.post-list-item__excerpt {
  font-size: 12px;
  color: var(--c-text-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.cat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-filter {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
  transition: all var(--transition);
}

.cat-filter:hover { border-color: var(--c-red); color: var(--c-red); }

.cat-filter--active {
  background: var(--c-red);
  color: var(--c-cream);
  border-color: var(--c-red);
  font-weight: 500;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-red);
  transition: all var(--transition);
  display: block;
  width: 100%;
}

.load-more:hover {
  background: var(--c-red);
  color: var(--c-cream);
  border-color: var(--c-red);
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-header {
  padding: 24px 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-tan);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--c-tan); }
.breadcrumb a:hover { color: var(--c-red); }

.post-header__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.post-header__readtime {
  font-size: 11px;
  color: var(--c-tan);
}

.post-header__title {
  font-size: 1.875rem;
  max-width: 600px;
  margin-bottom: 14px;
}

.post-header__subtitle {
  font-size: 15px;
  color: var(--c-text-light);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.post-author-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-cream);
}

.post-author-bar__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-brown-dark);
}

.post-author-bar__date {
  font-size: 11px;
  color: var(--c-tan);
  margin-top: 2px;
}

.post-author-bar__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.post-author-bar__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.post-author-bar__btn:hover { border-color: var(--c-red); }

/* Featured image */
.post-featured-image {
  margin: 0 -24px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Article content */
.post-content {
  padding: 32px 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
}

.post-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.875rem;
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.post-content blockquote {
  border-left: 3px solid var(--c-red);
  padding: 14px 20px;
  margin: 1.5rem 0;
  background: var(--c-cream-light);
  border-radius: 0;
  font-style: italic;
  color: #6B4A2A;
}

.post-content blockquote cite {
  display: block;
  font-size: 12px;
  color: var(--c-tan);
  margin-top: 8px;
  font-style: normal;
}

.post-content .drop-cap::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 1;
  margin: 0 8px 0 0;
  color: var(--c-red);
  font-weight: 500;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  margin-bottom: 24px;
}

.post-tag {
  font-size: 11px;
  background: #F0E6D6;
  color: var(--c-text-light);
  padding: 4px 12px;
  border-radius: 14px;
  transition: background var(--transition);
}

.post-tag:hover { background: #E2D9C8; color: var(--c-text); }

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-cream);
  flex-shrink: 0;
}

.author-box__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-brown-dark);
}

.author-box__bio {
  font-size: 12px;
  color: var(--c-tan);
  margin-top: 3px;
  line-height: 1.4;
}

.author-box__follow {
  font-size: 12px;
  color: var(--c-red);
  border: 1px solid var(--c-red);
  padding: 6px 14px;
  border-radius: 16px;
  white-space: nowrap;
  margin-left: auto;
  transition: all var(--transition);
}

.author-box__follow:hover {
  background: var(--c-red);
  color: var(--c-cream);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--c-border);
}

.timeline__item {
  position: relative;
  margin-bottom: 20px;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-red);
  border: 2px solid var(--c-cream);
}

.timeline__card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.timeline__date {
  font-size: 11px;
  color: var(--c-red);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.5;
}

/* ============================================
   COMPARISON (vs page)
   ============================================ */
.vs-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.vs-hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
}

.vs-hero__bg-left { flex: 1; background: var(--c-red-dark); }
.vs-hero__bg-divider { width: 2px; background: var(--c-cream); }
.vs-hero__bg-right { flex: 1; background: var(--c-brown-dark); }

.vs-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.vs-hero__label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #F0BFA8;
  margin-bottom: 10px;
}

.vs-hero__titles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vs-hero__word {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--c-cream);
  font-family: var(--font-display);
}

.vs-hero__badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-red);
}

.vs-hero__desc {
  font-size: 14px;
  color: #D4B8A0;
  margin-top: 14px;
  max-width: 460px;
  display: inline-block;
  line-height: 1.5;
}

/* Side-by-side panels */
.vs-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.vs-panel { padding: 20px; }
.vs-panel--left {
  background: var(--c-cream-light);
  border-right: 1px solid var(--c-border);
}
.vs-panel--right { background: var(--c-white); }

.vs-panel__title {
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 14px;
}

.vs-panel__desc {
  font-size: 13px;
  color: var(--c-text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.vs-point {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--c-text);
}

.vs-point__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Comparison table */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vs-table th,
.vs-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #F0E6D6;
}

.vs-table thead th {
  border-bottom: 1px solid var(--c-border);
  font-weight: 500;
}

.vs-table thead th:first-child { color: var(--c-red-dark); background: var(--c-cream-light); }
.vs-table thead th:last-child { color: var(--c-brown-dark); }

.vs-table tbody td:nth-child(2) {
  color: var(--c-tan);
  background: #FDFAF4;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  font-size: 12px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
  text-align: center;
  padding: 16px 8px;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

.stat-card__number {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--c-red);
}

.stat-card__label {
  font-size: 11px;
  color: var(--c-tan);
  margin-top: 4px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form label {
  font-size: 12px;
  color: var(--c-tan);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--c-text);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--c-red);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .form-group { margin-bottom: 16px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.btn--primary {
  background: var(--c-red);
  color: var(--c-cream);
}

.btn--primary:hover { background: var(--c-red-dark); color: var(--c-cream); }

.btn--outline {
  background: none;
  border: 1px solid var(--c-red);
  color: var(--c-red);
}

.btn--outline:hover {
  background: var(--c-red);
  color: var(--c-cream);
}

.btn--pill { border-radius: var(--radius-pill); }

.btn--block { width: 100%; }

/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.info-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.info-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.info-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-brown-dark);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.info-card__email {
  font-size: 13px;
  color: var(--c-red);
}

.info-card__desc {
  font-size: 12px;
  color: var(--c-tan);
  margin-top: 4px;
}

/* ============================================
   PAGE HEADER (generic)
   ============================================ */
.page-header {
  padding: 40px 0 28px;
  text-align: center;
}

.page-header__label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--c-tan);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-header__title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header__desc {
  font-size: 14px;
  color: var(--c-text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.page-header__date {
  font-size: 13px;
  color: var(--c-tan);
  margin-top: 4px;
}

/* ============================================
   PRIVACY / LEGAL PAGES
   ============================================ */
.legal-toc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.legal-toc__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-tan);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.legal-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc__list a {
  font-size: 13px;
  color: var(--c-red);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.legal-section__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-cream);
  flex-shrink: 0;
}

.legal-section__title {
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-body);
}

.legal-section__body {
  padding-left: 38px;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-brown-dark);
}

.footer-newsletter {
  padding: 24px;
  border-bottom: 1px solid var(--c-border-dark);
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-newsletter__text { flex: 1; }

.footer-newsletter__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-cream);
  font-family: var(--font-body);
}

.footer-newsletter__desc {
  font-size: 12px;
  color: #8B7A60;
  margin-top: 4px;
}

.footer-newsletter__form {
  display: flex;
  gap: 8px;
}

.footer-newsletter__input {
  background: var(--c-border-dark);
  border: 1px solid #4D3E2E;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--c-cream);
  min-width: 200px;
  font-family: var(--font-body);
}

.footer-newsletter__input::placeholder { color: var(--c-brown-soft); }

.footer-newsletter__input:focus {
  outline: none;
  border-color: var(--c-red);
}

.footer-newsletter__submit {
  background: var(--c-red);
  color: var(--c-cream);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background var(--transition);
}

.footer-newsletter__submit:hover { background: var(--c-red-dark); }

/* Footer columns */
.footer-columns {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--c-border-dark);
}

.footer-brand__desc {
  font-size: 12px;
  color: var(--c-brown-soft);
  line-height: 1.6;
  margin: 14px 0;
  max-width: 200px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social__link {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--c-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social__link:hover { background: var(--c-brown-mid); }
.footer-social__link svg { fill: #8B7A60; }

.footer-col__title {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #8B7A60;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__list a {
  font-size: 13px;
  color: var(--c-tan-light);
  transition: color var(--transition);
}

.footer-col__list a:hover { color: var(--c-cream); }

/* Footer bottom */
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom__text {
  font-size: 11px;
  color: var(--c-brown-mid);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.5s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--c-red);
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav a { font-size: 14px; }

  .main-nav .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    max-height: none;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 4px 0 4px 16px;
    display: none;
  }

  .main-nav .sub-menu {
    display: none;
  }

  .main-nav .sub-menu a {
    font-size: 12px;
    padding: 4px 0;
    color: rgba(255,255,255,0.6);
  }

  .hero__title { font-size: 1.75rem; }
  .vs-hero__word { font-size: 1.75rem; }
  .page-header__title { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .vs-panels { grid-template-columns: 1fr; }
  .vs-panel--left { border-right: none; border-bottom: 1px solid var(--c-border); }

  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .post-list-item__thumb { min-width: 64px; height: 64px; }

  .contact-layout { grid-template-columns: 1fr !important; }

  .author-box { flex-direction: column; text-align: center; }
  .author-box__follow { margin-left: 0; margin-top: 8px; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 0; }
  .hero__title { font-size: 1.5rem; }
  .post-header__title { font-size: 1.5rem; }
  .footer-columns { grid-template-columns: 1fr; }
}

/* ============================================
   IMAGE CAPTIONS & LICENSES (Catsup Style)
   ============================================ */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-image figcaption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-brown-mid);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.3;
}

.wp-block-image .image-license {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--c-tan-light);
  text-align: center;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.wp-block-image img {
  border-radius: var(--radius);
}

figure.wp-block-image {
  overflow: visible;
}

/* ============================================
   EDITORIAL PAGE DESIGN
   ============================================ */

/* -- Variables for editorial pages -- */
.ed-hero,
.ed-main {
  --ed-primary: #940003;
  --ed-primary-container: #bf0a0a;
  --ed-on-primary: #ffffff;
  --ed-surface: #faf9f7;
  --ed-surface-container: #efeeec;
  --ed-surface-container-low: #f4f3f1;
  --ed-surface-container-high: #e9e8e6;
  --ed-surface-container-highest: #e3e2e0;
  --ed-on-surface: #1a1c1b;
  --ed-on-surface-variant: #5d403b;
  --ed-outline: #916f6a;
  --ed-outline-variant: #e6bdb7;
  --ed-secondary: #5f5e5e;
  --ed-font-headline: 'Newsreader', serif;
  --ed-font-body: 'Work Sans', sans-serif;
  --ed-font-label: 'Work Sans', sans-serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  vertical-align: middle;
  display: inline-block;
}

/* -- Hero Section -- */
.ed-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--ed-surface);
  overflow: hidden;
}

.ed-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ed-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: brightness(0.75);
}

.ed-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
}

.ed-hero__label {
  font-family: var(--ed-font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-primary);
  margin-bottom: 2rem;
  display: block;
}

.ed-hero__title {
  font-family: var(--ed-font-headline) !important;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--ed-on-surface);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 0;
}

.ed-hero__divider {
  width: 6rem;
  height: 1px;
  background: var(--ed-primary);
  margin: 2.5rem auto;
}

.ed-hero__subtitle {
  font-family: var(--ed-font-headline);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--ed-on-surface-variant);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.6;
}

.ed-hero__meta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.ed-hero__readtime {
  font-family: var(--ed-font-label);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ed-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ed-hero__readtime .material-symbols-outlined {
  font-size: 16px;
  color: var(--ed-primary);
}

/* -- Main Content Container -- */
.ed-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

@media (min-width: 768px) {
  .ed-main { padding: 0 3rem 6rem; }
}

@media (min-width: 1024px) {
  .ed-main { padding: 0 6rem 6rem; }
}

/* -- Editorial Content Styling -- */
.ed-content {
  max-width: 100%;
}

.ed-content h2 {
  font-family: var(--ed-font-headline) !important;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ed-on-surface);
  line-height: 1.15;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(230, 189, 183, 0.2);
}

.ed-content h2:first-child {
  margin-top: 3rem;
  border-top: none;
  padding-top: 0;
}

.ed-content h3 {
  font-family: var(--ed-font-headline) !important;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ed-primary);
  font-style: italic;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.ed-content p {
  font-family: var(--ed-font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ed-on-surface-variant);
  margin-bottom: 1.5rem;
}

.ed-content strong {
  color: var(--ed-on-surface);
  font-weight: 600;
}

.ed-content a {
  color: var(--ed-primary);
  text-decoration: underline;
  text-decoration-color: rgba(148, 0, 3, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.ed-content a:hover {
  text-decoration-color: var(--ed-primary);
}

/* -- Lists in editorial content -- */
.ed-content ul,
.ed-content ol {
  font-family: var(--ed-font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ed-on-surface-variant);
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.ed-content ul li,
.ed-content ol li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.ed-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--ed-primary);
}

.ed-content ol {
  counter-reset: ed-counter;
}

.ed-content ol li {
  counter-increment: ed-counter;
}

.ed-content ol li::before {
  content: counter(ed-counter);
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-family: var(--ed-font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ed-primary);
}

/* -- Images in editorial content -- */
.ed-content .wp-block-image {
  margin: 3rem 0;
}

.ed-content .wp-block-image img {
  border-radius: 2px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  filter: grayscale(100%);
  transition: filter 0.7s ease, box-shadow 0.3s ease;
}

.ed-content .wp-block-image:hover img {
  filter: grayscale(0%);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.ed-content .wp-block-image figcaption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ed-on-surface-variant);
  text-align: center;
  margin-top: 0.75rem;
}

.ed-content .wp-block-image .image-license {
  font-family: var(--ed-font-label);
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--ed-outline);
  letter-spacing: 0.03em;
}

/* -- Tables in editorial content -- */
.ed-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ed-font-body);
  font-size: 0.95rem;
  margin: 2rem 0;
  background: var(--ed-surface-container-low);
}

.ed-content table th {
  font-family: var(--ed-font-label);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ed-primary);
  background: var(--ed-surface-container-highest);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--ed-primary);
}

.ed-content table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ed-outline-variant);
  color: var(--ed-on-surface-variant);
}

.ed-content table tr:hover td {
  background: var(--ed-surface-container-high);
}

/* -- Blockquotes -- */
.ed-content blockquote {
  border-left: 4px solid var(--ed-primary);
  background: var(--ed-surface-container-low);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.ed-content blockquote p {
  font-family: var(--ed-font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ed-secondary);
  margin-bottom: 0;
}

/* -- FAQ Schema Blocks -- */
.ed-content .schema-faq {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ed-outline-variant);
}

.ed-content .schema-faq-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(230, 189, 183, 0.3);
}

.ed-content .schema-faq-question {
  font-family: var(--ed-font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ed-on-surface);
  display: block;
  margin-bottom: 0.75rem;
}

.ed-content .schema-faq-answer {
  font-family: var(--ed-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ed-on-surface-variant);
}

/* -- Accent text utility -- */
.ed-accent {
  color: var(--ed-primary);
  font-style: italic;
}

/* -- Child Pages Grid -- */
.ed-children {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--ed-outline-variant);
}

.ed-children__title {
  font-family: var(--ed-font-headline) !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--ed-on-surface);
}

.ed-children__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ed-children__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ed-children__grid { grid-template-columns: repeat(3, 1fr); }
}

.ed-child-card {
  display: flex;
  flex-direction: column;
  background: var(--ed-surface-container-low);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.ed-child-card:hover {
  border-color: var(--ed-outline-variant);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ed-child-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ed-surface-container);
}

.ed-child-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.ed-child-card:hover .ed-child-card__image img {
  filter: grayscale(0%);
}

.ed-child-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ed-child-card__title {
  font-family: var(--ed-font-headline) !important;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ed-on-surface);
  margin: 0;
  line-height: 1.3;
}

.ed-child-card__arrow {
  flex-shrink: 0;
  color: var(--ed-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.ed-child-card:hover .ed-child-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* -- Sibling Pages Navigation -- */
.ed-siblings {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--ed-surface-container-highest);
  opacity: 0.7;
}

.ed-siblings:hover {
  opacity: 1;
  transition: opacity 0.3s;
}

.ed-siblings__header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ed-siblings__label {
  font-family: var(--ed-font-label);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ed-secondary);
}

.ed-siblings__parent {
  font-family: var(--ed-font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ed-primary);
  text-decoration: none;
}

.ed-siblings__parent:hover {
  text-decoration: underline;
}

.ed-siblings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ed-siblings__grid { grid-template-columns: repeat(2, 1fr); }
}

.ed-sibling-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ed-font-body);
  font-size: 0.95rem;
  color: var(--ed-on-surface-variant);
  text-decoration: none;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.ed-sibling-link:hover {
  background: white;
  color: var(--ed-primary);
}

.ed-sibling-link .material-symbols-outlined {
  font-size: 16px;
  color: var(--ed-primary);
}

/* -- Author Bio Box -- */
.ed-author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--ed-surface-container-low, #f4f3f1);
  border-left: 4px solid var(--ed-primary, #940003);
}

.ed-author-bio__avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--ed-primary, #940003);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ed-font-headline, 'Newsreader', serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.ed-author-bio__label {
  font-family: var(--ed-font-label, 'Work Sans', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ed-primary, #940003);
  margin-bottom: 0.25rem;
}

.ed-author-bio__name {
  font-family: var(--ed-font-headline, 'Newsreader', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ed-on-surface, #1a1c1b);
  margin-bottom: 0.5rem;
}

.ed-author-bio__desc {
  font-family: var(--ed-font-body, 'Work Sans', sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ed-on-surface-variant, #5d403b);
  margin: 0;
}

@media (max-width: 480px) {
  .ed-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

/* -- Hero responsive -- */
@media (max-width: 768px) {
  .ed-hero {
    min-height: 500px;
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .ed-hero {
    min-height: 400px;
    padding: 3rem 1rem;
  }
  .ed-hero__divider {
    margin: 1.5rem auto;
  }
  .ed-children__grid {
    grid-template-columns: 1fr;
  }
}
