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

:root {
  --ink:        #1A0F0D;
  --brown:      #2C1810;
  --teal:       #006B62;
  --teal-light: #00A896;
  --copper:     #B07040;
  --amber:      #D4925A;
  --ivory:      #FAF7F1;
  --cream:      #F3EAD6;
  --linen:      #EDE3CE;
  --mist:       #EEF5F4;
  --slate:      #8A7E76;
  --white:      #FFFFFF;

  --color-sand: #F4F1EB;
  --color-copper: #B85B38;
  --color-copper-dark: #9A4A2B;
  --text-dark: #2A1A17;
  --text-light: #FDFCFB;
  --font-main: 'Lato', sans-serif;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --ease-expo:   ease;
  --ease-back:   ease;
  --ease-smooth: ease;

  --max:    1240px;
  --gutter: clamp(20px, 5vw, 80px);
}

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

body {
  
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

button, a {
  -webkit-tap-highlight-color: rgba(0, 168, 150, 0.2);
  -webkit-user-select: none;
  user-select: none;
}

button, a, input, textarea, select {
  -webkit-touch-callout: none;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  font-size: 16px;
}

input:focus, textarea:focus, button:focus {
  outline: 2px solid #006B62;
  outline-offset: 2px;
}

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

button, a.btn, input[type="button"], input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  color: var(--brown);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: #fff; font-size: 20px; }

.hero {
  position: relative; min-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('https://i.postimg.cc/WbR6n43T/IMG-2435.webp') center 40%/cover no-repeat;
  transform: scale(1.06); animation: heroZoom 20s ease-in-out infinite alternate; will-change: transform;
}

@keyframes heroZoom { to { transform: scale(1.0); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(26,15,13,0.18) 0%,
    rgba(26,15,13,0.45) 40%,
    rgba(26,15,13,0.88) 80%,
    rgba(26,15,13,0.97) 100%);
}

.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.hero-inner {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) 64px; max-width: 100%;
}

.hero-top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: 110px var(--gutter) 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

.hero-vol {
  display: flex; flex-direction: column;
  opacity: 0; animation: fadeUpIn 1s 0.3s var(--ease-expo) forwards;
}

.vol-label { font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(212,146,90,0.65); margin-bottom: 4px; }

.vol-num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.85); }

.hero-tagline {
  font-family: var(--font-serif); font-size: 11px; font-style: italic; font-weight: 300;
  color: rgba(243,233,210,0.4); letter-spacing: 1px; text-align: right; padding-top: 6px;
  opacity: 0; animation: fadeUpIn 1s 0.5s var(--ease-expo) forwards;
}

.masthead {
  max-width: var(--max); margin: 0 auto; width: 100%;
}

.masthead-rule {
  height: 1px; background: rgba(255,255,255,0.14); margin-bottom: 28px;
  opacity: 0; animation: fadeUpIn 1s 0.55s var(--ease-expo) forwards;
}

.masthead-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(243,233,210,0.93);
  background: linear-gradient(135deg, rgba(0,107,98,0.72) 0%, rgba(180,90,50,0.62) 100%);
  border: 1px solid rgba(212,146,90,0.28);
  padding: 9px 20px 9px 16px; border-radius: 100px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; animation: fadeUpIn 1s 0.65s var(--ease-expo) forwards;
}

.masthead-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(212,146,90,0.7); }

.masthead-headline {
  font-family: var(--font-display); font-weight: 800; line-height: 0.92;
  letter-spacing: -0.04em; color: var(--white); margin-bottom: 22px;
  opacity: 0; animation: fadeUpIn 1s 0.8s var(--ease-expo) forwards;
}

.mh-large { display: block; font-size: clamp(4.5rem, 12vw, 10rem); }

.mh-serif { display: block; font-style: italic; font-weight: 400; font-size: clamp(2rem, 5vw, 4.2rem); color: rgba(212,146,90,0.88); letter-spacing: -0.02em; margin-top: 4px; }

.masthead-meta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  opacity: 0; animation: fadeUpIn 1s 1s var(--ease-expo) forwards;
}

.mm-item { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: rgba(243,233,210,0.5); letter-spacing: 0.5px; }

.mm-item i { font-size: 10px; color: var(--teal-light); }

.mm-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.18); }

.hero-scroll {
  position: absolute; bottom: 32px; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.28); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  opacity: 0; animation: fadeUpIn 1s 1.2s var(--ease-expo) forwards;
}

.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2.2s 1.5s infinite;
}

.filter-strip {
  position: sticky; top: 0; z-index: 800;
  background: rgba(250,247,241,0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen);
  transition: box-shadow 0.3s;
}

.filter-strip.shadow { box-shadow: 0 4px 24px rgba(26,15,13,0.09); }

.filter-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
  min-height: 60px;
}

.filter-inner::-webkit-scrollbar { display: none; }

.chip {
  position: relative; padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid transparent; background: transparent;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.chip:hover { color: var(--brown); border-color: var(--linen); background: var(--cream); }

.chip.on { color: var(--white); background: var(--brown); border-color: var(--brown); }

.chip-sep { width: 1px; height: 18px; background: var(--linen); flex-shrink: 0; margin: 0 6px; }

.post-count { margin-left: auto; font-size: 11px; font-weight: 500; color: rgba(138,126,118,0.6); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.5px; }

.blog-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 72px var(--gutter) 120px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(40px, 6vw, 80px);
  max-width: calc(var(--max) + 420px);
}

.blog-main { width: 100%; }

.blog-sidebar { width: 100%; }

.sidebar-strip {
  background: linear-gradient(135deg, #FAF7F1 0%, #F3EAD6 100%);
  border-radius: 16px;
  padding: 28px 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 28px rgba(26,15,13,0.08);
  border: 1px solid rgba(237,227,206,0.8);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(61,35,33,0.12);
}

.accordion-group {
  margin-bottom: 12px;
}

.accordion-header {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(61,35,33,0.08);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.5px;
}

.accordion-header:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,168,150,0.2);
  transform: translateX(2px);
}

.accordion-header.active {
  background: rgba(0,168,150,0.08);
  border-color: rgba(0,168,150,0.25);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

.accordion-icon {
  font-size: 0.7rem;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate);
  margin-left: 8px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255,255,255,0.5);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.accordion-content.open {
  max-height: 2000px;
  border: 1px solid rgba(61,35,33,0.06);
  border-top: none;
  padding: 8px 0;
}

.sidebar-divider {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--slate);
  text-transform: uppercase;
  margin: 14px 0 14px;
  text-align: center;
  position: relative;
  padding: 8px 0;
}

.sidebar-divider::before,
.sidebar-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: rgba(138,126,118,0.2);
}

.sidebar-divider::before { left: 0; }

.sidebar-divider::after { right: 0; }

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

.article-item {
  padding: 12px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(61,35,33,0.06);
  text-decoration: none;
  color: inherit;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--teal-light);
  transition: height 0.3s ease;
}

.article-item:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,168,150,0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(26,15,13,0.08);
}

.article-item:hover::before {
  height: 100%;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.4;
  margin: 0 0 5px;
  word-break: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--slate);
  margin: 0;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 3px;
}

.article-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 2px 6px;
  background: rgba(0,168,150,0.1);
  border-radius: 4px;
  margin-top: 5px;
}

.article-archived {
  opacity: 0.6;
  font-style: italic;
}

.article-archived::after {
  content: ' (Archived)';
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: var(--copper);
}

@media (max-width: 1200px) {
  .blog-wrap {
    grid-template-columns: 1fr;
    max-width: var(--max);
  }

  .sidebar-strip {
    position: relative;
    top: auto;
    margin-top: 40px;
  }
}

#featuredWrap { margin-bottom: 80px; }

.featured {
  display: grid; grid-template-columns: 1fr 52%;
  border-radius: 24px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 4px rgba(26,15,13,0.04), 0 16px 56px rgba(26,15,13,0.09);
  transition: box-shadow 0.3s var(--ease-expo), transform 0.5s var(--ease-expo);
  background: var(--white);
  position: relative;
}

.featured:hover { transform: translateY(-4px); box-shadow: 0 24px 80px rgba(26,15,13,0.13); }

.feat-img {
  position: relative; min-height: 480px;
  background-size: cover; background-position: center;
  background-color: var(--linen); overflow: hidden;
}

.feat-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(26,15,13,0.3) 100%),
              linear-gradient(to top, rgba(26,15,13,0.5) 0%, transparent 40%);
}

.feat-badge {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px;
}

.feat-badge i { font-size: 8px; }

.feat-body {
  padding: clamp(36px, 5vw, 60px) clamp(32px, 4vw, 56px);
  background: var(--white); display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}

.feat-body::before {
  content: '"'; position: absolute; bottom: -40px; right: -10px; z-index: 0;
  font-family: var(--font-display); font-size: 220px; font-weight: 800;
  color: rgba(0,107,98,0.03); line-height: 1; pointer-events: none; user-select: none;
}

.feat-cat {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--copper);
  position: relative; z-index: 1;
}

.feat-cat::before { content: ''; display: block; width: 20px; height: 1px; background: currentColor; }

.feat-h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700; line-height: 1.1; color: var(--brown);
  letter-spacing: -0.025em; margin-bottom: 18px;
  position: relative; z-index: 1;
}

.feat-excerpt {
  font-family: var(--font-serif); font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300; color: var(--brown); line-height: 1.85;
  margin-bottom: 32px; position: relative; z-index: 1;
}

.feat-meta {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}

.feat-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown), var(--copper));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}

.feat-meta-text { display: flex; flex-direction: column; gap: 2px; }

.feat-author { font-size: 12px; font-weight: 600; color: var(--brown); letter-spacing: 0.2px; }

.feat-date { font-size: 11px; color: var(--slate); }

.feat-read {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal);
  transition: gap 0.3s var(--ease-back);
}

.featured:hover .feat-read { gap: 12px; }

.feat-read i { font-size: 10px; }

.sec-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
}

.sec-label-inner {
  font-size: 9.5px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--brown);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}

.sec-label-inner::before { content: ''; display: block; width: 20px; height: 1px; background: currentColor; }

.sec-rule { flex: 1; height: 1px; background: var(--linen); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  grid-auto-flow: dense;
  align-items: start;
}

.p-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--white); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(237,227,206,0.6);
  box-shadow: 0 2px 8px rgba(26,15,13,0.04);
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo);
  position: relative;
}

.p-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(26,15,13,0.1); }

.p-card:nth-child(8n+1) { grid-column: span 2; }

.p-card:nth-child(8n+1) .p-thumb { height: 300px; }

.p-card:nth-child(8n+2) { grid-row: span 2; }

.p-card:nth-child(8n+2) .p-thumb { height: 268px; }

.p-card:nth-child(8n+5) {
  grid-column: 1 / -1; flex-direction: row;
  background: var(--brown); border-color: transparent;
  box-shadow: 0 4px 40px rgba(26,15,13,0.16);
}

.p-card:nth-child(8n+5) .p-thumb {
  width: 42%; flex-shrink: 0; height: auto; min-height: 280px;
  border-radius: 0;
}

.p-card:nth-child(8n+5) .p-body { padding: 48px 56px; justify-content: center; }

.p-card:nth-child(8n+5) .p-body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ivory); flex: 0; margin-bottom: 14px;
}

.p-card:nth-child(8n+5):hover .p-body h3 { color: var(--teal-light); }

.p-card:nth-child(8n+5) .p-excerpt {
  color: rgba(243,233,210,0.6); -webkit-line-clamp: 3; line-clamp: 3; margin-bottom: 24px;
}

.p-card:nth-child(8n+5) .p-foot { border-color: rgba(255,255,255,0.1); padding-top: 20px; }

.p-card:nth-child(8n+5) .p-foot-author { color: var(--cream); }

.p-card:nth-child(8n+5) .p-foot-date { color: rgba(243,233,210,0.4); }

.p-card:nth-child(8n+5) .read-link { color: var(--teal-light); }

.p-card:nth-child(8n+5) .p-cat-chip { background: rgba(0,168,150,0.22); border-color: rgba(0,168,150,0.3); }

.p-thumb {
  position: relative; height: 210px; overflow: hidden;
  background-size: cover; background-position: center;
  background-color: var(--linen); flex-shrink: 0;
}

.p-thumb-inner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-color: var(--linen);
  transition: transform 0.3s var(--ease-expo);
}

.p-card:hover .p-thumb-inner { transform: scale(1.06); }

.p-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,15,13,0.42) 0%, transparent 55%);
  transition: opacity 0.45s;
}

.p-cat-chip {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  font-size: 8.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.88); background: rgba(26,15,13,0.55); backdrop-filter: blur(8px);
  padding: 5px 11px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}

.p-num {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 800;
  color: rgba(255,255,255,0.2); line-height: 1;
}

.p-body { padding: 24px 26px 22px; flex: 1; display: flex; flex-direction: column; }

.p-body h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--brown); line-height: 1.25; margin-bottom: 10px;
  letter-spacing: -0.015em; flex: 1;
  transition: color 0.3s;
}

.p-card:hover .p-body h3 { color: var(--teal); }

.p-excerpt {
  font-family: var(--font-serif); font-size: 0.92rem; font-weight: 300;
  color: var(--brown); line-height: 1.78; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid var(--linen); }

.p-foot-left { display: flex; flex-direction: column; gap: 2px; }

.p-foot-author { font-size: 11px; font-weight: 600; color: var(--brown); }

.p-foot-date { font-size: 10px; color: var(--slate); }

.read-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); flex-shrink: 0;
  transition: gap 0.3s var(--ease-back);
}

.p-card:hover .read-link { gap: 10px; }

.p-share {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p-card:hover .p-share { opacity: 1; }

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: #0077B5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
}

.share-btn:hover {
  background: #0077B5;
  color: white;
  transform: scale(1.1);
}

.p-card:nth-child(8n+5) .share-btn {
  background: rgba(255,255,255,0.15);
  color: white;
}

.p-card:nth-child(8n+5) .share-btn:hover {
  background: #0077B5;
}

.read-link i { font-size: 9px; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 100px 20px;
}

.empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mist); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 22px; color: var(--teal);
}

.empty p { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--slate); }

footer { background: var(--brown); padding: 80px 0 32px; position: relative; overflow: hidden; }

footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,168,150,0.4), transparent);
}

.f-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 60px; }

.f-logo { max-width: 160px; height: auto; margin-bottom: 18px; display: block; filter: brightness(0) invert(1); opacity: 0.88; }

.f-brand p { color: rgba(243,233,210,0.52); font-size: 13px; line-height: 1.8; }

.f-socials { display: flex; gap: 12px; margin-top: 22px; }

.f-socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.42); font-size: 13px; text-decoration: none; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.f-socials a:hover { border-color: var(--teal-light); color: var(--teal-light); background: rgba(0,168,150,0.08); }

.f-col h4 { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(243,233,210,0.28); margin-bottom: 18px; }

.f-col ul { list-style: none; }

.f-col li { margin-bottom: 10px; }

.f-col a { color: rgba(243,233,210,0.56); text-decoration: none; font-size: 13px; transition: color 0.25s; }

.f-col a:hover { color: rgba(243,233,210,0.92); }

.f-bot {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 11px; color: rgba(243,233,210,0.28);
}

.f-bot a { color: inherit; text-decoration: none; margin-left: 18px; transition: color 0.25s; }

.f-bot a:hover { color: rgba(243,233,210,0.7); }

@keyframes fadeUpIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@keyframes cardIn  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.3s var(--ease-expo), transform 0.9s var(--ease-expo); }

.reveal.visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.12s; }

.reveal-delay-2 { transition-delay: 0.24s; }

@media (max-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    
  }
  .p-card:nth-child(8n+1) { grid-column: 1; }
  .p-card:nth-child(8n+1) .p-thumb { height: 210px; }
  .p-card:nth-child(8n+2) { grid-row: span 1; }
  .p-card:nth-child(8n+2) .p-thumb { height: 210px; }
  .p-card:nth-child(8n+5) { grid-column: 1 / -1; flex-direction: row; }
  .p-card:nth-child(8n+5) .p-thumb { width: 46%; min-height: 240px; }
  .p-card:nth-child(8n+5) .p-body { padding: 32px 36px; }
  .featured { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }

  .feat-img { min-height: 280px; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .posts-grid { grid-template-columns: 1fr; grid-auto-flow: row; }

  .p-card:nth-child(8n+1),
  .p-card:nth-child(8n+2),
  .p-card:nth-child(8n+5) { grid-column: 1; grid-row: span 1; flex-direction: column; }

  .p-card:nth-child(8n+5) .p-thumb { width: 100%; min-height: 200px; }

  .p-card:nth-child(8n+5) .p-body { padding: 24px 22px; }

  .mh-large { font-size: clamp(3.8rem, 16vw, 7rem); }

  .f-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero { min-height: 75vh; }
}

.footer-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
  .footer-top {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

.footer-brand-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-brand-text p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(234, 227, 217, 0.65);
    max-width: 280px;
    font-weight: 300;
    margin: 0.5rem 0 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-column-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0;
    color: #D4AF37;
    font-weight: 800;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    background: rgba(234, 227, 217, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
    backdrop-filter: blur(8px);
}

.newsletter-form:focus-within {
    background: rgba(234, 227, 217, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
    padding: 12px 16px;
    font-weight: 300;
}

.newsletter-form input::placeholder {
    color: rgba(234, 227, 217, 0.4);
}

.newsletter-form button {
    background: linear-gradient(135deg, #D4AF37 0%, #c49a2a 100%);
    border: none;
    color: #1a0f0a;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #E8C547 0%, #D4AF37 100%);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    transform: translateX(2px);
}

.newsletter-form button:active {
    transform: translateX(0);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    margin: 2.5rem 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(234, 227, 217, 0.5);
    font-weight: 300;
    letter-spacing: 0.02em;
}

@media (max-width: 1023px) {
  .footer-top {
        gap: 2rem;
    }

  .footer-brand-text h2 {
        font-size: 1.2rem;
    }
}

.compact-footer {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    font-size: 0.9rem;
}

@media (min-width: 900px) {
  .compact-footer {
        grid-template-columns: 4fr 6fr;
    }
}

.footer-sand-pane {
    background-color: var(--color-sand);
    color: var(--text-dark);
    padding: 3.5rem 10% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-brand img {
    max-height: 65px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: auto;
    padding-top: 2rem;
    line-height: 1.6;
}

.ddx-attr {
    display: block;
    margin-top: 0.5rem;
}

.ddx-attr a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted var(--text-dark);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.ddx-attr a:hover {
    color: var(--color-copper-dark);
    border-bottom-color: transparent;
}

.footer-copper-pane {
    background-color: var(--color-copper);
    color: var(--text-light);
    padding: 3.5rem 10% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.copper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 600px) {
  .copper-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(253, 252, 251, 0.3);
    transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
    border-bottom-color: var(--color-sand);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-family: var(--font-main);
    flex: 1;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(253, 252, 251, 0.6);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--color-sand);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0 0 0 1rem;
    transition: opacity 0.2s ease;
}

.newsletter-form button:hover {
    opacity: 0.7;
}

:root {
    --lj-earth: #3D2321;
    --lj-paper: #F2EFE9;
    --lj-accent: #C5A059;
    --lj-ink-light: rgba(61, 35, 33, 0.6);
    --font-footer: 'Lato', sans-serif;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a, .ddx-attr a {
    color: var(--lj-earth);
    text-decoration: none;
    font-weight: 700;
}

.legal-links a:hover, .ddx-attr a:hover {
    text-decoration: underline;
}

.giraffe {
    display: inline-block;
    transition: transform 0.3s ease;
}

.ddx-attr:hover .giraffe {
    transform: translateY(-3px) scale(1.1);
}

.stub-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: var(--lj-accent);
}

.stub-heading {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.stub-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stub-form input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(61, 35, 33, 0.2);
    padding: 0.5rem 0;
    font-family: var(--font-footer);
    font-size: 0.95rem;
    color: var(--lj-earth);
    outline: none;
    transition: border-color 0.3s ease;
}

.stub-form input:focus {
    border-color: var(--lj-earth);
}

.stub-form input::placeholder {
    color: var(--lj-ink-light);
    font-style: italic;
}

.stub-form button {
    background-color: transparent;
    color: var(--lj-earth);
    border: 2px solid var(--lj-earth);
    padding: 0.6rem;
    border-radius: 6px;
    font-family: var(--font-footer);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
}

.stub-form button:hover {
    background-color: var(--lj-earth);
    color: var(--lj-paper);
}

.barcode {
    margin-top: 2rem;
    height: 30px;
    width: 100%;
    background:
        linear-gradient(90deg,
            var(--lj-earth) 0%, var(--lj-earth) 5%,
            transparent 5%, transparent 8%,
            var(--lj-earth) 8%, var(--lj-earth) 10%,
            transparent 10%, transparent 15%,
            var(--lj-earth) 15%, var(--lj-earth) 22%,
            transparent 22%, transparent 24%,
            var(--lj-earth) 24%, var(--lj-earth) 26%,
            transparent 26%, transparent 30%,
            var(--lj-earth) 30%, var(--lj-earth) 32%,
            transparent 32%, transparent 35%,
            var(--lj-earth) 35%, var(--lj-earth) 45%,
            transparent 45%, transparent 48%,
            var(--lj-earth) 48%, var(--lj-earth) 50%,
            transparent 50%, transparent 55%,
            var(--lj-earth) 55%, var(--lj-earth) 60%,
            transparent 60%, transparent 62%,
            var(--lj-earth) 62%, var(--lj-earth) 70%,
            transparent 70%, transparent 75%,
            var(--lj-earth) 75%, var(--lj-earth) 77%,
            transparent 77%, transparent 80%,
            var(--lj-earth) 80%, var(--lj-earth) 85%,
            transparent 85%, transparent 88%,
            var(--lj-earth) 88%, var(--lj-earth) 95%,
            transparent 95%, transparent 97%,
            var(--lj-earth) 97%, var(--lj-earth) 100%
        );
    opacity: 0.3;
}

/* ─── "New" badge for recent posts ─── */
.post-new-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--white); background: var(--teal);
  padding: 3px 9px; border-radius: 100px;
  margin-left: 8px; vertical-align: middle;
  animation: badgePulse 2.4s ease-in-out infinite;
}
.post-new-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal-light); flex-shrink: 0;
}
.feat-badge .post-new-badge {
  background: rgba(255,255,255,0.18); margin-left: 6px;
}
.p-cat-chip .post-new-badge {
  position: static; background: var(--teal); margin-left: 6px;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
