/* Insignia Planning Desk — theme: fonts, tokens, base elements. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* The cold room: deep arctic steel, paper content, one warm accent. */
  --steel-950: #0b1e30;
  --steel-900: #0f2740;
  --steel-800: #12314f;
  --steel-700: #175380;
  --steel-600: #1d669c;
  --ice-500: #4fa3d1;
  --ice-100: #e3f0f8;
  --paper: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --ink-900: #15181b;
  --ink-700: #363b41;
  --ink-500: #5b6269;
  --ink-400: #868d94;
  --line: #e3e6e9;
  --line-2: #d3d8dc;
  --green-600: #1e7f4f;
  --green-500: #27995f;
  --green-100: #e2f3e9;
  --amber-600: #b45309;
  --amber-100: #fbf0dd;
  --red-600: #c93a2b;
  --red-100: #fbe9e6;
  --sky-600: #2563eb;
  --sky-100: #e8effd;

  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-md: 0 4px 16px rgba(11, 30, 48, 0.08), 0 1px 3px rgba(11, 30, 48, 0.06);
  --shadow-lg: 0 24px 60px rgba(11, 30, 48, 0.18), 0 4px 16px rgba(11, 30, 48, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: #cfe3f0;
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

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

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 550;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-900);
  transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 80ms var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--ink-400);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--steel-700);
  border-color: var(--steel-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--steel-800);
  border-color: var(--steel-800);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-500);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink-900);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: var(--r-sm);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Tags, badges, avatars                                               */
/* ------------------------------------------------------------------ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink-500);
}

.tag-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag-green { background: var(--green-100); color: var(--green-600); }
.tag-amber { background: var(--amber-100); color: var(--amber-600); }
.tag-red { background: var(--red-100); color: var(--red-600); }
.tag-sky { background: var(--sky-100); color: var(--sky-600); }
.tag-ice { background: var(--ice-100); color: var(--steel-700); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  flex: none;
  letter-spacing: 0.02em;
}

.avatar-lg {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
}

kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-400);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--surface);
}

.up { color: var(--green-500); }
.down { color: var(--red-600); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
