* { box-sizing: border-box }
body {
  --paper: #efeee9;
  --ink: #151515;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .48s ease;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
h1 {
  grid-area: 1 / 1;
  width: max-content;
  margin: 0;
  font: 780 min(22vw, 38vh)/.91 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.042em;
  white-space: nowrap;
  transform: translate(var(--offset-x, 0px), var(--offset-y, 0px)) scale(var(--fit, 1));
}
h1 span { display: block; position: relative; transform-origin: center }
h1 i { display: inline-block; width: 0; height: 0; vertical-align: baseline }
canvas {
  display: none;
  grid-area: 1 / 1;
  width: min(77vw, 138vh);
  height: auto;
  image-rendering: pixelated;
}
[data-scene="silk"] { --paper: #ded0ea; --ink: #321b45 }
[data-scene="silk"] h1 {
  font-family: Baskerville, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.036em;
}
[data-scene="pixel"] { --paper: #18271d; --ink: #d3ee91 }
[data-scene="pixel"] h1 { opacity: 0 }
[data-scene="pixel"] canvas { display: block }
[data-scene="press"] { --paper: #1a1918; --ink: #eeeae0 }
[data-scene="press"] h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -0.012em;
}
[data-scene="press"] h1 span { scale: 1 1.42 }
[data-scene="pop"] { --paper: #f9dd45; --ink: #c92d24 }
[data-scene="pop"] h1 {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.053em;
}
[data-scene="pop"] h1 span { rotate: -6deg }
[data-scene="clay"] { --paper: #d9a18a; --ink: #ffe0c7 }
[data-scene="clay"] h1 {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 .009em #fff1dd, .01em .022em #c67e6c,
    .018em .039em #af6555, .026em .054em #a4584d,
    .055em .08em .055em #7d3c3b69;
}
[data-scene="wire"] { --paper: #18244a; --ink: #d7e6ff }
[data-scene="wire"] h1 {
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: clamp(1px, .22vw, 4px) var(--ink);
  letter-spacing: -0.03em;
}
[data-scene="mono"] { --paper: #e9e5d0; --ink: #283f36 }
[data-scene="mono"] h1 {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: -0.053em;
}
[data-scene="editorial"] { --paper: #512523; --ink: #ffe5c3 }
[data-scene="editorial"] h1 {
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.041em;
}
[data-scene="editorial"] h1 span { scale: 1 1.16 }
[data-scene="soft"] { --paper: #f4a8b7; --ink: #742942 }
[data-scene="soft"] h1 {
  font-family: "Cooper Black", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.046em;
}
[data-scene="soft"] h1 span { rotate: 4deg }
[data-scene="reverse"] { --paper: #ef542e; --ink: #281a16 }
[data-scene="reverse"] h1 {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.053em;
}
[data-scene="reverse"] h1 span { skew: 14deg }
[data-scene="quiet"] { --paper: #cbd6dc; --ink: #293d49 }
[data-scene="quiet"] h1 {
  font-family: "Avenir Next", "Century Gothic", "Helvetica Neue", sans-serif;
  font-weight: 300;
  letter-spacing: -0.026em;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none }
}

[data-scene="poster"] { --paper: #f2f1ec; --ink: #111 }
[data-scene="poster"] h1 {
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.041em;
}
[data-scene="poster"] h1 span { rotate: -7deg; scale: .94 1.49 }

[data-scene="acid"] { --paper: #c8ff00; --ink: #151514 }
[data-scene="acid"] h1 {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.053em;
}
[data-scene="acid"] h1 span { skew: -13deg }

[data-scene="ultraviolet"] { --paper: #2600d9; --ink: #ecff00 }
[data-scene="ultraviolet"] h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -0.036em;
}
[data-scene="ultraviolet"] h1 span { skew: -14deg; scale: 1 1.18 }

[data-scene="hot-pink"] { --paper: #ff35ad; --ink: #231038 }
[data-scene="hot-pink"] h1 {
  font-family: "Cooper Black", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.05em;
}
[data-scene="hot-pink"] h1 span { rotate: -5deg; scale: 1 .93 }

[data-scene="cyan-cut"] { --paper: #00f2ff; --ink: #151748 }
[data-scene="cyan-cut"] h1 {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.049em;
}
[data-scene="cyan-cut"] h1 span { scale: 1 .72 }

[data-scene="safety-orange"] { --paper: #ff6414; --ink: #251000 }
[data-scene="safety-orange"] h1 {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.053em;
}
[data-scene="safety-orange"] h1 span { scale: .91 1.43 }

[data-scene="signal"] { --paper: #05231a; --ink: #20ff72 }
[data-scene="signal"] h1 {
  font-family: "Menlo", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: -0.053em;
}
[data-scene="signal"] h1 span { scale: 1 .87 }

[data-scene="magenta-ink"] { --paper: #500025; --ink: #ff81d3 }
[data-scene="magenta-ink"] h1 {
  font-family: Didot, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
}
[data-scene="magenta-ink"] h1 span { rotate: 5deg; scale: 1 1.14 }

[data-scene="royal-blue"] { --paper: #173dff; --ink: #fff }
[data-scene="royal-blue"] h1 {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
}

[data-scene="laser-red"] { --paper: #231519; --ink: #ff553c }
[data-scene="laser-red"] h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 850;
  letter-spacing: -0.037em;
}
[data-scene="laser-red"] h1 span {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .32vw, 5px) var(--ink);
  scale: 1 1.16;
}

[data-scene="acid-pink"] { --paper: #caff00; --ink: #be006e }
[data-scene="acid-pink"] h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -0.036em;
}
[data-scene="acid-pink"] h1 span { skew: -10deg; scale: 1 1.21 }

[data-scene="graphite"] { --paper: #dfded9; --ink: #25282b }
[data-scene="graphite"] h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -.024em;
}
[data-scene="graphite"] h1 span {
  scale: .9 1.28;
}

[data-scene="letterpress"] { --paper: #f0daba; --ink: #542a18 }
[data-scene="letterpress"] h1 {
  font-family: Rockwell, "American Typewriter", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.041em;
  text-shadow: 0 .009em #fff2cf, 0 -.009em #32180d;
}

[data-scene="marker"] { --paper: #193db6; --ink: #fff582 }
[data-scene="marker"] h1 {
  font-family: "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.036em;
}
[data-scene="marker"] h1 span { rotate: -7deg }

[data-scene="split-ink"] { --paper: #ede8db; --ink: #142b80 }
[data-scene="split-ink"] h1 {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
}
[data-scene="split-ink"] h1 span {
  padding: .11em .16em;
  color: transparent;
  background: linear-gradient(169deg, #142b80 48%, #c82433 48%);
  background-clip: text;
  scale: 1 1.17;
}

[data-scene="translucent"] { --paper: #163944; --ink: #b2f5e5 }
[data-scene="translucent"] h1 {
  letter-spacing: .006em;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
}
[data-scene="translucent"] h1 span {
  padding: .13em .16em;
  color: transparent;
  background: linear-gradient(155deg, #e1fff6, #5eb7b3 43%, #285966 67%, #91d7cf);
  background-clip: text;
  -webkit-text-stroke: .004em #b2f5e5;
}

[data-scene="varnish"] { --paper: #391324; --ink: #ff8a9f }
[data-scene="varnish"] h1 {
  font-family: Georgia, serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.043em;
  text-shadow: .005em .009em #ffb8c7, .018em .028em #a53454, .031em .045em #6d203a;
}
[data-scene="varnish"] h1 span { rotate: 4deg }

[data-scene="woodtype"] { --paper: #f6a940; --ink: #2f2816 }
[data-scene="woodtype"] h1 {
  font-family: "Rockwell Extra Bold", Rockwell, Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.048em;
}
[data-scene="woodtype"] h1 span { scale: .92 1.39 }

html, body, main, h1, h1 span {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
h1 span { pointer-events: none }

[data-scene="tower"] { --paper: #f7efdd; --ink: #c22520 }
[data-scene="tower"] h1 {
  font: 900 min(23vw, 30vh)/.9 Impact, "Arial Black", Arial, sans-serif;
  letter-spacing: -0.031em;
}
[data-scene="tower"] h1 span { scale: .88 2.55 }

[data-scene="highlighter"] { --paper: #f0eee6; --ink: #2b175c }
[data-scene="highlighter"] h1 { font-family: Georgia, serif; font-style: italic }
[data-scene="highlighter"] h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 39% -1% 10% 3%;
  background: linear-gradient(180deg, #e5ff4c 0 13%, #d9ff00 18% 81%, #d1f500 93%);
  clip-path: polygon(1% 14%, 98% 0, 100% 81%, 0 100%, 2% 57%);
  rotate: -4deg;
  animation: marker-stroke .74s .16s backwards cubic-bezier(.22,.55,.36,1);
}
@keyframes marker-stroke {
  from { clip-path: polygon(1% 14%, 1% 14%, 0 100%, 0 100%, 1% 57%) }
  57% { clip-path: polygon(1% 14%, 65% 4%, 63% 88%, 0 100%, 2% 57%) }
  to { clip-path: polygon(1% 14%, 98% 0, 100% 81%, 0 100%, 2% 57%) }
}

[data-scene="double-underline"] { --paper: #ff5b38; --ink: #200c43 }
[data-scene="double-underline"] h1 { font: italic 800 min(21vw, 36vh)/.93 Georgia, serif; letter-spacing: -0.043em }
[data-scene="double-underline"] h1::after {
  content: "";
  position: absolute;
  inset: 110% 3% auto 8%;
  height: .13em;
  border-radius: 50%;
  border-top: .042em solid #200c43;
  border-bottom: .019em solid #200c43;
  rotate: -4deg;
  transform-origin: left;
  animation: ink-sweep .52s .21s backwards cubic-bezier(.16,1,.3,1);
}
@keyframes ink-sweep { from { scale: 0 1 } }

[data-scene="embossed"] { --paper: #ddd9ca; --ink: #dad5c5 }
[data-scene="embossed"] h1 {
  font-family: "Rockwell Extra Bold", Georgia, serif;
  font-weight: 900;
  text-shadow: -.009em -.014em .012em #fff9e6, .015em .022em .025em #81776a, .04em .05em .078em #63584965;
}
[data-scene="warm-ink"] { --paper: #332d27; --ink: #ddd1bc }
[data-scene="warm-ink"] h1 {
  font-family: Baskerville, Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.019em;
}
[data-scene="warm-ink"] h1 span {
  rotate: -7deg;
}
[data-scene="neon-tube"] { --paper: #111618; --ink: #eafff4 }
[data-scene="neon-tube"] h1 { font-weight: 450; letter-spacing: -0.031em }
[data-scene="neon-tube"] h1 span {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .29vw, 4px) var(--ink);
  filter: drop-shadow(0 0 .026em #55ffad) drop-shadow(0 0 .07em #03ce77);
}

@media (prefers-reduced-motion: reduce) {
  h1::before, h1::after { animation: none !important }
}

[data-scene="cobalt-chisel"] { --paper: #183efa; --ink: #e7ff43 }
[data-scene="cobalt-chisel"] h1 { font-weight: 900; letter-spacing: -.034em }
[data-scene="cobalt-chisel"] h1 span { skew: -12deg; scale: 1 1.23 }

[data-scene="lime-stripe"] { --paper: #e6ebda; --ink: #293926 }
[data-scene="lime-stripe"] h1 { font-family: "Courier New", monospace; letter-spacing: -.051em }
[data-scene="lime-stripe"] h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 56% 8% 1% 3%;
  background: #bded63;
  transform-origin: left;
  animation: ink-sweep .46s .11s backwards cubic-bezier(.16,1,.3,1);
}

[data-scene="oxblood"] { --paper: #620d20; --ink: #ffe1bc }
[data-scene="oxblood"] h1 {
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.031em;
}
[data-scene="oxblood"] h1 span { scale: .9 1.58 }

[data-scene="porcelain"] { --paper: #7087bd; --ink: #f6f4dc }
[data-scene="porcelain"] h1 {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: -.018em;
  text-shadow: 0 -.01em #fff, .012em .024em #bac1d0, .021em .045em #8296c0, .044em .075em .07em #13295163;
}

[data-scene="risograph"] { --paper: #fae6cd; --ink: #2a3388 }
[data-scene="risograph"] h1 {
  font-family: Georgia, serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.024em;
  text-shadow: .026em .02em #ee554c;
}
[data-scene="risograph"] h1 span { rotate: -4deg }

[data-scene="slate"] { --paper: #c4d3da; --ink: #243743 }
[data-scene="slate"] h1 {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 550;
  letter-spacing: -.027em;
}
[data-scene="slate"] h1 span {
  scale: 1 .79;
}

[data-scene="ticket"] { --paper: #ffcf4b; --ink: #241719 }
[data-scene="ticket"] h1 { font: 900 min(22vw, 34vh)/.9 Impact, "Arial Black", Arial, sans-serif; letter-spacing: .012em }
[data-scene="ticket"] h1 span { scale: .88 1.52 }
