@import url("https://use.typekit.net/zjk2tam.css");

* {
    box-sizing: border-box;
}

body { 
    margin: 2.5rem 0;
    font-family: komet, Arial, Helvetica, sans-serif;
    background-image: url(bg.svg);
    background-repeat: repeat;
    background-size: 520px 250px;
}

main {
    max-width: 60ch;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    min-height: 100vh;
    padding: 0 5rem;
}

h1 {
    font-family: sausage, Arial, Helvetica, sans-serif;
    font-size: 7rem;
    margin: 0;
    padding: 2rem 1rem;
    text-shadow:
        -1px -1px 5px #000,
        1px -1px 5px #000,
        -1px  1px 5px #000,
        1px  1px 5px #000;
}

h2 {
    color:rgb(86, 64, 58);
    text-align: center;
}

.title-wrapper {
  position: relative;
  display: inline-block;
}

/* Hide the canvas by default (if JS fails/is disabled) */
#title-canvas {
  display: none; 
  width: 100%;
  min-width: 15ch;
  height: auto;
}

/* When JS is active, hide the text but keep it accessible, and show canvas */
.js-active #fallback-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js-active #title-canvas {
  display: block;
}