@font-face { font-family: "Archivo"; font-weight: 900; font-display: block; src: url("../fonts/archivo-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Anton"; font-weight: 400; font-display: block; src: url("../fonts/anton-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: block; src: url("../fonts/playfair-display-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/playfair-display-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: block; src: url("../fonts/poppins-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: block; src: url("../fonts/instrument-serif-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 800; font-display: block; src: url("../fonts/league-spartan-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-display: block; src: url("../fonts/libre-baskerville-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-weight: 400; font-display: block; src: url("../fonts/tinos-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: block; src: url("../fonts/hanken-grotesk-500-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

/* A poster. Everything inside is sized in container units, so the same CSS
   draws the full-screen page and the /preview thumbnails. */
.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  visibility: hidden;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.stage.ready { visibility: visible; }
.stage ::selection { background: var(--ink); color: var(--bg); }

.stage .bg { position: absolute; inset: 0; z-index: 0; }
.stage .bg > * { position: absolute; display: block; }

.fit {
  position: absolute;
  z-index: 2;
  inset: var(--fit-top) var(--fit-right, var(--fit-x)) var(--fit-bottom) var(--fit-x);
  display: flex;
  flex-direction: column;
  justify-content: var(--fit-align, center);
}
.copy { width: 100%; }
.quote { margin: 0; text-wrap: balance; overflow-wrap: normal; hyphens: none; }
.quote em { font-style: normal; }
.ghost { display: none; }
.author { margin: 1.1em 0 0; font-size: 3.4cqw; line-height: 1.2; }
.sig {
  position: absolute;
  z-index: 3;
  inset: auto 0 4cqh;
  margin: 0;
  text-align: center;
  font-size: 3.1cqw;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--sig, var(--ink));
}

/* Film grain, shared by the templates that opt in with --grain. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: var(--grain, 0);
  mix-blend-mode: var(--grain-blend, overlay);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* The daily page: one poster, full height, centred on wide screens. */
html.daily { height: 100%; background: var(--page, #0b0b0b); color-scheme: dark; }
html.daily body { margin: 0; height: 100%; overflow: hidden; display: grid; place-items: center; }
html.daily .stage { width: min(100vw, 75dvh); height: 100dvh; }
html.daily noscript { color: #fff; font: 500 1.25rem/1.4 system-ui, sans-serif; text-align: center; padding: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  html.daily .stage.ready .copy { animation: arrive 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  html.daily .stage.ready .sig { animation: arrive 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes arrive {
  from { opacity: 0; filter: blur(0.6cqw); translate: 0 1.2cqh; }
}
