/* ═══════════════════════════════════════════════════════════════════════
   Andrra Box — shared tokens for the website and the app (mockups)

   Layout idea: a drawing sheet. Cool paper, ink lines, one blue. Headlines
   in a narrow grotesk like the title of a plan, small technical labels in
   a monospace like its annotations.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Instrument Sans";
  src: url(/shell/fonts/InstrumentSans.woff2) format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/shell/fonts/InstrumentSans-Italic.woff2) format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: block;
}
@font-face {
  font-family: "DM Mono";
  src: url(/shell/fonts/DMMono-Regular.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "DM Mono";
  src: url(/shell/fonts/DMMono-Medium.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: block;
}

:root {
  /* Ink and paper: greys biased toward the blue */
  --ink: #0f1b2d;
  --ink-2: #3b4859;
  --ink-3: #667283;
  --ink-4: #98a3b1;
  --paper: #f2f4f7;
  --paper-2: #e9edf2;
  --sheet: #ffffff;
  --rule: #d9dfe7;
  --rule-2: #c2cbd6;

  /* The one accent: Andrra blue, as in the finance app today */
  --blue: #0b5cad;
  --blue-deep: #084a8c;
  --blue-night: #06386b;
  --blue-wash: #e8f1fb;
  --blue-line: #b7d1ef;

  /* Annotation red, used for "bêta" and nothing else on the website */
  --redline: #c2410c;
  --redline-wash: #fdeee4;

  /* States (app) */
  --ok: #17794a;    --ok-wash: #e3f4ea;
  --warn: #9a5b07;  --warn-wash: #fdf2dc;  --warn-line: #efc368;
  --bad: #b42318;   --bad-wash: #fde9e7;

  --font-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-1: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow-2: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .09);
  --shadow-3: 0 2px 4px rgba(15, 27, 45, .06), 0 24px 60px rgba(15, 27, 45, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Narrow display cut for titles */
.display {
  font-stretch: 82%;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Technical label: the annotations of the sheet */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.num { font-variant-numeric: tabular-nums; }

/* The mark: the "A" that is already the chat's icon */
.mark {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue); color: #fff;
}
.mark svg { width: 62%; height: 62%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
.badge-live { background: var(--blue-wash); color: var(--blue-deep); }
.badge-beta { background: var(--redline-wash); color: var(--redline); }
.badge-soon { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-2); }
.badge-ok { background: var(--ok-wash); color: var(--ok); }
.badge-warn { background: var(--warn-wash); color: var(--warn); }
.badge-bad { background: var(--bad-wash); color: var(--bad); }
.badge-grey { background: var(--paper-2); color: var(--ink-2); }

.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
