/* ---------------------------------------------------------------------------
   Reset, type, and the shared "block" skeleton (border + hard shadow).
   Neo-brutalism rule: nothing fades or eases — state changes snap.
--------------------------------------------------------------------------- */

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.35;
  padding: clamp(16px, 3vw, 40px);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* The core neo-brutalist unit: thick border, hard offset shadow. */
.block {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow);
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
}

.foot {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 8px;
}

/* Stamp-in: numbers and toasts land like a rubber stamp — stepped, not eased. */
@keyframes stamp {
  0% {
    transform: scale(1.6);
    opacity: 0;
  }
  60% {
    transform: scale(0.92);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stamp {
  animation: stamp 140ms steps(3, end);
}

@media (prefers-reduced-motion: reduce) {
  .stamp {
    animation: none;
  }
}
