/* Online Ingenuity store preview. Not published. */
:root {
  --bg: #fff;
  --fg: #16181d;
  --muted: #5a6170;
  --card: #f6f5f2;
  --band: #f3f0ea;
  --border: #e3e0d8;
  --accent: #1a4ea8;
  --accent-ink: #12397c;
  --warn: #9b1c1c;
  --ok: #0f6b4c;
  --banner-bg: #9b1c1c;
  --thumb-bg: #f0f1f3;
  --radius: 14px;
  --max: 1040px;
  --banner-h: 44px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
[id] { scroll-margin-top: calc(var(--banner-h) + var(--header-h) + 16px); }

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--fg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
  min-height: 44px;
}
.skip:focus, .skip:focus-visible { top: calc(var(--banner-h) + 12px); }

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--banner-bg);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 16px;
  letter-spacing: .01em;
}
.preview-banner span { font-weight: 500; opacity: .95; }

header.site {
  position: sticky;
  top: var(--banner-h);
  z-index: 25;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 6px 20px;
}
.brand {
  font-weight: 750;
  color: var(--fg);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -.01em;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}
.brand:hover { color: var(--fg); text-decoration: none; }
nav.primary { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
nav.primary a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
}
nav.primary a:hover { color: var(--fg); background: var(--card); text-decoration: none; }
.nav-toggle { display: none; }
.ship-banner {
  background: #e6eefc;
  color: var(--accent-ink);
  text-align: center;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d5e0f5;
}
.placeholder-note {
  border: 1px dashed #8a4b12;
  background: #fff6ea;
  color: #5c3a12;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.pending-mark, .waiting-mark {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 99px;
  padding: 4px 8px;
  line-height: 1.2;
}
.pending-mark { background: #fde8e8; color: #9b1c1c; }
.waiting-mark { background: #fff1d6; color: #8a4b12; }

.hero {
  background: var(--band);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: #e6eefc;
  border-radius: 99px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
h3 { margin: 0 0 6px; font-size: 18px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 38rem; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.ghost:hover { background: #e6eefc; color: var(--accent-ink); }
.btn[disabled], .btn.disabled, button.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #6b7280;
  border-color: #6b7280;
  color: #fff;
}
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-art figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

section { padding: 40px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); margin: 0 0 20px; max-width: 42rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .thumb, .media {
  background: var(--thumb-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .thumb img, .media img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 17px; }
.card h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.card .save { color: var(--ok); margin: 0; }
.card .delivery-line { font-size: 14px; color: var(--fg); margin: 0; line-height: 1.45; }
.card .card-fact { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.thumb.split {
  aspect-ratio: 2 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
}
.thumb.split img { width: 100%; height: 100%; object-fit: contain; }

.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .spacer { flex: 1; }
.card .btn { margin-top: 4px; width: 100%; justify-content: center; }
.price {
  font-weight: 750;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -.02em;
}
.price-note {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a4b12;
  margin-bottom: 2px;
}
.save { color: var(--ok); font-weight: 650; font-size: 14px; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 6px; }
.meta-line { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.delivery-line { font-size: 14px; color: var(--fg); margin: 0 0 8px; line-height: 1.45; }
.img-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

details.delivery {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 0;
}
details.delivery summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
details.delivery summary::-webkit-details-marker { display: none; }
details.delivery summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--muted);
  padding-left: 8px;
}
details.delivery[open] summary::after { content: "▾"; }
details.delivery .full {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 14px;
  color: var(--muted);
}

.rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.rate {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.rate .k { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rate .v { font-size: 22px; font-weight: 750; margin-top: 4px; letter-spacing: -.02em; }
.rate p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.facts { margin: 0; padding: 0; list-style: none; }
.facts li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.facts .k { font-weight: 700; }
.facts .v { color: var(--muted); }
.facts a { display: inline; min-height: auto; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0 12px;
}
.gallery { display: grid; gap: 10px; }
.gallery.pair { grid-template-columns: 1fr 1fr; }
.notice {
  background: #fff7e8;
  border: 1px solid #efd7a8;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  margin: 0 0 20px;
}
.notice.draft {
  background: #fff4e8;
  border-color: #e8c48a;
}
.draft-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a4b12;
  background: #f6e2b8;
  border-radius: 99px;
  padding: 4px 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--fg); }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-ink);
  background: #fff;
}
.contact-list a:hover { background: #e6eefc; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 4px;
  margin: 0 0 14px;
}
footer.site .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-ink);
}
footer.site .links a:hover { text-decoration: underline; }
footer.site p { margin: 0 0 8px; }
footer.site .fine { font-size: 13px; }

@media (max-width: 780px) {
  :root { --banner-h: 64px; --header-h: 56px; }
  [id] { scroll-margin-top: 170px; }
  .hero { padding: 28px 0 24px; }
  .hero-grid, .product-hero { grid-template-columns: 1fr; gap: 20px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: var(--fg);
    cursor: pointer;
  }
  .nav-toggle::-webkit-details-marker { display: none; }
  header.site .wrap { flex-wrap: wrap; }
  nav.primary {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 10px;
  }
  nav.primary.is-open { display: flex; }
  nav.primary a { width: 100%; padding: 12px 14px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .gallery.pair { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { --banner-h: 76px; }
  [id] { scroll-margin-top: 180px; }
}

.prose a, .product-hero a:not(.btn), footer.site p a {
  /* Mid-paragraph links are restyled in the markup as chips or buttons.
     Keep a 44px minimum if any remain. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Gift store preview: neutral placeholders (no brand logos or product photos). */
.thumb.ph { display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; background:var(--thumb-bg); border:1px dashed var(--border); border-radius:var(--radius); color:var(--muted); font-weight:600; text-align:center; padding:16px; text-decoration:none; }
.thumb.ph span { font-size:15px; line-height:1.3; }
.pending { color: var(--warn); font-weight: 600; }

/* Gift shop: design-preview images and product detail pages */
.card a.thumb { display: block; background: #f6f1e9; }
.product-detail .media { max-width: 520px; margin: 12px 0 16px; background: #f6f1e9; border-radius: 12px; overflow: hidden; display: block; aspect-ratio: auto; }
.product-detail .media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-detail .media figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.product-detail .price { font-size: 26px; margin: 0 0 8px; }
.product-detail .media-more{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:.5rem 0 1rem}
.product-detail .media-more img{width:100%;height:auto;border-radius:8px;background:#fff}
