/* Design tokens, reset and page shell. */

:root {
  /* Ink and paper */
  --color-ink: #3a2e2e;
  --color-ink-soft: #5c4e4e;
  --color-ink-faint: #a89393;
  --color-paper: #fff9f6;
  --color-paper-grid: #f8e6e9;
  --color-white: #ffffff;
  --color-dash: #ebcfd5;

  /* Accents, taken from the character art */
  --color-pink: #f9c9d6;
  --color-pink-light: #ffe3ea;
  --color-pink-pale: #fff0f3;
  --color-pink-marker: #e07a99;
  --color-pink-text: #b23a63;
  --color-brown-light: #f6e3cf;
  --color-brown-pale: #fbf0e4;
  --color-brown-marker: #b5763f;
  --color-butter: #ffe58a;
  --color-butter-light: #fff4cd;

  /* Game sticker colours */
  --tag-pink: #ffe3ea;
  --tag-butter: #ffe9b8;
  --tag-mint: #ddf0cf;
  --tag-sky: #e6f2fb;
  --tag-lilac: #e9def7;
  --tag-toffee: #f1d4b5;

  /* Type */
  --font-hand: 'Gaegu', cursive;
  --font-body: 'Mali', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --hand-sm: 1.125rem;
  --hand-md: 1.375rem;
  --hand-lg: 1.875rem;
  --hand-xl: 2.875rem;
  --hand-xxl: 4.125rem;

  /* Lines, shapes and spacing */
  --line: 2.5px solid var(--color-ink);
  --line-thin: 2px solid var(--color-ink);
  --radius-wobble: 24px 20px 24px 18px;
  --radius-card: 8px 14px 10px 12px;
  --radius-note: 4px 10px 6px 12px;
  --shadow-hard: 2px 3px 0 var(--color-ink);
  --shadow-pink: 4px 4px 0 var(--color-pink);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --tap-size: 44px;
  --app-width: 430px;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--color-ink);
  background-color: var(--color-paper);
  background-image:
    linear-gradient(var(--color-paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-paper-grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-pink-marker);
  outline-offset: 2px;
}

.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;
}

/* App shell: a phone-width column, tab bar pinned to the bottom. */
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100dvh;
  margin: 0 auto;
}

.app__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 52px var(--space-5) var(--space-8);
}

.app__main--compact {
  padding-top: 40px;
}
