/*
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.3
License: GNU General Public License v2 or later
Tags: blog, personal, minimal, warm
*/

/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf7f2; --warm-white: #fff8f0; --sand: #e8dfd0;
  --clay: #c4a882; --bark: #7a5c3e; --moss: #6b7c5c; --sky: #a8bfc9;
  --ink: #2d2416; --text: #4a3f32; --light-text: #9a8a78; --accent: #d4785a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 3rem; background: rgba(250,247,242,0.88); backdrop-filter: blur(12px); 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); }
.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); }
.nav-menu .current-menu-item a { color: var(--bark); border-bottom: 1.5px solid var(--clay); padding-bottom: 2px; }
.page-wrap { padding-top: 72px; }

/* HERO */
.hero { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8rem 3rem 5rem; gap: 4rem; position: relative; overflow: hidden; }
.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; }
.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; }
.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; }
.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); 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; }

/* PHOTO STACK */
.hero-visual { position: relative; animation: fadeUp 0.9s ease 0.2s both; }
.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); }
.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; }
.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; }
.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; }
.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 */
.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;
  /* Animation set entirely by JS after measuring */
}
.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; }
.ticker-item::after { content: '·'; margin-left: 0.5rem; opacity: 0.5; }
/* The keyframe shifts by exactly one set — JS sets --ticker-shift via setProperty */
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--ticker-shift), 0, 0); }
}

/* CATEGORIES */
.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; padding-bottom: 0.5rem; scrollbar-width: none; }
.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; }

/* SECTIONS */
.section, .site-section { padding: 5rem 3rem; max-width: 1400px; margin-left: auto; margin-right: auto; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.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; }
.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: '→'; }

/* POST GRID */
.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); }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.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; }
.post-meta { padding: 1.5rem; }
.post-card.featured .post-meta { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.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; }
.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; }
.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 */
.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; }
.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 */
.page-header { padding: 9rem 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; }
.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; }
.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); }
.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; }
.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 */
.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); }
.cat-count { font-size: 0.75rem; background: var(--sand); color: var(--bark); padding: 0.2rem 0.6rem; border-radius: 50px; }
.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 */
.single-post { max-width: 1300px; margin: 0 auto; padding: 9rem 4rem 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; }
.single-post-meta { display: flex; gap: 1.5rem; align-items: center; color: var(--light-text); font-size: 0.85rem; }
.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-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; }
.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; }
.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%; }

/* ABOUT PAGE */
.about-hero { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem 3rem 5rem; background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%); position: relative; overflow: hidden; }
.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; }
.photo-spread { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1.2rem; padding: 0 3rem; margin-top: -3rem; 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; background: linear-gradient(145deg, #c4a882, var(--bark)); }
.spread-photo:nth-child(3) { height: 260px; background: linear-gradient(145deg, #ddd5f0, #9980c8); transform: rotate(2deg); }
.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; }
.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; }
.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; }
.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); }
.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; }
.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 { 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; }
.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 */
.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 */
.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 */
.site-footer { padding: 3rem; background: var(--warm-white); border-top: 1px solid var(--sand); display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); font-style: italic; }
.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 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
/* ═══════════════════════════════════════════════════
   ACTIVE NAV HIGHLIGHT
═══════════════════════════════════════════════════ */
.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 { display: none; }

#ola-mobile-menu {
  display: none;
  position: fixed; top: 65px; 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;
}
#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+)
   Wider padding, larger fonts
═══════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .site-nav { padding: 1.2rem 4rem; }
  .hero { padding: 8rem 4rem 5rem; }
  .about-teaser { padding: 6rem 4rem; }
  .section, .site-section { padding: 5rem 4rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (769px – 1024px)
   Sidebar hidden, 2-col grids become 1-col
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-nav { padding: 1rem 2rem; }
  .hero { padding: 7rem 2rem 4rem; gap: 2rem; }
  .hero-visual { display: none; }
  .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; }
  .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 { padding: 8rem 2rem 4rem; }
  .ola-related { padding: 3rem 2rem 4rem; }

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

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   Hamburger nav, single column, stacked everything
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .site-nav { padding: 1rem 1.25rem; }
  .nav-menu { display: none; }
  #ola-hamburger { display: flex; }
  #ola-mobile-menu { display: block; }
  .nav-actions { gap: 0.25rem; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding: 6rem 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 */
  .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 */
  .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: 7rem 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 { padding: 6rem 1.25rem 3rem; max-width: 100%; }
  .single-post-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .single-post-thumb { height: 240px; font-size: 3.5rem; }
  .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: 7rem 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; }
  .photo-spread { display: none; }

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

  /* Footer */
  .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-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 small 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 ADD-ONS
══════════════════════════════════════════ */

/* ── 1. READING PROGRESS BAR ── */
#ola-progress-wrap {
  position: fixed; top: 65px; left: 0; right: 0; height: 3px;
  z-index: 201; background: transparent; pointer-events: none;
}
#ola-progress {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 0.1s linear; border-radius: 0 2px 2px 0;
}

/* ── 2. BACK TO TOP ── */
#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); }

/* ── 3. DARK / LIGHT MODE ── */
.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); }

/* Sun/moon icon switching */
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.icon-moon { display: none; }
.icon-sun  { display: block; }

/* Dark mode — CSS variable overrides */
[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 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 (dark section — invert in dark mode) */
[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-tagline { color: var(--clay); }
[data-theme="dark"] .footer-links a { color: var(--light-text); }

/* Tag colours in dark mode — slightly brighter backgrounds */
[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; }

/* Back to top */
[data-theme="dark"] #ola-backtop { background: var(--ink); color: var(--cream); }

/* Float tags on hero photo stack */
[data-theme="dark"] .float-tag { background: #2e2820; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* About hero page */
[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 on About page */
[data-theme="dark"] .site-section { background: transparent; }
[data-theme="dark"] .post-card .post-title { color: var(--ink); }

/* Photo spread on About page */
[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 section */
[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 in sidebar */
[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); }

/* View all link */
[data-theme="dark"] .view-all { color: var(--bark); }

/* Section borders */
[data-theme="dark"] .categories { background: var(--cream); }
[data-theme="dark"] .section { background: var(--cream); }
[data-theme="dark"] .post-date::before { background: var(--sand); }

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

/* Ticker stays accent colour — no change needed */

/* Photo card text is always white — fine as-is */

/* ── 4. SEARCH ── */
#ola-search-box {
  position: fixed; top: 65px; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; gap: 0;
  background: var(--warm-white); border-bottom: 1px solid var(--sand);
  padding: 0 3rem; height: 0; overflow: hidden;
  transition: height 0.25s ease;
}
#ola-search-box.open { height: 56px; }
#ola-search-input {
  flex: 1; border: none; background: transparent;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text); outline: none; padding: 0;
}
#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;
}
#ola-search-btn:hover { color: var(--accent); }

/* ── 5. LIGHTBOX ── */
#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); }

/* ── 6. READ TIME ── */
.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); }

/* ── 7. TABLE OF CONTENTS ── */
.ola-toc {
  background: var(--warm-white); border: 1px solid var(--sand);
  border-left: 3px solid var(--clay); 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;
}
.ola-toc li a::before { content: ''; display: inline-block; width: 12px; height: 1.5px; background: var(--clay); flex-shrink: 0; }
.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); }

/* ── 8. SHARE BUTTONS ── */
.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-size: 0.85rem; color: var(--light-text);
  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); }

/* ── 9. RELATED POSTS ── */
.ola-related {
  max-width: 1300px; margin: 0 auto;
  padding: 3rem 4rem 5rem;
  border-top: 1px solid var(--sand);
}

/* ── RESPONSIVE for new features ── */
@media (max-width: 768px) {
  #ola-search-box { padding: 0 1.25rem; }
  #ola-lightbox-prev { left: 0.75rem; }
  #ola-lightbox-next { right: 0.75rem; }
  .ola-related { padding: 2.5rem 1.25rem 3rem; }
  .ola-share { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ── ARCHIVE TIMELINE (Style 3) ── */
.ola-archive { display: flex; flex-direction: column; gap: 4px; }

.ola-archive-year { border-radius: var(--border-radius, 10px); overflow: hidden; }

.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);
}
.ola-archive-chevron {
  color: var(--light-text); flex-shrink: 0;
  transition: transform 0.25s ease;
}
.ola-archive-year.open .ola-archive-chevron { transform: rotate(180deg); }

/* Collapsible body */
.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; }

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

.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;
}

.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); }

.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); }

.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);
}
[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); }

/* ═══════════════════════════════════════
   SKELETON LOADING CARDS
═══════════════════════════════════════ */

/* Shimmer animation shared by all skeleton elements */
@keyframes ola-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.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 wrapper — matches .blog-card 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; }

.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; }

.skel-tag  { height: 20px; width: 70px; }
.skel-h2   { height: 18px; width: 85%; }
.skel-h2b  { height: 18px; width: 60%; }
.skel-text { height: 12px; }
.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; }
.skel-read  { height: 20px; width: 60px; border-radius: 20px; }

/* Hide skeletons once real cards exist */
.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%;
}

/* ═══════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
═══════════════════════════════════════ */

/* Elements start hidden — JS adds .revealed when they enter viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers — applied automatically by JS */
.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; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── LOADING SCREEN (Option C — light + dot pulse) ── */
#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;
}
#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 ── */
.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) ── */
.ola-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
/* Goals cards inside grid */
.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;
}

/* Tablet — 2 columns */
@media (max-width: 1024px) and (min-width: 481px) {
  .ola-goals-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile — 1 column */
@media (max-width: 480px) {
  .ola-goals-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ola-goals-grid .post-card { padding: 1.25rem; text-align: left; }
}
