/* Cherry Pickin' Thrift Store — palette pulled from the logo */
:root {
  --cream: #faf2ec;
  --cream-deep: #f3e6db;
  --cherry: #9e2729;
  --cherry-bright: #b8312f;
  --ink: #2a2521;
  --ink-soft: #5b524b;
  --line: #e3d4c6;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cherry); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 242, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand span { display: none; }
.nav { display: flex; align-items: center; gap: 26px; }
/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cherry);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--cherry); }
.btn {
  display: inline-block;
  background: var(--cherry);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.97rem;
  letter-spacing: 0.03em;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--cherry-bright); }
.nav a.btn { color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--cherry);
  border: 1.5px solid var(--cherry);
}
.btn-ghost:hover { background: var(--cherry); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  /* vertical only — keep the .wrap 24px side padding so it isn't edge-to-edge on mobile */
  padding-top: 72px;
  padding-bottom: 64px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--cherry);
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(42, 37, 33, 0.18);
  rotate: 1.2deg;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
/* scroll-margin so in-page anchors (#latest/#visit/#follow) clear the sticky header */
section { padding: 64px 0; scroll-margin-top: 92px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.alt { background: var(--cream-deep); }

/* Categories */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 22px;
  text-align: center;
}
.alt .cat { background: #fff; }
.cat .ico { margin-bottom: 14px; color: var(--cherry); line-height: 0; }
.cat .ico svg { width: 44px; height: 44px; }
.cat h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.cat p { color: var(--ink-soft); font-size: 0.97rem; }

/* Latest posts grid (pulled from Facebook) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-grid-loading { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 40px 0; }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(42, 37, 33, 0.14); }
.post-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
}
/* video tiles fill the same frame and crop like the photo tiles */
video.post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-media--none { background: var(--cream-deep); }
.post-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(158, 39, 41, 0.85);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  padding-left: 4px;
}
.post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-text { font-size: 0.96rem; line-height: 1.5; color: var(--ink); }
.post-date {
  margin-top: auto;
  font-family: Georgia, serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cherry);
}
.latest-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* Text fallback shown only if the grid can't load (no empty box) */
.feed-fallback {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 0 4px;
}

/* Story teaser */
.story-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story-teaser .since { font-style: italic; color: var(--cherry); font-size: 1.1rem; }
.story-teaser h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; margin: 8px 0 16px; }
.story-teaser p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 16px; }
.story-photo img { border-radius: 14px; box-shadow: 0 14px 34px rgba(42,37,33,0.16); }

/* Visit / location */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.visit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.visit-card h3 { font-size: 1.4rem; margin-bottom: 18px; font-weight: 600; }
.visit-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: baseline; }
.visit-row .label {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cherry);
  min-width: 80px;
}
.visit-row .val { color: var(--ink); }
.hours-list { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.hours-list .hrow { display: flex; justify-content: space-between; gap: 20px; }
.hours-list .hday { color: var(--ink); }
.hours-list .hrow span:last-child { color: var(--ink-soft); white-space: nowrap; }
.map-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.flag { color: #9a6a00; font-style: italic; }

/* About page */
.page-hero { text-align: center; padding: 64px 0 32px; }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem;
  color: var(--cherry); font-family: Georgia, serif; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 1.14rem; color: var(--ink); margin-bottom: 22px; }
.prose h2 { font-size: 1.9rem; font-weight: 600; margin: 40px 0 16px; }
.pull {
  border-left: 3px solid var(--cherry);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
}
.about-photo { margin: 36px auto; max-width: 560px; }
.about-photo img { border-radius: 14px; box-shadow: 0 14px 34px rgba(42,37,33,0.16); }

/* ---------- Follow band ---------- */
.follow-band {
  background: var(--cherry);
  color: #fff;
  text-align: center;
}
.follow-band .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-family: Georgia, serif;
  color: #f6cfc8;
  margin-bottom: 12px;
}
.follow-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 600; margin-bottom: 16px; }
.follow-band .follow-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.12rem;
  color: #fbe6e1;
}
.follow-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--cherry); }
.btn-light:hover { background: var(--cream); color: var(--cherry); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 40px;
}
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-grid img { height: 72px; width: auto; }
.footer-grid .links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-grid .links a { text-decoration: none; color: #fff; }
.footer-grid .links a:hover { text-decoration: underline; }
.copyright { text-align: center; margin-top: 32px; font-size: 0.88rem; color: #fff; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .story-teaser, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { padding: 0 24px; }
  .hero-photo { rotate: 0deg; order: -1; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .story-photo { order: -1; }

  /* Collapse the nav into a tap-to-open dropdown */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(42, 37, 33, 0.12);
    padding: 8px 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 24px;
    border-radius: 0;
  }
  .nav a.btn {
    margin: 10px 24px 6px;
    text-align: center;
  }
}
@media (max-width: 460px) {
  .cats { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .brand img { height: 52px; }
}
