/* LEGO World in the blog: the reference's hero (getartcraft.com, the owner's
   choice, 2026-10-07), the wordmark amid a WebGL field of pictures riding
   spiral arms (js/gallery.js). ../css/blog.css carries the chrome, palettes,
   wordmark, display type, labels and the ruled frame. */

/* The hero: the blog's, with the field laid behind its text. */
.gallery .hero { overflow: hidden; padding: 72px 24px; }
.field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The text block sits on a pool of the page colour over a blur of the field
   passing behind it, as the reference's does. */
.hero-inner { position: relative; z-index: 40; width: 100%; max-width: 42rem; container-type: inline-size; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -88px -128px;
  z-index: -2;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 78%, transparent), transparent);
  pointer-events: none;
}
.hero-inner::after {
  content: '';
  position: absolute;
  inset: -34% -6%;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: radial-gradient(closest-side, black 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, black 45%, transparent 100%);
  pointer-events: none;
}
/* One line, sized to the text block as the reference's is. */
.gallery .wordmark { white-space: nowrap; font-size: clamp(1.75rem, 10cqw, 5.5rem); }
.hero-line { margin: 32px 0 0; max-width: none; text-align: center; font-size: 2.25rem; }
.hero-line em { color: var(--muted); }
.hero-copy { margin: 16px auto 0; max-width: 28rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 0; }
/* The reference's buttons: mono caps, a filled one and an outlined one. */
.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 150ms, color 150ms, border-color 150ms, opacity 150ms;
}
.button:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: transparent; }
.button-fill { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.button-fill:hover { opacity: 0.8; }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gallery .hero-notes { margin-top: 28px; }

/* The popped card's label: gallery.js moves it under the card. */
.field-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  translate: -50% 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink);
}
.field-label[hidden] { display: none; }
.field-label-name { font-family: var(--font-display); font-weight: 620; font-stretch: 118%; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink-strong); }
.field-label-number { color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; }
.field-label a { margin-top: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.field-label a:hover { text-decoration-color: var(--ink); }

/* Every set, one row each: picture, name and number, pieces. */
.set-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.set-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 24px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.set-row:hover { background: var(--bg-raised); }
.set-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.set-row:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.set-row > span:nth-child(2) { min-width: 0; }
.set-pictures { display: block; width: 120px; grid-row: 1 / 3; }
.set-row img { display: block; width: 120px; height: auto; aspect-ratio: 16 / 9; border-radius: 2px; background: var(--card); }
/* The poster of the palette in use. */
.set-row .set-picture-dark { display: none; }
html[data-theme="dark"] .set-picture-dark { display: block; }
html[data-theme="dark"] .set-picture-light { display: none; }
.set-row .set-title { font-family: var(--font-display); font-weight: 620; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-strong); }
.set-row .set-series { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.set-row .set-number { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); margin-left: 10px; vertical-align: 2px; }
.set-row .set-pieces { grid-column: 2; font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.set-note { grid-column: 1 / -1; margin: 0; padding: 40px; color: var(--muted); }
.set-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .set-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-row:not(:nth-child(3n)) { border-right: 0; }
  .set-row:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .set-list { grid-template-columns: minmax(0, 1fr); }
  .set-row:not(:nth-child(3n)) { border-right: 0; }
  .gallery .hero { padding: 56px 16px 72px; }
  .hero-copy { font-size: 1rem; }
  .set-row { grid-template-columns: 88px 1fr; gap: 4px 16px; padding: 14px 20px; }
  .set-pictures { width: 88px; grid-row: 1 / 3; }
  .set-row img { width: 88px; }
  .set-row .set-pieces { grid-column: 2; }
}
@media print {
  .field, .field-label, .hero-actions { display: none; }
  .hero-inner::before, .hero-inner::after { display: none; }
}

@media (max-width: 639px) { .gallery .hero-line { font-size: 1.875rem; } }

/* The poster stays beneath the shared preview video until its play() resolves
   (gallery.js then adds .is-playing). */
.set-pictures { position: relative; }
.set-turn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.set-turn.is-playing { opacity: 1; }
