/* Hallmark · shape: Product · genre: modern-minimal · theme: custom (design.md, locked) · job: buy · idea: "the number under its own light" · vibe: "daylight counter, lamp-lit reading room"
 * paper: oklch(98.2% 0.005 250) · accent: oklch(45% 0.18 12) · display: Archivo 700 at 75% width, the number at --text-figure · body: Archivo 400 · hero: custom, the light test full width at 390 and on columns 1 to 7 at 1440, the buy column on 8 to 12 · nav: edge-aligned bar under a top rule · footer: two plain columns, facts and menu · imagery: the shop's own light tests, true colour · signature: the number under its own light
 * axes: light-cool/condensed-grotesk/chromatic-red · posture: restrained · contrast: pass · fold: pass · copy: verbatim · deal: none, design.md found · v2.0.0 */
/* FC-21: one gel (design/gel.md). Every value is a token. */

.gel { display: grid; grid-template-columns: minmax(0, 1fr); }
/* At 390 the light test runs the full width of the screen, no gutter, directly under the header. */
.gel__photo .photo { border-radius: 0; }
.gel__buy, .gel__near-side { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; margin-top: var(--space-md); }
.gel--nophoto .gel__buy { margin-top: var(--space-lg); }
.gel__near-side { margin-top: var(--space-3xl); }

.gel__num { display: block; font-size: var(--text-figure); line-height: var(--leading-display); font-variant-numeric: tabular-nums; }
.gel__name { display: block; font-size: var(--text-title); line-height: var(--leading-title); }
.gel__kind { margin-inline-start: var(--space-xs); }
.gel__meta, .gel__nophoto { margin-top: var(--space-xs); font-size: var(--text-label); line-height: var(--leading-label); color: var(--color-muted); }
/* The buy column is narrower than eight of twelve columns, so the price steps down one band at every width (design.md, Type: a
 * long title; hero review 1, 28 Nov): display to display-s. The number keeps --text-figure, the one figure of the page. */
/* FC-66 part 17: how the gel is sold stands above the price, which gives it its old space */
.gel__sale { margin-top: var(--space-md); font-family: var(--font-display); font-weight: 700; font-stretch: var(--display-stretch); font-size: var(--text-label); line-height: var(--leading-label); }
.gel__price { margin-top: var(--space-2xs); font-size: var(--text-display-s); line-height: var(--leading-display); }
.gel__unit { font-size: var(--text-lead); line-height: var(--leading-title); text-wrap: pretty; }
.gel__width { margin-top: var(--space-2xs); font-size: var(--text-label); line-height: var(--leading-label); color: var(--color-ink-2); }
/* FC-66 part 18: the full roll on a Cut + Full Roll page, its label, the maker and its price */
.gel__roll { margin-top: var(--space-sm); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); display: flex; justify-content: space-between; align-items: start; gap: var(--space-md); font-size: var(--text-body); }
.gel__maker { font-size: var(--text-label); line-height: var(--leading-label); color: var(--color-muted); }
.gel__roll .price { font-size: var(--text-title); line-height: var(--leading-title); font-variant-numeric: tabular-nums; }
.gel__length { margin-top: var(--space-md); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.gel__sum { display: grid; font-size: var(--text-body); line-height: var(--leading-label); font-variant-numeric: tabular-nums; }
.gel__total { font-weight: 400; }
.gel__add { margin-top: var(--space-md); }
.gel__inbasket { margin-top: var(--space-xs); font-size: var(--text-body); font-variant-numeric: tabular-nums; }
.gel__inbasket[hidden] { display: none; }
.gel__order { width: 100%; margin-top: var(--space-md); }

.more { margin-top: var(--space-3xl); }
.gel__more { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.more__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.near { margin-top: var(--space-3xl); }
.near__head { margin-bottom: var(--space-lg); }
/* FC-66 part 20: the darker re-shoot, one cell from 60rem as the other photographs, with his caption */
.more__darker figure { margin: 0; }
/* FC-66 part 22: how it was shot, and the way to his video */
.gel-shot { margin-top: var(--space-xl); }
.gel-shot__caption { max-width: var(--measure); font-size: var(--text-body); }
.gel-shot__caption + .gel-shot__video { margin-top: var(--space-md); }
.gel-shot__video .icon { display: inline-block; vertical-align: -0.2em; margin-inline-end: var(--space-xs); }

@media (min-width: 60rem) {
  .gel {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--container);
    margin-inline: auto;
    margin-top: var(--space-xl);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-lg);
    align-items: start;
  }
  /* The buy column stays beside the left column while it scrolls (design/gel.md, hero at 1440): his other photographs of
   * the gel sit under the light test on columns 1 to 7 (finish review 1). */
  .gel__photo { grid-column: 1 / span 7; grid-row: 1; }
  .gel__more { grid-column: 1 / span 7; grid-row: 2; width: auto; margin: var(--space-lg) 0 0; }
  .gel--nophoto .gel__more { grid-column: 1 / span 6; }
  .gel__buy { grid-row: 1 / span 2; align-self: start; }
  .gel__near-side { grid-row: 1 / span 2; }
  /* The neighbours' wall in a five-column side: the wall's own count for a box that wide (four from 30rem), not the
   * page's eight (finish review 2). */
  .gel__near-side .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gel__photo .photo { border-radius: var(--radius-card); }
  .gel__buy { grid-column: 8 / span 5; width: auto; margin: 0; position: sticky; top: var(--space-lg); }
  .gel--nophoto .gel__buy { grid-column: 1 / span 6; grid-row: 1; margin: 0; }
  .gel__near-side { grid-column: 8 / span 5; width: auto; margin: 0; }
  .gel__sale { margin-top: var(--space-lg); }
  .gel__length { margin-top: var(--space-lg); }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more__grid .photo--tall { width: calc(100% * var(--photo-ratio)); }
}
