/*
  Wzmocnienie deklaracji o trybie ciemnym,
  aby zapobiec "wymuszonemu" odwracaniu kolorów przez przeglądarki.
*/
:root {
  color-scheme: dark !important;
}

article h1,
article h2,
article h3 {
  font-family: "Segoe UI", sans-serif;
}

article p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1rem;
}

article blockquote {
  border-left: 4px solid #4fd1c5;
  background-color: #0f172a;
  padding: 1em;
  font-style: italic;
  margin: 1.5em 0;
}

/* Zwiększenie interlinii wewnątrz artykułów, aby zapobiec ucinaniu tekstu */
.prose p,
.prose li,
.prose strong {
  line-height: 1.75;
}

/*
  Wymusza wyśrodkowanie dla wszystkich kluczowych elementów `.prose`,
  gdy są one opakowane w kontener `.text-center`.
*/

/* Wyśrodkowanie dla list */
.prose .text-center ul,
.prose .text-center ol {
  text-align: center;
  list-style-position: inside; /* Sprawia, że kropki są w jednej linii z tekstem */
  padding-left: 0; /* Usuwa domyślne wcięcie, które źle wygląda przy wyśrodkowaniu */
}

/* Wyśrodkowanie dla paragrafów */
.prose .text-center p {
  text-align: center;
}

/* Wyśrodkowanie dla nagłówków (na wszelki wypadek) */
.prose .text-center h1,
.prose .text-center h2,
.prose .text-center h3,
.prose .text-center h4 {
  text-align: center;
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("/public/fonts/inter-v19-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("/public/fonts/inter-v19-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("/public/fonts/inter-v19-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  src: url("/public/fonts/inter-v19-latin-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.text-shadow-strong {
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);
}

.button:active {
  transform: translateY(1px);
  filter: brightness(0.9);
}

/* Custom responsive gaps for navigation links */
@media (min-width: 375px) {
  .nav-links-container {
    column-gap: 0.5rem; /* 8px */
  }
}

@media (min-width: 425px) {
  .nav-links-container {
    column-gap: 1.25rem; /* 12px */
  }
}
