/* Style Lab — base comum aos mini-sites e ao ecrã que os mostra.
   Os tipos de letra só são descarregados quando um mini-site os usa. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Anybody"; src: url("../fonts/Anybody.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Ecrã: uma "janela" de altura fixa. O mini-site faz scroll dentro de .screen-scroll;
   .screen-layer fica por cima, fixa, para gavetas e painéis. */
.screen-inner {
  position: relative; overflow: hidden; background: #fff;
  container: site / inline-size;
}
.screen-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.screen-layer { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.screen-layer > * { pointer-events: auto; }
.screen-loading {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 30;
  font: 13px/1 "Plex Mono", ui-monospace, monospace; color: #8a8a85; background: #f4f2ed;
  opacity: 0; pointer-events: none; transition: opacity .2s ease .15s;
}
.screen-inner[data-loading] .screen-loading { opacity: 1; }

/* Reposição mínima dentro de cada mini-site (especificidade zero). */
:where([data-ms]) { min-height: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where([data-ms]) :where(h1, h2, h3, h4, p, ol, ul, dl, dd, blockquote, figure, fieldset) { margin: 0; padding: 0; }
:where([data-ms]) :where(ol, ul) { list-style: none; }
:where([data-ms]) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where([data-ms]) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where([data-ms]) :where(a) { color: inherit; }
:where([data-ms]) :where(svg, img) { display: block; max-width: 100%; }
:where([data-ms]) :where(*, *::before, *::after) { box-sizing: border-box; }
:where([data-ms]) [hidden] { display: none !important; }
:where([data-ms]) :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
