/*
Theme Name: TheUnsentPostcards
Theme URI: https://theunsentpostcards.com
Author: gr3en39
Author URI: https://theunsentpostcards.com
Description: A quiet, editorial-style travel journal where photography leads, words follow, and memories are intentionally left unfinished.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theunsentpostcards
Tags: blog, photography, travel, minimal, editorial
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Neutrals */
  --color-bg-primary: #F7F4EF;
  --color-bg-secondary: #EFE7DD;
  --color-border-subtle: #D8CBBE;
  --color-text-primary: #1C1C1C;
  --color-text-muted: #6B6460;

  /* Brand Accents */
  --color-accent-sage: #7C8F7A;
  --color-accent-blue: #6F8FAF;
  --color-accent-rust: #B56A4A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-heading-alt: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-quote: 'DM Serif Display', Georgia, serif;

  /* Spacing (8pt system) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1100px;
  --content-width: 680px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-subtle: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-mid: 300ms 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 {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-sage);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); font-family: var(--font-heading-alt); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-accent-sage);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section {
  padding: var(--space-5xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background var(--transition-mid);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-logo:hover {
  color: var(--color-accent-sage);
}

.site-logo span {
  color: var(--color-accent-rust);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-sage);
  transition: width var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--color-text-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
}

.hero:hover .hero__image {
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 28, 28, 0.85) 0%,
    rgba(28, 28, 28, 0.3) 50%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #F7F4EF;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero__meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(247, 244, 239, 0.6);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(247, 244, 239, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(247, 244, 239, 0.3);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent-sage);
  color: #fff;
}

.btn--primary:hover {
  background: #6a7d68;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
}

.btn--secondary:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  padding: 0;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border-subtle);
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--color-accent-sage);
  border-color: var(--color-accent-sage);
}

.btn--light {
  background: rgba(247, 244, 239, 0.15);
  color: #F7F4EF;
  border: 1px solid rgba(247, 244, 239, 0.3);
  backdrop-filter: blur(4px);
}

.btn--light:hover {
  background: rgba(247, 244, 239, 0.25);
  color: #F7F4EF;
  transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-top: var(--space-sm);
}

/* ============================================
   STORY CARDS
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.story-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-mid);
  text-decoration: none;
  display: block;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.story-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-mid);
}

.story-card:hover .story-card__image {
  transform: scale(1.03);
}

.story-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.story-card__body {
  padding: var(--space-lg);
}

.story-card__category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-rust);
  margin-bottom: var(--space-sm);
}

.story-card__title {
  font-family: var(--font-heading-alt);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.story-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__meta {
  font-size: 0.75rem;
  color: var(--color-border-subtle);
  letter-spacing: 0.04em;
}

/* ============================================
   FEATURED JOURNEY (SPLIT SECTION)
   ============================================ */

.featured-journey {
  background: var(--color-bg-secondary);
  padding: var(--space-5xl) 0;
}

.featured-journey__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.featured-journey__image-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
}

.featured-journey__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-journey__image-wrap:hover .featured-journey__image {
  transform: scale(1.04);
}

.featured-journey__content {
  padding: var(--space-xl) 0;
}

.featured-journey__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-rust);
  margin-bottom: var(--space-md);
}

.featured-journey__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.featured-journey__quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-accent-sage);
}

/* ============================================
   CATEGORIES
   ============================================ */

.categories-section {
  text-align: center;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.categories-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.category-pill {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background: var(--color-accent-sage);
  border-color: var(--color-accent-sage);
  color: #fff;
}

/* ============================================
   QUOTE SECTION
   ============================================ */

.quote-section {
  text-align: center;
  padding: var(--space-5xl) 0;
  background: var(--color-bg-primary);
}

.quote-section__text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--color-text-primary);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.quote-section__attribution {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  background: var(--color-bg-secondary);
  padding: var(--space-5xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.newsletter-section__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage);
  margin-bottom: var(--space-md);
}

.newsletter-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

.newsletter-section__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  font-style: italic;
  font-family: var(--font-quote);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-accent-sage);
}

.newsletter-input::placeholder {
  color: var(--color-border-subtle);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-text-primary);
  color: var(--color-bg-secondary);
  padding: var(--space-3xl) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #FFF;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(239, 231, 221, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-bg-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(239, 231, 221, 0.4);
  width: 100%;
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(239, 231, 221, 0.1);
}

/* ============================================
   BLOG POST (SINGLE)
   ============================================ */

.post-hero {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-header {
  max-width: var(--content-width);
  margin: var(--space-4xl) auto var(--space-2xl);
  padding: 0 var(--space-xl);
  text-align: center;
}

.post-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.post-meta__divider {
  width: 4px;
  height: 4px;
  background: var(--color-border-subtle);
  border-radius: 50%;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-5xl);
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.post-content h2,
.post-content h3 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.post-content img {
  width: calc(100% + var(--space-4xl));
  max-width: none;
  margin: var(--space-3xl) calc(-1 * var(--space-2xl));
  border-radius: var(--radius-md);
}

.post-content .pull-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--color-text-primary);
  position: relative;
}

.post-content .pull-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent-sage);
  margin: 0 auto var(--space-lg);
}

.post-content .pull-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent-sage);
  margin: var(--space-lg) auto 0;
}

/* Post End Section */
.post-end {
  font-family: var(--font-quote);
  font-style: italic;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  letter-spacing: 0.02em;
}

/* ============================================
   ARCHIVE / CATEGORY
   ============================================ */

.archive-header {
  text-align: center;
  padding: var(--space-5xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-3xl);
}

.archive-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.archive-header p {
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-quote);
  font-size: 1.05rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */

.page-header {
  text-align: center;
  padding: var(--space-5xl) 0 var(--space-3xl);
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-5xl);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
  text-align: center;
  padding: var(--space-5xl) var(--space-xl);
}

.error-page__number {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--color-border-subtle);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.error-page__message {
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-quote);
  margin-bottom: var(--space-xl);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-5xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage);
  margin-bottom: var(--space-md);
}

/* ============================================
   GALLERY PAGE
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-mid);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-3xl) 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-accent-sage);
  border-color: var(--color-accent-sage);
  color: #fff;
}

/* ============================================
   PLACEHOLDER IMAGE
   ============================================ */

.placeholder-image {
  width: 100%;
  height: 100%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border-subtle);
  font-size: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .featured-journey__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
    gap: var(--space-lg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .section-header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .post-content img {
    width: 100%;
    margin: var(--space-2xl) 0;
  }

  .hero {
    height: 75vh;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container,
  .container--narrow {
    padding: 0 var(--space-md);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMMENTS FORM
   ============================================ */

#commentform {
  max-width: var(--content-width);
  margin: var(--space-3xl) auto;
}

#commentform label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  outline: none;
  border-color: var(--color-accent-sage);
  background: var(--color-bg-primary);
}

#commentform textarea {
  min-height: 150px;
  resize: vertical;
}

#commentform p {
  margin-bottom: var(--space-lg);
}

#commentform .required {
  color: var(--color-accent-rust);
}

#commentform #submit {
  background: var(--color-accent-sage);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#commentform #submit:hover {
  background: #6a7d68;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   WORDPRESS CORE STYLES
   ============================================ */

.alignleft { float: left; margin-right: var(--space-lg); }
.alignright { float: right; margin-left: var(--space-lg); }
.aligncenter { margin: 0 auto; text-align: center; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }

.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  margin-top: var(--space-sm);
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-sage);
  color: #fff;
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
