/* Colors */
:root {
  --lightgray: #e0e0e0;
  --gray: #c0c0c0;
  --darkgray: #333;
  --navy: #17050f;
  --blue: #082840;
  --white: #fff;

  --background: #00161f;
  --color: #fff;
  --foreground: #021e2a;
  --gradient: linear-gradient(180deg, #a975fd 0%, #755ca4 99.99%, #4f3b75 100%);
  --primary: #7e61b3;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  font-family: 'Epilogue', sans-serif;
  color: var(--color);
  background-color: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 1em;
  overflow-x: clip;
}

h2,h3, .tmpl-home h1 {
line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

a[target]:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.heading-one {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

h2:not(h2[id]) {
  /* font-size: 3.125em; */
  font-size: clamp(2.125rem, 3vw, 3.125rem);
}

h2[id] {
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
}

h3 {
  /* font-size: 1.4375em; */
  font-size: clamp(1.2rem, 2vw, 1.4375em);
}

p {
  line-height: 140%;
}

hr {
  border: none;
  outline: none;
  height: 3px;
  margin: 1em 0;
  background-color: var(--foreground);
}

code:not([class]) {
  background-color: var(--foreground);
  border: 1px solid var(--darkgray);
  padding: .1em .4em;
  margin: 0 2px;
  border-radius: 2px;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--foreground);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 7px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--gradient);
}

/* Utility */
.container {
  max-width: 1300px;
  padding: 25px;
  margin: 0 auto;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.btn {
  padding: 1.1em 1.8em;
  border-radius: 7px;
  color: #fff;
  font-size: 1em;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease-in;
}

.btn-primary {
  background-color: var(--primary);
}

.btn:hover {
  filter: brightness(1.1);
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.place-content-start {
  place-content: start;
}

.gap-2 {
  gap: 1em;
}

.gap-1 {
  gap: 0.5em;
}

.border {
  border: 1px solid var(--blue);
  padding: 10px;
  border-radius: 7px;
}

.mt-4 {
  margin-top: 2em;
}

.mb-6 {
  margin-bottom: 2.5em;
}
.mb-5 {
  margin-bottom: 1em;
}

.mt-1 {
  margin-top: .5em;
}

.my-6 {
  margin: 2.5em 0;
}

.my-1 {
  margin: .5em 0;
}

.items-center {
  align-items: center;
}

.section {
  margin: 4em auto;
}

.low-opacity {
  opacity: 0.7;
}

.shade {
  pointer-events: none;
}

.lead {
  font-size: clamp(1rem, 3vw, 18px);
}

.md-stack > * + * {
  margin-top: 1.5em;
}

.md-stack {
  min-height: 55vh;
}

.md-stack p, .md-stack li {
  width: min(80ch, 100%);
}

.md-stack ul {
  display: grid;
  gap: .5em;
}

.rounded-full {
  border-radius: 50%;
}

.underline {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

/* Main Header */
.shade {
  background: #7E61B3;
  opacity: 0.3;
  filter: blur(500px);
}
.shade1 {
  width: 816px;
  height: 639px;
  left: -109px;
  top: -341px;
}

.shade2 {
  width: 600px;
  height: 400px;
  right: 0;
  bottom: 0;
}

.border-bottom {
  border-bottom: 1px solid var(--background);
}

.object-cover{
  object-fit: cover;
}
.object-contain{
  object-fit: contain;
}

.pointer {
  cursor: pointer;
}

#main-header .container {
  display: flex;
  align-items: center;
  gap: 2em;
  justify-content: space-between;
}

#main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  list-style-type: none;
}

.logo img {
  width: 200px;
}

/* Hero Section */
.hero .container {
  display: grid;
  column-gap: 6em;
  row-gap: 3em;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  place-items: start;
  padding-bottom: 3em;
}

.hero .container div:first-of-type {
  display: grid;
  gap: 2em;
  place-items: start;
}

.hero small {
  font-size: 14px;
  color: #9c8db8;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
  position: relative;
}

@media screen and (max-width: 840px) {
  .hero-img-container img {
    width: 300px;
    /* margin-top: -5em; */
  }

  .hero .container {
    padding-bottom: 0;
  }

  .hero p {
    max-width: 35ch;
  }
}

/* Lower Section */
.section h2 {
  margin-bottom: 1em;
}

.card {
  background-color: var(--foreground);
}

.card-container,
.dApp-card-container {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
}

.card-container .card {
  display: grid;
  place-items: start;
  gap: 1em;
  padding: 2.2em;
  border-radius: 7px;
}

.card-container .card img {
  max-width: 75px;
}

.diet-section p {
  max-width: 32ch;
}

/* Must Read Articles */

.shade3 {
  left: -20em;
  bottom: 0;
  width: 800px;
}

.mustRead-section .card {
  max-width: 80ch;
}

/* Recent DApp Tutorials */
.dApp-card-container .card {
  max-width: 40ch;
  border-radius: 7px;
}

.dApp-card-container img {
  width: 100%;
  height: 250px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.dApp-card-container .card div:first-of-type {
  padding: 2em;
}

.dApp-card-container a:not(.read-more) {
  text-decoration: none;
}

.article-tag {
  background-color: var(--background);
  padding: 0.5em 1em;
  border-radius: 7px;
  font-size: 14px;
  text-transform: capitalize;
}

.tag2 {
  background-color: var(--foreground);
}

/* ######################## POSTS ################################ */

.social-container img{
  color: var(--white);
  fill: var(--white);
  width: 20px;
}

.article {
  display: grid;
  grid-template-columns: 250px 1fr;
  position: relative;
}

.article .main p, .main li{
  line-height: 1.6;
}

.article .main a {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}
.article .main a:hover {
  text-decoration-color: #fff;
}

.article img {
  display: block;
}

a[target='_blank'] {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

.article .main a[target="_blank"]::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 4px;
  filter: invert(100%);
}

.article :where(picture img,pre) {
  border-radius: 7px;
}

.article aside {
  position: sticky;
  top: 2em;
  grid-column: 1 / span 1;
  grid-row: 2;
  align-self: start;
  border: 1px solid var(--blue);
  border-radius: 7px;
  margin-right: 2.5em;
  padding: 1em;
}

.tag-container a{
  border: 1px solid var(--blue);
}

summary {
  cursor: pointer;
}

.article details[open] summary {
  margin-bottom: 1em;
}

.article aside ol {
  list-style: none;
  display: grid;
  gap: .5em;
  line-height: 1.54;
}

.article aside ol ol {
  margin-left: 1em;
  margin-top: .5em;
}

.article header {
  grid-column: 2;
  max-width: 80ch;
}

.article div {
  max-width: 80ch;
  grid-column: 2;
  grid-row: 2;
}

@media screen and (max-width: 1022px) {
  .article {
    display: block;
  }

  .article aside { 
    position: static;
    margin: 0 0 1em 0;
  }

}

.next-prev-container {
  list-style-type: none;
}

.next-prev-container > * {
  background-color: var(--foreground);
  padding: 1em;
  border-radius: 7px;
}
