/* =========================================================
   Winter look layered onto live MSM_beta engines.
   Does not replace shopify/cart/seo scripts.
   ========================================================= */

:root {
  --color-ink: var(--ink-dark, #14110c);
  --color-paper: var(--parchment, #f3eee4);
}

/* Live newspaper masthead → winter mast */
.np-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--mast-h, 64px);
  background: rgba(12, 22, 20, 0.78);
  color: var(--ink-light, #efe6d2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px clamp(16px, 4vw, 48px);
}
body.page-inner .np-masthead,
body[data-ink="dark"] .np-masthead {
  background: rgba(243, 238, 228, 0.94);
  color: var(--ink-dark, #14110c);
  border-bottom: 1px solid #c0a060;
}
.np-masthead__top,
.np-masthead__rule,
.np-masthead__tagline { display: none; }
.np-masthead__nameplate { padding: 0; }
.np-masthead__home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.np-masthead__logo img { width: 28px; height: 28px; }
.np-masthead__title {
  font-family: var(--font-display, Besley, Georgia, serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
.np-masthead__title-main,
.np-masthead__title-sub {
  display: inline;
  font-size: 15px;
}
.np-masthead__title-sub { font-style: italic; font-weight: 400; }
.np-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.np-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.np-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.np-nav a[aria-current="page"],
.np-nav a:hover,
.np-nav a:focus-visible { border-bottom-color: var(--aspen, #c9a227); }
.np-nav__sep { opacity: 0.35; }
.np-nav-toggle {
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  border: 1.5px solid currentColor;
  padding: 8px 12px 6px;
}

body:not(.page-inner) {
  background: var(--night, #0c1614);
  color: var(--ink-light, #efe6d2);
  padding-top: 0;
}
body:not(.page-inner) .main--newspaper,
.page--newspaper:not(.page-inner) { background: transparent; }

body.page-inner,
body.page-inner.page--newspaper {
  background: var(--parchment, #f3eee4);
  color: var(--ink-dark, #14110c);
}

/* Live containers sit in winter wrap width */
.container {
  width: min(1180px, 100% - clamp(32px, 8vw, 96px));
  margin-inline: auto;
}

/* Home strip = live product cards */
.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.product-strip msm-product-card,
[data-grid] msm-product-card,
#recent-products msm-product-card,
#pdp-related msm-product-card,
#field-notes-preview a,
.grid msm-product-card { display: block; min-width: 0; }

.product-card,
.article-card {
  background: var(--parchment, #f3eee4);
  border: 2px solid #5a4828;
  border-radius: 4px;
  color: var(--ink-dark, #14110c);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: rgba(28, 18, 8, 0.08) 0 4px 16px;
}
.product-card__art,
.article-card__art {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 46%, #1a2c24 0%, #0c1614 72%);
  overflow: hidden;
}
.article-card__art { aspect-ratio: 16/10; }
.product-card__art img,
.article-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__body,
.article-card__body { padding: 14px 16px 16px; }
.product-card__title,
.article-card__title,
.product-card__title a {
  font-family: var(--font-display, Besley, Georgia, serif);
  font-weight: 700;
  font-size: 22px;
  color: inherit;
  text-decoration: none;
}
.product-card__desc,
.article-card__excerpt { color: var(--ink-dark-mut, #5a5346); margin-top: 8px; }
.product-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}
.product-card .btn,
.pdp .btn,
.btn--primary,
.btn--vintage {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment, #f3eee4);
  background: var(--frost-deep, #4a6a78);
  border: 2px solid var(--ink-dark, #14110c);
  border-radius: 3px;
  padding: 14px 22px 11px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink-dark, #14110c);
}
.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

/* Shop live mounts */
#shop-root .chips { margin: 8px 0 28px; }
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dark-mut, #5a5346);
}
.shop-controls select {
  font-family: var(--font-body, Lora, Georgia, serif);
  font-size: 16px;
  padding: 8px 10px;
  border: 2px solid #5a4828;
  background: var(--parchment, #f3eee4);
  color: var(--ink-dark, #14110c);
}
#shop-root [data-grid],
.grid.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.pagination button {
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  border: 1.5px solid #5a4828;
  background: var(--parchment, #f3eee4);
  color: var(--ink-dark, #14110c);
  padding: 8px 12px;
}

/* Live PDP keeps setProductSeo IDs; winter chrome around them */
.page--pdp-mobile .pdp,
#pdp-root.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  color: var(--ink-dark, #14110c);
}
.pdp__gallery,
.pdp__main-image { min-width: 0; }
.pdp__title {
  font-family: var(--font-display, Besley, Georgia, serif);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
}
.pdp-editorial,
.article-body {
  max-width: 68ch;
  color: inherit;
}
.pdp-sticky-mini,
.pdp-sticky-bottom {
  background: rgba(243, 238, 228, 0.96);
  color: var(--ink-dark, #14110c);
  border-top: 1px solid #c0a060;
}

/* Footer (live component) */
msm-footer .site-footer,
.site-footer {
  background: transparent;
  color: inherit;
  border-top: 1px solid rgba(192, 160, 96, 0.45);
}
msm-footer a { color: inherit; }

/* Shipping strip + search stay live */
msm-shipping-progress[variant="strip"] {
  background: #08110f;
  color: var(--frost-pale, #c5d4dc);
  font-family: var(--font-ui, "Josefin Sans", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

/* Email capture sits in winter dispatch well */
msm-email-capture {
  display: block;
  color: inherit;
}

/* Home field-notes preview */
#field-notes-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Article index mounts */
#field-notes-featured .article-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
}
#field-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Hide leftover newspaper chrome that is not winter */
.hash-divider { display: none; }

@media (max-width: 900px) {
  .product-strip,
  #shop-root [data-grid],
  .grid.grid--3,
  #field-notes-preview,
  #field-notes-grid,
  #field-notes-featured .article-card--featured,
  #pdp-root.pdp,
  .page--pdp-mobile .pdp {
    grid-template-columns: 1fr;
  }
}
