:root {
  --bg: #f4efe6;
  --paper: #fbf7f1;
  --ink: #3a2a22;
  --muted: #7a6556;
  --sage: #5d6b4e;
  --sage-dark: #4c5a3f;
  --line: #e4d9cb;
  --gold: #b08958;
  --script: "Great Vibes", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body.charm {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
.sr, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus { width: auto; height: auto; clip: auto; left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.site-nav a:hover, .shop-toggle:hover { color: var(--sage-dark); }
.shop-drop { position: relative; }
.shop-toggle {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.shop-toggle::after { content: " ▾"; font-size: 11px; }
.shop-menu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(58, 42, 34, 0.08);
}
.shop-menu.is-open, .shop-drop:hover .shop-menu { display: grid; }
.shop-menu a { padding: 8px 10px; border-radius: 8px; }
.shop-menu a:hover { background: #f3ece3; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer; border-radius: 999px;
}
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--sage); color: white;
  font-size: 10px; display: inline-flex; align-items: center; justify-content: center;
}
.day-badge {
  display: none;
  margin-left: 8px;
  background: var(--sage);
  color: #f6f3ea;
  border-radius: 10px 16px 12px 18px;
  padding: 8px 12px;
  font-family: var(--script);
  font-size: 22px;
  line-height: 0.9;
  transform: rotate(2deg);
}
.day-badge span { display: block; font-size: 20px; }
.nav-toggle {
  margin-left: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.search-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 14px;
  gap: 8px;
}
.search-panel.is-open { display: flex; }
.search-panel input {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 16px;
}
.search-panel button, .btn, .woocommerce a.button, .woocommerce button.button, .woocommerce .duck-card a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--sage) !important;
  color: #f7f4ee !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none !important;
}
.btn:hover, .woocommerce a.button:hover { background: var(--sage-dark) !important; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
  .day-badge { display: block; }
  .header-tools { margin-left: 0; }
  .site-nav { margin-left: 8px; flex: 1; }
}

@media (max-width: 979px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: sticky; }
  .shop-menu { position: static; box-shadow: none; }
}

.hero { position: relative; min-height: 560px; background: #d7c4a4; overflow: hidden; }
.hero__photo { width: 100%; height: 640px; object-fit: cover; object-position: 70% center; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244,239,230,0.78) 0%, rgba(244,239,230,0.28) 46%, rgba(244,239,230,0) 68%);
}
.hero__layout {
  position: absolute; inset: 0;
  max-width: 1240px; margin: 0 auto;
  padding: 48px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.hero__copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.9;
  font-weight: 560;
  font-style: italic;
}
.hero__kicker {
  margin: 14px 0 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}
.perks { display: flex; gap: 22px; list-style: none; padding: 22px 0 0; margin: 0; font-size: 13px; }
.perks span { display: block; font-size: 18px; text-align: center; }
.hero__aside { text-align: right; align-self: flex-start; margin-top: 24px; }
.script-note {
  font-family: var(--script);
  font-size: 42px;
  line-height: 0.9;
  margin: 0 0 16px;
}
.wood-sign {
  display: inline-block;
  background: #8d7352;
  color: #f3ead8;
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  font-size: 14px;
  transform: rotate(3deg);
  box-shadow: 0 8px 0 rgba(0,0,0,0.05);
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tile img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.tile span { display: block; padding: 12px 14px 16px; }
.tile strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 560; }
.tile em { display: block; margin-top: 4px; color: var(--muted); font-style: normal; font-size: 14px; }
.section-head, .pic-band__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px;
}
.section-head h2, .page-intro h1 { margin: 0; font-size: 40px; }
.section-head a { font-size: 14px; color: var(--muted); }

.duck-grid, ul.products.duck-grid, .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product, .duck-card {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 14px;
}
.duck-card__media { position: relative; }
.duck-card__media img, .woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f7f1e8;
}
.wish {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,0.9); cursor: pointer;
}
.wish.is-saved { color: #9a3d46; }
.duck-card__name { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.duck-card__price, .woocommerce ul.products li.product .price { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.duck-card .button, .woocommerce ul.products li.product .button { width: 100%; }

.pic-band {
  margin-top: 20px;
  padding: 28px 0 10px;
  background:
    linear-gradient(rgba(244,239,230,0.88), rgba(244,239,230,0.92)),
    url("../seed/hero.jpg") center/cover;
}
.script-title { font-family: var(--script); font-size: 64px; line-height: 0.9; font-weight: 400; letter-spacing: 0; margin: 0; }
.pic-scroller { position: relative; }
.pic-rail, .pic-wall {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 48px 24px;
}
.pic-wall { flex-wrap: wrap; overflow: visible; padding: 0; }
.polaroid {
  flex: 0 0 210px;
  background: white;
  padding: 10px 10px 4px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(58,42,34,0.12);
  scroll-snap-align: start;
  transform: rotate(-2deg);
}
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 26px;
  text-align: center;
  margin: 4px 0;
}
.pic-prev, .pic-next {
  position: absolute; top: 38%;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: white; cursor: pointer;
}
.pic-prev { left: 8px; }
.pic-next { right: 8px; }

.flock-band { padding: 10px 0 40px; }
.flock { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.flock__line { font-size: 54px; }
.flock__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.flock__card h2 { margin: 0 0 6px; font-size: 32px; }
.flock__card p { margin: 0 0 14px; color: var(--muted); }
.flock__row { display: flex; gap: 8px; }
.flock__row input, .stack-form input, .stack-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
}
.form-note { color: var(--sage-dark); font-weight: 700; }
.hp { position: absolute; left: -9999px; }

.site-footer { padding: 10px 20px 28px; }
.site-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.footer-brand { font-family: var(--script); font-size: 42px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-sign { font-family: var(--script); font-size: 28px; line-height: 0.95; text-align: right; margin: 0; }
.footer-copy { text-align: center; color: var(--muted); font-size: 13px; }

.page-intro { max-width: 680px; margin-bottom: 22px; }
.page-intro p, .entry-content { color: var(--ink); max-width: 68ch; }
.stack-form { max-width: 560px; display: grid; gap: 8px; margin-top: 20px; }
.entry { padding-bottom: 40px; }
.entry-title { font-size: 48px; margin-top: 0; }

.woocommerce div.product { display: grid; gap: 28px; }
.woocommerce div.product .product_title { font-size: 42px; margin-top: 0; }
.woocommerce div.product p.price { font-size: 20px; }
@media (min-width: 860px) {
  .woocommerce div.product { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 1100px) {
  .tiles, .duck-grid, .woocommerce ul.products, ul.products.duck-grid { grid-template-columns: repeat(3, 1fr); }
  .flock { grid-template-columns: 1fr; }
  .hero__photo { height: 520px; }
  .script-title, .flock__line { font-size: 46px; }
}
@media (max-width: 720px) {
  .tiles, .duck-grid, .woocommerce ul.products, ul.products.duck-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__aside { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(244,239,230,0.82), rgba(244,239,230,0.2)); }
  .hero__layout { align-items: flex-end; }
  .day-badge { display: none; }
  .brand img { width: 64px; height: 64px; }
  .pic-rail { padding-left: 16px; padding-right: 16px; }
}
