/* Port map sandbox tokens. The interface roles mirror src/styles/tokens.css so the map drops into
 * the site unchanged; the --map-* roles are new and move into that file on integration.
 * Imagery color grading lives in map.js as numbers (Cesium image adjustments), not colors.
 *
 * Art direction: the site's own theme (src/styles/tokens.css): deep navy, pine green, white type,
 * one sakura mark. Set 2026-09-29 after the cover-inspired greens and cobalt were rejected.
 */
:root {
  /* ── interface (copied from the site's layer 2 roles) ── */
  --color-paper: oklch(99.1% 0.003 152);
  --color-card: oklch(99.8% 0.003 152);
  --color-rule: oklch(86% 0.003 152);
  --color-ink: oklch(20% 0.01 265);
  --color-ink-2: oklch(33% 0.01 265);
  --color-muted: oklch(46% 0.009 265);
  --color-accent: oklch(45% 0.09 152);
  --color-focus: oklch(40% 0.055 255);
  --color-deep: oklch(23% 0.055 255);
  --color-on-deep: oklch(99.1% 0.003 152);
  --color-on-deep-muted: oklch(80% 0.025 245);
  --color-seal: oklch(62% 0.15 355);
  --color-accent-on-deep: oklch(83% 0.085 355);
  --color-deep-rule: oklch(40% 0.055 255);

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Helvetica Neue", sans-serif;
  --weight-display: 500;
  --weight-strong: 700;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-md: 1.375rem;
  --text-lg: 1.75rem;
  --text-xl: 2.1875rem;
  --tracking-label: 0.1em;
  --leading-body: 1.65;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;

  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med: 320ms;

  /* ── map art: the site's own palette ──
     A dark chart in the navy of the site's ports and closing bands (ai), land a step lighter than the
     sea, forest and parks with a hint of the site's pine green (matsu). White type, and sakura pink
     only for the selected place, as on the site. Values are the site's layer-1 palette. */
  --map-sea: oklch(23% 0.055 255);          /* ai-900 */
  --map-land: oklch(44% 0.05 255);
  --map-wood: oklch(42% 0.045 175);
  --map-grass: oklch(44% 0.046 200);
  --map-farm: oklch(45% 0.048 255);
  --map-park: oklch(45% 0.07 152);          /* toward matsu-600 */
  --map-ice: oklch(80% 0.025 245);          /* ai-200 */
  --map-urban: oklch(48% 0.045 255);
  --map-road: oklch(58% 0.04 255);
  --map-river: oklch(30% 0.055 255);
  --map-border: oklch(64% 0.035 255);

  /* ── map roles ── */
  --map-ground: oklch(23% 0.055 255);                /* the sea's navy, behind the map while tiles load */
  --map-pin: oklch(99.8% 0.003 152);
  --map-pin-ring: oklch(23% 0.055 255);            /* ai-900 */
  --map-pin-active: oklch(83% 0.085 355);            /* sakura-300, the site's pink on navy: the selected place */
  --map-region-edge: oklch(83% 0.085 355 / 0.55);    /* the mild pink line round a hovered region */
  --map-region-wash: oklch(83% 0.085 355 / 0.06);
  --map-label: oklch(99.5% 0.003 250);
  --text-map-minor: 0.75rem;                         /* names of ports that are not featured */
  --text-map-region: 1.25rem;                        /* region names in the country view */
  --map-label-shadow: oklch(20% 0.06 258 / 0.85);
  --map-region-label: oklch(99.5% 0.003 250);
  --map-sea-label: oklch(80% 0.025 245 / 0.8);       /* ai-200 */
  --map-panel: oklch(99.8% 0.003 152);
  /* Embedded in a page: the navy section the map sits in (the site's --color-deep), the thin frame
     round the map, and the panel column on its right. */
  --map-frame: var(--color-deep);
  --map-frame-gap: var(--space-lg);
  --map-frame-panel: clamp(22rem, 32vw, 32rem); /* scales with the frame, so the map keeps its share on a laptop */
  --map-stack-height: clamp(22rem, 100vw, 34rem); /* embedded on a phone or tablet: the map's height, with the panel running down the page under it */
  --map-shadow: 0 1px 2px oklch(23% 0.055 255 / 0.14), 0 14px 36px oklch(23% 0.055 255 / 0.22);
  --map-vignette: oklch(18% 0.05 255 / 0.45);
}
