:root {
  /* Dark mode accent colors (Deep Red) */
  --sl-color-accent-low: #330808;
  --sl-color-accent: #e8362daa;
  --sl-color-accent-high: #de554d;

  /* Dark mode gray scale */
  --sl-color-white: #ffffff;
  --sl-color-gray-1: #e8eaf0;
  --sl-color-gray-2: #9aa0b0;
  --sl-color-gray-3: #565b6b;
  --sl-color-gray-4: #3c414e;
  --sl-color-gray-5: #1c2028;
  --sl-color-gray-6: #111318;
  --sl-color-black: #0a0b0e;

  --text-secondary: var(--sl-color-gray-2);
}

:root[data-theme='dark'] a[aria-current="page"] {
  background: #e8362ddd;
  color: var(--sl-color-gray-1);
}

:root[data-theme='light'] {
  /* Light mode accent colors (Deep Red) */
  --sl-color-accent-low: #f9e3e3;
  --sl-color-accent: #ea544c;
  --sl-color-accent-high: #e8362d;

  /* Light mode gray scale */
  --sl-color-white: #0a0b0e;
  --sl-color-gray-1: #111318;
  --sl-color-gray-2: #1c2028;
  --sl-color-gray-3: #565b6b;
  --sl-color-gray-4: #9aa0b0;
  --sl-color-gray-5: #e8eaf0;
  --sl-color-gray-6: #f4f6fa;
  --sl-color-black: #ffffff;

  --text-secondary: var(--sl-color-gray-3);
}

:root[data-theme='light'] body {
  background: #ffffff;
}

:root[data-theme='dark'] .sl-link-card .description {
  color: var(--sl-color-gray-2);
}

:root[data-theme='dark'] .directory .tree-entry .comment {
  color: var(--sl-color-gray-2);
}

:root[data-theme='dark'] {
  --sl-color-text: var(--sl-color-gray-1);
}

:root[data-theme='dark'] starlight-toc nav a:not([aria-current]) {
  color: var(--sl-color-gray-2);
}

:root[data-theme='dark'] .sl-link-card {
  border-color: var(--sl-color-gray-2);
}

:root[data-theme='dark'] .sl-link-card:hover {
  border-color: var(--sl-color-gray-1);
}
