@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --card-soft: #f2ead9;
  --border: #e2d5bf;
  --border-strong: #d2bd98;
  --text: #2b2420;
  --text-dim: #8a7c68;
  --accent: #b5482f;
  --accent-soft: #d97452;
  --olive: #6b7047;
  --olive-soft: #eef0e3;
  --ink: #2b2420;
  --shadow-color: 60, 42, 24;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .font-display {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.16;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.eyebrow {
  font-family: 'Karla', sans-serif; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: #f1e6d3; font-size: 12.5px; text-align: center;
  padding: 9px 16px; letter-spacing: 0.02em;
}
.topbar a { color: var(--accent-soft); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(246,241,231,0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo {
  font-family: 'Bitter', serif; font-weight: 700; font-size: 26px;
  color: var(--text); letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
nav.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
nav.main-nav a {
  color: var(--text); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
}
nav.main-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); color: var(--text);
  font-size: 19px; padding: 5px 11px; cursor: pointer; border-radius: 3px;
}
@media (max-width: 760px) {
  nav.main-nav { display: none; width: 100%; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; padding: 14px 0; }
  nav.main-nav a { display: block; padding: 11px 4px; border-top: 1px solid var(--border); }
  .nav-toggle { display: inline-block; }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- Profile bar (Find Your Style) ---------- */
.profile-bar { background: var(--olive-soft); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.profile-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.profile-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card);
  border: 1px solid var(--border-strong); padding: 6px 14px; color: var(--text); font-weight: 600;
  border-radius: 999px;
}
.profile-link { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; }
.profile-panel {
  display: none; background: var(--card); border: 1px solid var(--border); padding: 24px; margin: 14px 0 20px;
  border-radius: 4px; box-shadow: 0 14px 34px -18px rgba(var(--shadow-color),0.3);
}
.profile-panel.open { display: block; }
.pfields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 700px) { .pfields { grid-template-columns: 1fr; } }
.psel { display: flex; flex-direction: column; gap: 7px; }
.psel label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.psel select {
  padding: 12px 13px; border: 1px solid var(--border-strong); background: var(--card-soft);
  color: var(--text); font-size: 14.5px; border-radius: 3px; font-family: 'Karla', sans-serif;
}
.pactions { display: flex; gap: 10px; flex-wrap: wrap; }
.pnote { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fef8ee; font-weight: 700; padding: 14px 26px; border: none; cursor: pointer; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.08em; border-radius: 3px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 10px 22px -10px rgba(181,72,47,0.5);
}
.btn:hover { text-decoration: none; transform: translateY(-2px) rotate(-0.4deg); box-shadow: 0 16px 28px -12px rgba(181,72,47,0.58); }
.btn-outline {
  background: transparent; color: var(--text); border: 2px dashed var(--border-strong);
  box-shadow: none; padding: 12px 24px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; text-decoration: none; }
.btn-olive { background: linear-gradient(135deg, var(--olive), #565a38); box-shadow: 0 10px 22px -10px rgba(107,112,71,0.5); }
.btn-small { padding: 10px 18px; font-size: 11px; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-tight { padding: 40px 0; }
h2.section-title { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 10px; font-weight: 600; }
p.section-sub { color: var(--text-dim); max-width: 620px; margin: 0 0 36px; font-size: 16px; }

/* ---------- Grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Category cards ---------- */
.cat-card {
  background: var(--card); border: 1px solid var(--border); padding: 30px; border-radius: 4px;
  position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease;
  box-shadow: 0 2px 10px -6px rgba(var(--shadow-color),0.14);
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 13px);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.5deg); }
.cat-card:nth-child(odd):hover { transform: translateY(-6px) rotate(-0.5deg); }
.cat-card:hover { box-shadow: 0 24px 40px -20px rgba(var(--shadow-color),0.3); border-color: var(--border-strong); }
.cat-card.recommended { border-color: var(--accent); box-shadow: 0 20px 36px -18px rgba(181,72,47,0.32); }
.cat-card.recommended::before { transform: scaleX(1); }
.cat-card h3 { font-size: 21px; margin: 0 0 9px; font-weight: 600; }
.cat-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 20px; min-height: 42px; }
/* Opt-in real-photo system (CATEGORY_PHOTOS in build_site.py) — same pattern
   as the other sites in the portfolio. .cat-photo bleeds to the card edges
   on the homepage grid; .cat-banner is a standalone box on the category page. */
.cat-photo {
  height: 170px; margin: -30px -30px 20px; width: calc(100% + 60px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cat-banner {
  height: 260px; border-radius: 4px; margin-bottom: 24px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1px solid var(--border);
}
.cat-img-jewelry { background-image: url('../images/categories/jewelry.jpg'); }
.cat-img-decor { background-image: url('../images/categories/decor.jpg'); }
.cat-img-candles { background-image: url('../images/categories/candles.jpg'); }
.cat-img-leather { background-image: url('../images/categories/leather.jpg'); }
.cat-img-kids { background-image: url('../images/categories/kids.jpg'); }
.cat-img-art { background-image: url('../images/categories/art.jpg'); }
.recommend-tag {
  display: inline-block; background: var(--olive-soft); color: #4d5133;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 11px; margin-bottom: 12px; border-radius: 999px;
  transform: rotate(-1.5deg);
}

/* ---------- Product cards ---------- */
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 4px;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  box-shadow: 0 2px 10px -6px rgba(var(--shadow-color),0.14);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1);
}
.product-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.4deg); }
.product-card:nth-child(odd):hover { transform: translateY(-6px) rotate(-0.4deg); }
.product-card:hover { box-shadow: 0 26px 42px -20px rgba(var(--shadow-color),0.28); }
.product-card .swatch {
  height: 112px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #c88a52 42%, var(--olive) 100%);
  border-bottom: 1px dashed var(--border-strong);
}
.product-card .swatch-icon { display: flex; align-items: center; justify-content: center; }
.product-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card .kicker {
  color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 9px;
}
.product-card h3 { font-size: 21px; margin: 0 0 10px; font-weight: 600; }
.product-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 15px; }
.product-card ul { margin: 0 0 18px; }
.product-card li { font-size: 13.5px; color: var(--text-dim); padding-left: 17px; position: relative; margin-bottom: 7px; }
.product-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 1px; background: var(--accent); }
.cta-row { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.price-note { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 78px; overflow: hidden; }
.hero-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #f6f1e7 0%, #f6f1e7 34%, rgba(246,241,231,0.8) 54%, rgba(246,241,231,0.32) 80%, rgba(246,241,231,0.1) 100%),
    radial-gradient(680px 420px at 84% -6%, rgba(181,72,47,0.14), transparent 60%),
    radial-gradient(560px 420px at 4% 104%, rgba(107,112,71,0.16), transparent 60%),
    url('../images/hero-photo.jpg');
  background-size: cover, auto, auto, cover;
  background-position: center, center, center, right center;
  background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(43,36,32,0.05) 1px, transparent 1px),
    radial-gradient(rgba(181,72,47,0.035) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
  opacity: 0.7;
}
.hero-motif { position: absolute; z-index: 0; pointer-events: none; opacity: 0.4; }
.hero-motif-wheel { top: -50px; right: -50px; width: 460px; height: 460px; }
.hero-motif-stitch { bottom: -30px; left: -30px; width: 380px; height: 260px; opacity: 0.5; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 700px; }
.hero h1 { font-size: clamp(38px, 5.8vw, 64px); margin: 0 0 22px; font-weight: 600; letter-spacing: -0.01em; }
.stamp-word {
  display: inline-block; color: var(--accent); border: 2px solid var(--accent);
  padding: 0 12px; border-radius: 3px; transform: rotate(-2.5deg);
  font-weight: 700;
}
.hero-rule { width: 84px; height: 3px; background-image: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); margin: 0 0 26px; }
.hero .lede { font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,253,248,0.7); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Section divider (torn paper) ---------- */
.section-divider { display: block; line-height: 0; position: relative; z-index: 1; margin-top: -2px; }
.section-divider svg { display: block; width: 100%; height: 48px; }

/* ---------- Section texture ---------- */
.texture-grain {
  background-image:
    radial-gradient(rgba(43,36,32,0.045) 1px, transparent 1px),
    radial-gradient(rgba(181,72,47,0.03) 1px, transparent 1px);
  background-size: 3px 3px, 8px 8px;
  background-position: 0 0, 3px 2px;
}
.texture-hairline {
  background-image: repeating-linear-gradient(115deg, rgba(107,112,71,0.05) 0px, rgba(107,112,71,0.05) 1px, transparent 1px, transparent 28px);
}

/* ---------- Trust strip ---------- */
.trust-bar { background: var(--ink); color: #f1e6d3; position: relative; overflow: hidden; }
.trust-bar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(241,230,211,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.trust-bar .wrap { position: relative; z-index: 1; }
.trust-bar .grid-4 { padding: 38px 0; }
.trust-item { text-align: center; }
.trust-item .num { font-family: 'Bitter', serif; font-weight: 700; font-size: 34px; color: var(--accent-soft); }
.trust-item .label { font-size: 12px; color: #cbbba0; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Stamp badge / icon system ---------- */
.icon-badge {
  width: 62px; height: 62px; position: relative; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px; flex-shrink: 0;
}
.icon-badge-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; color: inherit; }
.icon-svg { width: 25px; height: 25px; display: block; }
.footer-cat-icon {
  display: inline-flex; width: 40px; height: 40px; margin-right: 10px; vertical-align: -12px;
  color: var(--accent-soft); position: relative; align-items: center; justify-content: center;
}
.footer-cat-icon .icon-svg { width: 16px; height: 16px; position: relative; z-index: 2; }
.footer-cat-icon .stamp-ring { color: inherit; }

/* ---------- Blog ---------- */
.blog-card { background: var(--card); border: 1px solid var(--border); overflow: hidden; border-radius: 4px;
  box-shadow: 0 2px 10px -6px rgba(var(--shadow-color),0.14);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(var(--shadow-color),0.26); }
.blog-card .thumb {
  height: 130px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--olive-soft), #f3e6cf); border-bottom: 1px dashed var(--border-strong);
}
.blog-card .thumb .icon-badge { margin-bottom: 0; }
/* Combined selector at (0,3,0)-ish specificity so this reliably beats the
   .blog-card .thumb gradient-background shorthand above regardless of
   source order (a sibling site shipped that exact specificity bug once). */
.blog-card .thumb.blog-img-personalized-gifts-timing {
  background-size: cover; background-position: center; background-image: url('../images/blog/personalized-gifts-timing.jpg');
}
.blog-card .thumb.blog-img-caring-for-handmade-ceramics {
  background-size: cover; background-position: center; background-image: url('../images/blog/caring-for-handmade-ceramics.jpg');
}
.blog-card .thumb.blog-img-what-handmade-actually-means {
  background-size: cover; background-position: center; background-image: url('../images/blog/what-handmade-actually-means.jpg');
}
.blog-card .thumb.blog-img-reading-a-handmade-listing {
  background-size: cover; background-position: center; background-image: url('../images/blog/reading-a-handmade-listing.jpg');
}
.blog-card .thumb.blog-img-real-leather-vs-vegan-leather {
  background-size: cover; background-position: center; background-image: url('../images/blog/real-leather-vs-vegan-leather.jpg');
}
.post-banner {
  height: 300px; border-radius: 4px; margin-bottom: 28px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1px solid var(--border);
}
.post-banner.blog-img-personalized-gifts-timing { background-image: url('../images/blog/personalized-gifts-timing.jpg'); }
.post-banner.blog-img-caring-for-handmade-ceramics { background-image: url('../images/blog/caring-for-handmade-ceramics.jpg'); }
.post-banner.blog-img-what-handmade-actually-means { background-image: url('../images/blog/what-handmade-actually-means.jpg'); }
.post-banner.blog-img-reading-a-handmade-listing { background-image: url('../images/blog/reading-a-handmade-listing.jpg'); }
.post-banner.blog-img-real-leather-vs-vegan-leather { background-image: url('../images/blog/real-leather-vs-vegan-leather.jpg'); }
.about-banner {
  height: 280px; border-radius: 4px; margin-bottom: 26px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1px solid var(--border);
  background-image: url('../images/about.jpg');
}
.blog-card .content { padding: 22px; }
.blog-card .tag { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.blog-card h3 { font-size: 19px; margin: 0 0 9px; font-weight: 600; }
.blog-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 12px; }
.read-more { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
article.post h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 12px; font-weight: 600; }
article.post .meta { color: var(--text-dim); font-size: 13px; margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.06em; }
article.post h2 { font-size: 24px; margin: 38px 0 14px; font-weight: 600; }
article.post p { font-size: 16px; margin: 0 0 16px; }
article.post ul { margin: 0 0 18px; padding-left: 20px; }
article.post li { list-style: disc; margin-bottom: 8px; font-size: 15.5px; }
.callout {
  background: var(--card-soft); border-left: 3px dashed var(--accent); padding: 18px 22px; margin: 28px 0;
  font-size: 15px; border-radius: 0 4px 4px 0;
}

/* ---------- Disclosure / FAQ ---------- */
.disclosure-banner {
  background: var(--card-soft); border: 1px solid var(--border-strong); padding: 18px 22px;
  font-size: 14px; color: var(--text-dim); border-radius: 4px;
}
.faq-block { margin-top: 52px; max-width: 760px; }
.faq-item { border-top: 1px dashed var(--border-strong); padding: 22px 0; }
.faq-item h3 { font-size: 17px; margin: 0 0 8px; font-family: 'Karla', sans-serif; font-weight: 700; }
.faq-item p { color: var(--text-dim); font-size: 15px; margin: 0; }
.crumb { font-size: 12.5px; color: var(--text-dim); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.crumb a { color: var(--text-dim); }

/* ---------- Simple pages ---------- */
.simple-page { max-width: 760px; }
.simple-page h1 { margin: 0 0 20px; font-weight: 600; }
.simple-page h2 { font-size: 22px; margin: 32px 0 10px; font-weight: 600; }
.simple-page p { font-size: 15.5px; color: var(--text-dim); margin: 0 0 14px; }
.simple-page ul { padding-left: 20px; margin: 0 0 16px; }
.simple-page li { list-style: disc; color: var(--text-dim); font-size: 15px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6c7b4; margin-top: 40px; border-top: 1px solid #453a30; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 54px 0 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: 'Bitter', serif; font-weight: 700; color: #f1e6d3; font-size: 17px; margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.site-footer p { font-size: 13.5px; color: #b6a68f; }
.site-footer ul li { margin-bottom: 11px; display: flex; align-items: center; }
.site-footer a { color: #d6c7b4; font-size: 13.5px; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid #453a30; padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: #96876f;
}

/* ---------- Scroll-reveal (progressive enhancement, JS-gated) ---------- */
html.js-anim .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1);
}
html.js-anim .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
