/* ==========================================================================
   The Two Tors — Long Tor & Lox Tor (Dartmoor)
   Woodland Trust & National Trust Inspired Forest Heritage Stylesheet
   ========================================================================== */

:root {
  /* Deep Dartmoor Forest Palette */
  --forest-deepest: #0f2318;
  --forest-deep: #163022;
  --forest-primary: #1f4430;
  --forest-mid: #2b593f;
  --forest-fern: #3d7352;
  --forest-sage: #5b8769;
  --forest-mist: #e8efe9;
  --forest-LightTint: #f1f5f1;

  /* Dartmoor Granite, Bracken & Parchment */
  --bg-parchment: #f5f2eb;
  --bg-stone: #ebe6db;
  --bg-card: #ffffff;
  --border-stone: #dcd5c7;
  --border-subtle: #e5e0d4;

  /* Warm Oak & Bracken Gold Accents */
  --oak-gold: #a67329;
  --oak-amber: #c28b3b;
  --oak-tint: #fbf5eb;

  /* Typography Colours */
  --ink-primary: #1b241e;
  --ink-secondary: #3f4d43;
  --ink-muted: #5f6e63;
  --ink-on-dark: #f4f7f4;

  /* Typography Families */
  --font-serif: 'Cormorant Garamond', 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Elevation */
  --container-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 35, 24, 0.09);
  --shadow-lg: 0 16px 42px rgba(15, 35, 24, 0.16);
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-primary);
  background-color: var(--bg-parchment);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(43, 89, 63, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(166, 115, 41, 0.04) 0%, transparent 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--oak-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--forest-deepest);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.65em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.2em;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--forest-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

/* ==========================================================================
   Top Woodland Utility Header
   ========================================================================== */
.top-header {
  background-color: var(--forest-deepest);
  color: var(--ink-on-dark);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.top-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.top-contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 244, 0.88);
}

.top-contact-list a {
  color: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.top-contact-list a:hover {
  color: #e3c184;
  border-bottom-color: rgba(227, 193, 132, 0.5);
}

.top-contact-list svg {
  width: 15px;
  height: 15px;
  color: #8ab89a;
  flex-shrink: 0;
}

.top-badge {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8d4c1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Main Header & Navigation (National Trust / Woodland Trust Style)
   ========================================================================== */
.site-header {
  background-color: var(--forest-deep);
  background-image: linear-gradient(180deg, rgba(15, 35, 24, 0.45) 0%, rgba(22, 48, 34, 0.98) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(10, 24, 16, 0.22);
  border-bottom: 3px solid var(--oak-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #ffffff;
}

.brand:hover {
  color: #ffffff;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(194, 139, 59, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfbe86;
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition);
}

.brand:hover .brand-emblem {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.13);
}

.brand-emblem svg {
  width: 28px;
  height: 28px;
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand-text p {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: #bad1c1;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.site-nav a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.site-nav a.active {
  color: #ffffff;
  background-color: var(--forest-mid);
  box-shadow: inset 0 -2px 0 var(--oak-amber);
}

/* ==========================================================================
   Main Content Layout & Section Switching
   ========================================================================== */
.main-container {
  flex: 1;
  padding: 40px 0 68px;
}

.view-section {
  display: none;
  animation: fadeInView 0.32s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Home Section (Dartmoor Hidden Gem + Woodland Sidebar)
   ========================================================================== */
.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  background-color: var(--forest-deep);
  border: 1px solid var(--border-stone);
}

.hero-banner-card img {
  width: 100%;
  height: auto;
  min-height: 240px;
  max-height: 380px;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 35, 24, 0.82) 0%, rgba(15, 35, 24, 0.25) 55%, rgba(15, 35, 24, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e4c287;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-banner-overlay h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 36px;
  align-items: start;
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 38px 42px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-stone);
}

.content-card h2.entry-title {
  font-size: 2.1rem;
  color: var(--forest-deep);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--forest-mist);
}

.entry-content p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 1.35em;
}

.entry-content p.lead-paragraph {
  font-size: 1.18rem;
  color: var(--ink-primary);
  font-weight: 500;
}

/* Home Feature Highlights */
.woodland-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.pillar-item {
  background: var(--forest-LightTint);
  border: 1px solid #d5e2d8;
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.pillar-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--forest-sage);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--forest-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-item h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--forest-deep);
}

.pillar-item p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* Sidebar Location & Details Card */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-stone);
}

.sidebar-card-header {
  background: var(--forest-deep);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--oak-gold);
}

.sidebar-card-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
}

.sidebar-card-header svg {
  width: 20px;
  height: 20px;
  color: #e4c287;
}

.sidebar-card-body {
  padding: 22px;
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.location-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.location-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.location-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-label svg {
  width: 14px;
  height: 14px;
  color: var(--forest-primary);
}

.location-value {
  font-size: 0.98rem;
  color: var(--ink-primary);
  font-weight: 500;
  word-break: break-word;
}

.location-value a {
  color: var(--forest-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.location-value a:hover {
  color: var(--oak-gold);
  text-decoration: underline;
}

.btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--forest-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-forest:hover {
  background-color: var(--forest-deep);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--forest-primary);
  border: 1.5px solid var(--forest-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline-forest:hover {
  background-color: var(--forest-primary);
  color: #ffffff;
}

.estate-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fact-box {
  background: var(--bg-parchment);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.fact-box strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest-deep);
}

.fact-box span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section Headers (Gallery, Journal, History)
   ========================================================================== */
.section-banner {
  background: var(--forest-deep);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(194, 139, 59, 0.16) 0%, transparent 50%),
    linear-gradient(135deg, var(--forest-deepest) 0%, var(--forest-primary) 100%);
  color: #ffffff;
  padding: 36px 40px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--oak-gold);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.section-banner-content {
  max-width: 720px;
}

.section-banner-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e4c287;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.section-banner h2 {
  color: #ffffff;
  font-size: 2.35rem;
  margin: 0 0 8px;
}

.section-banner p {
  color: rgba(244, 247, 244, 0.86);
  margin: 0;
  font-size: 1.02rem;
}

.section-meta-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2ede5;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Gallery Section & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-stone);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2dfd7;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 35, 24, 0.78);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--transition);
}

.gallery-card:hover .gallery-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-footer {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0;
}

.gallery-card-filename {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: monospace;
  background: var(--bg-parchment);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 15, 0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 1120px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 76vh;
  width: 100%;
}

.lightbox-img-stage img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-toolbar {
  width: 100%;
  max-width: 900px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: rgba(22, 48, 34, 0.85);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}

.lightbox-caption-group h4 {
  color: #ffffff;
  margin: 0;
  font-size: 1.2rem;
}

.lightbox-caption-group span {
  font-size: 0.82rem;
  color: #b8d4c1;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--transition);
}

.lightbox-btn:hover {
  background: var(--forest-mid);
  color: #ffffff;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 48, 34, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-nav-btn:hover {
  background: var(--oak-gold);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: 0;
  background: rgba(22, 48, 34, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.lightbox-close:hover {
  background: #b93829;
}

/* ==========================================================================
   Journal & History Blog Styling (National Trust Editorial Cards & Full View)
   ========================================================================== */
.articles-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-stone);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card-header {
  padding: 32px 38px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--forest-LightTint) 0%, #ffffff 100%);
}

.blog-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.blog-category-badge {
  background: var(--forest-primary);
  color: #ffffff;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-filename-badge {
  margin-left: auto;
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--ink-muted);
  background: var(--bg-parchment);
  padding: 2px 8px;
  border-radius: 4px;
}

.blog-card-title {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  color: var(--forest-deepest);
  margin: 0;
}

.blog-card-body {
  padding: 28px 38px 36px;
}

/* Styling for arbitrary HTML articles loaded from /journal and /history */
.article-rendered-content {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-rendered-content h1:first-child {
  display: none; /* Already shown in card header */
}

.article-rendered-content .article-meta {
  display: none; /* Already extracted into card header */
}

.article-rendered-content p.lead {
  font-size: 1.18rem;
  color: var(--ink-primary);
  font-weight: 500;
  line-height: 1.7;
}

.article-rendered-content figure,
.article-rendered-content .article-figure {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-stone);
  background: var(--bg-parchment);
}

.article-rendered-content figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-rendered-content figcaption {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
  background: var(--bg-parchment);
  border-top: 1px solid var(--border-subtle);
}

.article-rendered-content blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  background: var(--forest-LightTint);
  border-left: 4px solid var(--forest-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-style: italic;
  color: var(--forest-deep);
}

.article-rendered-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Empty / Loading State */
.status-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-stone);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--forest-deepest);
  color: rgba(244, 247, 244, 0.82);
  border-top: 4px solid var(--forest-primary);
  padding: 42px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.92rem;
  color: rgba(244, 247, 244, 0.75);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(244, 247, 244, 0.82);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #e4c287;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(244, 247, 244, 0.65);
}

.footer-bottom a {
  color: #ffffff;
}

/* ==========================================================================
   Protected Page (/lerping) Specific Styles
   ========================================================================== */
.password-gate-card {
  max-width: 540px;
  margin: 36px auto;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-stone);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.password-gate-header {
  background: var(--forest-deep);
  color: #ffffff;
  padding: 28px 32px;
  text-align: center;
  border-bottom: 3px solid var(--oak-gold);
}

.password-gate-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(228, 194, 135, 0.6);
  color: #e4c287;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.password-gate-header h2 {
  color: #ffffff;
  font-size: 1.85rem;
  margin: 0 0 6px;
}

.password-gate-header p {
  color: #bad1c1;
  font-size: 0.92rem;
  margin: 0;
}

.password-gate-body {
  padding: 32px;
}

.password-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.password-field-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border-stone);
  border-radius: var(--radius-sm);
  background: var(--bg-parchment);
  color: var(--ink-primary);
  transition: border-color var(--transition), background-color var(--transition);
}

.password-input-wrap input:focus {
  outline: none;
  border-color: var(--forest-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 68, 48, 0.12);
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.password-error {
  display: none;
  background: #fdf2f2;
  border: 1px solid #f2b8b5;
  color: #8c1d18;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.password-error.visible {
  display: block;
}

.lerping-unlocked-article {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-stone);
  box-shadow: var(--shadow-sm);
  padding: 44px 52px;
}

.lerping-unlocked-article h1 {
  font-size: 2.2rem;
  color: var(--forest-deep);
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--forest-mist);
}

.lerping-unlocked-article img {
  border-radius: var(--radius-sm);
  margin: 18px auto;
}

.lerping-dagger-feature {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--forest-LightTint);
  border: 1px solid #d5e2d8;
  border-left: 4px solid var(--oak-gold);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.lerping-dagger-feature img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0;
}

.lerping-unlocked-article blockquote {
  background: var(--oak-tint);
  border-left: 4px solid var(--oak-gold);
  padding: 20px 26px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lerping-unlocked-article ul {
  padding-left: 22px;
  margin-bottom: 24px;
}

.lerping-unlocked-article li {
  margin-bottom: 10px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .woodland-pillars {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .content-card,
  .blog-card-header,
  .blog-card-body,
  .lerping-unlocked-article {
    padding: 24px 20px;
  }

  .hero-banner-overlay {
    padding: 20px;
  }

  .section-banner {
    padding: 26px 22px;
  }
}
