/* ============================================================
   MomokoArt Homepage — Minimal White
   A quiet gallery: a still white wall, generous space, small
   refined type, bare artwork floating with a soft shadow.
   Replaces the earlier warm/boutique layout entirely.
   ============================================================ */

/* ---- theme neutralising: let the shortcode own the page ---- */
body.momoko-home-redesign-page .page-title,
body.momoko-home-redesign-page .wd-page-title,
body.momoko-home-redesign-page .title-size-default,
body.momoko-home-redesign-page .entry-header,
body.momoko-home-redesign-page .main-page-wrapper > .page-title {
    display: none !important;
}

body.momoko-home-redesign-page .sidebar-container,
body.momoko-home-redesign-page .wd-sidebar,
body.momoko-home-redesign-page .widget-area,
body.momoko-home-redesign-page aside {
    display: none !important;
}

body.momoko-home-redesign-page .content-layout-wrapper,
body.momoko-home-redesign-page .site-content,
body.momoko-home-redesign-page .content-area,
body.momoko-home-redesign-page .wd-content-layout,
body.momoko-home-redesign-page .website-wrapper,
body.momoko-home-redesign-page .main-page-wrapper .container,
body.momoko-home-redesign-page .main-page-wrapper .container-fluid,
body.momoko-home-redesign-page .main-page-wrapper .row,
body.momoko-home-redesign-page .main-page-wrapper .page,
body.momoko-home-redesign-page .main-page-wrapper article.page,
body.momoko-home-redesign-page .main-page-wrapper .entry-content {
    background: transparent !important;
    background-color: transparent !important;
}

body.momoko-home-redesign-page .content-layout-wrapper {
    display: block !important;
}

body.momoko-home-redesign-page .site-content,
body.momoko-home-redesign-page .content-area,
body.momoko-home-redesign-page .wd-content-layout,
body.momoko-home-redesign-page .site-content[class*="col-"],
body.momoko-home-redesign-page .content-area[class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* let the sections run the full content width, minus the theme gutter */
body.momoko-home-redesign-page .main-page-wrapper .container {
    max-width: 1320px;
    width: 100%;
}

body.momoko-home-redesign-page .main-page-wrapper .entry-content {
    margin: 0;
}

/* ---- the wall ---- */
body.momoko-home-redesign-page {
    background: #f7f5f1 !important;
}

body.momoko-home-redesign-page .main-page-wrapper {
    background: #f7f5f1;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

body.momoko-home-redesign-page .main-page-wrapper::before {
    background: radial-gradient(90% 55% at 50% -8%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body.momoko-home-redesign-page .main-page-wrapper > * {
    position: relative;
    z-index: 1;
}

/* one wall for the whole footer element */
body.momoko-home-redesign-page .footer-container,
body.momoko-home-redesign-page .wd-footer,
body.momoko-home-redesign-page footer {
    background: #f7f5f1 !important;
    background-image: none !important;
    position: relative;
    z-index: 3;
}

/* every band inside the footer (widget row, its .wd-entry-content, the Elementor
   sections, the copyright bar) carries its own near-grey background at a slightly
   different tone — most visible on mobile where the whole footer stacks. Clear
   them all to transparent so the single footer wall shows through and the footer
   reads as one colour matching the header. */
body.momoko-home-redesign-page footer .main-footer,
body.momoko-home-redesign-page footer .min-footer,
body.momoko-home-redesign-page footer .footer-sidebar,
body.momoko-home-redesign-page footer .wd-footer-copyrights,
body.momoko-home-redesign-page footer .copyrights-wrapper,
body.momoko-home-redesign-page footer .wd-copyrights,
body.momoko-home-redesign-page footer .elementor-element,
body.momoko-home-redesign-page footer .elementor-section,
body.momoko-home-redesign-page footer .wd-entry-content {
    background-color: transparent !important;
    background-image: none !important;
}

/* the WoodMart header follows the wall too — a solid bar the same tone as the
   page, with a hairline instead of the theme's shadow, so it reads as part of
   the gallery rather than a white strip on top. Scoped to the homepage only. */
body.momoko-home-redesign-page .whb-general-header,
body.momoko-home-redesign-page .whb-mobile-header {
    background-color: #f7f5f1 !important;
    box-shadow: none !important;
}

/* border-bottom is cleared globally in chrome.css now; the header keeps the
   theme's default height here so the nav sits at the same place as every other
   page (the earlier 10px padding pushed the homepage header 20px taller). */
body.momoko-home-redesign-page .whb-general-header {
    border-bottom: none !important;
}

/* WoodMart pins a toolbar to the bottom of the viewport on phones, and it is the
   one strip the header and footer work never reached — a white bar laid across
   the gallery for the whole scroll. Give it the wall.

   It keeps a hairline where the header lost one: the header sits above the page,
   but this floats over the artwork, so without an edge the art would slide under
   an invisible bar and simply stop. A 1px rule says where the wall ends without
   reinstating the theme's drop shadow. */
body.momoko-home-redesign-page .wd-toolbar {
    background-color: #f7f5f1 !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(27, 25, 23, 0.12) !important;
}

/* quiet the nav to gallery typography: smaller, wide-tracked, lighter — the
   busy e-commerce bar reads closer to the minimal mock's SHOP · ABOUT · JOURNAL */
body.momoko-home-redesign-page .whb-header .wd-nav > li > a,
body.momoko-home-redesign-page .whb-header .item-level-0 > a,
body.momoko-home-redesign-page .whb-header .wd-tools-element .wd-tools-text {
    font-size: 11.5px !important;
    letter-spacing: 0.16em !important;
    font-weight: 400 !important;
}

/* ============================================================
   Minimal content
   ============================================================ */
.momoko-min {
    --ink: #1b1917;
    --muted: #6f665d;
    --hair: rgba(27, 25, 23, 0.12);
    --price: #5d4632;
    --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
    --t: 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);

    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    line-height: 1.85;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

.momoko-min *,
.momoko-min *::before,
.momoko-min *::after {
    box-sizing: border-box;
}

/* Align the content column to the same width the theme header and footer use,
   so the whole page reads as one column on one wall rather than a narrow middle
   floating between wider header/footer bars. 1222px matches the theme container;
   below that it fills the width, and a small gutter keeps phones off the edge. */
.momoko-min-wrap {
    width: min(1222px, 100%);
    margin: 0 auto;
    padding: 0 22px;
}

@media (min-width: 1266px) {
    .momoko-min-wrap {
        padding: 0;
    }
}

.momoko-min-kick {
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

/* ---- hero ---- */
.momoko-min-hero {
    padding: clamp(48px, 9vh, 128px) 0 clamp(60px, 11vh, 150px);
}

.momoko-min-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 56px);
    align-items: center;
}

/* On a phone the hero stacks, and in source order the copy came first — which
   spent the whole opening screen on 322px of text and left only the top edge of
   the frame showing. On a shop that sells paintings the piece should be the
   thing you meet first, so the two blocks are swapped below the desktop
   breakpoint: the artwork arrives whole, with the kicker and the first line of
   the headline just under it to pull the scroll.
   Order only — the DOM keeps the copy first, so the heading is still what a
   screen reader and a search engine read at the top of the page. */
@media (max-width: 899px) {
    .momoko-min-hero-art {
        order: 1;
    }

    .momoko-min-hero-copy {
        order: 2;
    }
}

.momoko-min-hero-copy .momoko-min-kick {
    margin-bottom: 2.4em;
}

.momoko-min-hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    line-height: 1.48;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
    transition: opacity 0.5s ease;
}

/* the headline rides its slide: it fades out, is swapped, and fades back while
   the artwork behind it cross-fades to the same piece */
.momoko-min-hero-title.is-fading {
    opacity: 0;
}

.momoko-min-hero-text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 2.1;
    margin: 2.1em 0 0;
    max-width: 24em;
}

.momoko-min-enter {
    display: inline-block;
    margin-top: 2.6em;
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--ink);
    transition: opacity 0.3s ease, letter-spacing 0.4s ease;
}

.momoko-min-enter:hover {
    opacity: 0.6;
    letter-spacing: 0.32em;
    color: var(--ink);
}

.momoko-min-hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 460px);
    aspect-ratio: 1433 / 2000;
    line-height: 0;
}

/* two stacked layers cross-fade through the twelve framed hero visuals */
.momoko-min-hero-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.3s ease;
    box-shadow:
        0 40px 80px -30px rgba(27, 20, 14, 0.32),
        0 8px 20px -12px rgba(27, 20, 14, 0.18);
}

.momoko-min-hero-layer.is-active {
    opacity: 1;
}

@media (min-width: 900px) {
    .momoko-min-hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: clamp(48px, 7vw, 116px);
    }

    .momoko-min-hero-art {
        justify-self: end;
    }
}

/* ---- selected works ---- */
.momoko-min-works {
    padding: clamp(56px, 9vh, 120px) 0;
}

.momoko-min-works-head {
    text-align: center;
    margin-bottom: clamp(44px, 7vh, 84px);
}

.momoko-min-works-head .momoko-min-kick {
    margin-bottom: 1.7em;
}

.momoko-min-works-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: 0.14em;
    margin: 0;
    color: var(--ink);
}

/* 標題下的一句话：小号明朝、灰色，只做余韵，不和标题抢 */
.momoko-min-works-lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    line-height: 2;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: 1.6em 0 0;
    /* 轮换时句子长短不同：桌面都是一行；手机上最长的一句会折成两行，
       所以手机上预留两行高度，避免下面的作品跟着上下跳 */
    min-height: 2em;
    transition: opacity 0.7s ease;
}

.momoko-min-works-lede.is-fading {
    opacity: 0;
}

/* 页面打开时先藏住，等 momokoLedeStart 随机选好一句再显示，避免先闪一下第一句（2026-11-23） */
.momoko-lede-pending [data-momoko-ledes] {
    visibility: hidden;
}

@media (max-width: 600px) {
    .momoko-min-works-lede {
        min-height: 4em;
    }
}

/* 選りすぐり・新作：2026-11-13 一行 4 件，11-18 改成 5 件；
   2026-11-23 改成各 10 件、所有宽度都左右滑动（店主要求）。
   列表横向滚动 + scroll-snap；电脑一屏正好 5 件，用两边的箭头翻页（momokoRail）。 */
.momoko-min-rail {
    --rail-gap: clamp(20px, 2.4vw, 40px);
    position: relative;
}

.momoko-min-grid {
    display: flex;
    align-items: flex-start;
    gap: var(--rail-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 横向滚动会把纵向也裁掉：上面留出悬停上浮 6px，下面留出阴影 */
    padding: 10px 0 28px;
}

.momoko-min-grid::-webkit-scrollbar {
    display: none;
}

.momoko-min-grid:focus-visible {
    outline: 1px solid var(--hair);
    outline-offset: 4px;
}

.momoko-min-grid > .momoko-min-piece {
    flex: 0 0 calc((100% - 2 * var(--rail-gap)) / 3.3);
    min-width: 0;
    scroll-snap-align: start;
}

@media (min-width: 980px) {
    /* 一屏正好 5 件 */
    .momoko-min-grid > .momoko-min-piece {
        flex-basis: calc((100% - 4 * var(--rail-gap)) / 5);
    }

    /* 错开排列：偶数件往下错开，一高一低，像凭眼睛挂上去的一面墙。
       滑动时也保持一高一低（原来按 5 件一行算的第 2、4 列，滑动后会出现两件连着同高）。
       只在宽屏生效：窄屏一屏只有两三件，错开只会留下空白。 */
    .momoko-min-grid-stagger > .momoko-min-piece:nth-child(even) {
        margin-top: clamp(44px, 6vw, 88px);
    }

    .momoko-min-scenes-stagger .momoko-min-scene:nth-child(3n + 2) {
        margin-top: clamp(44px, 6vw, 88px);
    }
}

/* 箭头按钮。WoodMart 会给所有 <button> 加自己的样式，所以这里逐项重置 */
.momoko-min .momoko-min-rail .momoko-min-rail-btn {
    position: absolute;
    top: 34%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--hair) !important;
    border-radius: 50% !important;
    background: rgba(247, 245, 241, 0.94) !important;
    color: var(--ink) !important;
    box-shadow: 0 6px 18px -8px rgba(27, 20, 14, 0.28) !important;
    font-size: 0;
    line-height: 0;
    text-transform: none;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.momoko-min .momoko-min-rail .momoko-min-rail-btn[hidden] {
    display: none !important;
}

.momoko-min .momoko-min-rail .momoko-min-rail-btn:hover {
    background: #fff !important;
}

/* 到头了就藏起来（WoodMart 给 disabled 按钮强制 opacity:.6，所以要 !important） */
.momoko-min .momoko-min-rail .momoko-min-rail-btn:disabled {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.momoko-min .momoko-min-rail .momoko-min-rail-btn:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

.momoko-min-rail-prev {
    left: -22px;
}

.momoko-min-rail-prev svg {
    transform: scaleX(-1);
}

.momoko-min-rail-next {
    right: -22px;
}

@media (max-width: 639px) {
    /* 手机用手指滑，不显示箭头 */
    .momoko-min .momoko-min-rail .momoko-min-rail-btn {
        display: none !important;
    }
}

/* ---- new arrivals: the work in a room ----
   Scene shots are square where the artwork is upright, and they arrive already
   holding their own room. So they get their own grid rather than borrowing the
   gallery one: no cast shadow (the photograph has its own light), and sized
   below the selected row, which stays the larger statement. */
.momoko-min-scenes {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(46px, 6vw, 72px) clamp(24px, 3vw, 44px);
}

@media (min-width: 640px) {
    .momoko-min-scenes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .momoko-min-scenes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.momoko-min-scene {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Held below the selected row on purpose. Left to fill its column a square runs
   wider than the upright artwork beside it (382 against 341) and the newest
   works end up outranking the selected ones — the same flattening that made the
   page read as noise, reintroduced from the other direction. */
.momoko-min-scene-frame {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: min(100%, 300px);
    margin: 0 auto;
    line-height: 0;
}

.momoko-min-scene-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* the room leans in a little, rather than the canvas lifting off the wall */
.momoko-min-scene:hover .momoko-min-scene-img {
    transform: scale(1.03);
}

/* the label tracks the image, not the column, so its hairline stays on the
   picture's own left edge */
.momoko-min-scene .momoko-min-label {
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
}

.momoko-min-piece {
    display: block;
    text-decoration: none;
    color: inherit;
}

.momoko-min-frame {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / 1.3;
    overflow: visible;
}

/* WebP delivery (Imagify) rewrites our <img> into
   <picture class="momoko-min-art"><source …><img></picture>: it MOVES our class
   onto the wrapper and leaves the real <img> with no class at all. Everything
   below is keyed on that class, so the image fell back to the default
   object-fit:fill, rendered ~520px tall inside a 478px frame and spilled onto
   the museum label. Only production converts to WebP, so this cannot show up on
   the test site — hence the structural selectors here.
   display:contents removes the wrapper's box (and with it the class-based rules
   that would otherwise land on the wrapper instead of the image), so the <img>
   becomes the frame's own flex item exactly as in the non-WebP case. Picture
   source selection is done by the parser, not layout, so it is unaffected. */
.momoko-min-frame > picture,
.momoko-min-story-art > picture {
    display: contents;
}

.momoko-min-art,
.momoko-min-frame > picture > img,
.momoko-min-story-art > picture > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    box-shadow:
        0 30px 56px -26px rgba(27, 20, 14, 0.3),
        0 6px 16px -10px rgba(27, 20, 14, 0.16);
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.6s ease;
}

.momoko-min-piece:hover .momoko-min-art,
.momoko-min-piece:hover .momoko-min-frame > picture > img {
    transform: translateY(-6px);
    box-shadow:
        0 44px 72px -28px rgba(27, 20, 14, 0.36),
        0 8px 20px -10px rgba(27, 20, 14, 0.18);
}

.momoko-min-art-placeholder {
    display: block;
    width: 80%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #efeae2, #e3ddd2);
}

/* museum wall label (題箋) — the caption sits against a hairline rule rather
   than floating centred, the way a gallery captions a hung piece. The rule uses
   --hair, so it turns brass on the night wall by itself. */
.momoko-min-label {
    display: block;
    margin-top: 24px;
    padding-left: 14px;
    border-left: 1px solid var(--hair);
    text-align: left;
}

.momoko-min-t {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.momoko-min-m {
    display: block;
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0.7em;
}

.momoko-min-p {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--price);
    margin-top: 0.9em;
    font-variant-numeric: tabular-nums;
}

.momoko-min-p .amount,
.momoko-min-p .woocommerce-Price-amount,
.momoko-min-p .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
}

/* ---- editorial statement ---- */
.momoko-min-say {
    padding: clamp(64px, 12vh, 156px) 0;
    text-align: center;
}

.momoko-min-say .momoko-min-kick {
    margin-bottom: 2.4em;
}

.momoko-min-say-text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 2.2;
    letter-spacing: 0.1em;
    margin: 0 auto;
    max-width: 20em;
    color: var(--ink);
}

/* ---- "see all" link under a rail ---- */
.momoko-min-more {
    text-align: center;
    margin-top: clamp(40px, 6vh, 72px);
}

/* ---- browse by taste ---- */
.momoko-min-cats-section {
    padding: clamp(56px, 9vh, 120px) 0;
}

.momoko-min-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
}

@media (min-width: 780px) {
    .momoko-min-cats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.momoko-min-cat {
    display: block;
    text-decoration: none;
    color: inherit;
}

.momoko-min-cat-img {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.momoko-min-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.12);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.7s ease;
}

.momoko-min-cat:hover .momoko-min-cat-img img {
    transform: scale(1.04);
    filter: grayscale(0);
}

/* 2026-11-23：分类图改成各分类代表作的 main-3（带框正面图），和作品列表同一种显示方式
   （.momoko-min-frame：不裁切、带阴影），悬停时也一样轻轻上浮 */
.momoko-min-cat:hover .momoko-min-art,
.momoko-min-cat:hover .momoko-min-frame > picture > img {
    transform: translateY(-6px);
    box-shadow:
        0 44px 72px -28px rgba(27, 20, 14, 0.36),
        0 8px 20px -10px rgba(27, 20, 14, 0.18);
}

.momoko-min-cat-label {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.momoko-min-cat-en {
    display: block;
    font-family: var(--sans);
    font-size: 0.56rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9em;
}


/* ---- story: one piece, introduced ----
   Breaks the two near-identical work grids apart and gives a single canvas the
   room a gallery gives a highlighted piece: art on one side, a lede and the
   technical panel on the other. Two of these run per page, mirrored. */
/* Every section carried the same padding, so nothing grouped and the page ran at
   one flat density from top to bottom. Give the features noticeably more air
   than the grids: they become the rests between movements instead of two more
   blocks in the queue. */
.momoko-min-story {
    padding: clamp(84px, 15vh, 190px) 0;
}

.momoko-min-story-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 900px) {
    /* the catalogue entry leads with the piece: art left and larger, the panel
       reading down beside it */
    .momoko-min-story-spec .momoko-min-story-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    /* the editorial one leads with the words and lets the art answer, mirrored,
       so the pair cannot read as one block repeated */
    .momoko-min-story-editorial .momoko-min-story-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    }

    .momoko-min-story-editorial .momoko-min-story-art {
        order: 2;
        justify-self: start;
    }

    .momoko-min-story-editorial .momoko-min-story-copy {
        order: 1;
    }

    /* the first feature keeps the editorial voice but mirrors the layout — art on
       the left, words on the right — so the two features face opposite ways
       instead of both leading with the words. Placed after the editorial rules so
       it wins the shared-specificity cascade on an element that carries both. */
    .momoko-min-story-art-left .momoko-min-story-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .momoko-min-story-art-left .momoko-min-story-art {
        order: 1;
        justify-self: end;
    }

    .momoko-min-story-art-left .momoko-min-story-copy {
        order: 2;
    }
}

/* the editorial subtitle — the phrase after ｜ in the product name, which is
   descriptive prose rather than a label, so it sits under the headline */
.momoko-min-story-sub {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 1.4em 0 0;
    line-height: 1.9;
    max-width: 26em;
}

/* A feature has to outrank the grid to read as one. At 340 this matched the
   341px grid thumbnails to the pixel, so the page offered nothing to look at
   first and the whole column read as noise. 460 puts it ~1.35x the grid, in a
   deliberate ladder: hero and features 460, grid 341, category plates 277. */
.momoko-min-story-art {
    justify-self: center;
    width: min(100%, 460px);
    position: relative;
    line-height: 0;
}

.momoko-min-story-art .momoko-min-art,
.momoko-min-story-art > picture > img {
    width: 100%;
    /* A stronger lift than the grid works carry. The feature piece is larger, so
       the grid's soft shadow read as almost flat against the wall at this size;
       a near contact shadow plus a deeper ambient drop plants it and lets it
       float clearly. */
    box-shadow:
        0 8px 20px -8px rgba(27, 20, 14, 0.24),
        0 40px 70px -28px rgba(27, 20, 14, 0.42);
}

.momoko-min-story-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    letter-spacing: 0.08em;
    line-height: 1.45;
    margin: 0;
    color: var(--ink);
}

.momoko-min-story-lede {
    font-size: 0.92rem;
    line-height: 2.1;
    color: var(--muted);
    margin: 1.4em 0 0;
    max-width: 30em;
}

/* The technical panel, read as a catalogue entry: a hairline under each row so
   the eye can run down it, label small and quiet on the left, value carrying the
   weight on the right. */
.momoko-min-spec {
    margin: 2.2em 0 0;
    padding: 0;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    max-width: 30em;
}

.momoko-min-spec-row {
    display: grid;
    grid-template-columns: 5.5em 1fr;
    gap: 1.4em;
    align-items: baseline;
    padding: 0.95em 0;
    border-bottom: 1px solid var(--hair);
}

.momoko-min-spec-row:first-child {
    border-top: 1px solid var(--hair);
}

.momoko-min-spec dt,
.momoko-min-spec dd {
    margin: 0;
}

/* price closes the panel, so it is the one value allowed to speak up */
.momoko-min-spec-row:last-child .momoko-min-v {
    font-size: 1.05rem;
    color: var(--price);
    opacity: 1;
}

.momoko-min-k {
    color: var(--muted);
    letter-spacing: 0.14em;
}

.momoko-min-v {
    color: var(--ink);
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.momoko-min-v .amount,
.momoko-min-v .woocommerce-Price-amount,
.momoko-min-v .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.momoko-min-story-link {
    display: inline-block;
    margin-top: 2.2em;
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--ink);
    transition: opacity 0.3s ease, letter-spacing 0.4s ease;
}

.momoko-min-story-link:hover {
    opacity: 0.6;
    letter-spacing: 0.32em;
}

/* The spotlights are simply on: a museum keeps its lamps lit, it does not switch
   each one as you arrive. This replaced a reveal-on-scroll that faded pieces in
   and warmed their lamp a beat later — dropped because the effect leaned on a JS
   runtime class, which made it fragile under WP Rocket (a stripped class or a
   delayed script could strand hidden content). Nothing is hidden now. The night
   spotlight itself lives with the other night rules above. */

@media (prefers-reduced-motion: reduce) {
    .momoko-min-art,
    .momoko-min-frame > picture > img,
    .momoko-min-story-art > picture > img {
        transition: none;
    }
}

/* ============================================================
   手机版紧凑布局（2026-11-23，店主要求）
   手机上一屏能看到更多内容：
   - hero：左边标语、右边现在的画（原来是上下排，画占满一屏）
   - 選りすぐりの作品 / 新作アート：图片缩小，改成左右滑动（scroll-snap，不用 JS）
   - 故事区块（青い頭巾 等）：左边文字、右边图片
   只在 639px 以下生效；平板和电脑的布局不变。
   ============================================================ */
@media (max-width: 639px) {
    /* ---- hero ---- */
    .momoko-min-hero {
        padding: 22px 0 30px;
    }

    .momoko-min-hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 16px;
    }

    /* 上面那段把画排在文字前面（order），这里恢复成文字在左、画在右 */
    .momoko-min-hero-copy {
        order: 1;
    }

    .momoko-min-hero-art {
        order: 2;
        justify-self: end;
        width: 100%;
    }

    .momoko-min-hero-copy .momoko-min-kick {
        margin-bottom: 1.1em;
        font-size: 0.55rem;
        letter-spacing: 0.32em;
    }

    .momoko-min-hero-title {
        font-size: 1.32rem;
        line-height: 1.6;
        letter-spacing: 0.06em;
    }

    .momoko-min-hero-text {
        font-size: 0.72rem;
        line-height: 1.85;
        margin-top: 1em;
    }

    .momoko-min-hero-copy .momoko-min-enter {
        margin-top: 1.3em;
        font-size: 0.6rem;
        letter-spacing: 0.18em;
        padding-bottom: 6px;
    }

    /* 画变小了，阴影也跟着收一点 */
    .momoko-min-hero-layer {
        box-shadow:
            0 18px 32px -16px rgba(27, 20, 14, 0.32),
            0 4px 10px -6px rgba(27, 20, 14, 0.18);
    }

    /* ---- 選りすぐりの作品 / 新作アート：标题区收紧 ---- */
    .momoko-min-works {
        padding: 30px 0 34px;
    }

    .momoko-min-works-head {
        margin-bottom: 18px;
    }

    .momoko-min-works-head .momoko-min-kick {
        margin-bottom: 0.8em;
    }

    .momoko-min-works-title {
        font-size: 1.22rem;
    }

    .momoko-min-works-lede {
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        margin-top: 0.6em;
        min-height: 2em;
    }

    /* ---- 左右滑动：一屏露出 2 件多一点，右边露出的半件提示还能往右滑 ---- */
    .momoko-min-rail {
        --rail-gap: 14px;
    }

    .momoko-min-grid {
        scroll-padding-left: 22px;
        /* 滑动区伸到内容区两边，图片可以从边缘滑进来 */
        margin: 0 -22px;
        padding: 6px 22px 22px;
    }

    .momoko-min-grid > .momoko-min-piece {
        flex-basis: 42%;
    }

    .momoko-min-piece .momoko-min-label {
        margin-top: 12px;
        padding-left: 9px;
    }

    .momoko-min-piece .momoko-min-t {
        font-size: 0.8rem;
        line-height: 1.6;
        letter-spacing: 0.04em;
    }

    /* 副标题最多两行，避免长短不一把卡片撑得高低不齐 */
    .momoko-min-piece .momoko-min-m {
        font-size: 0.58rem;
        margin-top: 0.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .momoko-min-piece .momoko-min-p {
        font-size: 0.68rem;
        margin-top: 0.5em;
    }

    .momoko-min-art,
    .momoko-min-frame > picture > img {
        box-shadow:
            0 14px 24px -12px rgba(27, 20, 14, 0.3),
            0 3px 8px -5px rgba(27, 20, 14, 0.16);
    }

    .momoko-min-more {
        margin-top: 14px;
    }

    /* ---- 故事区块：左边文字、右边图片 ---- */
    .momoko-min-story {
        padding: 34px 0;
    }

    .momoko-min-story-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 16px;
    }

    .momoko-min-story .momoko-min-story-copy {
        order: 1;
    }

    .momoko-min-story .momoko-min-story-art {
        order: 2;
        justify-self: end;
        width: 100%;
    }

    .momoko-min-story-copy .momoko-min-kick {
        font-size: 0.55rem;
        letter-spacing: 0.32em;
    }

    .momoko-min-story-title {
        font-size: 1.12rem;
        line-height: 1.55;
        margin-top: 0.5em;
    }

    .momoko-min-story-sub {
        font-size: 0.62rem;
        line-height: 1.7;
        margin-top: 0.7em;
    }

    .momoko-min-story-lede {
        font-size: 0.72rem;
        line-height: 1.85;
        margin-top: 0.8em;
    }

    .momoko-min-story-link {
        margin-top: 1.2em;
        font-size: 0.6rem;
        letter-spacing: 0.18em;
        padding-bottom: 6px;
    }

    .momoko-min-story-art .momoko-min-art,
    .momoko-min-story-art > picture > img {
        box-shadow:
            0 6px 14px -6px rgba(27, 20, 14, 0.24),
            0 20px 36px -16px rgba(27, 20, 14, 0.38);
    }
}
