/* A chart plate: a living contour map in fog-coloured paper, framed by a neatline.
   Colours live here as tokens; art.js reads them, so the palette has one home. */

:root {
  --paper: #d9ded8;      /* morning fog */
  --tint-low: #dde2db;   /* valleys */
  --tint-high: #b3c0b6;  /* ridges */
  --ink: #1f3a40;        /* index contours, neatline */
  --ink-soft: #4e6b5c;   /* minor contours */
  --shore: #a8782a;      /* the one warm line: a mid-height contour */
  --margin: clamp(12px, 3.2vw, 44px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15222a;
    --tint-low: #142029;
    --tint-high: #243b44;
    --ink: #a9c2b8;
    --ink-soft: #5f7c78;
    --shore: #c99a46;
  }
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
}

.plate {
  position: fixed;
  inset: var(--margin);
  border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  outline-offset: 5px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

@media (max-width: 480px) {
  .plate { outline-offset: 3px; }
}
