@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --color-primary: #14532d;
  --color-primary-light: #166534;
  --color-primary-dark: #052e16;
  --color-accent: #b45309;
  --color-accent-light: #d97706;
  --color-ocean: #0c4a6e;
  --color-ocean-light: #0369a1;
  --color-sand: #f4f4f2;
  --color-sand-dark: #e7e7e5;
  --color-white: #ffffff;
  --color-text: #171717;
  --color-text-light: #525252;
  --color-border: #d4d4d4;
  --color-canvas: #f5f5f4;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-ui);
  --font-body: var(--font-ui);
  --max-width: 1180px;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link — keyboard / screen reader first stop */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-hover);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* Visible focus for keyboard users (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.tag-filter:focus-visible,
.top-bar-close:focus-visible,
.hamburger:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.hero-overlay a:focus-visible,
.hero-overlay .btn:focus-visible {
  outline-color: var(--color-white);
  outline-offset: 3px;
}

.hamburger:focus-visible {
  border-radius: var(--radius-sm);
}

.tag-filter:focus-visible {
  border-color: var(--color-primary);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  padding-left: 1.5em;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.65rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1.2em;
}

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

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-text);
  display: inline-block;
  letter-spacing: -0.02em;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== TOP AD BAR ===== */

.top-bar {
  background: #262626;
  color: #fafafa;
  text-align: center;
  padding: 9px 20px;
  font-size: 0.8125rem;
  font-family: var(--font-ui);
  border-bottom: 1px solid #404040;
}

.top-bar a {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: underline;
}

.top-bar a:hover {
  color: var(--color-white);
}

.top-bar-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.top-bar-close:hover {
  opacity: 1;
}

.top-bar-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== HEADER & NAV ===== */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-family: var(--font-ui);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
  text-decoration: none;
}

.site-logo-img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  line-height: 1;
  text-align: center;
  margin-top: -4px;
  text-transform: uppercase;
}

.site-logo-kicker {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 4px;
  text-align: center;
  max-width: 12rem;
  line-height: 1.3;
}

a.site-logo:hover .site-logo-text {
  color: var(--color-primary-light);
}

a.site-logo:hover .site-logo-img {
  opacity: 0.92;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: 1.75rem 0 2rem;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--color-border);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  width: 100%;
  padding: 3rem 2.5rem 2.5rem;
  color: var(--color-white);
}

.hero-overlay .tag-pill {
  margin-bottom: 0.75rem;
}

.hero-overlay .hero-brand {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
}

.hero-overlay .hero-featured-title {
  color: var(--color-white);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  margin-bottom: 1.35rem;
  max-width: 36rem;
  line-height: 1.55;
  font-family: var(--font-ui);
}

.hero-overlay .btn {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.hero-overlay .btn:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

/* ===== TAG FILTER PILLS ===== */

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 1.25rem 0 1.75rem;
  padding: 0 0 1rem;
  list-style: none;
  border-bottom: 1px solid var(--color-border);
}

.tag-filter {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tag-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tag-filter.active,
.tag-filter[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.posts-section-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
  padding-top: 0.5rem;
}

/* ===== TAG PILLS (on cards/posts) ===== */

.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}

.tag-pill-beaches { background: #E0F2FE; color: #0369A1; }
.tag-pill-food { background: #FEE2E2; color: #DC2626; }
.tag-pill-nomad { background: #D1FAE5; color: #065F46; }
.tag-pill-nature { background: #ECFCCB; color: #3F6212; }
.tag-pill-explore { background: #CCFBF1; color: #0F766E; }
.tag-pill-culture { background: #F3E8FF; color: #7C3AED; }
.tag-pill-practical { background: #F1F5F9; color: #475569; }
.tag-pill-fitness { background: #FFE4E6; color: #E11D48; }
.tag-pill-family { background: #FCE7F3; color: #BE185D; }
.tag-pill-events { background: #FEF3C7; color: #B45309; }
.tag-pill-penang { background: #E0E7FF; color: #4338CA; }
.tag-pill-koh-lipe { background: #CFFAFE; color: #0E7490; }
.tag-pill-business { background: #E2E8F0; color: #334155; }
.tag-pill-andaman { background: #DBEAFE; color: #1E40AF; }

/* ===== POST CARD GRID ===== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin: 0 0 3rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  border-color: var(--color-text-light);
  box-shadow: var(--shadow-hover);
}

.post-card-link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.post-card-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.post-card-body {
  padding: 18px 20px 22px;
}

.post-card-body .tag-pill {
  margin-bottom: 10px;
}

.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-card-link h3 {
  color: var(--color-text);
  transition: color var(--transition);
}

.post-card:hover .post-card-link h3 {
  color: var(--color-primary);
}

.post-card-body p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-body time {
  font-size: 0.6875rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ----- Bento grid (homepage) ----- */
@media (min-width: 901px) {
  .post-grid--bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(min-content, auto);
    gap: 20px;
    align-items: stretch;
  }

  .post-grid--bento .post-card:nth-child(1) {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }

  .post-grid--bento .post-card:nth-child(1) .post-card-link {
    flex: 1 1 auto;
    min-height: 0;
  }

  .post-grid--bento .post-card:nth-child(1) img {
    flex: 1 1 auto;
    min-height: 300px;
    height: 340px;
    max-height: 420px;
  }

  .post-grid--bento .post-card:nth-child(1) .post-card-body h3 {
    font-size: 1.35rem;
    line-height: 1.22;
  }

  .post-grid--bento .post-card:nth-child(1) .post-card-body p {
    -webkit-line-clamp: 3;
  }

  .post-grid--bento .post-card:nth-child(2) {
    grid-column: 8 / span 5;
    grid-row: 1;
  }

  .post-grid--bento .post-card:nth-child(3) {
    grid-column: 8 / span 5;
    grid-row: 2;
  }

  .post-grid--bento .post-card:nth-child(n + 4) {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .post-grid--bento .post-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .post-grid--bento .post-card:nth-child(1) img {
    height: 200px;
    min-height: 0;
    max-height: none;
  }

  .post-grid--bento .post-card:nth-child(1) .post-card-body h3 {
    font-size: 1.125rem;
  }

  .post-grid--bento .post-card:nth-child(1) .post-card-body p {
    -webkit-line-clamp: 2;
  }
}

/* Card image hover (motion preference respected via global reduce rule) */
@media (prefers-reduced-motion: no-preference) {
  .post-card img {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .post-card:hover img {
    transform: scale(1.04);
  }
}

/* ----- Entry animations ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero--motion .hero-overlay {
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero--motion img.hero-bg-img {
    animation: heroKen 12s ease-out both;
  }

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

  @keyframes heroKen {
    from {
      transform: scale(1.06);
    }
    to {
      transform: scale(1);
    }
  }

  .post-grid--bento .post-card {
    animation: bentoCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .post-grid--bento .post-card:nth-child(1) { animation-delay: 0.06s; }
  .post-grid--bento .post-card:nth-child(2) { animation-delay: 0.1s; }
  .post-grid--bento .post-card:nth-child(3) { animation-delay: 0.14s; }
  .post-grid--bento .post-card:nth-child(4) { animation-delay: 0.18s; }
  .post-grid--bento .post-card:nth-child(5) { animation-delay: 0.22s; }
  .post-grid--bento .post-card:nth-child(6) { animation-delay: 0.26s; }
  .post-grid--bento .post-card:nth-child(7) { animation-delay: 0.3s; }

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

/* ----- Nav link draw (desktop) ----- */
@media (min-width: 641px) {
  .nav-links a {
    position: relative;
    border-bottom-color: transparent !important;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
  }
}

/* ===== POST PAGE LAYOUT ===== */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin: 2rem 0 3rem;
}

.post-content {
  max-width: 100%;
  min-width: 0;
}

.post-content h1 {
  margin-bottom: 1rem;
}

.post-content > img {
  border-radius: 0;
  margin-bottom: 2rem;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5em;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote.post-guest-review {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem 1.3rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-sand);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
}

.post-content blockquote.post-guest-review p {
  margin: 0;
}

.post-content blockquote.post-guest-review cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Prose emphasis — scannable facts without looking like links */
.post-content strong,
.about-content strong {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.post-content a strong {
  color: inherit;
}

.post-content .key-point,
.about-content .key-point {
  font-weight: 600;
  background: linear-gradient(transparent 58%, rgba(20, 83, 45, 0.14) 58%);
  padding: 0 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.post-content .key-underline,
.about-content .key-underline {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-ocean-light);
  padding-bottom: 1px;
}

.post-content .takeaway-line,
.about-content .takeaway-line {
  display: block;
  margin: 1.5rem 0;
  padding: 0.85rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-sand);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

/* Article callouts ("bento" style boxes) */
.bento-box {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem 1.15rem;
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-ui);
}

.bento-box__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.bento-box p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}

.bento-box p + p {
  margin-top: 0.65em;
}

.bento-box--neutral {
  border-left-color: var(--color-ocean);
}

.bento-box--neutral .bento-box__label {
  color: var(--color-ocean);
}

.bento-box--accent {
  border-left-color: var(--color-accent);
  background: var(--color-white);
}

.bento-box--accent .bento-box__label {
  color: var(--color-accent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.post-meta time {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-family: var(--font-ui);
}

.post-meta-note {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-family: var(--font-ui);
}

.post-byline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-ui);
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  min-height: 0;
}

.post-sidebar-sticky-tail {
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-section {
  background: var(--color-white);
  border-radius: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.sidebar-section h4 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-text);
  font-family: var(--font-ui);
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
}

.sidebar-section li {
  margin-bottom: 10px;
}

.sidebar-section li a {
  font-size: 0.9rem;
  color: var(--color-text);
  display: flex;
  gap: 10px;
  align-items: start;
}

.sidebar-section li a:hover {
  color: var(--color-primary);
}

.sidebar-section li img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-sand);
  color: var(--color-text-light);
  transition: all var(--transition);
}

.tag-cloud a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== AD BLOCKS ===== */

.ad-bambu-inline {
  background: #f0fdf4;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0;
  padding: 24px;
  margin: 2rem 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.ad-bambu-visual {
  position: relative;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  align-self: flex-start;
  border: 1px solid var(--color-border);
}

.ad-bambu-inline .ad-bambu-visual img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.ad-save-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.ad-bambu-inline-text {
  flex: 1;
}

.ad-bambu-inline-text p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.ad-bambu-inline-text .ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.ad-bambu-sidebar {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
}

.ad-bambu-sidebar .ad-bambu-visual {
  width: 100%;
  border-radius: 0;
}

.ad-bambu-sidebar .ad-bambu-visual img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ad-bambu-sidebar-body {
  padding: 16px;
  text-align: center;
}

.ad-bambu-sidebar-body h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
}

.ad-bambu-sidebar-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.ad-bambu-sidebar-body .btn {
  width: 100%;
}

/* Sticky Bambu promo below Topics: fills sidebar column so sticky has scroll range */
.ad-bambu-sticky-stick {
  position: sticky;
  top: 5.75rem;
  z-index: 5;
}

.ad-bambu-sticky-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ad-bambu-sticky-card:hover {
  border-color: var(--color-text-light);
  box-shadow: 0 6px 24px rgba(20, 83, 45, 0.12);
}

.ad-bambu-sticky-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.ad-bambu-sticky-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  /* Dark base so brief gaps between layers never read as a white flash */
  background: var(--color-primary-dark);
  overflow: hidden;
}

.ad-bambu-sticky-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  /* 12s loop, 4s stagger: outgoing slide stays partly visible while next fades in */
  animation: adBambuStickyFade 12s cubic-bezier(0.45, 0, 0.55, 1) infinite both;
}

.ad-bambu-sticky-slide:nth-child(1) {
  animation-delay: 0s;
  z-index: 1;
}

.ad-bambu-sticky-slide:nth-child(2) {
  animation-delay: 4s;
  z-index: 2;
}

.ad-bambu-sticky-slide:nth-child(3) {
  animation-delay: 8s;
  z-index: 3;
}

/*
  Active window is ~0–40% of the timeline (~4.8s): fade up, hold, fade down.
  Fade-out ends after 33.33% (4s) so the next slide (delay +4s) is already rising.
*/
@keyframes adBambuStickyFade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  26% {
    opacity: 1;
  }

  40% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.ad-bambu-sticky-copy {
  padding: 16px 18px 18px;
  text-align: center;
}

.ad-bambu-sticky-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.ad-bambu-sticky-headline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.ad-bambu-sticky-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.45;
  margin: 0 0 14px;
}

.ad-bambu-sticky-cta {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn-ad-glow {
  animation: adBambuCtaGlow 2.4s ease-in-out infinite;
}

@keyframes adBambuCtaGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }

  50% {
    box-shadow: 0 0 22px 6px rgba(22, 163, 74, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-bambu-sticky-slide {
    animation: none;
    opacity: 0;
  }

  .ad-bambu-sticky-slide:first-child {
    opacity: 1;
  }

  .btn-ad-glow {
    animation: none;
  }
}

.ad-bambu-banner {
  background: var(--color-primary-dark);
  border-radius: 0;
  padding: 2.5rem 20px;
  margin: 3rem 0 2rem;
  color: var(--color-white);
  border: 1px solid #14532d;
}

.ad-bambu-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.ad-bambu-banner-visual {
  flex: 0 1 46%;
  max-width: 520px;
  min-width: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.ad-bambu-banner-visual img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.ad-bambu-banner-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ad-bambu-banner h3 {
  color: var(--color-white);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ad-bambu-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.ad-bambu-banner .btn {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 32px;
  font-size: 1rem;
}

.ad-bambu-banner .btn:hover {
  background: var(--color-accent-light);
}

.ad-bambu-full {
  background: var(--color-primary-dark);
  padding: 2rem 20px;
  text-align: center;
  color: var(--color-white);
  margin: 3rem 0 0;
}

.ad-bambu-full-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ad-bambu-full p {
  font-size: 1.1rem;
  margin: 0;
}

.ad-bambu-full .btn {
  background: var(--color-accent);
  color: var(--color-white);
}

.ad-bambu-full .btn:hover {
  background: var(--color-accent-light);
}

/* ===== MOBILE BOTTOM BAR ===== */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  padding: 10px 20px;
  z-index: 200;
  text-align: center;
}

.mobile-cta-bar a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-cta-bar a:hover {
  color: var(--color-accent-light);
}

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

.site-footer {
  background: var(--color-white);
  color: var(--color-text);
  padding: 3rem 20px 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 2rem;
}

.footer-brand .site-logo {
  margin-bottom: 12px;
}

.footer-brand .site-logo-text {
  color: var(--color-primary-dark);
}

.footer-brand .site-logo-kicker {
  color: var(--color-text-light);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.footer-links h4 {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-ui);
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

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

.footer-cta {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.footer-cta h4 {
  color: var(--color-text);
  margin-bottom: 6px;
}

.footer-cta p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom a {
  color: var(--color-primary);
}

.footer-bottom a:hover {
  color: var(--color-primary-light);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--color-primary-light);
}

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

.about-content {
  max-width: 720px;
  margin: 2rem auto 3rem;
}

.about-content h1 {
  margin-bottom: 1.5rem;
}

.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-content img {
  border-radius: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
}

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

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

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    order: 2;
    height: auto;
  }

  .post-sidebar-sticky-tail {
    flex: 0 0 auto;
  }

  .ad-bambu-sticky-stick {
    top: 4.5rem;
  }

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

  .hero {
    min-height: 320px;
  }

  .hero-overlay .hero-featured-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }

  .site-logo-img {
    height: 30px;
    max-width: 104px;
  }

  .site-logo-text {
    font-size: 1rem;
    margin-top: -3px;
  }

  .site-logo-kicker {
    display: none;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hamburger {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 260px;
    margin: 1rem 0;
  }

  .hero-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }

  .hero-overlay .hero-featured-title {
    font-size: 1.3rem;
  }

  .ad-bambu-inline {
    flex-direction: column;
  }

  .ad-bambu-inline .ad-bambu-visual {
    width: 100%;
    align-self: stretch;
  }

  .ad-bambu-inline .ad-bambu-visual img {
    width: 100%;
    height: 160px;
  }

  .ad-bambu-banner {
    padding: 2rem 1.5rem;
  }

  .ad-bambu-banner-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .ad-bambu-banner-visual {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .ad-bambu-banner-visual img {
    max-height: 200px;
    min-height: 160px;
  }

  .ad-bambu-banner-copy {
    text-align: center;
  }

  .ad-bambu-banner p {
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 52px;
  }

  .tag-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .tag-filter {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
