/* De Beijer — Lookbook · Styling (styling.html) only. Linked after site.css (README C1).
   The lookbook of combinations (WO-04 · N10–N12, N14): five styling ideas, three images each.
   Every group is its own grid composition; slot ids, ratios and layouts are fixed by C6:
     01 hero + stack · 02 staggered triptych · 03 full-bleed + inset · 04 overlap collage · 05 strip + detail
   Each idea has the same markup: .look > .look-head + .look-copy + .look-group > 3 × figure.slot,
   where .fig-a / -b / -c hold the slot's -1 / -2 / -3. From 768 px the group is display: contents,
   so its figures and the copy share the .look grid. On a phone the group is a considered stack
   (01, 03, 04) or a horizontal scroll-snap strip (02, 05). */

/* ---------------------------------------------------------------- swatch (a colour from the C3 tokens) */
.sw, .look-index .g i {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent);
}

/* ---------------------------------------------------------------- page title: the index of the five ideas */
.look-index { margin-top: clamp(40px, 6vw, 88px); }
.look-index ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
.look-index a { position: relative; display: grid; gap: 10px; align-content: start; height: 100%; padding-top: 18px; border-top: 1px solid var(--line); }
.look-index a::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--ink); transition: width .35s var(--ease); }
.look-index a:hover::before, .look-index a:focus-visible::before { width: 100%; }
.look-index .n { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.look-index .n::before { content: ""; width: 8px; height: 8px; background: var(--blauw); flex: none; }
.look-index .t { font-size: var(--fs-card); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.look-index .g { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.35; color: var(--body); }

/* ---------------------------------------------------------------- an idea: head, copy, group (phone first) */
.look { --g: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.look-head .eyebrow { margin-bottom: 16px; }
.look-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.look-copy .body { max-width: 32rem; }
.look-copy .tlink { justify-self: start; }
.look .tlink:hover i { transform: translate(2px, -2px); }

/* the combination: the top layer (garment · colour · step), then the rest of the outfit in words */
.combo { border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.combo > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.combo dt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; padding-top: .3em; }
.combo dd { color: var(--body); }
.combo .sw { margin-right: 8px; vertical-align: -1px; }
.combo-top dd { color: inherit; font-weight: 500; }

/* idea 05: the ladder the combination comes from (C3 tokens, dark to light as in the brandguide),
   with the two steps it uses marked */
.ladder ol { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); }
.ladder li { display: grid; gap: 8px; font-size: 11px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; color: var(--body); }
.ladder li::before { content: ""; height: clamp(32px, 3.4vw, 44px); background: var(--c); }
.ladder li:first-child::before { border-radius: var(--radius) 0 0 var(--radius); }
.ladder li:last-child::before { border-radius: 0 var(--radius) var(--radius) 0; }
.ladder li.is-used { color: var(--ink); font-weight: 500; }
.ladder li.is-used::before { background: radial-gradient(circle, var(--wit) 0 3px, transparent 3.5px), var(--c); }
.ladder figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--body); }

/* ---------------------------------------------------------------- the images: ratios (C6) and placeholders */
.look .slot { width: 100%; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-3-2 { aspect-ratio: 3 / 2; }
/* the placeholder's panel follows colour-use.md §4: light garments on Diep Leigrijs, dark ones on a
   light panel, never on their own ladder and never on the band's own ground */
.look .ph { background: var(--panel, transparent); }
/* the placeholder tag (site.css: dark glass, reads over light and dark crops alike) */
@media (max-width: 1024px) { .look .fig-c .ph-tag { display: none; } }   /* the small detail frames can't hold it; -1 carries it */
.look .slot.is-light .ph-garment { filter: drop-shadow(0 22px 26px rgba(44, 41, 31, .3)); }
/* a crop of a render (the detail frames), a stone cut-out, a flat field of colour */
.ph-crop { position: absolute; max-width: none; height: auto; }
.ph-stone { position: absolute; max-width: none; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28)); }
.ph-field { position: absolute; inset: var(--top, 60%) 0 0; background: var(--c); }
/* a figure that lies over another is cut free of it by a ring in the band's ground */
.look .ring { box-shadow: 0 0 0 clamp(6px, .8vw, 12px) var(--ground); }

/* ---------------------------------------------------------------- phone: a considered stack or a strip per idea */
@media (max-width: 767px) {
  .look-group { order: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); align-items: start; }
  .look-copy { order: 2; }                                         /* image first, then the words, as the website stacks */
  .look .fig-b .ph-tag { display: none; }                          /* one tag per group */

  /* 01 · the hero full width, then -2 and -3 side by side */
  .look--01 .look-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look--01 .fig-a { grid-column: 1 / -1; }

  /* 03 · -1 at 4:5 (its request's phone crop), -2 over its lower edge on the right, -3 beside -2 */
  .look--03 .fig-a { aspect-ratio: 4 / 5; }
  .look--03 .fig-b { grid-area: 2 / 1; width: 54%; justify-self: end; margin-top: -33.75%; }   /* half its own height */
  .look--03 .fig-c { grid-area: 2 / 1; width: 38%; align-self: end; }                          /* same cell as -2, on the left */

  /* 04 · -1 left, -2 right over its lower corner, -3 small below */
  .look--04 .fig-a { width: 74%; }
  .look--04 .fig-b { width: 64%; justify-self: end; margin-top: -26%; }
  .look--04 .fig-c { width: 40%; margin-left: 8%; }

  /* 02, 05 · a scroll-snap strip that bleeds to the screen edge; the page itself never scrolls sideways */
  .look--02 .look-group, .look--05 .look-group {
    display: flex; align-items: flex-start; gap: var(--g);
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 12px;
  }
  .look--02 .look-group .slot, .look--05 .look-group .slot { flex: none; scroll-snap-align: start; }
  .look--02 .look-group .slot { width: 72%; }
  .look--02 .fig-b { margin-top: calc(72% * .2); }                   /* 15 % of its height, as on desktop */
  .look--05 .look-group .slot { width: auto; height: min(60vw, 300px); }

  .look-index ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .look-index li:last-child a { border-bottom: 1px solid var(--line); }
  .look-index a { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 6px 8px; padding: 14px 0; }
  .look-index .n { grid-row: 1 / span 2; padding-top: .35em; }
  .look-index .t { font-size: 20px; }
}

/* ---------------------------------------------------------------- tablet and desktop: one 12-column grid per idea */
@media (min-width: 768px) {
  .look { --g: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
  .look-group { display: contents; }
  .look-head { grid-column: 1 / -1; grid-row: 1; padding-bottom: clamp(8px, 1.6vw, 24px); }

  /* the copy as one row under the head: the advice left, the combination and the link right */
  .look--01 .look-copy, .look--02 .look-copy, .look--04 .look-copy {
    grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g);
    padding-bottom: clamp(8px, 2vw, 28px);
  }
  .look--01 .look-copy .body, .look--02 .look-copy .body, .look--04 .look-copy .body { grid-column: 1; grid-row: 1 / span 2; }
  .look--01 .look-copy > :not(.body), .look--02 .look-copy > :not(.body), .look--04 .look-copy > :not(.body) { grid-column: 2; }

  /* 01 · hero + stack: -1 on 2/3 of the width, -2 and -3 stacked on the right, level with its foot */
  .look--01 { grid-template-rows: auto auto 1fr auto auto; }
  .look--01 .fig-a { grid-column: 1 / span 8; grid-row: 3 / span 3; align-self: end; }
  .look--01 .fig-b { grid-column: 9 / -1; grid-row: 4; }
  .look--01 .fig-c { grid-column: 9 / -1; grid-row: 5; }

  /* 02 · staggered triptych: three 3:4 in a row, the middle one 15 % of its height lower */
  .look--02 { row-gap: clamp(28px, 4vw, 56px); }
  .look--02 .fig-a { grid-column: 1 / span 4; grid-row: 3; }
  .look--02 .fig-b { grid-column: 5 / span 4; grid-row: 3; margin-top: 20%; }   /* 20 % of its width = 15 % of its height */
  .look--02 .fig-c { grid-column: 9 / span 4; grid-row: 3; }

  /* 03 · full-bleed + inset: -1 across the container, -2 over its lower right edge, -3 beside the copy */
  .look--03 .fig-a { grid-column: 1 / -1; grid-row: 2; }
  .look--03 .fig-c { grid-column: 1 / span 3; grid-row: 3; }
  .look--03 .look-copy { grid-column: 4 / span 5; grid-row: 3; padding: 4px clamp(0px, 2vw, 32px) 0 clamp(4px, 1.5vw, 20px); }
  .look--03 .fig-b { grid-column: 9 / -1; grid-row: 3; width: auto; margin: -54% clamp(16px, 3.4vw, 48px) 0 0; }

  /* 04 · overlap collage: -1 and -2 at 55 % overlap diagonally, -3 small at the bottom left */
  .look--04 .fig-a { grid-column: 1 / -1; grid-row: 3; width: 55%; }
  .look--04 .fig-b { grid-column: 1 / -1; grid-row: 4; width: 55%; justify-self: end; margin-top: calc(-19% - var(--g)); }
  .look--04 .fig-c { grid-column: 1 / -1; grid-row: 4; width: 24%; margin-left: 12%; align-self: end; }

  /* 05 · strip + detail: -1 and -2 side by side, -3 offset below, next to the ladder */
  .look--05 .fig-a { grid-column: 1 / span 6; grid-row: 2; }
  .look--05 .fig-b { grid-column: 7 / span 6; grid-row: 2; }
  .look--05 .look-copy { grid-column: 1 / span 6; grid-row: 3; padding-top: clamp(20px, 3vw, 40px); }
  .look--05 .fig-c { grid-column: 8 / span 4; grid-row: 3; margin-top: clamp(28px, 4vw, 64px); }

  .look-index ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
  .look-index ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  /* 02 · the head over -1, the copy over -2 and -3 */
  .look--02 .look-head { grid-column: 1 / span 4; }
  .look--02 .look-copy { grid-column: 5 / -1; grid-row: 1; padding: 30px 0 0; }
  .look--02 .fig-a, .look--02 .fig-b, .look--02 .fig-c { grid-row: 2; }

  /* 04 · the copy in the open corner, right of -1 and above -2 */
  .look--04 .look-copy { grid-row: 2; width: 36%; justify-self: end; grid-template-columns: minmax(0, 1fr); padding: 4px 0 0; }
  .look--04 .look-copy .body, .look--04 .look-copy > :not(.body) { grid-column: auto; grid-row: auto; }
  .look--04 .fig-a { grid-row: 2; }
  .look--04 .fig-b, .look--04 .fig-c { grid-row: 3; }
}

@media (min-width: 1280px) {
  /* 01 · the copy on top of the right-hand column, over the stack */
  .look--01 { grid-template-rows: auto 1fr auto auto; }
  .look--01 .look-copy { grid-column: 9 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr); padding: 0; }
  .look--01 .look-copy .body, .look--01 .look-copy > :not(.body) { grid-column: auto; grid-row: auto; }
  .look--01 .fig-a { grid-row: 2 / span 3; }
  .look--01 .fig-b { grid-row: 3; }
  .look--01 .fig-c { grid-row: 4; }
}

/* ---------------------------------------------------------------- motion (styling.js): a group's images come in one by one.
   Only with IntersectionObserver and without prefers-reduced-motion; otherwise they are simply there. */
.look.will-reveal .slot { opacity: 0; translate: 0 32px; transition: opacity .8s var(--ease), translate 1s var(--ease); }
.look.will-reveal.is-in .slot { opacity: 1; translate: none; }
.look.is-in .fig-b { transition-delay: .14s; }
.look.is-in .fig-c { transition-delay: .28s; }

/* Bart, 2026-10-07: the hairline of each idea moves from above the eyebrow (site.css draws it on .wrap)
   to directly under the H2 (<hr class="h-rule"> in .look-head), as on the Overzicht and the Uitwerking. */
.wrap.look:has(.eyebrow > .idx) { background: none; }   /* matches site.css's selector weight; styling.css loads later */
.look-head .h-rule { margin: 24px 0 0; }
