/* Inkfall — design tokens and reset. */

:root {
  /* Paper and ink */
  --paper: #f4efe2;
  --paper-2: #e9e0ca;
  --rule: #a9c0d8;
  --margin-line: #d38787;
  --ink: #171a2e;
  --ink-soft: #4a5270;
  --ink-faint: #8a90a6;
  --drop: #2f6f9f;
  --danger: #bf443c;
  --eraser: #e9a3ab;
  --steel: #8e99ad;

  /* The desk the page lies on */
  --desk: #211a16;
  --desk-2: #30251e;

  --font-display: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --radius: 10px;
  --wrap: 68rem;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 14px 34px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--drop);
}

img,
canvas {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
