:root {
  --paper: #f4efe5;
  --ink: #141414;
  --stage: #ff5a3c;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

/* The column is as wide as it can be while the panel and wordmark still fit on screen. */
.col {
  display: grid;
  gap: clamp(16px, 3vh, 30px);
  width: min(100%, 1180px, calc((100vh - 130px) * 2.2));
}

.stage {
  position: relative;
  aspect-ratio: 2.2 / 1;
  border-radius: clamp(14px, 2.2vw, 28px);
  overflow: hidden;
  background: var(--stage);
  cursor: pointer;
  outline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

#art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* A color wipe that covers the panel between animations. */
.wipe {
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

/* Static, utilitarian wordmark. It never moves. */
.wordmark {
  font-size: clamp(0.78rem, 1.7vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* balances the trailing letter-spacing so it centers */
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Taller panel on portrait screens so the letters have room to jump around. */
@media (max-aspect-ratio: 1/1) {
  .col {
    width: min(100%, calc((100vh - 130px) * 1.3));
  }

  .stage {
    aspect-ratio: 1.3 / 1;
  }
}

/* Click-explosion canvas sits above the art and never blocks clicks. */
.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
