:root {
  --ink: #241f1a;
  --ink-soft: #6f6255;
  --paper: #f7f1e8;
  --paper-raised: #fffdf9;
  --line: #e6dac8;
  --accent: #b3673f;
  --accent-dark: #93502e;
  --accent-soft: #f0dcc9;
  --sage: #5c6b52;
  --sage-soft: #e3e8dc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(36, 31, 26, 0.05);
  --shadow: 0 10px 30px -12px rgba(36, 31, 26, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(36, 31, 26, 0.3);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -8%, #fdf5e8 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #f2e4cf 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__logo, .site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.site-header__word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-header__nav a {
  margin-left: 30px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-header__nav a:hover { color: var(--accent-dark); }

main { max-width: 1120px; margin: 0 auto; padding: 0 6vw 100px; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 96px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero__illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.06;
  margin: 0 0 20px;
}
.hero__sub {
  color: var(--ink-soft);
  font-size: 1.18rem;
  max-width: 40em;
  margin: 0 auto 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.button:hover { background: var(--accent-dark); box-shadow: var(--shadow); transform: translateY(-1px); }
.arrow { transition: transform 0.15s ease; display: inline-block; }
.button:hover .arrow, .post-card:hover .arrow { transform: translateX(3px); }

/* ---------- category hero (sub pages) ---------- */
.category-hero { padding: 64px 0 30px; }
.category-hero .hero__eyebrow a { color: inherit; text-decoration: none; }
.category-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.category-hero__icon { font-size: 0.85em; }
.category-hero p:not(.hero__eyebrow) { color: var(--ink-soft); font-size: 1.05rem; max-width: 42em; }

h2 { font-size: 1.5rem; margin: 60px 0 26px; }

/* ---------- category grid ---------- */
.category-grid-wrap, .post-grid-wrap { margin-top: 30px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 14px 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.category-tile__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 1.55rem;
}
/* cycle through a few soft tints so the grid doesn't look monotone */
.category-grid a:nth-child(6n+2) .category-tile__icon-wrap,
.category-tile:nth-of-type(6n+2) .category-tile__icon-wrap { background: var(--sage-soft); }
.category-grid a:nth-child(6n+3) .category-tile__icon-wrap { background: #f0e2ea; }
.category-grid a:nth-child(6n+4) .category-tile__icon-wrap { background: #dfe6ee; }
.category-grid a:nth-child(6n+5) .category-tile__icon-wrap { background: #f3e6d4; }
.category-grid a:nth-child(6n+0) .category-tile__icon-wrap { background: #e6e0d0; }
.category-tile__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
}

/* ---------- post grid / cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.post-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.post-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-card__img-wrap img { transform: scale(1.06); }
.post-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(4px);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.post-card__body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__body h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }
.post-card__body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.post-card__cta { font-size: 0.85rem; font-weight: 600; color: var(--accent-dark); }

.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---------- single post ---------- */
.post__header { padding: 44px 0 10px; }
.post__categories { margin: 0 0 16px; }
.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-right: 6px;
  text-decoration: none;
}
.post__header h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
.post__date { color: var(--ink-soft); font-size: 0.9rem; }
.post__cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 28px 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.post__body { font-size: 1.1rem; max-width: 46em; }
.post__body h2 { margin-top: 40px; font-size: 1.35rem; }

.post__products { margin-top: 60px; border-top: 1px solid var(--line); padding-top: 36px; }
.post__products h2 { margin-top: 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.product-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-card__body { padding: 14px 16px 18px; }
.product-card__name { margin: 0 0 3px; font-size: 0.96rem; font-weight: 600; font-family: var(--font-display); }
.product-card__shop { margin: 0 0 8px; font-size: 0.8rem; color: var(--ink-soft); }
.product-card__price { margin: 0 0 12px; font-size: 0.92rem; color: var(--accent-dark); font-weight: 700; }
.product-card__cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}
.product-card:hover .product-card__cta { background: var(--accent-dark); }

.etsy-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 44px 6vw 60px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.site-footer__nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-footer__nav a:hover { color: var(--accent-dark); }
.site-footer__disclosure { color: var(--ink-soft); font-size: 0.85rem; max-width: 60em; margin: 0 0 8px; }
.site-footer__copy { color: var(--ink-soft); font-size: 0.8rem; margin: 0; }

@media (max-width: 640px) {
  .site-header { padding: 14px 5vw; }
  .site-header__nav a { margin-left: 16px; }
  .site-header__word { font-size: 1.1rem; }
  .hero { padding: 64px 0 40px; }
}
