:root {
  --paper: #fffaf0;
  --paper-deep: #f4ead7;
  --ink: #302b28;
  --muted: #756b63;
  --red: #c93c45;
  --blue: #3e83b5;
  --green: #63934f;
  --orange: #df7e38;
  --pink: #ca5e8d;
  --yellow: #d5b834;
  --night: #18243b;
  --night-light: #273752;
  --edge: clamp(14px, 3vw, 40px);
  --tap: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  color: var(--ink);
  background: var(--paper-deep);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea { font: inherit; }

button {
  min-width: var(--tap);
  min-height: var(--tap);
  color: inherit;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
.hand {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 10ch;
  margin-bottom: clamp(12px, 2vw, 20px);
  font-size: clamp(2.75rem, 8vw, 5.7rem);
  line-height: .92;
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p { line-height: 1.5; }

.paper-noise {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: .052;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
