/* frame.css · therkildsen.dev's frame around every prototype (2026-10-15, Malte: the prototypes looked like the old
   site, not the identity). The frame is the site's: its paper as the ground, and the bar as the site's dock
   (site.css, site-dock): one raised pill with a hairline ring and the second elevation, the name with its avatar,
   the way back to the Lab, the product, and at the end the site's pages and the light or dark switch. The tokens
   are the site's (frame-tokens.css), scoped to the frame, so the product inside keeps its own. Layout only here,
   and the dock's own surface. */

/* ── the ground: the site's paper, without the shell's grain ── */
body { background-color: var(--site-paper); background-image: none; }

/* ── the bar: the site's dock, in the flow at the top ── */
.pf-bar {
  --plane: var(--raised); --plane-hover: var(--raised-hover); --plane-selected: var(--raised-selected); --plane-selected-hover: var(--raised-selected-hover);
  display: flex; align-items: center; gap: 8px; flex: none;
  height: var(--h-44); margin: 8px 8px 0; padding: 0 8px 0 6px; box-sizing: border-box;
  border: 0; border-radius: var(--r-press); background: var(--raised); color: var(--ink-2);
  box-shadow: 0 0 0 var(--px) var(--line-3), var(--e2);
  font-family: var(--font); font-feature-settings: var(--font-features); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-450); letter-spacing: var(--tracking);
  white-space: nowrap; position: relative; z-index: 5;
}
.pf-a[data-frame="panel"]:not([data-embed]) > .pf-bar { background: var(--raised); border-bottom-color: transparent; }

/* who: the avatar and the name, home on the site */
.pf-site { display: inline-flex; align-items: center; gap: 8px; flex: none; height: var(--h-32); padding: 0 10px 0 6px; border-radius: var(--r-press); color: var(--ink); font-weight: var(--fw-550); text-decoration: none; transition: background-color var(--state-out); }
.pf-site:focus-visible { outline: var(--px) solid var(--accent); outline-offset: calc(-1 * var(--px)); }
.pf-sep { flex: none; width: var(--px); height: 16px; background: var(--line-3); }

/* the product: its mark in its own colour, its name, its number and title */
.pf-product { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding-left: 0; border-left: 0; white-space: nowrap; }
.pf-product > b { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-550); color: var(--ink); }
.pf-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--h-20); height: var(--h-20); border-radius: var(--r-key); background: var(--brand, var(--ink)); color: var(--on-solid); }
.pf-mark > svg { width: var(--icon-12); height: var(--icon-12); }
.pf-n { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pf-spacer { flex: 1; }
.pf-views { margin-left: 4px; }
.pf-views > [data-r="button"][aria-current="page"] { background-color: var(--plane-selected); color: var(--ink); }
.pf-actions { display: inline-flex; align-items: center; gap: 4px; }
.pf-bar [data-r="button"] { border-radius: var(--r-press); }
#app[data-embed] > .pf-bar { display: none; }

/* the site's pages, from the dock's menu */
.pf-pages [data-r="menu-item"] { text-decoration: none; }
.pf-pages [data-r="menu-item"][aria-current="page"] > [data-part="stack"] > :first-child { color: var(--ink); font-weight: var(--fw-550); }

@media (hover: hover) {
  .pf-site:hover { background: var(--raised-hover); transition-duration: 0s; }
}

/* ── the product: a paper panel on the site's paper, the ring of the site's cards, no grain ── */
.pf-a[data-frame="panel"]:not([data-embed]) > main { background-image: none; }

/* ── a phone: the bar keeps its pill, scrolls sideways, and drops the words a mark already says ── */
@media (max-width: 759px) {
  .pf-bar { margin: 6px 6px 0; padding: 0 6px 0 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .pf-bar::-webkit-scrollbar { display: none; }
  .pf-site-name, .pf-n, .pf-how-open > span, .pf-product > b { display: none; }
  .pf-site { padding: 0 4px; }
  .pf-product, .pf-views { flex: none; }
  .pf-views { margin-left: 0; }
  .pf-a[data-frame="panel"]:not([data-embed]) > .pf-bar { border-bottom-color: transparent; }
  .pf-a[data-frame="panel"]:not([data-embed]) > main { margin-top: 6px; }
}
@media print { .pf-bar { display: none; } }
