/*
 * Тема Larba (larba.ru) поверх сборки платформы Ракурса: фон #f4f4f0 как у сайта, белые карточки,
 * текст #16181d, лаймовый #d9f45e для кнопок и отметок (надпись на нём чёрная), тёмный оливковый
 * #4a5a00 для ссылок, чтобы читались на светлом. Текст Onest, слово в шапке Unbounded, как логотип
 * сайта. Подключается в index.html после основного CSS (deploy-study.sh).
 */
:root {
  --background: #f4f4f0;
  --foreground: #16181d;
  --card: #ffffff;
  --card-foreground: #16181d;
  --popover: #ffffff;
  --popover-foreground: #16181d;
  --primary: #d9f45e;
  --primary-foreground: #16181d;
  --secondary: #ffffff;
  --secondary-foreground: #16181d;
  --muted: #ebebe5;
  --muted-foreground: #5b5f68;
  --accent: #ebebe5;
  --accent-foreground: #16181d;
  --destructive: #c62828;
  --border: rgb(22 24 29 / 0.09);
  --input: rgb(22 24 29 / 0.16);
  --ring: #b9d43a;

  --field: #f4f4f0;
  --brand-text: #4a5a00;
  --brand-soft: rgb(217 244 94 / 0.38);
  --ok: #3f7d1f;
  --ok-soft: rgb(217 244 94 / 0.4);
  --warn: #9a6516;
  --warn-soft: rgb(255 214 102 / 0.3);
  --bad: #c62828;
  --bad-soft: rgb(198 40 40 / 0.1);
  --top: rgb(244 244 240 / 0.86);
}

.dark {
  --background: #101114;
  --foreground: #f4f4f0;
  --card: #1a1c21;
  --card-foreground: #f4f4f0;
  --popover: #202329;
  --popover-foreground: #f4f4f0;
  --primary: #d9f45e;
  --primary-foreground: #16181d;
  --secondary: #1a1c21;
  --secondary-foreground: #f4f4f0;
  --muted: #22252b;
  --muted-foreground: #9a9ea6;
  --accent: #262930;
  --accent-foreground: #f4f4f0;
  --destructive: #ff8a80;
  --border: rgb(255 255 255 / 0.08);
  --input: rgb(255 255 255 / 0.15);
  --ring: #d9f45e;

  --field: #0b0c0e;
  --brand-text: #d9f45e;
  --brand-soft: rgb(217 244 94 / 0.14);
  --ok: #c6e652;
  --ok-soft: rgb(217 244 94 / 0.14);
  --warn: #ffd666;
  --warn-soft: rgb(255 214 102 / 0.14);
  --bad: #ff8a80;
  --bad-soft: rgb(255 138 128 / 0.14);
  --top: rgb(16 17 20 / 0.86);
}

html,
body,
.font-sans {
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
}
h1,
h2 {
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.player-skin {
  --media-font-family: "Onest", system-ui, sans-serif;
}

/* Слово в шапке как логотип сайта: Unbounded, строчными, плотно. */
a > .tracking-\[0\.2em\].uppercase {
  font-family: "Unbounded", "Onest", system-ui, sans-serif;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  font-size: 17px;
  margin-right: 0;
}

::selection {
  background: rgb(217 244 94 / 0.7);
  color: #16181d;
}
.prose li::marker {
  color: #16181d;
}
.dark .prose li::marker {
  color: #d9f45e;
}
.prose a {
  color: var(--brand-text);
  text-decoration-color: rgb(217 244 94);
  text-decoration-thickness: 2px;
}
.prose blockquote {
  border-left-color: #d9f45e;
  background: rgb(217 244 94 / 0.16);
  border-radius: 0 12px 12px 0;
  padding: 0.6em 1em;
  font-style: normal;
}
.prose table th {
  background: var(--muted);
}
