/* Rim frame card: a pale card that frames a film, a picture or a fake app screen. Three nested rounded shapes
   (an outer rim line, the card, the inner window) with radii that step 20 / 16 / 8, and a wide soft glow in
   the PAGE colour around the card, so a busy background field fades to plain page before it reaches the card.
   Measured from Decimals (how-it-works hero film, .v2h-video + .v2h-window), rewritten with our names.

   Markup:
   <div class="rfc">                         the card: 8px padding, 1px line, 16px radius, the feather glow
     <div class="rfc-window">                the window: 8px radius, its own ground, a hairline drawn ON TOP
       ...content...
       <span class="rfc-tag"><i></i>Label</span>   optional chip in its corner (paper on a hairline, 6px square dot)
     </div>
   </div>

   Measured from the source:
   card     padding 8px; border 1px solid #4d463814 (ink at 8%); radius 16px; background #f2ede5
   rim      ::before inset -4px (from the padding edge, so 3px outside the line), radius 20px,
            1px solid rgba(77,70,56,.12), pointer-events none
   feather  box-shadow 0 0 44px 30px #ede8e1 (the page's cream): 30px solid spread + 44px blur
   window   radius 8px, overflow hidden, background #e6e2d8; its line is an ::after at z-index 3 over the
            content (inset 0, 1px, radius 8), so a photo's or video's edge never bleeds past the hairline
   size     width min(100%, 1080px) (the page's content column); the film window is 16:9
   tag      top/left 16px, height 28px, padding 0 12px 0 10px, gap 8px, 1px line, radius 999px,
            rgba(255,253,248,.85) + backdrop blur(6px), 11.5px / 500 / .06em uppercase; dot 6px, radius 1.5px */

.rfc {
  --rfc-bg: #f2ede5;                        /* card */
  --rfc-line: rgba(77, 70, 56, 0.08);       /* card + window hairline (#4d463814) */
  --rfc-rim: rgba(77, 70, 56, 0.12);        /* outer rim line */
  --rfc-pad: 8px;                           /* card padding = the gap round the window */
  --rfc-radius: 16px;                       /* card corner (= window radius + padding) */
  --rfc-rim-gap: 4px;                       /* rim box sits this far out from the padding edge */
  --rfc-rim-radius: 20px;                   /* rim corner */
  --rfc-feather: #ede8e1;                   /* glow colour: the PAGE colour under the field */
  --rfc-feather-spread: 30px;
  --rfc-feather-blur: 44px;
  --rfc-window-bg: #e6e2d8;
  --rfc-window-radius: 8px;
  --rfc-width: 1080px;

  position: relative;
  z-index: 1;                               /* above the field it sits on */
  box-sizing: border-box;
  width: min(100%, var(--rfc-width));
  padding: var(--rfc-pad);
  border: 1px solid var(--rfc-line);
  border-radius: var(--rfc-radius);
  background: var(--rfc-bg);
  box-shadow: 0 0 var(--rfc-feather-blur) var(--rfc-feather-spread) var(--rfc-feather);
}
.rfc::before {                              /* the rim: a second hairline just outside the card */
  content: "";
  position: absolute;
  inset: calc(var(--rfc-rim-gap) * -1);
  border: 1px solid var(--rfc-rim);
  border-radius: var(--rfc-rim-radius);
  pointer-events: none;
}

.rfc-window {
  position: relative;
  overflow: hidden;
  border-radius: var(--rfc-window-radius);
  background: var(--rfc-window-bg);
}
.rfc-window::after {                        /* the window's line, drawn over whatever is inside */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid var(--rfc-line);
  border-radius: inherit;
  pointer-events: none;
}
.rfc-window--film { aspect-ratio: 16 / 9; }

.rfc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;                               /* under the window's hairline, over the content */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--rfc-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #4d4638;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rfc-tag i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--rfc-dot, #c34a28); }
