:root {
  --bgr-color-dark: #313030;
  --bgr-color-light: white;

  --checkbox-color-dark: white;
  --checkbox-color-light: #ffd465;

  --text-color-dark: white;
  --text-color-light: #313030;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
}

body.dark,
body.dark .content {
  background-color: var(--bgr-color-dark);
  color: var(--bgr-color-light);
}

* {
  box-sizing: border-box;
}

.noscroll {
  overflow: hidden;
}

/*
    THEME TOGGLE
*/

.checkbox__input {
  width: 0;
  height: 0;
  opacity: 0;
  border: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
}

.checkbox__label {
  position: fixed;
  top: 80px;
  right: 46px;
  display: block;
  -webkit-appearence: none;
  -moz-appearence: none;
  appearence: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--text-color-light);
  transition: 0.3s;
}

.checkbox__label::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--bgr-color-light);
  border-radius: 50%;
  transform: translate(120%, -120%);
  transition: 0.3s;
}

.checkbox__label::before {
  content: "";
  display: block;
  position: absolute;
  top: -10px;
  left: -10px;
  width: 34px;
  height: 34px;
  background: url(/assets/sun-rays.svg) center no-repeat;
  background-size: contain;
  border-radius: 50%;
  transition: 0.3s;
}

.checkbox__input:checked~.checkbox__label {
  background-color: var(--checkbox-color-dark);
  transform: scale(1.4);
}

.checkbox__input:checked~.checkbox__label::after {
  transform: translate(30%, -30%);
  background-color: var(--bgr-color-dark);
}

.checkbox__input:checked~.checkbox__label::before {
  opacity: 0;
}

@media (max-width: 1100px) {
  .checkbox__label {
    top: 34px;
    right: 96px;
  }
}

@media (max-width: 940px) {
  .checkbox__label {
    display: none;
  }
}

/*
    LOGO
*/

.logo {
  display: flex;
  align-items: center;
  text-decoration: inherit;
  color: inherit;
  width: 200px;
  padding: 0 !important;
}

.logo span {
  margin-left: 10px;
  line-height: 24px;
  font-size: 20px;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 2px;
  font-weight: 300;
}

/*
    CONTENT
*/

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--bgr-color-light);
  transition: 0.3s;
  min-height: calc(100vh - 220px);
}

.content--blurred {
  filter: blur(8px);
}

.content__header {
  user-select: none;
  margin: 20px 0 50px;
  padding: 70px 20px 30px;
  display: flex;
  justify-content: flex-start;
  max-width: 1220px;
  width: 100%;
}

@media (max-width: 940px) {
  .content__header {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    padding: 50px 20px;
  }

  .content__header .logo {
    max-width: 1220px;
  }
}

@media (min-width: 940px) and (max-width: 1400px) {
  .content__header {
    max-width: 980px;
    padding: 70px 20px 30px;
    margin: 0;
    margin-bottom: 40px;
  }

  .content__header .logo {
    width: 160px;
  }

  .content__header .logo span {
    font-size: 16px;
    line-height: 18px;
  }

  .navigation {
    font-size: 14px;
  }
}

.navigation {
  display: flex;
  align-items: center;
  margin-left: 60px;
  flex: 100px;
}

.navigation>ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  font-size: 1.2em;
  line-height: 1.55em;
  letter-spacing: 1px;
}

.navigation>ul li {
  position: relative;
}

.navigation>ul>li~li {
  margin-left: 40px;
}

.navigation>ul li a {
  color: var(--bgr-color-dark);
}

.dark .navigation>ul li a {
  color: var(--bgr-color-light);
}

.navigation__dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  background-color: var(--checkbox-color-light);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 340px;
  z-index: 100;
}

.navigation__dropdown>ul {
  padding: 0;
  list-style-type: none;
}

.navigation__dropdown>ul>li~li {
  margin-top: 4px;
}

.navigation__dropdown>ul>li>a {
  color: var(--text-color-light) !important;
  font-size: 1rem;
  text-decoration: underline;
  opacity: 0.85;
  padding: 4px;
  transition: 0.2s opacity cubic-bezier(0.6, -0.28, 0.735, 0.045)
}

.navigation__dropdown>ul li svg {
  margin-bottom: -3px;
}

.navigation__dropdown>ul li a:hover {
  opacity: 1;
}

.join-the-community {
  justify-content: flex-end;
  flex: 140px 0 0;
  display: flex;
  align-items: center;
  position: relative;
}

.burger-menu {
  justify-content: flex-end;
  flex: auto 0 0;
  align-items: center;
  display: none;
}

.burger-menu .open-button {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  margin-right: 16px;
  cursor: pointer;
  color: var(--text-color-light);
}

body.dark .burger-menu .open-button {
  color: var(--text-color-dark);
}

.burger-menu__dropdown {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--checkbox-color-light);
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
}

.burger-menu__dropdown ul {
  list-style-type: none;
  padding: 0;
}

.burger-menu__dropdown ul li {
  font-size: 24px;
  font-weight: bold;
}

.burger-menu__dropdown li~li {
  margin-top: 20px;
}

.burger-menu__dropdown li a {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-light);
}

.burger-menu__dropdown .close-button {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  padding: 36px;
  color: var(--text-color-light);
}

.burger-menu__dropdown ul ul {
  list-style-type: disc;
  padding: 1rem 2rem 0;
  font-size: 24px;
}

@media (max-width: 940px) {
  .burger-menu {
    display: flex;
  }

  .navigation,
  .join-the-community {
    display: none;
  }
}

/*
    ARTICLE
*/

.article {
  max-width: 920px;
  font-weight: 300;
  position: relative;
}

.article h2 {
  max-width: 630px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 1px;
  margin: 50px auto 0;
  line-height: 32px;
  scroll-margin: 50px;
}

.article h3 {
  max-width: 630px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 50px auto 0;
  line-height: 28px;
  scroll-margin: 50px;
}

.article h4 {
  max-width: 630px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  margin: 40px auto 0;
  line-height: 24px;
  scroll-margin: 50px;
}

.article p,
.article ul,
.article ol {
  max-width: 630px;
  font-size: 1.1em;
  line-height: 1.55em;
  letter-spacing: 1px;
  margin: 20px auto 0;
}

.article ul li>ul,
.article ol li>ul {
  margin-top: 0;
}

.article img,
.article picture {
  margin: 20px auto 0;
}

.article picture>img {
  margin: 0;
}

.article .main-flow {
  max-width: 630px;
  margin: 20px auto 0;
}

.article .main-flow img {
  width: 100%;
}

.article .spaced {
  margin: 40px auto;
}

.article .article__title {
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
  max-width: 630px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 auto;
}

.article .article__info {
  text-align: center;
  font-size: 14px;
}

article a {
  color: var(--text-color-light);
  font-weight: 500;
}

body.dark .article a {
  color: var(--text-color-dark);
}

.article-list__item {
  padding-left: 46px;
  position: relative;
  counter-increment: section;
}

.article-list__item::before {
  content: counter(section);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  padding: 6px;
  background-color: #ffd465;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 32px;
  color: white;
}

.article-list__item:nth-of-type(9)~.article-list__item::before {
  font-size: 16px;
}

.article-list__item--vertically-centered::before {
  display: flex;
  align-items: center;
}

.article-list__item--unnumbered::before {
  content: "";
}

.article-list__item p {
  margin-top: 6px;
}

.article .table-of-content-container {
  position: absolute;
  height: 100%;
  top: 0;
  left: -350px;
  width: 350px;
  padding-right: 50px;
  padding-top: 100px;
}

.article .table-of-content {
  position: sticky;
  top: 50px;
  line-height: 1.25;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.article .table-of-content:hover {
  opacity: 1;
}

.article .table-of-content ol {
  margin: 0;
}

.article .table-of-content ol li {
  opacity: 0.9;
  transition: opacity 0.3s ease;
  font-size: 0.9em;
  margin-top: 5px;
}

.article .table-of-content ol li:hover {
  opacity: 1;
}

.article .table-of-content ol li.active {
  opacity: 1;
}

.article .table-of-content ol li.active>a {
  font-weight: bold;
}

/*
 * Article blockquote
 */
.article blockquote {
  max-width: 630px;
  margin: 0 auto;
  margin-top: 20px;
  font-style: italic;
  font-size: 1.1em;
  padding: 1.2em 30px 1.2em 60px;
  border-left: 8px solid var(--checkbox-color-light);
  line-height: 1.6;
  position: relative;
}

.article blockquote::before {
  content: "\201C";
  color: var(--checkbox-color-light);
  font-size: 4em;
  position: absolute;
  left: 10px;
  top: -10px;
}

.article blockquote span {
  display: block;
  font-style: normal;
  font-weight: bold;
  margin-top: 1em;
}

.article__audio audio {
  width: 100%;
}

.article__banner {
  max-width: 630px;
  margin: 0 auto;
}

.article__banner--top {
  margin-top: 20px;
}

.article__image--small picture {
  float: right;
  margin: 8px 8px 8px 20px;
}

.article__image--small-left picture {
  float: left;
  margin: 8px 20px 8px 8px;
}

/*
  Article frame
*/

.article-frame {
  color: var(--text-color-light);
  text-decoration: none;
  position: relative;
  border: var(--checkbox-color-light) 8px solid;
  border-radius: 16px;
  padding: 16px;
  margin: 0;
}

.article-frame--centered {
  text-align: center;
}

.article-frame h2,
.article-frame h3,
.article-frame h4 {
  margin: 0;
}

.article-frame p {
  margin: 0;
  margin-top: 8px;
}

body.dark .article-frame {
  color: var(--text-color-dark);
}

/*
  Article alert
*/

.article-alert {
  background-color: var(--checkbox-color-light);
  color: var(--text-color-light);
  padding: 26px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

.article-alert--centered {
  text-align: center;
}

.article-alert h3 {
  margin: 0;
}

.article-alert p {
  margin: 0;
  margin-top: 10px;
}

.article-alert a,
.article-alert a.underlined,
body.dark .article-alert a,
body.dark .article-alert a.underlined {
  color: var(--text-color-light);
  text-decoration: underline;
}

.divider {
  height: 24px;
  margin: 20px auto 0;
  position: relative;
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .divider {
  color: var(--text-color-dark);
}

.divider svg {
  margin: 0 20px;
}

.divider::before,
.divider::after {
  content: "";
  display: block;
  flex: 1 1 100%;
  height: 1px;
  background-color: var(--text-color-light);
}

body.dark .divider::before,
body.dark .divider::after {
  background-color: var(--text-color-dark);
}

.highlighted-link {
  color: var(--text-color-light);
  background-color: var(--checkbox-color-light);
  padding: 4px 6px;
  text-decoration: none;
  border-radius: 6px;
}

.highlighted-link:hover {
  text-decoration: underline;
}

body.dark .highlighted-link {
  color: var(--text-color-light) !important;
}

/*
  Article table
*/

.article-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: var(--bgr-color-light);
  contain: inline-size;
}

.article-table table {
  border-collapse: collapse;
  color: var(--text-color-light);
  background-color: var(--bgr-color-light);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  width: max-content;
  min-width: 100%;
}

.article-table thead {
  background-color: var(--checkbox-color-light);
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  white-space: nowrap;
  vertical-align: top;
}

.article-table th {
  text-align: left;
  font-weight: 700;
  color: var(--text-color-light);
}

.article-table td {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-table tbody tr:first-child td {
  border-top: none;
}

.article-table tbody tr:nth-child(even) {
  background-color: rgba(255, 212, 101, 0.12);
}

.article-table td:first-child {
  font-weight: 600;
}

body.dark .article-table {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  background-color: var(--bgr-color-dark);
}

body.dark .article-table table {
  color: var(--text-color-dark);
  background-color: var(--bgr-color-dark);
}

body.dark .article-table td {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.dark .article-table tbody tr:nth-child(even) {
  background-color: rgba(255, 212, 101, 0.08);
}

@media (max-width: 680px) {
  .article-table {
    font-size: 14px;
  }

  .article-table th,
  .article-table td {
    padding: 10px 12px;
  }
}

.article .comments {
  padding: 20px;
}

body.dark .article .comments {
  background-color: var(--checkbox-color-light);
}

@media (max-width: 1099px) {

  .article img,
  .article picture {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .article {
    padding: 0 20px;
    overflow-x: hidden;
  }
}

@media (max-width: 780px) {
  .article picture.placeholder {
    display: block;
    min-height: calc(100vw / 1.5);
  }
}

@media (min-width: 780px) and (max-width: 1099px) {
  .article picture.placeholder {
    display: block;
    min-height: 400px;
  }
}

@media (min-width: 1099px) {
  .article picture.placeholder {
    display: block;
    min-height: 520px;
  }

  .article picture.placeholder.main-flow {
    min-height: 400px;
  }
}

@media (max-width: 1640px) {
  .article .table-of-content-container {
    display: none;
  }
}

/*
    PAGE
*/

.page {
  max-width: 920px;
  font-weight: 300;
  margin-top: 50px;
  position: relative;
}

.page h2 {
  max-width: 630px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 50px auto 0;
  line-height: 32px;
  scroll-margin: 50px;
}

.page h3 {
  max-width: 630px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 50px auto 0;
  line-height: 28px;
  scroll-margin: 50px;
}

.page h4 {
  max-width: 630px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 40px auto 0;
  line-height: 24px;
  scroll-margin: 50px;
}

.page p,
.page ul,
.page ol {
  max-width: 630px;
  font-size: 1.1em;
  line-height: 1.55em;
  letter-spacing: 1px;
  margin: 20px auto 0;
}

.page ul li>ul,
.page ol li>ul {
  margin-top: 0;
}

.page img,
.page picture {
  margin: 20px auto 0;
}

.page picture>img {
  margin: 20px auto 0;
}

.page .main-flow {
  max-width: 630px;
  margin: 20px auto 0;
}

.page .main-flow img {
  width: 100%;
}

.page .spaced {
  margin: 40px auto;
}

.page .article__title {
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
  max-width: 630px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 auto;
}

/*
*  MAINPAGE
*/

@media (min-width: 1100px) {
  .mainpage {
    display: flex;
    flex-direction: row-reverse;
    padding: 0 70px 0 20px;
  }

  .mainpage .divider {
    display: none;
  }
}


/*
*   TOPICS
* * */

@media (max-width: 1100px) {
  .topics {
    margin-bottom: 40px;
  }
}

@media (min-width: 1100px) {
  .topics {
    margin-left: 60px;
    margin-top: 30px;
  }
}

a.underlined,
span.underlined {
  display: inline !important;
  cursor: pointer;
  background-image: linear-gradient(transparent 0%,
      transparent calc(50% - 8px),
      rgba(255, 212, 101, 0.8) calc(50% - 8px),
      rgba(255, 212, 101, 0.8) 100%) !important;
  transition: background-position 0.1s ease-in-out 0s,
    padding 0.1s ease-in-out 0s;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
  word-break: break-word;
  text-decoration: none;
}

a.underlined:hover,
span.underlined:hover {
  background-image: linear-gradient(transparent 0%,
      transparent calc(50% - 8px),
      rgb(255, 212, 101) calc(50% - 8px),
      rgb(255, 212, 101) 100%) !important;
  background-position: 0 100% !important;
}

body.dark a.underlined:hover,
body.dark span.underlined:hover {
  color: var(--text-color-light) !important;
}

.topic-banner {
  margin: 0 auto;
  margin-bottom: 30px;
  max-width: 580px;
}

.topic {
  position: relative;
  width: 615px;
}

.topic~.topic {
  margin-top: 20px;
}

.topic__header {
  padding: 0 20px;
}

.topic__link {
  display: inline-block;
  color: var(--text-color-light);
  text-decoration: none;
}

body.dark .topic__link {
  color: var(--text-color-dark);
}

.topic__title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 1px;
}

.topic__description {
  font-size: 1.1em;
  line-height: 1.55em;
  letter-spacing: 1px;
  margin: 12px 0 4px;
}

.topic__articles {
  display: flex;
  margin: 0 auto;
  padding: 0 0 16px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

@media (min-width: 721px) {
  .topic__articles {
    overflow: hidden;
  }
}

@media (min-width: 1100px) and (max-width: 1400px) {
  #productivity-list .article-card:nth-of-type(4),
  #learning-list .article-card:nth-of-type(4),
  #mindfulness-list .article-card:nth-of-type(4) {
    display: none;
  }
}

.topic__scroll {
  position: absolute;
  bottom: 110px;
  font-size: 32px;
  color: var(--text-color-light);
  cursor: pointer;
  user-select: none;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  border: 0;
  background: none;
  text-decoration: none;
}

.dark .topic__scroll {
  color: var(--text-color-dark);
}

.topic__scroll--right {
  right: -40px;
}

.topic__pages.max-right~.topic__scroll--right {
  display: none;
}

.topic__scroll--left {
  left: -40px;
}

.topic__articles.max-left~.topic__scroll--left {
  display: none;
}

.topic__scroll--bounce {
  animation-name: topic-scroll-bounce;
  animation-timing-function: linear;
}

@keyframes topic-scroll-bounce {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(12px);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .topic {
    width: 100vw;
  }

  .topic__articles {
    padding: 0 40px;
    scroll-padding: 0 32px;
  }

  .topic__scroll {
    display: none;
  }
}

@media (min-width: 721px) {
  .topic-banner {
    max-width: 580px;
  }
}

@media (min-width: 1100px) and (max-width: 1400px) {
  .topic {
    width: 460px;
  }

  .topic-banner {
    width: 420px;
  }
}

@media (min-width: 600px) and (max-width: 1099px) {
  .topic-banner {
    max-width: 624px;
    padding-right: 46px;
  }
}

@media (max-width: 600px) {
  .topic-banner {
    padding: 0 20px;
  }
}

/* 
*   ARTICLE CARD
* * */

.article-card-container {
  width: 154px;
  height: 220px;
  position: relative;
  flex: 0 0 154px;
  list-style-type: none;
  scroll-snap-align: start;
  transition: transform 0.2s linear, opacity 0.2s linear;
}

.article-card {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #ffd465;
  padding: 0 12px;
  text-decoration: none;
  transform: scale(0.75);
  transition: transform 0.2s linear, opacity 0.2s linear;
  border-radius: 8px;
  border-bottom: 2px solid #d3ac46;
}

.article-card__spacer {
  flex: 1 1 100%;
}

.article-card__image {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  max-height: 50%;
}

.article-card__image svg {
  width: 80px;
  height: auto;
  max-height: 100%;
  color: var(--text-color-light);
}

h3.article-card__title {
  flex: 0 1 auto;
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 400;
  margin-bottom: 6px;
  margin-top: 0;
}

.article-card__title--prefix {
  opacity: 0.7;
}

.article-card__date {
  color: var(--text-color-light);
  opacity: 0.5;
  margin-bottom: 6px;
  font-size: 16px;
}

.article-card:hover .article-card__title {
  text-decoration: underline;
}

.article-card--more-articles {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-color-light);
}

body.dark .article-card--more-articles {
  color: var(--text-color-dark);
}

.article-card-container:not(.article-card-container--more-articles)::before {
  content: "";
  display: block;
  position: absolute;
  top: 76px;
  left: 23px;
  background: black;
  box-shadow: 0 0 6px 4px black;
  width: calc(100% - 46px);
  height: calc(100% - 108px);
  transition: transform 0.2s linear, opacity 0.2s linear;
  opacity: 0.3;
}

.article-card-container:hover .article-card {
  transform: scale(0.85);
}

.article-card-container:hover::before {
  transform: translateY(18px);
}

.article-card--highlighted {
  background-color: #ffb30b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.article-card--highlighted .article-card__title {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.article-card--highlighted .article-card__title span:nth-of-type(1) {
  font-size: 2rem;
  font-weight: bold;
}

.article-card--highlighted .article-card__title span+span {
  margin-top: 6px;
  font-size: 1.2rem;
}

/*
*   INTRO
* * */

.intro__title {
  max-width: 630px;
  margin: 28px auto 4px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0 20px;
}

.intro__description {
  max-width: 630px;
  font-size: 1.1em;
  line-height: 1.55em;
  letter-spacing: 1px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.intro__image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  padding-right: 10px;
}

.intro__image img {
  max-width: 100%;
}

.intro__image {
  transform: scale(0.9);
  min-height: 240px;
}

@media (max-width: 1100px) {
  .intro {
    margin-top: 50px;
  }
}

@media (min-width: 1100px) and (max-width: 1400px) {
  .intro {
    width: 460px;
  }
}

@media (min-width: 720px) {
  .article-card-container--more-articles {
    display: none;
  }
}

/*
*   FOOTER
* * */

.footer {
  padding: 2rem 0 4rem;
  max-width: 640px;
  margin: 0 auto;
}

.footer>*~* {
  margin-top: 1rem;
}

.footer__social-links {
  margin-top: 50px;
}

.footer__social-links,
.footer__terms-links {
  text-align: center;
}

body.dark .footer__social-links {
  color: var(--text-color-dark);
}

@media (max-width: 720px) {
  .footer__terms-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.footer__copyright {
  text-align: center;
}

.footer__link,
.footer__link:visited,
.footer__link:active {
  color: var(--text-color-light);
  font-weight: 500;
  padding: 8px 0 2px 0;
}

.footer__link~.footer__link {
  margin-left: 1rem;
}

@media (max-width: 720px) {
  .footer__terms-links .footer__link~.footer__link {
    margin-top: 0.25rem;
    margin-left: 0;
  }
}

body.dark .footer__link,
body.dark .footer__link:visited,
body.dark .footer__link:active {
  color: var(--text-color-dark);
  font-weight: 500;
}

/*
* ADS
*/

.google-auto-placed {
  margin-top: 20px;
  max-width: 90vw;
}

/*
* COLLAPSIBLE
*/

input#collapsible {
  display: none;
}

.wrap-collapsible {
  color: var(--text-color-light);
  max-width: 630px;
  margin: 20px auto 0;
}

.lbl-toggle {
  display: block;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.25s ease-out;
  background-color: #ffd465;
  color: var(--text-color-light);
  opacity: 0.8;
  border-radius: 12px;
}

.lbl-toggle:hover {
  opacity: 1;
}

.wrap-collapsible--toc .table-of-content a,
.wrap-collapsible--toc .table-of-content p {
  color: var(--text-color-light) !important;
}

.lbl-toggle::before {
  content: " ";
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
  transition: transform 0.2s ease-out;
}

.toggle:checked+.lbl-toggle {
  opacity: 1;
}

.toggle:checked+.lbl-toggle::before {
  transform: rotate(90deg) translateX(-3px);
}

.collapsible-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.25s ease-in-out;
}

.toggle:checked+.lbl-toggle+.collapsible-content {
  max-height: 1000px;
}

.toggle:checked+.lbl-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.collapsible-content .content-inner {
  padding: 0.5rem 1rem;
  background-color: #ffdd86;
  color: var(--text-color-light);
  border-radius: 0 0 12px 12px;
}

.collapsible-content p {
  margin-bottom: 0;
}

@media (min-width: 1640px) {
  .wrap-collapsible--toc {
    display: none;
  }
}

/*
* Toastify
*/

.toastify {
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  display: inline-block;
  box-shadow: 0 3px 6px -1px rgba(0, 0, 0, .12), 0 10px 36px -4px rgba(77, 96, 232, .3);
  background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);
  background: linear-gradient(135deg, #73a5ff, #5477f5);
  position: fixed;
  opacity: 0;
  transition: all .4s cubic-bezier(.215, .61, .355, 1);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  max-width: calc(50% - 20px);
  z-index: 2147483647
}

.toastify.on {
  opacity: 1
}

.toast-close {
  background: 0 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  opacity: .4;
  padding: 0 5px
}

.toastify-right {
  right: 15px
}

.toastify-left {
  left: 15px
}

.toastify-top {
  top: -150px
}

.toastify-bottom {
  bottom: -150px
}

.toastify-rounded {
  border-radius: 25px
}

.toastify-avatar {
  width: 1.5em;
  height: 1.5em;
  margin: -7px 5px;
  border-radius: 2px
}

.toastify-center {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  max-width: fit-content;
  max-width: -moz-fit-content
}

@media only screen and (max-width: 360px) {

  .toastify-left,
  .toastify-right {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content
  }
}

/*
* Toastify override
*/

.toastify {
  background: var(--checkbox-color-light);
  color: var(--text-color-light);
  display: flex;
}

.toastify .toast-close {
  margin-left: 8px;
}

@media (max-width: 820px) {
  .toastify {
    max-width: calc(100% - 30px);
  }

  .toastify br {
    content: '';
  }
}

/*
* Social links
*/

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link {
  color: var(--text-color-light);
}

.social-link~.social-link {
  margin-left: 16px;
}

.dark .social-link {
  color: var(--text-color-dark);
}

/* ALPINE-JS */

[x-cloak] {
  display: none !important;
}

/* FOLD */

.sharp-fold {
  position: relative;
  background: linear-gradient(-150deg, transparent 1.5em, #ffb30b 0);
  border-radius: .5em;
}

.sharp-fold::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(to left bottom, transparent 50%, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .4)) no-repeat 100% 0;
  width: 1.73em;
  height: 3em;
  transform: translateY(-1.3em) rotate(-30deg);
  transform-origin: bottom right;
  border-bottom-left-radius: inherit;
  box-shadow: -.2em .2em .3em -.1em rgba(0, 0, 0, .15);
}
/*
* MODERN MAIN PAGE (Yellow Tomato style language)
* Scoped to the main page only via body:has(.mainpage) — .mainpage exists
* solely in layouts/index.njk. Other pages are untouched.
*/

:root {
  --pf-primary: #f9d477;
  --pf-primary-deep: #febe16;
  --pf-secondary: #ffe8ae;
  --pf-bg: #fbfff8;
  --pf-ink: #313030;
  --pf-muted: #8c8c8c;
  --pf-body: #5d5c5a;
  --pf-line: rgba(49, 48, 48, 0.1);
  --pf-line-dark: rgba(255, 255, 255, 0.12);
  --pf-font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --pf-ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pf-shadow-lg: 0 30px 70px -34px rgba(49, 48, 48, 0.4);
  --pf-shadow-card: 0 18px 40px -24px rgba(49, 48, 48, 0.35);
  --pf-shadow-sm: 0 1px 2px rgba(49, 48, 48, 0.05);
  --pf-surface: linear-gradient(158deg, #fff 0%, var(--pf-secondary) 135%);
  --pf-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* base — the main page gets the modern font everywhere; other pages
   only in the shell (see MODERN SHELL section below) */

body:has(.mainpage) {
  font-family: var(--pf-font);
}


/* topics */

body:has(.mainpage) .topic__title {
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body:has(.mainpage) .topic__description {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--pf-body);
}

body.dark:has(.mainpage) .topic__description {
  color: rgba(255, 255, 255, 0.72);
}

/* scroll arrows — glass buttons */

body:has(.mainpage) .topic__scroll {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pf-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--pf-shadow-sm);
  font-size: 20px;
  color: var(--pf-ink);
  animation: none;
  transition: transform 0.2s var(--pf-ease-spring), background 0.2s;
}

body:has(.mainpage) .topic__scroll:hover {
  transform: translateY(-1px);
  background: #fff;
}

body:has(.mainpage) .topic__scroll--right {
  right: -56px;
}

body.dark:has(.mainpage) .topic__scroll {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pf-line-dark);
  color: var(--text-color-dark);
}

body.dark:has(.mainpage) .topic__scroll:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
  body:has(.mainpage) .topic__scroll {
    display: none;
  }
}

/* pomodoro banner */

body:has(.mainpage) .banner--pomodoro-timer {
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  background: var(--pf-surface);
  box-shadow: var(--pf-shadow-card), var(--pf-inset);
  padding: 16px 20px;
  color: var(--text-color-light);
}

body.dark:has(.mainpage) .banner--pomodoro-timer {
  border-color: var(--pf-line-dark);
  color: var(--text-color-dark);
}

body.dark:has(.mainpage) .banner--pomodoro-timer a {
  color: var(--text-color-dark);
}

/* intro */

body:has(.mainpage) .intro__title {
  font-weight: 600;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

/* desktop: lift the left column slightly above the topics column */

@media (min-width: 1100px) {
  body:has(.mainpage) .intro__title {
    margin-top: 0;
  }
}

body:has(.mainpage) .intro__description {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--pf-body);
  max-width: 630px;
}

body.dark:has(.mainpage) .intro__description {
  color: rgba(255, 255, 255, 0.72);
}

body:has(.mainpage) .intro__image {
  transform: none;
  padding-right: 0;
  width: calc(100% - 40px);
  max-width: 630px;
  margin: 26px auto 0;
}

body:has(.mainpage) .intro__image img {
  width: 100%;
}

/* newsletter moved into the intro column — stack it vertically */

body:has(.mainpage) .intro .newsletter {
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - 40px);
  max-width: 630px;
  margin: 28px auto 0;
}

body:has(.mainpage) .intro .newsletter__description {
  flex-basis: auto;
  padding: 26px 26px 0;
}

body:has(.mainpage) .intro .newsletter__description h2 {
  margin-top: 0;
}

body:has(.mainpage) .intro .newsletter__description p {
  white-space: normal;
}

body:has(.mainpage) .intro .newsletter__form {
  flex-basis: auto;
  padding: 10px 26px 26px;
}

body:has(.mainpage) .intro .newsletter button {
  max-width: none;
}

@media (min-width: 1100px) {

  body:has(.mainpage) .intro__image,
  body:has(.mainpage) .intro .newsletter {
    width: 100%;
  }

  /* stretch the intro to the topics column height and spread the
     illustration + newsletter through the free space */
  body:has(.mainpage) .intro {
    display: flex;
    flex-direction: column;
    padding: 50px 0;
  }

  body:has(.mainpage) .intro__image,
  body:has(.mainpage) .intro .newsletter {
    margin-top: auto;
  }
}

/* the divider before the youtube banner — same look, more breathing room */

body:has(.mainpage) .divider.banner-divider {
  margin: 50px auto;
}

/*
* MODERN SHELL (all pages)
* The site-wide chrome — background, header/nav, dropdowns, search overlay,
* footer, newsletter card — shares the main page's style language so
* navigating between pages feels seamless. Page CONTENT (article typography,
* tool UIs, listing cards) is intentionally left untouched.
*/

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.content__header,
.navigation__dropdown,
.burger-menu__dropdown,
.footer,
.newsletter,
.search-overlay,
.toastify {
  font-family: var(--pf-font);
}

::selection {
  background: var(--pf-primary);
  color: var(--pf-ink);
}

:focus-visible {
  outline: 3px solid var(--pf-primary-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

/* warm background + hero wash everywhere */

body {
  background-color: var(--pf-bg);
}

.content {
  background-color: var(--pf-bg);
  background-image: radial-gradient(70% 90% at 82% 0%, var(--pf-secondary) 0%, rgba(255, 232, 174, 0) 62%);
  background-size: 100% 760px;
  background-position: top;
  background-repeat: no-repeat;
}

body.dark .content {
  background-color: var(--bgr-color-dark);
  background-image: radial-gradient(70% 90% at 82% 0%, rgba(254, 190, 22, 0.13) 0%, rgba(254, 190, 22, 0) 62%);
}

/* dark mode: elevated dark surfaces with a clearly visible warm gradient —
   low contrast against the page, light text on top */

body.dark {
  --pf-surface: linear-gradient(158deg, #413f3c 0%, #5a4b28 135%);
  --pf-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* header + nav */

.content__header .logo span {
  font-family: var(--pf-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.navigation > ul {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.navigation__dropdown {
  background-color: #fff;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  box-shadow: var(--pf-shadow-lg);
  padding: 18px 22px;
}

.navigation__dropdown > ul > li ~ li {
  margin-top: 8px;
}

.navigation__dropdown > ul > li > a {
  text-decoration: none;
  font-weight: 500;
  opacity: 1;
  transition: color 0.2s;
}

.navigation__dropdown > ul > li > a:hover {
  color: var(--pf-primary-deep) !important;
}

body.dark .navigation__dropdown {
  background-color: #3a3938;
  border-color: var(--pf-line-dark);
}

body.dark .navigation__dropdown > ul > li > a {
  color: var(--text-color-dark) !important;
}

body.dark .navigation__dropdown > ul > li > a:hover {
  color: var(--pf-primary-deep) !important;
}

body.dark .navigation__dropdown svg circle,
body.dark .navigation__dropdown svg path,
body.dark .navigation__dropdown svg line {
  stroke: var(--text-color-dark);
}

body.dark .navigation__dropdown svg path[fill],
body.dark .navigation__dropdown svg circle[fill] {
  fill: var(--text-color-dark);
  stroke: none;
}

.social-link {
  display: inline-flex;
  transition: color 0.2s, transform 0.2s var(--pf-ease-spring);
}

.social-link:hover {
  color: var(--pf-primary-deep);
  transform: translateY(-1px);
}

/* newsletter card (footer on inner pages, intro column on the main page).
   Doubled .newsletter class = specificity bump over the include's inline
   <style>, which comes later in the document and would win a tie. */

.newsletter.newsletter {
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  background: var(--pf-surface);
  box-shadow: var(--pf-shadow-lg), var(--pf-inset);
  color: var(--text-color-light);
}

body.dark .newsletter.newsletter {
  border-color: var(--pf-line-dark);
  color: var(--text-color-dark);
}

body.dark .newsletter .newsletter__description p {
  color: rgba(255, 255, 255, 0.72);
}

.newsletter .newsletter__description h2 {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.newsletter .newsletter__description p {
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pf-body);
}

.newsletter .newsletter__form input {
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  font-family: var(--pf-font);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter .newsletter__form input:focus {
  outline: none;
  border-color: var(--pf-primary-deep);
  box-shadow: 0 0 0 3px rgba(254, 190, 22, 0.25);
}

body.dark .newsletter .newsletter__form input {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pf-line-dark);
  color: var(--text-color-dark);
}

body.dark .newsletter .newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter.newsletter button,
.newsletter.newsletter a.download-checklist-link {
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--pf-font);
  background-color: var(--pf-primary);
  padding: 11px 14px;
  animation: none;
  box-shadow: 0 10px 22px -10px rgba(254, 190, 22, 0.7);
  transition: transform 0.2s var(--pf-ease-spring), box-shadow 0.2s;
}

.newsletter.newsletter button:hover,
.newsletter.newsletter a.download-checklist-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(254, 190, 22, 0.8);
}

/* search overlay — shell surface shared by all pages; parent-qualified
   selectors out-rank the include's inline <style> */

.search-open .search-overlay {
  background-color: rgba(251, 255, 248, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.dark .search-open .search-overlay {
  background-color: rgba(20, 20, 20, 0.55);
}

.search-overlay .search input {
  font-family: var(--pf-font);
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-overlay .search input::placeholder {
  color: var(--pf-muted);
}

.search-overlay .search input:focus {
  border-color: var(--pf-primary-deep);
  box-shadow: 0 0 0 3px rgba(254, 190, 22, 0.25);
}

body.dark .search-overlay .search input {
  background-color: rgba(58, 57, 56, 0.92);
  border-color: var(--pf-line-dark);
}

/* article cards — the shared card component, styled once for every context:
   main page topics, /blog/ listing, "You may also like" rows in articles,
   author pages, and the search overlay */

.article-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  box-shadow: var(--pf-shadow-card), var(--pf-inset);
  transition: transform 0.25s var(--pf-ease-spring), box-shadow 0.25s var(--pf-ease-spring);
}

.article-card-container:not(.article-card-container--more-articles)::before {
  display: none;
}

.article-card-container:hover .article-card {
  transform: scale(0.8) translateY(-8px);
  box-shadow: 0 28px 54px -26px rgba(49, 48, 48, 0.5), var(--pf-inset);
}

h3.article-card__title {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-card:hover .article-card__title {
  text-decoration: none;
}

.article-card__date {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.55;
}

.article-card--more-articles {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--pf-muted);
  transition: color 0.2s, transform 0.25s var(--pf-ease-spring);
}

.article-card-container--more-articles:hover .article-card--more-articles {
  color: var(--pf-ink);
}

body.dark .article-card-container--more-articles:hover .article-card--more-articles {
  color: var(--text-color-dark);
}

/* dark mode: light text + inverted line-art icons on the dark card surface */

body.dark .article-card {
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark h3.article-card__title,
body.dark .article-card__date {
  color: var(--text-color-dark);
}

body.dark .article-card__image img {
  filter: invert(1) hue-rotate(180deg);
}

/* highlighted cards (QUIZ / HOW section cards) — ink badge look */

.article-card--highlighted.sharp-fold {
  background: var(--pf-ink);
  border-color: transparent;
  box-shadow: 0 18px 40px -22px rgba(49, 48, 48, 0.55);
}

.article-card--highlighted.sharp-fold::before {
  display: none;
}

/* dark mode flips the accent card to light so it still stands out */

body.dark .article-card--highlighted.sharp-fold {
  background: linear-gradient(158deg, #f6f1e4 0%, #eeda9f 135%);
  border: none;
}

body.dark .article-card--highlighted .article-card__title {
  color: var(--pf-ink);
}

.article-card--highlighted .article-card__title {
  color: var(--pf-bg);
}

.article-card--highlighted .article-card__title span:nth-of-type(1) {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-primary-deep);
}

.article-card--highlighted .article-card__title span + span {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 10px;
}

/* card rows scroll without a visible scrollbar */

.topic__articles {
  scrollbar-width: none;
}

.topic__articles::-webkit-scrollbar {
  display: none;
}

/* footer */

.footer__copyright {
  color: var(--pf-muted);
  font-size: 14px;
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
