/* =========================================================================
   L'Atelier de MIA — Demi-Couture Category (Phase 2)

   Demi-Couture ships as a single editorial category page. No dedicated
   per-piece HTML files exist (rtw.html was parametric) and Phase 2 only
   authors piece pages where they already exist — so Demi-Couture is
   read as a single editorial.

   Explicitly NOT permitted here:
     · No reassurance row (three-icon promises).
     · No rhythm boxes.
     · No 3-up product grid.
     · No split-column hero.
     · No filled buttons. No colour swatches. No size selector.
     · No inline booking form.

   Movements:
     · Opening     — ivory canvas, eyebrow + serif title
     · Image       — full-bleed photograph, no overlay text
     · Descriptor  — pull line + a short editorial paragraph
     · Detail      — a second paragraph on how the work is made
     · Closing     — one primary link: Begin a consultation

   Exactly one primary link per page, placed at the closing.
   ========================================================================= */

.demi-couture {
    background: var(--canvas);
    color: var(--fg);
}

/* ------- OPENING ------- */

.demi-opening {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    padding: var(--space-8) var(--space-5);
}

.demi-opening__inner {
    max-width: 720px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.demi-opening__eyebrow {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-opening__title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--type-display-font);
    font-size: var(--type-display-size);
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
    line-height: 1.04;
    color: var(--fg);
}

.demi-opening__title em { font-style: italic; }

@media (max-width: 899px) {
    .demi-opening__title { font-size: var(--type-display-size-mobile); }
}

/* ------- IMAGE ------- */

.demi-image {
    width: 100%;
    background: var(--canvas);
}

.demi-image__media {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 560px;
    background: var(--canvas);
    overflow: hidden;
}

.demi-image__picture,
.demi-image__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 899px) {
    .demi-image__media {
        height: 70svh;
        min-height: 480px;
    }
}

/* ------- DESCRIPTOR ------- */

.demi-descriptor {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    padding: var(--space-8) var(--space-5);
}

.demi-descriptor__inner {
    max-width: 720px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.demi-descriptor__pull {
    margin: 0;
    max-width: 28ch;
    font-family: var(--type-headline-font);
    font-size: var(--type-headline-size);
    font-weight: var(--type-headline-weight);
    letter-spacing: var(--type-headline-tracking);
    line-height: 1.2;
    font-style: italic;
    color: var(--fg);
}

.demi-descriptor__body {
    margin: 0;
    max-width: 48ch;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    font-weight: var(--type-body-editorial-weight);
    line-height: 1.7;
    color: var(--fg);
}

@media (max-width: 899px) {
    .demi-descriptor { padding: var(--space-7) var(--space-4); }
}

/* ------- DETAIL ------- */

.demi-detail {
    padding: var(--space-8) 0;
    background: var(--canvas-deep);
}

.demi-detail__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.demi-detail__eyebrow {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-detail__body {
    margin: 0;
    max-width: 52ch;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    font-weight: var(--type-body-editorial-weight);
    line-height: 1.7;
    color: var(--fg);
}

@media (max-width: 899px) {
    .demi-detail { padding: var(--space-7) 0; }
}

/* ------- SPLIT — two editorial sub-sections (Playbook 2 §5) ------- */
/* The Ready to Wear page now ends in three sub-sections — Dresses,
   Corsets, then Sets — each carrying its own eyebrow, serif title, short
   paragraph, and ONE primary link. No grids, no icons, no uniform cards;
   the sub-sections read as editorial paragraphs stacked with a hairline
   between them. */

.demi-split {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
}

.demi-split__section {
    padding: var(--space-8) var(--space-5);
    display: flex;
    justify-content: center;
}

.demi-split__section + .demi-split__section {
    border-top: 1px solid var(--hairline);
}

.demi-split__inner {
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.demi-split__eyebrow {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-split__title {
    margin: 0;
    max-width: 26ch;
    font-family: var(--type-headline-font);
    font-size: var(--type-headline-size);
    font-weight: var(--type-headline-weight);
    letter-spacing: var(--type-headline-tracking);
    line-height: 1.2;
    color: var(--fg);
}

.demi-split__title em {
    font-style: italic;
}

.demi-split__body {
    margin: 0;
    max-width: 48ch;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    font-weight: var(--type-body-editorial-weight);
    line-height: 1.7;
    color: var(--fg);
}

@media (max-width: 899px) {
    .demi-split__section {
        padding: var(--space-7) var(--space-4);
    }
}

/* ------- LISTING — Soirée + Corsets (one rhythmic column) ------- */
/* Every piece on a listing page is rendered as a .demi-listing__piece
   — an editorial block of image + name + one primary link. The blocks
   are stacked vertically with hairlines between them; at desktop every
   other block flips orientation (image left / image right) so the page
   reads as a slow scroll, not a product grid. */

.demi-listing {
    background: var(--canvas);
    padding: var(--space-8) var(--space-5) var(--space-7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-7);
}

.demi-listing__head {
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
}

.demi-listing__eyebrow {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-listing__title {
    margin: 0;
    font-family: var(--type-display-font);
    font-size: var(--type-display-size);
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
    line-height: 1.04;
    color: var(--fg);
}

.demi-listing__title em { font-style: italic; }

.demi-listing__line {
    margin: 0;
    max-width: 48ch;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    font-weight: var(--type-body-editorial-weight);
    line-height: 1.7;
    color: var(--fg);
}

.demi-listing__pieces {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.demi-listing__piece {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: var(--space-6);
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--hairline);
}

.demi-listing__piece:first-child {
    border-top: 0;
    padding-top: 0;
}

.demi-listing__piece:nth-child(even) {
    grid-template-columns: 4fr 5fr;
}
.demi-listing__piece:nth-child(even) .demi-listing__piece-media {
    order: 2;
}
.demi-listing__piece:nth-child(even) .demi-listing__piece-body {
    order: 1;
}

.demi-listing__piece-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--canvas-deep);
}

.demi-listing__piece-media img,
.demi-listing__piece-media picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.demi-listing__piece-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.demi-listing__piece-kicker {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-listing__piece-name {
    margin: 0;
    font-family: var(--type-headline-font);
    font-size: var(--type-headline-size);
    font-weight: var(--type-headline-weight);
    letter-spacing: var(--type-headline-tracking);
    line-height: 1.15;
    color: var(--fg);
    font-style: italic;
}

.demi-listing__piece-line {
    margin: 0;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    line-height: 1.6;
    color: var(--fg);
    max-width: 42ch;
}

@media (max-width: 899px) {
    .demi-listing {
        padding: var(--space-7) var(--space-4);
        gap: var(--space-6);
    }
    .demi-listing__pieces {
        gap: var(--space-6);
    }
    .demi-listing__piece,
    .demi-listing__piece:nth-child(even) {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding-top: var(--space-5);
    }
    .demi-listing__piece:nth-child(even) .demi-listing__piece-media,
    .demi-listing__piece:nth-child(even) .demi-listing__piece-body {
        order: initial;
    }
}

/* ------- PIECE PAGE — single piece detail ------- */
/* One editorial page per piece. Hero image (4:5), piece name, short body
   copy, and ONE primary link: "See the piece" on listings, "Reserve this
   corset" on Corset piece pages. No sizing picker on the public page —
   sizing is collected inside the reservation flow itself. */

.demi-piece {
    background: var(--canvas);
    padding: var(--space-8) var(--space-5) var(--space-7);
    display: flex;
    justify-content: center;
}

.demi-piece__inner {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: var(--space-7);
    align-items: center;
}

.demi-piece__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--canvas-deep);
}

.demi-piece__media img,
.demi-piece__media picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.demi-piece__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.demi-piece__kicker {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.demi-piece__name {
    margin: 0;
    font-family: var(--type-display-font);
    font-size: var(--type-display-size);
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
    line-height: 1.05;
    color: var(--fg);
    font-style: italic;
}

.demi-piece__line {
    margin: 0;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    line-height: 1.7;
    color: var(--fg);
    max-width: 44ch;
}

.demi-piece__actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

@media (max-width: 899px) {
    .demi-piece {
        padding: var(--space-7) var(--space-4);
    }
    .demi-piece__inner {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .demi-piece__name {
        font-size: var(--type-display-size-mobile);
    }
}

/* ------- SOIRÉE PROCESS (Playbook 3 §5) -------------------------------
   Four-step editorial block above the pieces grid. Roman numeral index,
   italic serif title, one quiet paragraph. No icons, no bullets; this
   is not a three-up row. Lives inside .demi-listing so it inherits the
   centred column rhythm. */

.soiree-process {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-6) 0 var(--space-5);
    border-top: 1px solid var(--hairline);
}

.soiree-process__head {
    text-align: center;
}

.soiree-process__eyebrow {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.soiree-process__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.soiree-process__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-5);
    border-top: 1px solid var(--hairline);
}

.soiree-process__step:first-child {
    border-top: 0;
    padding-top: 0;
}

.soiree-process__index {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

.soiree-process__title {
    margin: 0;
    font-family: var(--type-headline-font);
    font-size: var(--type-headline-size-sm, 26px);
    font-weight: var(--type-headline-weight);
    letter-spacing: var(--type-headline-tracking);
    line-height: 1.2;
    color: var(--fg);
    font-style: italic;
}

.soiree-process__body {
    margin: 0;
    font-family: var(--type-body-editorial-font);
    font-size: var(--type-body-editorial-size);
    font-weight: var(--type-body-editorial-weight);
    line-height: 1.6;
    color: var(--fg);
    max-width: 58ch;
}

/* ------- CORSET HOW-IT-WORKS (Playbook 3 §7) --------------------------
   Hairline-bracketed block above the Corset pieces grid. One small-caps
   summary line + one quiet caption. Flex column — explicitly NOT a
   four-up icon row. */

.corset-how-it-works {
    width: 100%;
    max-width: 680px;
    padding: var(--space-5) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
}

.corset-how-it-works__line {
    margin: 0;
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--fg);
}

.corset-how-it-works__note {
    margin: 0;
    font-family: var(--type-caption-font);
    font-size: var(--type-caption-size);
    line-height: 1.6;
    color: var(--muted);
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}

/* ------- CORSET RTW BADGE (Playbook 3 §7) -----------------------------
   Small-caps line placed directly below a corset piece name on piece
   pages. Sits in the existing .demi-piece__body flex column so the
   parent's gap handles spacing — no margins needed. */

.corset-rtw-badge {
    display: inline-block;
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
}

/* ------- SOIRÉE PAYMENT (Playbook 3 §5) -------------------------------
   Three small-caps cadence lines with hairline bookends, plus one quiet
   caption. Flex column — explicitly NOT a three-up icon row. */

.soiree-payment {
    width: 100%;
    max-width: 680px;
    padding: var(--space-5) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
}

.soiree-payment__line {
    margin: 0;
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--fg);
}

.soiree-payment__note {
    margin: var(--space-2) 0 0;
    font-family: var(--type-caption-font);
    font-size: var(--type-caption-size);
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 899px) {
    .soiree-process__title {
        font-size: 22px;
    }
}
