/* lunchroom-huis 1.0.0 · verhaalblok met reizend focuskader naar ReactBits TrueFocus (vanilla).
   Kleuren en fonts via --m-*-tokens; positie en maat van het kader zet module.js als custom properties. */
.msm-lunchroom-huis {
  --lh-primary: var(--m-primary, #8d4e3b);
  --lh-bg: var(--m-bg, #eee8dc);
  --lh-ink: var(--m-ink, #26312b);
  --lh-ease: cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  scroll-margin-top: 116px;
  background: var(--lh-bg);
  color: var(--lh-ink);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 4vw, 60px);
  font: 400 15px/1.6 var(--m-font-body, Arial, sans-serif);
}
.msm-lunchroom-huis *,
.msm-lunchroom-huis *::before,
.msm-lunchroom-huis *::after { box-sizing: border-box; }

.msm-lunchroom-huis .lh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.msm-lunchroom-huis .lh-eyebrow {
  margin: 0 0 18px;
  font: 600 9px/1.3 var(--m-font-body, Arial, sans-serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.msm-lunchroom-huis h2 {
  margin: 0 0 26px;
  font: 400 clamp(48px, 7vw, 104px)/0.85 var(--m-font-display, "Times New Roman", serif);
  letter-spacing: -0.05em;
}

/* De kopregel: vier woorden, het kader reist van woord naar woord. */
.msm-lunchroom-huis .lh-focus {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.5em;
  margin: 0 0 26px;
  padding: 12px 0 12px 4px;
  font: 400 clamp(24px, 2.9vw, 38px)/1.1 var(--m-font-display, "Times New Roman", serif);
  letter-spacing: -0.03em;
  user-select: none;
}
.msm-lunchroom-huis .lh-word {
  display: inline-block;
  padding: 2px 6px;
  cursor: default;
  transition: filter 0.5s ease, opacity 0.5s ease;
}
.msm-lunchroom-huis[data-ready] .lh-word { filter: blur(5px); opacity: 0.42; }
.msm-lunchroom-huis[data-ready] .lh-word.is-active { filter: blur(0); opacity: 1; }
.msm-lunchroom-huis .lh-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fw, 0px);
  height: var(--fh, 0px);
  transform: translate(var(--fx, 0px), var(--fy, 0px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--lh-ease), width 0.5s var(--lh-ease), height 0.5s var(--lh-ease), opacity 0.5s var(--lh-ease);
}
.msm-lunchroom-huis .lh-frame.is-ready { opacity: 1; }
.msm-lunchroom-huis .lh-frame span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--lh-primary);
  border-radius: 3px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--lh-primary) 65%, transparent));
}
.msm-lunchroom-huis .lh-frame span:nth-child(1) { left: -10px; top: -10px; border-right: 0; border-bottom: 0; }
.msm-lunchroom-huis .lh-frame span:nth-child(2) { right: -10px; top: -10px; border-left: 0; border-bottom: 0; }
.msm-lunchroom-huis .lh-frame span:nth-child(3) { left: -10px; bottom: -10px; border-right: 0; border-top: 0; }
.msm-lunchroom-huis .lh-frame span:nth-child(4) { right: -10px; bottom: -10px; border-left: 0; border-top: 0; }

.msm-lunchroom-huis .lh-story { max-width: 58ch; }
.msm-lunchroom-huis .lh-story p { margin: 0 0 16px; }
.msm-lunchroom-huis .lh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--lh-ink) 22%, transparent);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.msm-lunchroom-huis .lh-meta a {
  color: var(--lh-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.msm-lunchroom-huis .lh-meta a:hover { border-bottom-color: transparent; }
.msm-lunchroom-huis a:focus-visible { outline: 3px solid var(--lh-primary); outline-offset: 4px; }

/* Beeld: de cutout op een lichte kaart. */
.msm-lunchroom-huis .lh-figure {
  margin: 0;
  position: relative;
}
.msm-lunchroom-huis .lh-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6%;
  background: #ffffff;
  border-radius: var(--m-radius, 0px);
  user-select: none;
  -webkit-user-drag: none;
}
.msm-lunchroom-huis figcaption {
  margin-top: 12px;
  font: 600 9px/1.3 var(--m-font-body, Arial, sans-serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lh-ink) 70%, transparent);
}

@media (max-width: 860px) {
  .msm-lunchroom-huis .lh-grid { grid-template-columns: 1fr; }
  .msm-lunchroom-huis .lh-figure { max-width: 440px; }
}
@media (max-width: 760px) {
  .msm-lunchroom-huis { scroll-margin-top: 97px; padding: 48px 18px 56px; }
  .msm-lunchroom-huis .lh-focus { font-size: 28px; gap: 0.2em 0.4em; }
  .msm-lunchroom-huis .lh-frame span { width: 12px; height: 12px; border-width: 2px; }
  .msm-lunchroom-huis .lh-frame span:nth-child(1),
  .msm-lunchroom-huis .lh-frame span:nth-child(3) { left: -7px; }
  .msm-lunchroom-huis .lh-frame span:nth-child(2),
  .msm-lunchroom-huis .lh-frame span:nth-child(4) { right: -7px; }
  .msm-lunchroom-huis .lh-frame span:nth-child(1),
  .msm-lunchroom-huis .lh-frame span:nth-child(2) { top: -7px; }
  .msm-lunchroom-huis .lh-frame span:nth-child(3),
  .msm-lunchroom-huis .lh-frame span:nth-child(4) { bottom: -7px; }
}

/* Rustige variant: kader staat stil op het eerste woord, niets vervaagt. */
@media (prefers-reduced-motion: reduce) {
  .msm-lunchroom-huis[data-ready] .lh-word { filter: none; opacity: 1; transition: none; }
  .msm-lunchroom-huis .lh-frame { transition: opacity 0.3s; }
}
