@import "vars.css";
@import "header.css";
@import "footer.css";
@import "author.css";

@import "content/audio.css";
@import "content/blockquote.css";
@import "content/bookmark.css";
@import "content/button.css";
@import "content/callout.css";
@import "content/collection.css";
@import "content/file.css";
@import "content/gallery.css";
@import "content/header_v2.css";
@import "content/header.css";
@import "content/nft.css";
@import "content/product.css";
@import "content/signup.css";
@import "content/toggle.css";
@import "content/video.css";
@import "content/image.css";

@font-face {
    font-family: "NewFrank";
    src: url("../fonts/NewFrankBold.otf");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "NewFrank";
    src: url("../fonts/NewFrankRegular.otf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "NewFrank";
    src: url("../fonts/NewFrankMedium.otf");
    font-style: normal;
    font-weight: 500;
}

body {
    background-color: #0e1015;
    color: #fff;
    font-family: "NewFrank";
}

.container {
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

a span {
    color: #fff;
}

a:hover {
    color: var(--color-primary);
}

.section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 4rem;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.title {
    font-size: 2.4rem;
    font-weight: var(--font-bold);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
}

.text {
    font-size: 1rem;
    font-weight: var(--font-normal);
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 20px;
    padding-top: 12px;
    padding-bottom: 10px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: var(--font-normal);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.button-tr {
    transition: all 0.2s ease-in-out;
}

.button-tr:hover {
    box-shadow: inset 0 0 0 2px currentColor;
    cursor: pointer;
    background: transparent;
    color: var(--color-primary) !important;
}

.button span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 9rem;
}

.button:hover {
    box-shadow: inset 0 0 0 2px currentColor;
    cursor: pointer;
}

.button-primary {
    background: var(--color-primary);
    color: #fff !important;
    font-weight: var(--font-bold);
    text-wrap: nowrap;
}

.button-primary:hover {
    background: transparent;
    color: var(--color-primary) !important;
}

.button-border {
    background: transparent;
    box-shadow: inset 0 0 0 1px currentColor;
}

.button-border:hover {
    box-shadow: inset 0 0 0 2px var(--color-primary);
    color: var(--color-primary);
}

.button-big {
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 20px;
}

.horizontal-line {
    border: 0;
    border-top: 1px solid #323232;
}

.padding-sm {
    padding-bottom: 0.5rem;
}

.padding-md {
    padding-bottom: 1rem;
}

.padding-lg {
    padding-bottom: 2rem;
}

/*specific sections*/

.cta {
    flex-direction: row;
    margin-top: 0;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #323232;
    color: #fff;
    border-radius: 45px;
    padding: 50px;
    width: 100%;

    margin: 0 auto;
    margin-bottom: 4rem;
}

.cta-mt {
    margin-top: 8rem;
}

.cta-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 4rem;
    padding: 24px;
    border-radius: 16px;
}

.cta-aside div {
    display: flex;
    flex-direction: column;
}

.cta-aside .button-primary {
    text-align: center;
}

.cta h1 {
    font-size: 48px;
    padding-bottom: 16px;
}

.cta-aside h1 {
    font-size: 32px;
    padding-bottom: 20px;
}

.cta img {
    max-height: 32px;
    margin-bottom: 16px;
}

.cta-col {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-col h1 {
    font-size: 48px;
    padding-bottom: 20px;
}

.cta-col p {
    font-size: 24px;
    padding-bottom: 40px;
}

@media (max-width: 1000px) {
    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta a {
        margin-top: 1rem;
    }
}

@media (max-width: 760px) {
    .cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .cta-mt {
        margin-top: 4rem;
    }

    .cta h1 {
        font-size: 32px;
        text-align: center;
    }

    .cta-col h1 {
        font-size: 32px;
    }

    .cta-col p {
        font-size: 20px;
    }

    .cta div {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cta-col p br {
        content: "";
    }

    .cta-col p br::after {
        content: " ";
        white-space: pre;
    }
}

@media (max-width: 480px) {
    .cta {
        padding: 50px 20px;
    }
    .cta h1 {
        font-size: 28px;
    }

    .cta-col p {
        font-size: 16px;
    }
}

.back-to-top {
    display: flex;
    align-items: center;
    width: 100%;
}

.back-to-top a {
    gap: 1rem;
}

.back-to-top a:hover {
    color: var(--color-primary);
}

.posts {
    margin-bottom: 8rem;
}

.posts h1 {
    color: #fff;
}

.post-view-all {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.post-view-all:hover {
    text-decoration: underline;
}

.post-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .posts {
        margin-bottom: 4rem;
    }

    .post-header {
        flex-direction: column;
        align-items: start;
    }
}

.postfeed {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.postfeed-r {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.postfeed-main {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.postfeed-main > * {
    width: 50%;
}

.postfeed-sq {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.postfeed-main .postfeed-r {
    margin-top: 0;
}

@media (max-width: 760px) {
    .postfeed {
        grid-template-columns: repeat(2, 1fr);
    }

    .postfeed-r {
        grid-template-columns: repeat(2, 1fr);
    }

    .postfeed-main {
        flex-direction: column;
        gap: 2rem;
    }

    .postfeed-main > * {
        width: 100%;
    }

    .postfeed-main .postfeed-r {
        margin-top: 2rem;
    }

    .postfeed-sq {
        grid-template-columns: 1fr;
    }
}

.card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.postfeed-sq .card {
    flex-direction: row;
    gap: 1rem;
}

.postfeed-sq .card .card-content {
    width: 150%;
}

.card-image {
    width: 100%;
}

.card-image-wrap {
    width: 100%;
}

.card-content {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.post-featured .card-content {
    margin-top: 1rem;
}

.postfeed-main .postfeed-r .card-content {
    margin-top: 0;
}

.post-featured .card-title a:nth-child(1) {
    font-size: 2rem;
}

.card-tag {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 20px;
    font-weight: var(--font-bold);
    color: #fff;
}

.card-content p {
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 0.8rem;
    display: box;
    box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 20px;
    max-height: 60px;
}

.post-featured .card-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: start;
}

.post-featured .card-title h3 {
    font-size: 32px;
    font-weight: var(--font-bold);
}

.post-featured .card-title p {
    font-weight: var(--font-normal);
}

.post-featured .card-title-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-featured .card-title-header a {
    margin-bottom: 0;
}

.post-featured .card-title:hover p {
    color: #fff !important;
}

.post-featured .card-tag {
    font-weight: var(--font-normal);
}

.post-featured .card-title svg {
    min-width: 1.6rem;
    min-height: 1.6rem;
    fill: orange;
    color: orange;
}

@media (max-width: 760px) {
    .postfeed {
        grid-template-columns: repeat(2, 1fr);
    }

    .postfeed-r {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-recent {
        flex-direction: column;
    }

    .card-recent .card-content p {
        justify-content: center;
    }

    .card-content {
        margin-top: 0 !important;
        width: 100% !important;
    }

    .card-title {
        font-size: 24px;
    }

    .card-content p {
        font-size: 16px;
    }

    .card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .postfeed-main .card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .post-featured .card-title {
        text-align: center;
    }

    .post-featured .card-title-header {
        justify-content: center;
    }

    .post-featured .card-title h3 {
        font-size: 24px;
    }

    .post-featured .card-title svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .postfeed {
        grid-template-columns: 1fr;
    }

    .postfeed-r {
        grid-template-columns: 1fr;
    }

    /* .card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    } */

    .card-content p {
        display: none;
    }

    .card-title {
        font-size: 20px;
    }

    .card-link-mini h2 {
        font-size: 16px;
    }

    .post-featured .card-title h3 {
        font-size: 20px;
    }

    .post-featured .card-title svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .postfeed-main {
        gap: 1rem;
    }

    .postfeed-main .postfeed-r {
        margin-top: 0;
    }

    .card {
        margin-top: 1rem;
    }
}

.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    padding: 0.5rem;
}

.article-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8rem;
    justify-content: space-between;
}

.article-content-wrapper {
    width: 70%;
    height: 100%;
}

.article-content hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 3px solid #333333;
}

.article-toc > .toc-list {
    position: relative;
}

.toc-list {
    overflow: hidden;
    list-style: none;
}

.toc-list .is-active-link:before {
    background-color: var(--color-primary);
}

.article-sidebar {
    width: 30%;
    position: sticky;
    right: 0;
    top: 4rem;
    height: 100%;
}

.article-title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    margin-top: 0.6rem;
}

.article-tag {
    font-size: 1rem;
    color: var(--color-primary);
}

.article-meta {
    margin-bottom: 1rem;
}

.article-meta a {
    color: var(--color-primary);
    font-weight: var(--font-bold);
}

.article-image {
    object-fit: cover;
    margin: 1rem auto;
}

.article-content {
    font-size: 1.2rem;
    font-weight: var(--font-light);
    line-height: 1.5;
}

.article-content p {
    margin-bottom: 2rem;
}

.article-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .article-wrapper {
        flex-direction: column;
    }

    .article-content-wrapper {
        width: 100%;
    }

    .article-sidebar {
        display: none;
    }

    .article-image {
        width: 100%;
        height: 100%;
    }

    .article-title {
        font-size: 1.5rem;
    }
}
.article-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.readmore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
    margin: 1rem;
    width: 50%;
    margin: 0 auto;
}

.readmore div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50%;
}

.readmore svg {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem;
}

@media (max-width: 760px) {
    .readmore {
        width: 100%;
    }
}

.kg-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Error Templates
/* ---------------------------------------------------------- */

.error {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2vmin;
}

.error-content {
    flex: 1 0 auto;
    text-align: center;
}

.error-code {
    margin: 0;
    font-size: 14vmin;
}

.error-description {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 4vmin;
    line-height: 1.2em;
    font-weight: 300;
    opacity: 0.6;
}

.error-link {
    display: block;
    margin-top: 4vmin;
    font-size: 1.6rem;
}

.error-stack {
    max-width: 600px;
    margin: 0 auto 0;
    padding: 8vmin 0;
    text-align: left;
}

.error-stack-list {
    margin: 4vmin 0 0;
    font-size: 1.4rem;
}

.error-stack-list > li {
    padding: 2rem 0;
    margin: 0;
    border-top: rgba(0, 0, 0, 0.1) 1px solid;
}

.error-stack-function {
    margin: 0 0 0.5em;
    font-size: 1.8rem;
    color: red;
}

.node-name--H3,
.node-name--H4,
.node-name--H5,
.node-name--H6 {
    color: #b4b4b8 !important;
    font-size: 0.9rem !important;
}

.node-name--H3:before {
    background-color: #b4b4b8 !important;
}

.article-toc > .toc-list > .toc-list-item {
    margin-block: 0.8rem !important;
}

.toc-list-item a {
    padding-left: 0.8rem;
    display: inline-block;
}
