/* Lunar Design brand tokens and fonts, shared by the report and the admin tool. */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #08080b;
  --panel: #111117;
  --panel-2: #17171f;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.28);
  --text: #f4f1ea;
  --muted: #a39e93;
  --gold: #c8963a;
  --good: #6cc494;
  --attention: #eaa640;
  --poor: #ff6a5e;
  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-good {
  color: var(--good);
}
.status-attention {
  color: var(--attention);
}
.status-poor {
  color: var(--poor);
}
.status-unknown {
  color: var(--muted);
  font-weight: 500;
}

/* Severity */

.sev {
  display: inline-block;
  flex: none;
  margin-left: auto;
  padding: 0.12rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.sev-critical {
  color: var(--ink);
  background: var(--poor);
  border-color: var(--poor);
}
.sev-high {
  color: var(--poor);
}
.sev-medium {
  color: var(--attention);
}
.sev-low {
  color: #d6d2c8;
}
.sev-advisory {
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
