/*
Theme Name: Our Little Atlas
Theme URI: https://ourlittleatlas.net
Author: Harith & Kawmini
Description: A warm, personal blog theme for Our Little Atlas — documenting hikes, recipes, drawings, and life milestones.
Version: 1.0.6
License: GNU General Public License v2 or later
Tags: blog, personal, minimal, warm
*/

/* ═══════════════════════════════════════════════════
   RESET & ROOT
   — Removes default browser margin/padding on all elements.
   — Defines CSS custom properties (variables) used throughout
     the entire theme: colours, fonts. Changing a value here
     updates every place it is used automatically.
═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box; /* padding/border included in element width */
  margin: 0;
  padding: 0;
}

:root {
  /* ── Colour palette ── */
  --cream: #faf7f2; /* main page background */
  --warm-white: #fff8f0; /* slightly warmer white for sections/cards */
  --sand: #e8dfd0; /* borders, dividers, skeleton backgrounds */
  --clay: #c4a882; /* secondary accent, widget titles */
  --bark: #7a5c3e; /* darker brown, links, button hover */
  --moss: #6b7c5c; /* green accent, eyebrows, nature tags */
  --sky: #a8bfc9; /* used in hero photo card gradient */
  --ink: #2d2416; /* near-black, headings and primary text */
  --text: #4a3f32; /* body copy text colour */
  --light-text: #9a8a78; /* muted text: dates, meta, placeholders */
  --accent: #d4785a; /* primary brand orange, CTAs, highlights */

  /* ── Typography ── */
  --font-display: "Playfair Display", Georgia, serif; /* headings, titles */
  --font-body: "DM Sans", sans-serif; /* all body copy */
  --font-hand: "Caveat", cursive; /* handwritten labels */
}

html {
  scroll-behavior: smooth; /* smooth anchor-link scrolling */
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

img {
  max-width: 100%; /* images never overflow their container */
  height: auto;
  display: block; /* removes inline-image gap below images */
}

a {
  color: inherit; /* links inherit surrounding text colour by default */
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   — Fixed top bar that stays visible on scroll.
   — Contains the site logo, desktop nav links,
     search toggle, dark mode toggle, and hamburger.
   — .page-wrap adds top padding so content starts
     below the fixed nav.
═══════════════════════════════════════════════════ */
.site-nav {
  position: fixed; /* sticks to top of viewport */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100; /* above most page content */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(250, 247, 242, 0.88); /* semi-transparent cream */
  backdrop-filter: blur(12px); /* frosted-glass effect */
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-logo span {
  font-style: italic;
  color: var(--accent); /* "Atlas" in orange italic */
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* Active page nav item — highlighted with accent underline */
.nav-menu .current-menu-item a {
  color: var(--bark);
  border-bottom: 1.5px solid var(--clay);
  padding-bottom: 2px;
}

.page-wrap {
  padding-top: 72px; /* offset for fixed nav height */
}

/* ═══════════════════════════════════════════════════
   HERO SECTION (front-page.php)
   — Two-column layout: text left, photo stack right.
   — Decorative radial gradient blobs via ::before/::after.
   — On mobile the photo stack is hidden.
═══════════════════════════════════════════════════ */
.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 3rem 5rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

/* Top-right decorative blue gradient blob */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(168, 191, 201, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Bottom-left decorative orange gradient blob */
.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(212, 120, 90, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease both; /* entrance animation */
}

/* Small handwritten label above hero title */
.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--moss);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Short horizontal line before eyebrow text */
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--moss);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem); /* fluid font size */
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--light-text);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ═══════════════════════════════════════════════════
   HERO PHOTO STACK
   — Three overlapping polaroid-style cards with
     rotation, stacked absolutely inside a fixed-height
     container. Float tags are absolutely placed labels.
═══════════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  animation: fadeUp 0.9s ease 0.2s both; /* delayed entrance */
}

.photo-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 520px;
}

.photo-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45, 36, 22, 0.15);
}

/* Large card — top centre, rotated slightly left */
.photo-card:nth-child(1) {
  width: 300px;
  height: 360px;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(135deg, var(--sky) 0%, #7fa8bc 100%);
  z-index: 1;
}

/* Medium card — bottom right, rotated right */
.photo-card:nth-child(2) {
  width: 240px;
  height: 280px;
  bottom: 30px;
  right: 0;
  transform: rotate(4deg);
  background: linear-gradient(135deg, #c8b89a 0%, var(--clay) 100%);
  z-index: 2;
}

/* Small card — bottom left, rotated slightly left */
.photo-card:nth-child(3) {
  width: 180px;
  height: 210px;
  bottom: 20px;
  left: 0;
  transform: rotate(-2deg);
  background: linear-gradient(135deg, #b5c9a8 0%, var(--moss) 100%);
  z-index: 3;
}

.photo-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  padding: 1.5rem;
  text-align: center;
}

.photo-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.photo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Floating sticker labels over photo stack */
.float-tag {
  position: absolute;
  background: white;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink);
  z-index: 10;
}

.float-tag.tag1 {
  top: 20px;
  right: 10px;
  transform: rotate(3deg);
}

.float-tag.tag2 {
  bottom: 80px;
  left: -20px;
  transform: rotate(-2deg);
}

/* ═══════════════════════════════════════════════════
   TICKER / MILESTONE BANNER
   — Horizontal scrolling strip in accent orange.
   — Animation timing set dynamically by JS.
   — Pauses on hover.
   — Note: ticker was removed from active use due to
     animation glitching; CSS kept for reference.
═══════════════════════════════════════════════════ */
.ticker {
  padding: 1.2rem 0;
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
}

.ticker-inner {
  display: inline-flex;
  gap: 3.5rem;
  will-change: transform; /* GPU-accelerated scroll */
}

.ticker-inner.running {
  animation: ticker-scroll linear infinite;
}

.ticker:hover .ticker-inner {
  animation-play-state: paused;
}

.ticker-item {
  color: white;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

a.ticker-item:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dot separator after each item */
.ticker-item::after {
  content: "·";
  margin-left: 0.5rem;
  opacity: 0.5;
}

/* JS sets --ticker-shift to exactly one content set width */
@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--ticker-shift), 0, 0);
  }
}

/* ═══════════════════════════════════════════════════
   CATEGORIES STRIP
   — Horizontally scrollable pill row used on some
     archive/category pages. Hides scrollbar visually.
═══════════════════════════════════════════════════ */
.categories {
  padding: 3rem 3rem;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.categories-inner {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto; /* scroll horizontally on overflow */
  padding-bottom: 0.5rem;
  scrollbar-width: none; /* hide scrollbar (Firefox) */
}

.category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid var(--sand);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.category-pill .emoji {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════
   GENERIC SECTIONS
   — .section and .site-section are reusable full-width
     wrappers with consistent padding and a centred
     max-width container.
═══════════════════════════════════════════════════ */
.section,
.site-section {
  padding: 5rem 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* Row with title on left, "View all" link on right */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 400;
}

/* Italic clay-coloured emphasis inside section titles */
.section-title span,
.section-title em {
  font-style: italic;
  color: var(--clay);
}

.view-all {
  font-size: 0.82rem;
  color: var(--bark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-all::after {
  content: "→"; /* arrow appended via CSS */
}

/* ═══════════════════════════════════════════════════
   POST GRID (home page recent posts, related posts)
   — Three-column card grid.
   — .featured card spans all columns and uses a
     two-column image+text layout.
═══════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  border: 1px solid rgba(232, 223, 208, 0.6);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 36, 22, 0.1);
}

/* Featured (first) card spans full width with side-by-side layout */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Thumbnail area — shows featured image or emoji fallback */
.post-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.post-card.featured .post-thumb {
  height: auto;
  min-height: 300px;
}

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

.post-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.post-thumb-icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
}

/* Card text area */
.post-meta {
  padding: 1.5rem;
}

.post-card.featured .post-meta {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Coloured category badge (colours defined in TAG COLOURS section) */
.post-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
  max-width: fit-content;
  align-self: flex-start;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.post-card.featured .post-title {
  font-size: 1.75rem;
}

/* Excerpt — clamped to 3 lines */
.post-excerpt {
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date with a short line prefix */
.post-date {
  font-size: 0.78rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-date::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--sand);
}

/* ═══════════════════════════════════════════════════
   ABOUT TEASER (home page dark section)
   — Full-width dark ink background strip.
   — Two-column: text left, decorative photos right.
═══════════════════════════════════════════════════ */
.about-teaser {
  padding: 5rem 3rem;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.about-text h2 em {
  color: var(--clay);
  font-style: italic;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 2rem;
}

/* Two stacked decorative photos in the teaser right column */
.about-visual {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}

.about-photo:nth-child(1) {
  height: 240px;
  background: linear-gradient(160deg, var(--clay) 0%, var(--bark) 100%);
}

.about-photo:nth-child(2) {
  height: 180px;
  background: linear-gradient(160deg, var(--moss) 0%, #4a5c3e 100%);
}

.about-photo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ═══════════════════════════════════════════════════
   BLOG PAGE (index.php)
   — .page-header: full-width banner with title.
   — .blog-layout: two-column grid (posts + sidebar).
   — .blog-card: horizontal card with thumb + text.
   — .blog-card.large: first card is vertical/stacked.
═══════════════════════════════════════════════════ */
.page-header {
  padding: 5rem 3rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--sand);
}

.page-header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.page-header-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--moss);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--ink);
  font-weight: 400;
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-header p {
  color: var(--light-text);
  margin-top: 1rem;
}

/* Main two-column layout: post list + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 4rem 3rem;
  max-width: 1500px;
  margin: 0 auto;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Horizontal card: thumbnail left, content right */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(232, 223, 208, 0.6);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 36, 22, 0.1);
}

/* First/large card is full-width stacked */
.blog-card.large {
  grid-template-columns: 1fr;
}

.blog-card-thumb {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.blog-card.large .blog-card-thumb {
  height: 280px;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.75rem;
}

.blog-card.large .blog-card-body {
  padding: 2rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-card.large .blog-card-title {
  font-size: 1.6rem;
}

/* Excerpt clamped to 2 lines */
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-date::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--sand);
}

.read-more-link {
  font-size: 0.78rem;
  color: var(--bark);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR (blog page, search results)
   — Right-hand column with category list, recent
     posts, tag cloud, and archive timeline widgets.
═══════════════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(232, 223, 208, 0.6);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sand);
}

.widget-title em {
  color: var(--clay);
  font-style: italic;
}

.widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget ul li a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(232, 223, 208, 0.4);
  transition: color 0.2s;
}

.widget ul li a:hover {
  color: var(--bark);
}

/* Post count badge in category list */
.cat-count {
  font-size: 0.75rem;
  background: var(--sand);
  color: var(--bark);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* Tag cloud — wrapping pill links */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--sand);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

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

/* ═══════════════════════════════════════════════════
   SINGLE POST PAGE (single.php)
   — .single-post: full-width article wrapper (no padding).
   — .single-post-inner: centred readable column with padding.
   — .single-post-header: category tag, title, meta row.
   — .single-post-thumb: full-width featured image/emoji.
   — .post-content: rendered post body typography.
   — .post-nav: previous/next post links at bottom.
═══════════════════════════════════════════════════ */

/* Outer wrapper — edge to edge, no padding */
.single-post {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Inner content column — centred with comfortable reading width */
.single-post-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem 5rem;
}

.single-post-header {
  margin-bottom: 3rem;
}

.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* Date · Author · Read time row */
.single-post-meta {
  display: flex;
  flex-wrap: wrap;        /* wraps to next line on mobile instead of overflowing */
  gap: 0.75rem 1.5rem;   /* row-gap tighter, column-gap same */
  align-items: center;
  color: var(--light-text);
  font-size: 0.85rem;
}

/* Featured image or emoji fallback */
.single-post-thumb {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  font-size: 5rem;
}

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

/* Post body text styles */
.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.post-content img {
  border-radius: 12px;
  margin: 2rem 0;
}

/* Pull quote / blockquote */
.post-content blockquote {
  border-left: 3px solid var(--clay);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bark);
  background: rgba(196, 168, 130, 0.07);
  border-radius: 0 12px 12px 0;
}

/* Previous / next post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
}

.post-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--bark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 48%;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════
   ABOUT PAGE (page-about.php)
   — .about-hero: large centred hero with gradient.
   — .photo-spread: three rotated photo cards below hero.
   — .profiles-section: dark section with two profile cards.
   — .about-content: two-column text + image section.
═══════════════════════════════════════════════════ */
.about-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 3rem 5rem;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

/* Dual radial gradient overlay for atmosphere */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(168, 191, 201, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(212, 120, 90, 0.12) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.about-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--moss);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.about-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.about-hero-desc {
  font-size: 1.05rem;
  color: var(--light-text);
  max-width: 520px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Three overlapping rotated photo cards below about hero */
.photo-spread {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.2rem;
  padding: 0 3rem;
  margin-top: -3rem; /* pulls up to overlap hero bottom */
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.spread-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(45, 36, 22, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.spread-photo:nth-child(1) {
  height: 260px;
  background: linear-gradient(145deg, #a8c5b8, #5c8a7c);
  transform: rotate(-2deg);
}

.spread-photo:nth-child(2) {
  height: 340px; /* tallest, centre card */
  background: linear-gradient(145deg, #c4a882, var(--bark));
}

.spread-photo:nth-child(3) {
  height: 260px;
  background: linear-gradient(145deg, #ddd5f0, #9980c8);
  transform: rotate(2deg);
}

/* Dark ink background section with profile cards */
.profiles-section {
  padding: 5rem 3rem;
  background: var(--ink);
  color: var(--cream);
}

.profiles-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.profiles-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.profiles-header h2 em {
  color: var(--clay);
  font-style: italic;
}

/* Two profile cards side by side */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 168, 130, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative circle in top-right of profile card */
.profile-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(196, 168, 130, 0.08);
  pointer-events: none;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--clay);
  margin-bottom: 1.2rem;
}

.profile-bio {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.65);
  margin-bottom: 1.5rem;
}

.profile-loves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Small interest tags below profile bio */
.love-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(196, 168, 130, 0.3);
  color: rgba(250, 247, 242, 0.75);
}

/* "Who are we exactly?" two-column text + photo section */
.about-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-content h2 em {
  color: var(--accent);
  font-style: italic;
}

.about-content p {
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* Handwritten pull quote box */
.hand-note {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--moss);
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(107, 124, 92, 0.08);
  border-left: 3px solid var(--moss);
  border-radius: 0 12px 12px 0;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   — .btn-primary: dark filled pill (main CTA)
   — .btn-secondary: text-only with arrow
   — .btn-light: cream filled pill (on dark backgrounds)
   — .btn-outline: bordered pill
═══════════════════════════════════════════════════ */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--bark);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  color: var(--bark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.btn-secondary:hover {
  gap: 0.9rem; /* arrow moves right on hover */
}

.btn-secondary::after {
  content: "→";
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.25s;
}

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

.btn-outline {
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--clay);
  background: transparent;
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

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

/* ═══════════════════════════════════════════════════
   TAG COLOURS
   — One class per category, applied via ola_category_class()
     in PHP. Background + text colour pairs for each category.
═══════════════════════════════════════════════════ */
.tag-hike {
  background: #e8f0e4;
  color: var(--moss);
}
.tag-recipe {
  background: #fce8e0;
  color: var(--accent);
}
.tag-drawing {
  background: #e8e4f0;
  color: #6b5c8a;
}
.tag-milestone {
  background: #fdf0e0;
  color: var(--bark);
}
.tag-tutorial {
  background: #e0edf5;
  color: #3a6b7a;
}
.tag-japan {
  background: #fce8e8;
  color: #a03c3c;
}
.tag-travel {
  background: #e0f0f8;
  color: #2a6080;
}
.tag-language {
  background: #f0f0e0;
  color: #6b6b20;
}
.tag-photo {
  background: #e8e8e8;
  color: #444444;
}
.tag-finance {
  background: #e8f5e0;
  color: #3a6b3a;
}
.tag-recommend {
  background: #fff5e0;
  color: #8b6914;
}

/* ═══════════════════════════════════════════════════
   PAGINATION
   — Centred row of numbered page links.
   — .current highlights the active page in ink.
═══════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}

.pagination a,
.pagination span {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--sand);
}

.pagination .current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pagination a:hover {
  border-color: var(--clay);
  color: var(--bark);
}

/* ═══════════════════════════════════════════════════
   FOOTER (footer.php)
   — Three-column flex row: logo | tagline | nav links.
   — Stacks vertically on mobile.
═══════════════════════════════════════════════════ */
.site-footer {
  padding: 3rem 4rem;
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "Our Little Atlas" footer logo text */
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-logo em {
  color: var(--accent); /* "Atlas" in orange italic (via <em> tag) */
  font-style: italic;
}

.footer-logo span {
  font-style: italic;
  color: var(--accent); /* "Atlas" in orange italic (via <span> tag) */
}

/* Handwritten centre tagline */
.footer-tagline {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--clay);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--light-text);
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   — fadeUp: entrance animation used on hero elements.
═══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════
   ACTIVE NAV HIGHLIGHT
   — Overrides nav link colour for the current page item
     set by WordPress (current-menu-item / current_page_item).
═══════════════════════════════════════════════════ */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════
   HAMBURGER + MOBILE MENU
   — #ola-hamburger: hidden on desktop, shown on mobile.
   — #ola-mobile-menu: full-width drawer that slides down
     from the nav when hamburger is clicked.
   — Controlled by main.js (section 8 — HAMBURGER MENU).
═══════════════════════════════════════════════════ */
#ola-hamburger {
  display: none; /* hidden until mobile breakpoint */
}

#ola-mobile-menu {
  display: none;
  position: fixed;
  top: 65px; /* just below nav */
  left: 0;
  right: 0;
  z-index: 98;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

/* Open state — triggered by JS adding .open class */
#ola-mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav-menu {
  list-style: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-menu li a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s;
}

.mobile-nav-menu li:last-child a {
  border-bottom: none;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active {
  color: var(--accent);
}

.mobile-nav-menu li a.active {
  font-weight: 500;
}

[data-theme="dark"] #ola-mobile-menu {
  background: rgba(26, 22, 16, 0.98);
}

[data-theme="dark"] .mobile-nav-menu li a {
  color: var(--text);
  border-bottom-color: var(--sand);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (1400px+)
   — Slightly more padding on very wide screens.
═══════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .site-nav {
    padding: 1.2rem 4rem;
  }
  .hero {
    padding: 4rem 4rem 5rem;
  }
  .about-teaser {
    padding: 6rem 4rem;
  }
  .section,
  .site-section {
    padding: 5rem 4rem;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (769px – 1024px)
   — Sidebar hidden. Hero visual hidden.
   — Two-column grids collapse to one column.
   — Reduced padding throughout.
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-nav {
    padding: 1rem 2rem;
  }

  .hero {
    padding: 4rem 2rem 4rem;
    gap: 2rem;
  }
  .hero-visual {
    display: none;
  } /* hide photo stack */
  .hero-title {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-card.featured {
    grid-template-columns: 1fr;
  }
  .post-card.featured .post-thumb {
    height: 260px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }
  .sidebar {
    display: none;
  } /* sidebar hidden on tablet */
  .blog-card {
    grid-template-columns: 180px 1fr;
  }
  .blog-card.large {
    grid-template-columns: 1fr;
  }

  .about-teaser {
    padding: 4rem 2rem;
    gap: 3rem;
  }
  .about-content {
    padding: 4rem 2rem;
    gap: 3rem;
  }
  .section,
  .site-section {
    padding: 4rem 2rem;
  }
  .profiles-section {
    padding: 4rem 2rem;
  }
  .profiles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .photo-spread {
    padding: 0 2rem;
    grid-template-columns: 1fr 1.2fr 1fr;
  }
  .single-post-inner {
    padding: 3rem 2rem 3rem;
  }
  .ola-related {
    padding: 3rem 2rem 4rem;
  }

  .site-footer {
    padding: 2rem;
  }
  #ola-search-box {
    padding: 0 2rem;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   — Hamburger nav replaces desktop menu.
   — Single column layout throughout.
   — Reduced font sizes and padding.
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .site-nav {
    padding: 1rem 1.25rem;
  }
  .nav-menu {
    display: none;
  } /* hide desktop nav links */
  #ola-hamburger {
    display: flex;
  } /* show hamburger button */
  #ola-mobile-menu {
    display: block;
  }
  .nav-actions {
    gap: 0.25rem;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 3rem;
    min-height: 0;
  }
  .hero-visual {
    display: none;
  }
  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .btn-primary,
  .btn-light {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .ticker-item {
    font-size: 1rem;
  }

  /* Sections */
  .section,
  .site-section {
    padding: 2.5rem 1.25rem;
  }
  .section-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .section-title {
    font-size: 1.6rem;
  }

  /* Post grid — single column */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .post-card.featured {
    grid-template-columns: 1fr;
  }
  .post-card.featured .post-thumb {
    height: 220px;
  }
  .post-card.featured .post-meta {
    padding: 1.25rem;
  }
  .post-card.featured .post-title {
    font-size: 1.3rem;
  }

  /* Blog listing */
  .page-header {
    padding: 4rem 1.25rem 2.5rem;
  }
  .page-header h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .blog-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
  }
  .sidebar {
    display: none;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card-thumb {
    min-height: 180px;
  }
  .blog-card.large .blog-card-thumb {
    height: 220px;
  }

  /* Single post */
  .single-post-inner {
    padding: 2.5rem 1.25rem 2.5rem;
  }
  .single-post-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .single-post-meta {
    font-size: 0.8rem;    /* slightly smaller on mobile */
    gap: 0.5rem 1rem;
  }
  .single-post-thumb {
    height: 220px;
    font-size: 3.5rem;
    border-radius: 8px;   /* reduced radius on mobile */
    margin-bottom: 2rem;
  }
  .ola-related {
    padding: 2.5rem 1.25rem 3rem;
  }
  .ola-related .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .post-nav a {
    max-width: 100%;
  }

  /* About page */
  .about-hero {
    padding: 4rem 1.25rem 3rem;
    min-height: 0;
  }
  .about-hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .profiles-section {
    padding: 2.5rem 1.25rem;
  }
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .about-content > div:last-child {
    display: none;
  } /* hide photo on mobile */
  .photo-spread {
    display: none;
  }

  /* About teaser */
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .about-visual {
    display: none;
  }

  /* Footer — stacks vertically */
  .site-footer {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Features */
  #ola-search-box {
    padding: 0 1.25rem;
  }
  #ola-backtop {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
  }
  #ola-lightbox-prev {
    left: 0.75rem;
  }
  #ola-lightbox-next {
    right: 0.75rem;
  }
  .ola-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ola-share-btns {
    flex-wrap: wrap;
  }
  .ola-toc {
    margin: 1.5rem 0;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤380px)
   — Extra adjustments for very narrow screens.
═══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .site-logo {
    font-size: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .nav-icon-btn {
    width: 30px;
    height: 30px;
  }
  .single-post-title {
    font-size: 1.5rem;
  }
  .about-hero h1 {
    font-size: 1.8rem;
  }
  .profile-card {
    padding: 1.5rem;
  }
  .btn-primary,
  .btn-light {
    font-size: 0.82rem;
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: READING PROGRESS BAR
   — Thin accent-coloured bar fixed at top below nav.
   — Width set dynamically via JS (section 1).
═══════════════════════════════════════════════════ */
#ola-progress-wrap {
  position: fixed;
  top: 65px; /* just below the nav */
  left: 0;
  right: 0;
  height: 3px;
  z-index: 201;
  background: transparent;
  pointer-events: none;
}

#ola-progress {
  height: 100%;
  width: 0%; /* JS sets this as user scrolls */
  background: var(--accent);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════════
   FEATURE: BACK TO TOP BUTTON
   — Fixed circle button, bottom-right corner.
   — Hidden by default; .visible class added by JS
     when user scrolls past 300px (section 2).
═══════════════════════════════════════════════════ */
#ola-backtop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  box-shadow: 0 4px 20px rgba(45, 36, 22, 0.35);
}

#ola-backtop.visible {
  opacity: 1;
  transform: translateY(0);
}

#ola-backtop:hover {
  background: var(--accent);
}

/* ═══════════════════════════════════════════════════
   FEATURE: DARK / LIGHT MODE TOGGLE
   — .nav-actions: row of icon buttons in the nav.
   — .nav-icon-btn: shared style for search, theme, hamburger.
   — Sun/moon icons toggled via data-theme attribute.
   — Dark mode overrides CSS variables and components.
   — Controlled by main.js (section 3) + localStorage.
═══════════════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
}

.nav-icon-btn:hover {
  background: var(--sand);
}

/* Show moon icon only in dark mode */
[data-theme="dark"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}
.icon-moon {
  display: none;
}
.icon-sun {
  display: block;
}

/* Dark mode — remapped CSS variables */
[data-theme="dark"] {
  --cream: #1a1610;
  --warm-white: #201c16;
  --sand: #3a3028;
  --clay: #c4a882;
  --bark: #e0c8a8;
  --moss: #9ab88a;
  --ink: #f5f0e8;
  --text: #d8ccbc;
  --light-text: #9a8d7e;
  --accent: #e8906a;
}

/* Dark mode — component-level overrides */
[data-theme="dark"] body {
  background: var(--cream);
  color: var(--text);
}
[data-theme="dark"] .site-nav {
  background: rgba(26, 22, 16, 0.95);
  border-bottom-color: rgba(80, 65, 45, 0.4);
}
[data-theme="dark"] .site-logo {
  color: var(--ink);
}
[data-theme="dark"] .nav-menu a {
  color: var(--text);
}
[data-theme="dark"] .nav-icon-btn {
  border-color: var(--sand);
  color: var(--text);
}
[data-theme="dark"] .nav-icon-btn:hover {
  background: var(--sand);
}

/* Cards */
[data-theme="dark"] .post-card,
[data-theme="dark"] .blog-card {
  background: #26201a;
  border-color: #3a3028;
}
[data-theme="dark"] .post-title,
[data-theme="dark"] .blog-card-title {
  color: var(--ink);
}
[data-theme="dark"] .post-excerpt,
[data-theme="dark"] .blog-card-excerpt,
[data-theme="dark"] .post-date,
[data-theme="dark"] .blog-date {
  color: var(--light-text);
}

/* Sidebar */
[data-theme="dark"] .sidebar-widget {
  background: #26201a;
  border-color: #3a3028;
}
[data-theme="dark"] .widget-title {
  color: var(--ink);
  border-bottom-color: var(--sand);
}
[data-theme="dark"] .widget ul li a {
  color: var(--text);
  border-bottom-color: #3a3028;
}
[data-theme="dark"] .cat-count {
  background: #3a3028;
  color: var(--bark);
}
[data-theme="dark"] .tag-cloud a {
  border-color: var(--sand);
  color: var(--text);
}

/* Sections */
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-title em {
  color: var(--ink);
}
[data-theme="dark"] .page-header {
  background: linear-gradient(180deg, #201c16 0%, #1a1610 100%);
  border-bottom-color: var(--sand);
}
[data-theme="dark"] .page-header h1 {
  color: var(--ink);
}
[data-theme="dark"] .page-header p {
  color: var(--light-text);
}

/* Hero */
[data-theme="dark"] .hero-title {
  color: var(--ink);
}
[data-theme="dark"] .hero-desc {
  color: var(--light-text);
}
[data-theme="dark"] .hero-eyebrow {
  color: var(--moss);
}

/* About teaser */
[data-theme="dark"] .about-teaser {
  background: #0e0c08;
}
[data-theme="dark"] .about-text h2,
[data-theme="dark"] .about-text h2 em {
  color: var(--ink);
}
[data-theme="dark"] .about-text p {
  color: rgba(245, 240, 232, 0.65);
}

/* Profiles section */
[data-theme="dark"] .profiles-section {
  background: #0e0c08;
}
[data-theme="dark"] .profiles-header h2 {
  color: var(--ink);
}
[data-theme="dark"] .profiles-header h2 em {
  color: var(--clay);
}
[data-theme="dark"] .profile-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 168, 130, 0.2);
}
[data-theme="dark"] .profile-name {
  color: var(--ink);
}
[data-theme="dark"] .profile-role {
  color: var(--clay);
}
[data-theme="dark"] .profile-bio {
  color: rgba(245, 240, 232, 0.6);
}
[data-theme="dark"] .love-tag {
  color: rgba(245, 240, 232, 0.7);
  border-color: rgba(196, 168, 130, 0.3);
}

/* About content */
[data-theme="dark"] .about-content h2 {
  color: var(--ink);
}
[data-theme="dark"] .about-content p {
  color: var(--text);
}
[data-theme="dark"] .hand-note {
  color: var(--moss);
  background: rgba(154, 184, 138, 0.1);
  border-left-color: var(--moss);
}

/* Single post */
[data-theme="dark"] .single-post-title {
  color: var(--ink);
}
[data-theme="dark"] .single-post-meta {
  color: var(--light-text);
}
[data-theme="dark"] .single-post-thumb {
  background: #26201a;
}
[data-theme="dark"] .post-content {
  color: var(--text);
}
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3 {
  color: var(--ink);
}
[data-theme="dark"] .post-content blockquote {
  background: rgba(196, 168, 130, 0.07);
  color: var(--bark);
  border-left-color: var(--clay);
}
[data-theme="dark"] .post-nav a {
  color: var(--bark);
}
[data-theme="dark"] .post-nav {
  border-top-color: var(--sand);
}

/* TOC */
[data-theme="dark"] .ola-toc {
  background: #26201a;
  border-color: var(--sand);
  border-left-color: var(--clay);
}
[data-theme="dark"] .toc-title {
  color: var(--ink);
}
[data-theme="dark"] .ola-toc li a {
  color: var(--text);
}

/* Share buttons */
[data-theme="dark"] .ola-share {
  border-color: var(--sand);
}
[data-theme="dark"] .ola-share-btn {
  border-color: var(--sand);
  color: var(--text);
  background: transparent;
}
[data-theme="dark"] .ola-share-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Categories strip */
[data-theme="dark"] .categories {
  border-color: var(--sand);
}
[data-theme="dark"] .category-pill {
  border-color: var(--sand);
  color: var(--text);
}
[data-theme="dark"] .category-pill:hover,
[data-theme="dark"] .category-pill.active {
  background: var(--ink);
  color: var(--cream);
}

/* Search */
[data-theme="dark"] #ola-search-box {
  background: #201c16;
  border-bottom-color: var(--sand);
}
[data-theme="dark"] #ola-search-input {
  color: var(--text);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #201c16;
  border-top-color: var(--sand);
}
[data-theme="dark"] .footer-logo {
  color: var(--ink);
}
[data-theme="dark"] .footer-logo span {
  color: var(--accent);
}
[data-theme="dark"] .footer-tagline {
  color: var(--clay);
}
[data-theme="dark"] .footer-links a {
  color: var(--light-text);
}

/* Tag colours — darker backgrounds for dark mode */
[data-theme="dark"] .tag-hike {
  background: #1e2e1a;
  color: var(--moss);
}
[data-theme="dark"] .tag-recipe {
  background: #2e1e16;
  color: var(--accent);
}
[data-theme="dark"] .tag-drawing {
  background: #1e1a2e;
  color: #b8a8e0;
}
[data-theme="dark"] .tag-milestone {
  background: #2e2414;
  color: var(--bark);
}
[data-theme="dark"] .tag-tutorial {
  background: #141e2e;
  color: #7ab8c8;
}
[data-theme="dark"] .tag-japan {
  background: #2e1414;
  color: #e08080;
}
[data-theme="dark"] .tag-travel {
  background: #14202e;
  color: #7ab0d0;
}
[data-theme="dark"] .tag-language {
  background: #242414;
  color: #c0c060;
}
[data-theme="dark"] .tag-photo {
  background: #242424;
  color: #b0b0b0;
}
[data-theme="dark"] .tag-finance {
  background: #142414;
  color: #80c080;
}
[data-theme="dark"] .tag-recommend {
  background: #2e2414;
  color: #d4a840;
}

[data-theme="dark"] #ola-backtop {
  background: var(--ink);
  color: var(--cream);
}
[data-theme="dark"] .float-tag {
  background: #2e2820;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* About hero */
[data-theme="dark"] .about-hero {
  background: linear-gradient(180deg, #201c16 0%, #1a1610 100%);
}
[data-theme="dark"] .about-eyebrow {
  color: var(--moss);
}
[data-theme="dark"] .about-hero h1 {
  color: var(--ink);
}
[data-theme="dark"] .about-hero-desc {
  color: var(--light-text);
}

/* Goals grid & post cards */
[data-theme="dark"] .site-section {
  background: transparent;
}
[data-theme="dark"] .post-card .post-title {
  color: var(--ink);
}
[data-theme="dark"] .spread-photo {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Read time badge */
[data-theme="dark"] .read-time {
  background: #3a3028;
  color: var(--light-text);
}

/* Related posts */
[data-theme="dark"] .ola-related {
  border-top-color: var(--sand);
}

/* Pagination */
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
  border-color: var(--sand);
  color: var(--text);
  background: transparent;
}
[data-theme="dark"] .pagination .current {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Tag cloud */
[data-theme="dark"] .tag-cloud a {
  background: transparent;
  border-color: var(--sand);
  color: var(--text);
}
[data-theme="dark"] .tag-cloud a:hover {
  background: var(--ink);
  color: var(--cream);
}

[data-theme="dark"] .view-all {
  color: var(--bark);
}
[data-theme="dark"] .categories {
  background: var(--cream);
}
[data-theme="dark"] .section {
  background: var(--cream);
}
[data-theme="dark"] .post-date::before {
  background: var(--sand);
}

/* Override inline background styles on goals section */
[data-theme="dark"] [style*="background:var(--warm-white)"],
[data-theme="dark"] [style*="background: var(--warm-white)"] {
  background: #201c16 !important;
}

/* ═══════════════════════════════════════════════════
   FEATURE: SEARCH BOX
   — Slides down from below the nav when toggled.
   — Height animates from 0 to 56px.
   — Controlled by main.js (section 7).
═══════════════════════════════════════════════════ */
#ola-search-box {
  position: fixed;
  top: 65px; /* just below nav */
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  padding: 0 3rem;
  height: 0; /* collapsed by default */
  overflow: hidden;
  transition: height 0.25s ease;
}

#ola-search-box.open {
  height: 56px; /* expanded when .open class added by JS */
}

#ola-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  padding: 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s;
}

#ola-search-input::placeholder {
  color: var(--light-text);
}

#ola-search-btn {
  background: transparent;
  border: none;
  color: var(--light-text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

#ola-search-btn:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   FEATURE: PHOTO LIGHTBOX
   — Full-screen overlay shown when post images are clicked.
   — Prev/next buttons for gallery navigation.
   — Keyboard arrows and Escape supported via JS (section 4).
═══════════════════════════════════════════════════ */
#ola-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 8, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

#ola-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#ola-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

#ola-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#ola-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#ola-lightbox-prev,
#ola-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#ola-lightbox-prev {
  left: 1.5rem;
}
#ola-lightbox-next {
  right: 1.5rem;
}

#ola-lightbox-prev:hover,
#ola-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════
   FEATURE: READ TIME BADGE
   — Small pill badge shown next to post dates.
   — Estimated read time calculated in PHP/JS.
═══════════════════════════════════════════════════ */
.read-time {
  font-size: 0.78rem;
  color: var(--light-text);
  background: var(--sand);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}

.single-post-meta .read-time {
  background: var(--sand);
}

/* ═══════════════════════════════════════════════════
   FEATURE: TABLE OF CONTENTS
   — Auto-built by JS (section 5) if post has 2+ headings.
   — Shown inside the post content area.
   — Active heading highlighted as user scrolls.
═══════════════════════════════════════════════════ */
.ola-toc {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-left: 3px solid var(--clay); /* accent left border */
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  font-size: 0.9rem;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}

.ola-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ola-toc li a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Short line prefix on each TOC link */
.ola-toc li a::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1.5px;
  background: var(--clay);
  flex-shrink: 0;
}

/* Sub-heading indent for H3 entries */
.ola-toc li.toc-sub a {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--light-text);
}

.ola-toc li.toc-sub a::before {
  width: 8px;
}

.ola-toc li a:hover,
.ola-toc li a.active {
  color: var(--accent);
}

.ola-toc li a.active::before {
  background: var(--accent); /* active heading indicator */
}

/* ═══════════════════════════════════════════════════
   FEATURE: SHARE BUTTONS
   — Row of share action buttons at end of single post.
   — Copy link, Twitter/X, WhatsApp.
   — Controlled by main.js (section 6).
═══════════════════════════════════════════════════ */
.ola-share {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ola-share-label {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--clay);
}

.ola-share-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ola-share-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--sand);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
  font-weight: 400;
}

.ola-share-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ═══════════════════════════════════════════════════
   FEATURE: RELATED POSTS SECTION
   — Full-width section at the bottom of single posts.
   — Three cards from the same category.
═══════════════════════════════════════════════════ */
.ola-related {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 3rem 4rem 5rem;
  border-top: 1px solid var(--sand);
}

/* ═══════════════════════════════════════════════════
   FEATURE: ARCHIVE TIMELINE (sidebar widget)
   — Collapsible year groups with month labels and
     individual post entries as a vertical timeline.
   — JS toggles .open class (section 9).
═══════════════════════════════════════════════════ */
.ola-archive {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ola-archive-year {
  border-radius: 10px;
  overflow: hidden;
}

/* Year header button — click to expand/collapse */
.ola-archive-year-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  cursor: pointer;
  background: var(--sand);
  border-radius: 8px;
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.2s;
}

.ola-archive-year-btn:hover {
  background: var(--clay);
}
[data-theme="dark"] .ola-archive-year-btn {
  background: #3a3028;
}
[data-theme="dark"] .ola-archive-year-btn:hover {
  background: #4a3f30;
}

.ola-archive-year-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.ola-archive-year-meta {
  font-size: 0.75rem;
  color: var(--light-text); /* post count e.g. "3 posts" */
}

.ola-archive-chevron {
  color: var(--light-text);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Chevron rotates 180° when year is open */
.ola-archive-year.open .ola-archive-chevron {
  transform: rotate(180deg);
}

/* Collapsible body — max-height trick for CSS transition */
.ola-archive-year-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 10px;
}

.ola-archive-year.open .ola-archive-year-body {
  max-height: 2000px; /* large enough to fit all posts */
}

.ola-archive-month {
  margin-top: 10px;
}

/* Month label above its entries */
.ola-archive-month-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 0 6px 16px;
  display: block;
}

/* Vertical timeline line connecting entries */
.ola-archive-entries {
  border-left: 1.5px solid var(--sand);
  margin-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

[data-theme="dark"] .ola-archive-entries {
  border-left-color: #3a3028;
}

.ola-archive-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 8px 5px 0;
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
  border-radius: 0 6px 6px 0;
}

.ola-archive-entry:hover {
  background: rgba(196, 168, 130, 0.1);
}

/* Dot on the timeline line */
.ola-archive-entry-dot {
  position: absolute;
  left: -5px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--warm-white);
  flex-shrink: 0;
  transition: background 0.2s;
}

[data-theme="dark"] .ola-archive-entry-dot {
  border-color: var(--cream);
}

.ola-archive-entry:hover .ola-archive-entry-dot {
  background: var(--accent); /* accent colour on hover */
}

.ola-archive-entry-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}

.ola-archive-entry-title {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s;
}

.ola-archive-entry:hover .ola-archive-entry-title {
  color: var(--accent);
}

.ola-archive-entry-meta {
  font-size: 0.72rem;
  color: var(--light-text); /* emoji + category + day */
}

[data-theme="dark"] .ola-archive-entry-title {
  color: var(--text);
}
[data-theme="dark"] .ola-archive-year-label {
  color: var(--ink);
}
[data-theme="dark"] .ola-archive-month-label {
  color: var(--light-text);
}

/* ═══════════════════════════════════════════════════
   FEATURE: SKELETON LOADING CARDS
   — Placeholder cards shown while post content loads.
   — Shimmer animation simulates loading state.
   — JS (section 10) hides them once real cards render.
═══════════════════════════════════════════════════ */
@keyframes ola-shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}

/* Shared shimmer style applied to each skeleton element */
.ola-skel {
  background: linear-gradient(
    90deg,
    var(--sand) 25%,
    var(--warm-white) 50%,
    var(--sand) 75%
  );
  background-size: 600px 100%;
  animation: ola-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

/* Skeleton card matches .blog-card grid layout */
.blog-card-skeleton {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 223, 208, 0.6);
  display: grid;
  grid-template-columns: 200px 1fr;
}

.blog-card-skeleton.large {
  grid-template-columns: 1fr;
}

.blog-card-skeleton.large .skel-thumb {
  height: 280px;
}

/* Thumbnail placeholder with shimmer overlay */
.skel-thumb {
  min-height: 160px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.skel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 25%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 75%
  );
  background-size: 600px 100%;
  animation: ola-shimmer 1.4s ease-in-out infinite;
}

.skel-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-skeleton.large .skel-body {
  padding: 2rem;
}

/* Individual skeleton element sizes */
.skel-tag {
  height: 20px;
  width: 70px;
} /* category tag */
.skel-h2 {
  height: 18px;
  width: 85%;
} /* title line 1 */
.skel-h2b {
  height: 18px;
  width: 60%;
} /* title line 2 */
.skel-text {
  height: 12px;
} /* body text lines */
.skel-text.w90 {
  width: 90%;
}
.skel-text.w75 {
  width: 75%;
}
.skel-text.w80 {
  width: 80%;
}

.skel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.skel-date {
  height: 12px;
  width: 90px;
} /* date placeholder */
.skel-read {
  height: 20px;
  width: 60px;
  border-radius: 20px;
} /* read-time badge */

/* Hide skeletons once real post cards exist in DOM */
.post-list:not(:empty) + .blog-skeletons {
  display: none;
}

/* Dark mode skeleton */
[data-theme="dark"] .blog-card-skeleton {
  background: #26201a;
  border-color: #3a3028;
}
[data-theme="dark"] .skel-thumb {
  background: #3a3028;
}
[data-theme="dark"] .ola-skel {
  background: linear-gradient(90deg, #3a3028 25%, #4a3f30 50%, #3a3028 75%);
  background-size: 600px 100%;
}

/* ═══════════════════════════════════════════════════
   FEATURE: SCROLL-REVEAL ANIMATIONS
   — Elements start invisible and slide up.
   — JS (section 11) uses IntersectionObserver to add
     .revealed when elements enter the viewport.
   — Stagger delays applied automatically by JS.
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes added by JS based on sibling position */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: LOADING SCREEN (Option C — dot pulse)
   — Full-page overlay shown on initial page load.
   — Displays site name + three pulsing dots.
   — JS (section at top of main.js) adds .hidden after
     window load or 4s timeout, fading it out.
   — Remove from header.php when testing locally in
     LocalWP (timing differs from live server).
═══════════════════════════════════════════════════ */
#ola-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

#ola-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#ola-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#ola-loader-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

#ola-loader-logo em {
  font-style: italic;
  color: var(--accent);
}

#ola-loader-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

#ola-loader-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  animation: ola-dot-pulse 1.2s ease-in-out infinite;
}

/* Staggered dot pulse delays */
#ola-loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
#ola-loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ola-dot-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

[data-theme="dark"] #ola-loader {
  background: var(--cream);
}
[data-theme="dark"] #ola-loader-logo {
  color: var(--ink);
}
[data-theme="dark"] #ola-loader-dots span {
  background: var(--clay);
}

/* ═══════════════════════════════════════════════════
   PROFILE AVATAR PHOTOS
   — Ensures uploaded profile photos fill the circular
     avatar container without distortion.
═══════════════════════════════════════════════════ */
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* ═══════════════════════════════════════════════════
   GOALS GRID (About page — "What we hope to document")
   — Auto-built from WordPress categories.
   — Three-column card grid, centred.
═══════════════════════════════════════════════════ */
.ola-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Goal cards are centred text with emoji, title, description */
.ola-goals-grid .post-card {
  padding: 2rem;
  text-align: center;
  display: block;
  text-decoration: none;
  overflow: hidden;
  word-break: break-word;
}

.ola-goals-grid .post-card .post-title {
  margin-bottom: 0.6rem;
  word-break: break-word;
  hyphens: auto;
}

.ola-goals-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.ola-goals-desc {
  font-size: 0.85rem;
  color: var(--light-text);
  line-height: 1.65;
  margin: 0;
}

/* Goals grid — tablet: 2 columns */
@media (max-width: 1024px) and (min-width: 481px) {
  .ola-goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Goals grid — mobile: 1 column, left-aligned */
@media (max-width: 480px) {
  .ola-goals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ola-goals-grid .post-card {
    padding: 1.25rem;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════
   CTA SECTION (About page bottom)
   — Centred call-to-action with a "Browse the blog" button.
═══════════════════════════════════════════════════ */
.ola-cta-section {
  padding: 5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--sand);
}

@media (max-width: 768px) {
  .ola-cta-section {
    padding: 3rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: POST SERIES BOX
   — Shown in single posts that belong to a series.
   — Lists all parts with the current one highlighted.
   — Populated via ola_render_series_box() in functions.php.
═══════════════════════════════════════════════════ */
.ola-series-box {
  background: var(--warm-white);
  border: 1.5px solid var(--sand);
  border-left: 4px solid var(--accent); /* accent left border */
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.ola-series-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ola-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ola-series-list li {
  font-size: 0.9rem;
}

.ola-series-list a {
  color: var(--bark);
  text-decoration: none;
  transition: color 0.2s;
}

.ola-series-list a:hover {
  color: var(--accent);
}

.ola-series-current {
  color: var(--text);
  font-weight: 500; /* bold = current post in series */
}

[data-theme="dark"] .ola-series-box {
  background: #26201a;
  border-color: #3a3028;
  border-left-color: var(--accent);
}

@media (max-width: 768px) {
  .ola-series-box {
    padding: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: IMAGE GALLERY [ola-gallery shortcode]
   — Used inside post content for multi-image layouts.
   — Columns set by ola-gallery-cols-N class.
   — Images zoom on hover; lightbox opens on click (JS).
═══════════════════════════════════════════════════ */
.ola-gallery {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}
.ola-gallery-cols-1 {
  grid-template-columns: 1fr;
}
.ola-gallery-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.ola-gallery-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ola-gallery-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ola-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3; /* consistent aspect ratio for all gallery images */
  background: var(--sand);
}

.ola-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.ola-gallery-item:hover .ola-gallery-img {
  transform: scale(1.04); /* subtle zoom on hover */
}

/* Gallery — mobile: always single column */
@media (max-width: 768px) {
  .ola-gallery-cols-2,
  .ola-gallery-cols-3,
  .ola-gallery-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Gallery — tablet: max 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .ola-gallery-cols-3,
  .ola-gallery-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: HIKE DETAILS CARD
   — Displayed at top of hike posts via ola_render_hike_card().
   — Stats grid: distance, elevation, time, difficulty.
═══════════════════════════════════════════════════ */
.ola-hike-card {
  background: linear-gradient(135deg, #f5f0e8, #ede6d8);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--sand);
}

.ola-hike-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* Four-column stats grid */
.ola-hike-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ola-hike-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

/* Full-width stat row (e.g. trail name) */
.ola-hike-stat-full {
  grid-column: 1 / -1;
  flex-direction: row;
  text-align: left;
  align-items: center;
  gap: 0.5rem;
}

.hike-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.hike-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.hike-lbl {
  font-size: 0.72rem;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Difficulty badge — colour-coded by level */
.hike-difficulty {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hike-easy {
  background: #d4edda;
  color: #2d6a4f;
}
.hike-moderate {
  background: #fff3cd;
  color: #856404;
}
.hike-hard {
  background: #f8d7da;
  color: #842029;
}
.hike-veryhard {
  background: #cfe2ff;
  color: #084298;
}

[data-theme="dark"] .ola-hike-card {
  background: #26201a;
  border-color: #3a3028;
}
[data-theme="dark"] .hike-val {
  color: var(--text);
}

/* Hike card — mobile: 2-column stats */
@media (max-width: 768px) {
  .ola-hike-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ola-hike-stat-full {
    grid-column: 1 / -1;
  }
  .ola-hike-card {
    padding: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════
   FEATURE: 404 PAGE (404.php)
   — Custom not-found page with large italic 404 number,
     inline search form, category pills, and recent posts.
   — Fallback plain version shown if feature disabled.
═══════════════════════════════════════════════════ */
.ola-404-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.ola-404-hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
}

/* Large italic "404" in accent colour */
.ola-404-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.ola-404-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.ola-404-desc {
  font-size: 1.05rem;
  color: var(--light-text);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* Inline search form on 404 page */
.ola-404-search {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.ola-404-search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--sand);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--warm-white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.ola-404-search-input:focus {
  border-color: var(--accent);
}

.ola-404-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Category pill links on 404 page */
.ola-404-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ola-404-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.ola-404-cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .ola-404-search-input {
  background: #26201a;
  border-color: #3a3028;
  color: var(--text);
}
[data-theme="dark"] .ola-404-cat-pill {
  background: #26201a;
  border-color: #3a3028;
}

@media (max-width: 768px) {
  .ola-404-hero {
    padding: 6rem 1.25rem 2.5rem;
  }
  .ola-404-search {
    flex-direction: column;
  }
  .ola-404-search .btn-primary {
    width: 100%;
  }
}