/* ===== Tokens ===== */
:root {
  /* This site is designed for one look only. Without this, some browsers
     (mobile Chrome's "force dark" setting, some in-app viewers, etc.)
     auto-invert/recolor the page when the visitor's device is in dark
     mode, turning the pink background maroon and shifting text colors. */
  color-scheme: light;

  --paper: rgb(185 80 117 / 20%);
  --paper-card: #f2f2f3;
  --ink: #22281F;
  --ink-soft: #3e4138;
  --brass: #85b774;
  --brass-deep: #8C6720;
  --forest: #34452E;
  --line: #D8D0BB;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

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

/* Discourage casual saving of product photos/videos — blocks the normal
   drag-to-save and long-press-to-save gestures. Not a hard guarantee
   (screenshots and dev tools always get around this), but stops the
   common "drag image to desktop" / iOS "Save to Photos" long-press. */
img, video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card, .buy-btn, .header-cta { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
}

/* ===== Header ===== */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #437f2d;
  color: #181718;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-cta:hover { background: var(--ink); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin: 0 0 14px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--brass-deep);
}

.hero-sub {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Signature hero tag */
.hero-tag { display: flex; justify-content: center; }

.hero-logo {
  width: 190px;
  height: 190px;
  object-fit: contain;
  background: var(--paper-card);
  border: 1.5px dashed var(--line);
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 18px 30px -18px rgba(34, 40, 31, 0.35);
}

.tag-card {
  position: relative;
  width: 190px;
  background: var(--paper-card);
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 30px 18px 22px;
  text-align: center;
  transform: rotate(4deg);
  box-shadow: 0 18px 30px -18px rgba(34, 40, 31, 0.35);
}

.tag-hole {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.tag-hole::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3px;
  height: 3px;
}

.tag-body { display: flex; flex-direction: column; gap: 6px; }

.tag-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.tag-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--forest);
}

.tag-foot {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brass-deep);
}

/* ===== Shelf ===== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.tab-btn:hover {
  border-color: var(--brass-deep);
  color: var(--ink);
}

.tab-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-card);
}

.color-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 14px 0 26px;
}

.shelf-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.shelf-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0;
}

.shelf-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

#shelf-sections {
  padding-bottom: 56px;
}

.shelf-section { margin-bottom: 44px; }

.shelf-section-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  padding-bottom: 8px;
}

.product-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px -22px rgba(34, 40, 31, 0.4);
}

.product-photo {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  position: relative;
}

.product-photo img,
.product-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.thumb-video {
  position: relative;
}

.thumb-btn.thumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 7px solid #fff;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.6));
}

.product-photo.img-fallback::before {
  content: "Add photo in /images";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, #EAE4D2 10px, #EAE4D2 20px);
}

.product-photo.is-sold-out img,
.product-photo.is-sold-out video {
  filter: grayscale(70%);
  opacity: 0.55;
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper-card);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}

.buy-btn-disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.buy-btn-disabled:hover {
  background: var(--line);
  transform: none;
}

.product-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  overflow-x: auto;
}

.thumb-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  opacity: 0.6;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.is-active {
  border-color: var(--brass-deep);
  opacity: 1;
}

.thumb-btn:hover { opacity: 1; }

.product-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.25;
}

.product-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.product-description {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.product-foot {
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--paper-card);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.buy-btn:hover {
  background: var(--brass-deep);
  transform: translateY(-1px);
}

.buy-btn:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 2px;
}

/* ===== Instagram feed ===== */
.instagram-section {
  border-top: 1px solid var(--line);
  padding: 40px 0 12px;
}

.instagram-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.instagram-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0;
}

.instagram-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brass-deep);
}

.instagram-handle:hover { color: var(--ink); }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding-bottom: 44px;
}

.instagram-loading {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

.instagram-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-card);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.instagram-card:hover img { transform: scale(1.04); }

.instagram-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 10px 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--paper-card);
  background: linear-gradient(to top, rgba(34, 40, 31, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.instagram-card:hover .instagram-caption { opacity: 1; }

@media (max-width: 420px) {
  .instagram-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
}

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px 90px;
  color: var(--ink-soft);
}

.empty-state code {
  font-family: var(--font-mono);
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-tag { order: -1; }
  .tag-card { transform: rotate(2deg); }
  .hero { padding: 40px 0 44px; }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}