@font-face {
  font-family: "Secular One";
  src: url("fonts/secular-one.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root { color-scheme: light; background: #fff; color: #000; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; -webkit-text-size-adjust: 100%; }

.tortilla {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.bogo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  min-width: 60vw;
  padding: .25vw 8vw;
  background: #ed1c24;
  color: #fff;
  font: 400 18vw "Secular One", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tile {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  appearance: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tile[aria-pressed="true"], .tile.is-target { color: #540b0e; }
.tile.is-dragging { opacity: .45; cursor: grabbing; }
.tile:disabled { color: inherit; opacity: 1; cursor: inherit; }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bulletin {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pile {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.headline {
  position: absolute;
  top: calc(var(--y) * 100%);
  left: calc(var(--x) * 100%);
  width: var(--width);
  /* Anchor each block by its center and let the viewport cut through the type. */
  transform: translate(-50%, -50%);
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: var(--weight);
  font-size: max(1.1rem, calc(var(--size) * 1vmin));
  line-height: var(--leading, .93);
  letter-spacing: -.035em;
  text-align: var(--align);
  overflow-wrap: anywhere;
  animation: print-in 160ms ease-out both;
}

.headline a { color: inherit; pointer-events: auto; text-decoration: none; }
.headline a:hover { text-decoration: underline; text-decoration-thickness: .045em; }
.headline:not(.is-dismissed):has(a:focus-visible),
.headline.is-open {
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 0 .18em #fff;
}
.headline.is-open { z-index: 3; }
.headline a:focus-visible { outline: 2px solid #ed1c24; outline-offset: 2px; }

.attribution {
  position: fixed;
  z-index: 2;
  left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  margin: 0;
  padding: .2em .35em;
  background: #fff;
  font: 600 .65rem/1.2 system-ui, sans-serif;
}
.attribution a { color: #000; text-underline-offset: .15em; }

.wedge {
  position: fixed;
  z-index: 3;
  right: -60px;
  bottom: -60px;
  display: flex;
  width: 120px;
  height: 120px;
  background: #000;
  color: #f4f4f4;
  transform: rotate(45deg);
  opacity: .5;
  transition: opacity .2s;
}
.wedge:hover, .wedge:focus-visible { opacity: 1; }
.wedge svg { width: 60px; height: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes print-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .headline { animation: none; }
  .wedge { transition: none; }
}
