/* Keep the site's paper, ink and red identity; give discovery the first screen. */
[hidden] { display: none !important; }
:root {
  --discovery-wine: #762c32;
  --discovery-forest: #345e50;
  --discovery-ochre: #8a5d16;
  --discovery-gold: #efc98a;
}
body { background: #f5ecdf; }
header { background: #3c2024; border-bottom: 4px solid #be9458; }
header h1 span { color: var(--discovery-gold); }
header .catalog-total { color: #f5e1c3; }
nav { border-bottom-color: #b99b77; }
.nav-search { background: #fffaf2; }
.header-inner { padding: 28px 24px 25px; }
.header-tag { display: none; }
header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
header p { font-size: .9rem; }
header .catalog-total { margin-top: 8px; font-size: .8rem; }
nav { position: static; }
.nav-inner { flex-wrap: wrap; }
.nav-inner a { padding: 12px 16px; }
.nav-search { padding: 10px 16px; }
.search-wrap { width: min(100%, 620px); }
main { padding-top: 28px; }
.discovery-intro { margin-bottom: 36px; }
.discovery-intro h2, .discovery-heading h2, .discovery-stories h2 { font-family: 'Zen Old Mincho', serif; font-size: 1.4rem; color: var(--ink); margin: 0; }
.purpose-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.purpose-links a { padding: 20px; text-decoration: none; color: #fffaf2; background: var(--discovery-wine); }
.purpose-links a:nth-child(2) { background: var(--discovery-ochre); }
.purpose-links a:nth-child(3) { background: var(--discovery-forest); }
.purpose-links strong { font-size: 1.05rem; display: block; margin-bottom: 7px; }
.purpose-links span { font-size: .82rem; color: #fffaf2; line-height: 1.7; display: block; }
.purpose-links a:hover { filter: brightness(.92); }
.purpose-links a:hover strong { color: inherit; }
.story-links a:hover { color: var(--red); }
.discovery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.discovery-heading a, .back-home, .category-all, .product-permalink { color: var(--red); text-underline-offset: 4px; font-size: .85rem; }
.discovery-note { color: var(--ink-soft); font-size: .82rem; line-height: 1.8; margin: 8px 0 20px; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.discovery-tile { border: 1px solid #d1b99c; background: #fffaf2; min-width: 0; }
.tile-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tile-link img { width: 100%; height: 190px; object-fit: contain; background: white; border-bottom: 1px solid var(--rule); }
.tile-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile-category { font-size: .75rem; color: var(--discovery-wine); background: #f4e3da; padding: 3px 8px; width: fit-content; }
.tile-body h3 { font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-body p { font-size: .82rem; line-height: 1.8; }
.tile-price { font-size: .95rem; margin-top: auto; }
.tile-action { display: flex; align-items: center; justify-content: center; background: var(--discovery-wine); color: #fffaf2; font-size: .85rem; font-weight: 700; padding: 10px 8px; min-height: 44px; }
.discovery-stories { margin: 38px 0; padding: 22px; border-top: 2px solid var(--discovery-forest); border-bottom: 1px solid #b5c6b6; background: #e8eee4; }
.story-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; }
.story-links a { color: var(--ink); text-underline-offset: 4px; font-size: .88rem; }
.discovery-ready .section { margin-top: 24px; margin-bottom: 40px; scroll-margin-top: 20px; }
.discovery-ready .product-card:hover { transform: none; box-shadow: none; }
.discovery-ready .product-card::after { display: none; }
.discovery-ready .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.65; }
.discovery-ready .card-memo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.discovery-ready .card-rating, .discovery-ready .card-highlights, .discovery-ready .price-point, .discovery-ready .carousel-dots, .discovery-ready .carousel-btn { display: none; }
.discovery-ready .carousel { aspect-ratio: 4 / 3; }
/* Keep the whole product photo visible in both wide and square frames. */
.carousel-slide img { object-fit: contain; object-position: center; background: var(--card); }
/* An overlapping second photo can cover details in the main product photo. */
.carousel-accent { display: none; }

.discovery-ready .card-body { padding: 16px; background: #fffaf2; }
.discovery-ready .section-header { border-bottom-color: var(--discovery-wine); }
.discovery-ready .section-count { border-color: #b99b77; background: #f0dfc0; }
.discovery-ready .section-icon { background: var(--discovery-wine); }
.discovery-ready .card-shop { font-size: .75rem; }
.discovery-ready .card-price-row { margin-top: auto; }
.discovery-ready .price-main { font-size: 1.2rem; }
.discovery-ready .btn-cta { font-size: .9rem; padding: 12px 10px; min-height: 44px; }
.card-detail-toggle { border: 0; background: none; font: inherit; font-size: .8rem; color: var(--ink-soft); text-decoration: underline; padding: 12px 0; cursor: pointer; min-height: 44px; }
.product-permalink { text-align: center; font-size: .75rem; padding: 4px 0 10px; }
.product-anchor { scroll-margin-top: 20px; }
.discovery-ready .is-expanded .card-memo, .discovery-ready .is-direct .card-memo { display: block; }
.discovery-ready .is-expanded .card-title, .discovery-ready .is-direct .card-title { display: block; }
.discovery-ready .is-expanded .card-rating, .discovery-ready .is-expanded .card-highlights, .discovery-ready .is-expanded .price-point, .discovery-ready .is-expanded .carousel-dots, .discovery-ready .is-expanded .carousel-btn,
.discovery-ready .is-direct .card-rating, .discovery-ready .is-direct .card-highlights, .discovery-ready .is-direct .price-point, .discovery-ready .is-direct .carousel-dots, .discovery-ready .is-direct .carousel-btn { display: flex; }
.discovery-ready .is-direct { max-width: 620px; width: 100%; }
.discovery-ready .is-direct .carousel { aspect-ratio: 4 / 3; }
.category-all { display: block; width: fit-content; margin: 16px 0 0 auto; padding: 10px 0; }
#catalog-controls { scroll-margin-top: 20px; margin-bottom: 24px; }
.back-home { display: inline-block; margin-bottom: 20px; padding: 8px 0; }
#result-count { color: var(--ink-soft); font-size: .85rem; }
.topic-label { display: inline-flex; align-items: center; gap: 12px; font-size: .85rem; }
.topic-label select { padding: 10px 28px 10px 12px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font: inherit; min-height: 44px; }
.catalog-more, .reset-filters { display: block; margin: 24px auto; border: 1px solid var(--ink); background: var(--card); color: var(--ink); padding: 14px 28px; font: inherit; cursor: pointer; min-height: 44px; }
.discovery-catalog .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.discovery-catalog .product-grid:has(.is-direct) { grid-template-columns: minmax(0, 620px); justify-content: center; }
body #poll-btn { position: static; display: block; margin: 20px auto; box-shadow: none; }
:where(a,button,input,select):focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (max-width: 700px) {
  .header-inner { padding: 24px 16px 20px; }
  .nav-inner a { padding: 10px 12px; font-size: .8rem; }
  .purpose-links { grid-template-columns: 1fr; }
  .purpose-links a, .purpose-links a:first-child { padding: 16px; border: none; }
  .purpose-links a:last-child { border-bottom: none; }
  .purpose-links strong { margin-bottom: 2px; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-link img { height: 145px; }
  .tile-body { padding: 12px; }
  .discovery-ready .product-grid, .discovery-catalog .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .discovery-heading h2, .discovery-intro h2, .discovery-stories h2 { font-size: 1.2rem; }
  .discovery-ready .section-title h2 { font-size: 1.2rem; }
  .discovery-ready .section-header { gap: 12px; }
  .story-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Category previews are a compact index; details remain in catalogue mode. */
.discovery-home .section .card-memo, .discovery-home .section .card-shop,
.discovery-home .section .btn-cta, .discovery-home .section .card-detail-toggle,
.discovery-home .section .card-badges { display: none; }
.discovery-home .section .carousel { aspect-ratio: 16 / 9; }
.discovery-home .section .card-body { gap: 8px; }
.discovery-home .section .card-price-row { border-top: 1px solid var(--rule); padding-top: 8px; }
.discovery-home .section .product-permalink { text-align: left; padding: 4px 0; }
.discovery-home .section > a:not(.category-all) { display: none !important; }
@media (max-width: 700px) {
  .discovery-home .section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .discovery-home .section .product-card:nth-child(n+3) { display: none; }
  .discovery-home .section .carousel { aspect-ratio: 4 / 3; }
  .discovery-home .section .card-title { font-size: .9rem; }
  .discovery-home .section .card-body { padding: 12px; }
  .discovery-home .section .price-main { font-size: .95rem; }
  .discovery-home .section .price-label, .discovery-home .section .price-tax { font-size: .7rem; }
}

/* SNS arrivals see their chosen product and purchase action before the long description. */
.discovery-direct header, .discovery-direct .nav-inner { display: none; }
.discovery-direct .is-direct .carousel { aspect-ratio: 16 / 9; }
.discovery-direct .is-direct .card-shop { order: 0; }
.discovery-direct .is-direct .card-title { order: 1; }
.discovery-direct .is-direct .card-price-row { order: 2; margin-top: 10px; }
.discovery-direct .is-direct .btn-cta { order: 3; margin: 10px 0; }
.discovery-direct .is-direct .card-memo { order: 4; }
.discovery-direct .is-direct .card-rating { order: 5; }
.discovery-direct .is-direct .card-highlights { order: 6; }
.discovery-direct .is-direct .price-point { order: 7; }
.discovery-direct .is-direct .card-detail-toggle { display: none; }
.discovery-direct .is-direct .product-permalink { order: 8; }

@media (max-width: 700px) {
  .header-inner { padding: 20px 16px 16px; }
  header h1 { font-size: 1.65rem; }
  header p:not(.catalog-total) { display: none; }
  .purpose-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purpose-links a, .purpose-links a:first-child { padding: 14px 6px; border: none; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 64px; }
  .purpose-links a:last-child { border-right: 0; }
  .purpose-links strong { font-size: .85rem; }
  .purpose-links span { display: none; }
  .discovery-intro { margin-bottom: 28px; }
}

/* Carry the same visual hierarchy through the category index and page ending. */
.section { --section-color: var(--discovery-wine); --section-tint: #f2e2da; }
#goods, #amazon { --section-color: var(--discovery-forest); --section-tint: #e5eee5; }
#heart { --section-color: var(--discovery-ochre); --section-tint: #f3e8cf; }
#hair { --section-color: var(--discovery-wine); --section-tint: #f2e2da; }
.discovery-ready .section-header { background: var(--section-tint); border: 0; border-left: 5px solid var(--section-color); padding: 18px 20px; margin-bottom: 20px; }
.discovery-ready .section-icon { display: none; }
.discovery-ready .section-title h2 { color: var(--section-color); }
.discovery-ready .section-count { background: #fffaf2; border-color: var(--section-color); color: var(--section-color); white-space: nowrap; }
.discovery-ready .product-card { border-color: #d1b99c; }
.discovery-ready .section .btn-cta { background: var(--section-color); }
.discovery-ready .section .btn-cta:hover { background: var(--ink); }
.discovery-ready .section .product-permalink { color: var(--section-color); }
.category-all { background: var(--section-color); color: #fffaf2; padding: 12px 20px; text-decoration: none; font-weight: 700; min-height: 44px; }
.category-all:hover { background: var(--ink); }
.category-stories { display: grid; gap: 10px; margin-top: 20px; padding: 18px 20px; background: var(--section-tint); border-left: 3px solid var(--section-color); }
.category-stories-label { font-size: .78rem; color: var(--section-color); font-weight: 700; margin: 0; }
.category-stories a { color: var(--ink); text-underline-offset: 4px; font-size: .88rem; line-height: 1.8; }
.discovery-ready .banner-area { display: none; }
.discovery-endcap { margin: 44px 0 16px; padding: 26px; background: #e8eee4; border-top: 3px solid var(--discovery-forest); }
.discovery-endcap h2, .discovery-related h2 { font-family: 'Zen Old Mincho', serif; font-size: 1.3rem; margin: 0 0 10px; color: var(--discovery-forest); }
.discovery-endcap > p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.endcap-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.endcap-links a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: #fffaf2; border-bottom: 2px solid #92aa96; text-decoration: none; color: var(--ink); }
.endcap-label { background: #e5eee5; color: var(--discovery-forest); font-size: .72rem; padding: 2px 8px; }
.endcap-links strong { font-size: .9rem; line-height: 1.8; }
.endcap-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.discovery-related { margin: 32px 0; }
.related-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-pick { display: flex; align-items: center; gap: 12px; background: #fffaf2; border: 1px solid #d1b99c; padding: 12px; text-decoration: none; color: var(--ink); }
.related-pick img { width: 88px; height: 88px; object-fit: contain; background: white; flex-shrink: 0; }
.related-pick span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .85rem; line-height: 1.7; }
footer { background: #3c2024; border-top: 4px solid #be9458; }
@media (max-width: 700px) {
  .discovery-ready .section-header { padding: 14px 12px; }
  .discovery-ready .section-sub { font-size: .73rem; }
  .discovery-ready .section-count { font-size: .78rem; padding: 4px 8px; }
  .category-stories { padding: 15px; }
  .category-all { width: 100%; text-align: center; }
  .discovery-endcap { padding: 20px 15px; }
  .endcap-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .endcap-links a { padding: 12px; }
  .related-picks { grid-template-columns: 1fr; }
}
