/* ==============================
   HANNAH'S LITTLE COTTAGE
   Cottagecore App Design System
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  /* Cottage Palette */
  --cream:        #F9F6F0;
  --cream-deep:   #F2EDE4;
  --cream-border: #E5DDD1;
  --parchment:    #EDE7DC;
  --warm-white:   #FDFAF6;
  --text:         #2C2117;
  --text-muted:   #7A6E63;
  --text-faint:   #B5AA9E;
  --accent:       #8B6B4E;    /* warm walnut brown */
  --accent-hover: #6E5239;
  --accent-soft:  #F0E8DF;
  --blush:        #D4A9A0;
  --sage:         #8FA88A;
  --gold:         #C9A96E;

  /* Surfaces */
  --color-bg:       var(--cream);
  --color-surface:  var(--warm-white);
  --color-border:   var(--cream-border);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;  --s20: 5rem;   --s24: 6rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(44,33,23,0.06);
  --shadow-md: 0 4px 16px rgba(44,33,23,0.09);
  --shadow-lg: 0 12px 40px rgba(44,33,23,0.13);

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 60px;
  --bottom-nav-h: 68px;
  --content-max: 720px;
  --grid-max: 1100px;
}

/* Dark mode */
[data-theme="dark"] {
  --cream:        #1C1914;
  --cream-deep:   #211E18;
  --cream-border: #332E27;
  --parchment:    #262119;
  --warm-white:   #201D18;
  --text:         #E8E0D5;
  --text-muted:   #9E9285;
  --text-faint:   #5A5249;
  --accent:       #C49A74;
  --accent-hover: #D4AA84;
  --accent-soft:  #2A2219;
  --color-bg:     var(--cream);
  --color-surface:var(--warm-white);
  --color-border: var(--cream-border);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--color-bg); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text);
  background: var(--color-bg);
  min-height: 100dvh;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── APP SHELL ── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--s4);
  max-width: var(--grid-max);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: var(--s2); }
.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1rem + 1vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s2);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.theme-toggle {
  padding: var(--s2);
  color: var(--text-muted);
  transition: color var(--transition);
}
.theme-toggle:hover { color: var(--accent); }

/* ── NAV DRAWER ── */
.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  z-index: 200;
  background: var(--warm-white);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-inner { padding: var(--s8) var(--s6); flex: 1; display: flex; flex-direction: column; gap: var(--s8); }
.nav-close {
  position: absolute;
  top: var(--s4); right: var(--s4);
  font-size: var(--text-base);
  color: var(--text-muted);
  padding: var(--s2);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
}
.nav-links { display: flex; flex-direction: column; gap: var(--s2); }
.nav-link {
  display: block;
  padding: var(--s3) 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-social { display: flex; flex-direction: column; gap: var(--s2); margin-top: auto; }
.social-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.social-link:hover { color: var(--accent); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(44,33,23,0.4);
  z-index: 190;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.show { opacity: 1; pointer-events: all; }

/* ── VIEWS ── */
#main {
  flex: 1;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.view { display: none; }
.view.active { display: block; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute; inset: 0;
}
.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,20,12,0.75) 0%,
    rgba(28,20,12,0.3) 50%,
    rgba(28,20,12,0.1) 100%
  );
}

.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-dots {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--s2);
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.45);
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 20px;
}

/* ── HERO CONTENT (unchanged) ── */
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--s12) var(--s6);
  max-width: var(--grid-max);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--s3);
  font-weight: 400;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw + 2rem, 6rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--s4);
}
.hero-title em {
  font-style: italic;
  display: block;
}
.hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--s8);
  font-weight: 300;
  line-height: 1.5;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--s8);
  right: var(--s6);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: var(--s3) var(--s8);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  padding: var(--s3) var(--s8);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ── SECTIONS ── */
.section {
  padding: clamp(var(--s12), 6vw, var(--s20)) var(--s4);
  max-width: var(--grid-max);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s8);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
}
.see-all {
  font-size: var(--text-sm);
  color: var(--accent);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent-hover); }

/* ── FEATURED GRID ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}

@media (min-width: 600px) {
  .featured-grid {
    gap: var(--s4);
  }
  .featured-grid .post-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid .post-card:first-child {
    grid-column: 1 / 3;
  }
}

/* ── POST CARDS ── */
.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.featured-grid .post-card:first-child .post-card-image {
  aspect-ratio: 3/4;
}

.post-card-body {
  padding: var(--s4) var(--s5);
}

@media (max-width: 599px) {
  .post-card-body {
    padding: var(--s3);
  }
  .post-card-title {
    font-size: var(--text-base);
  }
}
.post-card-cat {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--s2);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: var(--s2);
}
.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-date {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--s3);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--parchment);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--grid-max);
  margin: 0 auto;
}
@media (min-width: 700px) {
  .about-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.about-strip-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.about-strip-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-strip:hover .about-strip-image img {
  transform: scale(1.03);
}
.about-strip-text {
  padding: clamp(var(--s8), 5vw, var(--s16)) var(--s8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
}
.about-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.about-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
.about-title em { font-style: italic; }
.about-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── PHOTO MARQUEE STRIP ── */
.marquee-section {
  overflow: hidden;
  padding: var(--s6) 0;
  background: var(--parchment);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.marquee-track {
  overflow: hidden;
  width: 100%;
}
.marquee-inner {
  display: flex;
  gap: var(--s3);
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}
.marquee-section:hover .marquee-inner {
  animation-play-state: paused;
}
.marquee-inner img {
  height: 220px;
  width: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.marquee-inner img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-md);
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PHOTO GALLERY ── */
.gallery-section {
  overflow: hidden;
}
.gallery-header {
  text-align: center;
  padding-bottom: var(--s6);
}
.gallery-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--s2);
  font-style: italic;
  font-family: var(--font-display);
}
.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 3px;
  max-width: 100%;
  scrollbar-width: none;
  padding-bottom: var(--s2);
}
.gallery-grid::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
  .gallery-grid { gap: var(--s2); }
  .gallery-item--tall {
    aspect-ratio: 9/14;
  }
  .gallery-item--wide {
    aspect-ratio: 4/3;
  }
}
.gallery-item {
  flex: 0 0 auto;
  width: min(62vw, 260px);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--parchment);
  scroll-snap-align: center;
  border-radius: var(--radius-sm);
}
.gallery-item--tall {
  aspect-ratio: 9/14;
}
.gallery-item--wide {
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-tile { position: relative; display: block; }
.ig-play {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(28,20,12,0.55);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}
.ig-tile:hover .ig-play {
  opacity: 1;
  transform: scale(1.1);
}
.gallery-handle {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.gallery-handle:hover { color: var(--accent-hover); }

/* ── INSTAGRAM REELS ── */
.reels-section {
  padding-top: 0;
}
.reels-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s6);
}
.ig-follow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 400;
  transition: color var(--transition);
}
.ig-follow:hover { color: var(--accent-hover); }
.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}
@media (min-width: 600px) {
  .reels-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
}
.reel-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.reel-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--parchment);
}
.reel-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,20,12,0.25);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.reel-card:hover .reel-play { opacity: 1; }
.reels-footer {
  text-align: center;
  margin-top: var(--s8);
}

/* ── CATEGORY CHIPS ── */
.categories-section .section-title { margin-bottom: var(--s6); }
.category-chips, .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s8);
}
.chip {
  padding: var(--s2) var(--s5);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--color-surface);
  transition: all var(--transition);
  font-weight: 400;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 500px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: clamp(var(--s16), 10vw, var(--s24)) var(--s4) var(--s12);
  text-align: center;
  background: var(--parchment);
  border-bottom: 1px solid var(--color-border);
}
.page-hero--about {
  position: relative;
  padding: 0;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,20,12,0.6), rgba(28,20,12,0.2));
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: var(--s10) var(--s6);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--s3);
}
.page-hero--about .page-title { color: #fff; }
.page-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 300;
}

/* ── POST ARTICLE ── */
.post-article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s8) var(--s4) var(--s12);
}
.back-btn {
  display: block;
  padding: var(--s4) var(--s4) 0;
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 400;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--accent-hover); }

.post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--s8);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.post-cat-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-full);
}
.post-date-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.post-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--s6);
}
.post-body {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.75;
}
.post-body p { margin-bottom: var(--s5); max-width: 68ch; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: var(--s8) 0 var(--s4);
  line-height: 1.2;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  margin: var(--s6) 0 var(--s3);
}
.post-body ul, .post-body ol {
  padding-left: var(--s5);
  margin-bottom: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { color: var(--text-muted); line-height: 1.6; }
.post-body strong { color: var(--text); font-weight: 500; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: var(--s6) 0;
  box-shadow: var(--shadow-md);
}
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: var(--s6) 0;
}
.img-pair img {
  margin: 0;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
@media (max-width: 480px) {
  .img-pair { gap: 8px; }
}

/* ── RELATED POSTS ── */
.related-posts {
  background: var(--parchment);
  border-top: 1px solid var(--color-border);
  padding: var(--s10) var(--s4);
}
.related-posts h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--s6);
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  max-width: var(--grid-max);
  margin: 0 auto;
}
@media (min-width: 700px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── ABOUT PAGE ── */
.about-content { max-width: 680px; margin: 0 auto; }
.about-prose {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.about-prose .lead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}
.about-prose p { font-size: var(--text-base); color: var(--text-muted); line-height: 1.75; }
.about-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }

/* ── SHOP FEATURED ── */
.shop-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-bottom: var(--s10);
}
@media (min-width: 600px) {
  .shop-featured { grid-template-columns: 1fr 1fr; }
}
.shop-big-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s8) var(--s6);
  background: #A9BCA4;
  color: #35402F;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.shop-big-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.shop-big-card--alt {
  background: #E3C9C2;
  color: #4A3830;
}
.shop-big-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 500;
}
.shop-big-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 500;
}
.shop-big-card p {
  font-size: var(--text-sm);
  opacity: 0.85;
  line-height: 1.5;
}
.shop-big-cta {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--s3);
  letter-spacing: 0.04em;
}
.shop-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s4);
}

/* ── SHOP ── */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 500px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

.shop-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
}
.shop-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.shop-card-thumb {
  margin: calc(var(--s4) * -1) calc(var(--s5) * -1) var(--s3);
  aspect-ratio: 3/2;
  overflow: hidden;
}
.shop-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.shop-card:hover .shop-card-thumb img {
  transform: scale(1.05);
}
.shop-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
}
.shop-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; flex: 1; }
.shop-card-cta { font-size: var(--text-sm); color: var(--accent); font-weight: 500; margin-top: auto; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--warm-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--s2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--s2) var(--s4);
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
  min-width: 60px;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item.active svg {
  stroke: var(--accent);
}
.bottom-nav-item:active { transform: scale(0.92); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up-delay { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: var(--s16) var(--s4);
  color: var(--text-muted);
}

/* Safe area for notch phones */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(var(--s2), env(safe-area-inset-bottom));
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* ── LATEST FINDS (product grid) ── */
.finds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s6);
}
@media (min-width: 640px) { .finds-grid { grid-template-columns: repeat(3, 1fr); } }
.finds-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
}
.finds-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.finds-card .finds-img { background: #fff; padding: 10px; }
.finds-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
}
.finds-card .finds-cta {
  display: block;
  text-align: center;
  padding: 10px 8px 12px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1.5px solid var(--color-border);
}

/* ── FINDS CATEGORY TABS ── */
.finds-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.finds-tab {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.finds-tab.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(138, 155, 126, 0.08);
}

/* ── Shop boxes: little product link cards under each step ── */
.post-body .shop-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: calc(-1 * var(--s4)) 0 var(--s5);
  max-width: 68ch;
}
.post-body .shop-card {
  display: flex;
  flex-direction: column;
  width: 128px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-body .shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.post-body .shop-card .shop-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper, #f7f4ee);
  display: block;
}
.post-body .shop-card .shop-name {
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 8px 9px;
  color: var(--ink, #1e1c18);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body .shop-card .shop-shop {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  padding: 0 8px 8px;
  margin-top: -3px;
}
