/* Sjøfart · design tokens
   Phase 1. Load this before fleet.css and replace hard-coded colours with the
   custom properties below. Nothing in here is a component style. */

@font-face {
  font-family: 'Archivo';
  src: url('../../../assets/fonts/sjofart/archivo-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo Black';
  src: url('../../../assets/fonts/sjofart/archivo-black-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Martian Mono';
  src: url('../../../assets/fonts/sjofart/martian-mono-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Paper and ink ------------------------------------------------- */
  --pc-paper:      #F4EBD9;   /* panel and tile ground */
  --pc-ground:     #E9DCC4;   /* the desk behind the panels */
  --pc-ink:        #12303E;   /* type, borders, sea in daylight */
  --pc-ink-2:      #34505C;   /* secondary type */
  --pc-ink-3:      #5B7A88;   /* eyebrows, captions */
  --pc-rule:       #D6C9AC;   /* hairlines inside a panel */

  /* ---- The two loud colours ------------------------------------------ */
  --pc-shout:      #E2513A;   /* THE NEXT ACTION. Nothing else. */
  --pc-data:       #F0B429;   /* data: marks, gauges, counts, lit ports */

  /* ---- Semantic ------------------------------------------------------ */
  --pc-clear:      #2E7D5B;   /* healthy, booked, delivered */
  --pc-alert:      #C0361F;   /* money leaving, hull at risk, expiring */

  /* ---- Globe --------------------------------------------------------- */
  --pc-land:       #E0C79B;
  --pc-night-sea:  #0B1F2B;
  --pc-night-land: #6E5E44;

  /* ---- Type ---------------------------------------------------------- */
  --pc-display: 'Archivo Black', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --pc-text:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --pc-mono:    'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pc-t-eyebrow: 9.5px;   /* mono, uppercase, .18em tracking */
  --pc-t-micro:   11px;
  --pc-t-body:    13px;
  --pc-t-lede:    15px;
  --pc-t-tile:    18px;
  --pc-t-figure:  26px;
  --pc-t-room:    34px;

  /* ---- Space and shape ----------------------------------------------- */
  --pc-gap:        10px;   /* between tiles */
  --pc-edge:       20px;   /* panel to screen edge */
  --pc-pad:        14px;   /* inside a tile, comfortable */
  --pc-pad-tight:   8px;   /* inside a tile, compact */
  --pc-border:      2px;
  --pc-border-hvy:  3px;
  --pc-cell:      116px;   /* one dashboard row */
  --pc-rail:      226px;
  --pc-queue:     320px;

  /* ---- Motion: four durations, one curve ------------------------------ */
  --pc-ease:        cubic-bezier(0.22, 0.8, 0.3, 1);
  --pc-d-snap:      140ms;
  --pc-d-move:      240ms;
  --pc-d-ink:       450ms;
  --pc-d-camera:    600ms;

  color-scheme: light;
}

/* Compact density: padding and one step down the type scale. Nothing else. */
[data-density='compact'] {
  --pc-pad:      var(--pc-pad-tight);
  --pc-gap:      8px;
  --pc-t-body:   12px;
  --pc-t-tile:   16px;
  --pc-t-figure: 22px;
  --pc-cell:     98px;
}

/* Reduced motion: the end state, not a slower trip to it. motion.js reads the
   same signal; this covers CSS transitions that are not going through it. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --pc-d-snap: 0ms; --pc-d-move: 0ms; --pc-d-ink: 0ms; --pc-d-camera: 0ms;
  }
}
[data-motion='reduced'] {
  --pc-d-snap: 0ms; --pc-d-move: 0ms; --pc-d-ink: 0ms; --pc-d-camera: 0ms;
}

/* ---- Primitives the whole UI leans on --------------------------------- */

.pc-eyebrow {
  font: 500 var(--pc-t-eyebrow)/1.2 var(--pc-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pc-ink-3);
}

.pc-figure {
  font: var(--pc-t-figure)/1 var(--pc-display);
  font-variant-numeric: tabular-nums;
  color: var(--pc-ink);
}

/* The one shout on screen. Two of these visible at once is a bug. */
.pc-shout {
  background: var(--pc-shout);
  color: var(--pc-paper);
  border: var(--pc-border) solid var(--pc-ink);
  font: 700 var(--pc-t-body)/1 var(--pc-text);
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
}

.pc-btn {
  background: transparent;
  color: var(--pc-ink);
  border: var(--pc-border) solid var(--pc-ink);
  font: 600 var(--pc-t-micro)/1 var(--pc-text);
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
}
.pc-btn:hover { background: var(--pc-ink); color: var(--pc-paper); }

.pc-tile {
  background: var(--pc-paper);
  border: var(--pc-border) solid var(--pc-ink);
  padding: var(--pc-pad);
  overflow: hidden;           /* a tile's content scrolls inside, never out */
}

.pc-rule { height: 1px; background: var(--pc-rule); border: 0; }

/* Absolutely no soft edges anywhere. Kept as a guard rail: if a component
   sneaks in a radius or a shadow, this is where to find out. */
/* Shell-only guard rail: excludes .pc-labels, .pc-labels-layer, fleet and harbour canvases. */
/* Also excluded: the other globe-owned overlays drawn over the scene — the route legend swatches,
   the harbour's credit and loading notes, and the helm HUD (review, 2026-09-27). */
.pc-app *:not(.pc\-labels *):not(.pc\-labels-layer *):not(#fleet-canvas):not(#harbour-canvas):not([class*="pc-legend-line"]):not(.pc-harbour-credit):not(.pc-harbour-credit *):not(.pc-harbour-loading):not(.pc-helm *) {
  border-radius: 0 !important;
  box-shadow: none !important;
}
