/* The Patchworld frame (5 December 2026): every app keeps its own site, sewn into the studio with one strip on top
   (the way home and where you are) and one band at the bottom (the other apps). Injected by build.py into every
   imported app page; prefixed pw- and fully specified, so neither the app's styles nor these leak into each other. */
@font-face { font-family: "PW Archivo"; src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "PW Geist"; src: url(/assets/fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

.pw-frame, .pw-band { all: initial; display: block; box-sizing: border-box; background: #050506; color: #f5f5f7;
  font: 500 14px/1.2 "PW Geist", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; position: relative; z-index: 2147483000; }
.pw-frame *, .pw-band * { box-sizing: border-box; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.pw-frame a, .pw-band a { color: #f5f5f7; text-decoration: none; }
.pw-frame a:focus-visible, .pw-band a:focus-visible { outline: 2px solid #ff1f8e; outline-offset: 3px; border-radius: 4px; }

/* the strip: a seam along its lower edge, like the studio's own header */
.pw-frame { height: 44px; padding: 0 var(--pw-r, max(16px, 3vw)) 0 var(--pw-l, max(16px, 3vw)); display: flex; align-items: center; gap: 10px;
  background-image: repeating-linear-gradient(90deg, #4a4a52 0 7px, transparent 7px 14px); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.pw-frame .pw-wm { font: 900 19px/1 "PW Archivo", system-ui, sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em; }
.pw-frame .pw-sep { color: #ff1f8e; font-weight: 600; }
.pw-frame .pw-here { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pw-frame .pw-all { margin-left: auto; white-space: nowrap; color: #b4b4bb; padding: 12px 0; }
.pw-frame .pw-all:hover, .pw-frame .pw-here:hover { color: #fff; }
.pw-frame .pw-all:hover { text-decoration: underline; text-decoration-color: #ff1f8e; text-underline-offset: 4px; }

/* the band: the other apps as small patches, each with a stitched edge */
.pw-band { padding: 36px var(--pw-r, max(16px, 3vw)) 40px var(--pw-l, max(16px, 3vw)); background-image: repeating-linear-gradient(90deg, #4a4a52 0 7px, transparent 7px 14px); background-size: 100% 2px; background-repeat: no-repeat; }
.pw-band .pw-in { margin: 0; display: grid; gap: 20px; }
.pw-band .pw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pw-band .pw-mark { display: inline-grid; line-height: 1; }
.pw-band .pw-wm { font: 900 30px/.8 "PW Archivo", system-ui, sans-serif; font-stretch: 62%; text-transform: uppercase; }
.pw-band .pw-sts { display: flex; justify-content: space-between; margin-top: 6px; font: 700 8px/1 "PW Archivo", system-ui, sans-serif; font-stretch: 125%; text-transform: uppercase; color: #ff1f8e; }
.pw-band .pw-links { display: flex; gap: 20px; color: #b4b4bb; }
.pw-band .pw-links a { color: #b4b4bb; padding: 10px 0; }
.pw-band .pw-links a:hover { color: #fff; }
.pw-band .pw-apps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.pw-band .pw-apps a { display: block; width: 52px; height: 52px; padding: 4px; border-radius: 13px; border: 1.5px dashed #ff1f8e; transition: transform .2s ease; }
.pw-band .pw-apps a:hover { transform: rotate(-4deg) scale(1.06); }
.pw-band .pw-apps img { display: block; width: 100%; height: 100%; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .pw-band .pw-apps a { transition: none; } .pw-band .pw-apps a:hover { transform: none; } }
.pw-band .pw-sts i { font-style: normal; text-transform: uppercase; }
/* the strip sizes itself to the app's own header: a little smaller on a phone, a little larger on a wide screen */
@media (max-width: 700px) { .pw-frame { height: 40px; font-size: 13px; } .pw-frame .pw-wm { font-size: 17px; } .pw-band .pw-wm { font-size: 26px; } .pw-band .pw-apps { gap: 10px; } .pw-band .pw-apps a { width: 48px; height: 48px; } }
@media (min-width: 1100px) { .pw-frame { height: 46px; font-size: 15px; } .pw-frame .pw-wm { font-size: 21px; } }
