/* Paper, ink and a license-blue accent. Status colours: coral needs a reply,
   amber is waiting on the customer, mint is resolved. */
:root {
  --paper: #f3efe6;
  --paper-deep: #e7e0d0;
  --surface: #fffdf8;
  --ink: #22252d;
  --ink-soft: #5d616b;
  --accent: #2b5ea7;
  --accent-deep: #1d4683;
  --accent-pale: #dfe8f5;
  --on-accent: #ffffff;
  --coral: #c4492e;
  --coral-pale: #fbe1d7;
  --mint: #277a56;
  --mint-pale: #d7efe2;
  --amber: #f2b632;
  --amber-pale: #fbefcc;
  --line: #d9d1c0;
  --danger: #c2334d;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --radius-blob: 20px;
  --radius-soft: 12px;
  --radius-pill: 999px;
  --shadow-pop: 0 3px 0 var(--ink);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16181d;
    --paper-deep: #1f232a;
    --surface: #23272f;
    --ink: #eef0f4;
    --ink-soft: #a9aeb9;
    --accent: #7aa7ec;
    --accent-deep: #a9c6f5;
    --accent-pale: #1f3150;
    --on-accent: #10131a;
    --coral: #f08a6c;
    --coral-pale: #4a261c;
    --mint: #5cc994;
    --mint-pale: #173a2a;
    --amber: #f2c14e;
    --amber-pale: #3d3218;
    --line: #353a45;
    --shadow-pop: 0 3px 0 #08090c;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100dvh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

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

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