:root {
  --fg: #112;
  --bg: #fff;
  --lg: #eef;
  --a: royalblue;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eee;
    --bg: #112;
    --lg: #223;
    --a: gold;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  margin: 0 1rem 2rem 1rem;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

.content {
  max-width: 800px;
  margin: auto;
}

a, a:visited {
  color: var(--a);
}

nav {
  border-bottom: solid 1px var(--fg);
  padding: 0.25rem 0;
  max-width: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  margin: auto;
  gap: 1rem;
}

footer {
  margin-top: 3rem;
}

article {
  text-align: justify;
}
br {
  margin: 0.5rem;
  content: '';
  display: block;
}

.home {
  font: bold 2.5rem 'Courier New', Courier, monospace;
}

.article-item {
  background: var(--lg);
  height: 6rem;
  text-align: left;
  display: flex;
  gap: 1rem;
  max-width: 380px;
  margin: auto;
}
.article-item:hover {
  filter: brightness(0.8);
}
/* dotyczy tez layoutu w about ! */
.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .articles {
    grid-template-columns: 1fr 1fr; /* 2 columns on wider screens */
  }
}

.text-left {
  text-align: left;
}

a {
  text-decoration: none;
}

h3 {
  margin: 0.5rem 0;
}

.button {
  color: var(--bg);
  background: var(--a);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.button:hover {
  filter: brightness(0.8);
}

.article-img {
  width: 6rem;
  height: 6rem;
}

.lessons-hero {
  height: 6rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.lessons-hero * {
  height: fit-content;
}

.bg-img-effect {
  height: 16rem;
  background-size: cover;
  background-position: center;
  /* filter: blur(0.5rem); */
  backdrop-filter: blur(1rem);
  box-shadow: inset 0 -10rem 8rem 1rem var(--bg);
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 1rem;
}

.motto {
  font-style: italic;
}

.cookies-popup {
  background: var(--bg);
  padding: 1rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-cover {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  background: #000000cc;
  width: 100%;
  height: 100vh;
}