html, body {
    margin: 0;
    padding: 0;
}

@font-face {
  font-family: "EB Garamond";
  src: url("./Fonts/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800; 
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("./Fonts/JetBrainsMono-VariableFont_wght.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.article-navbar {
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: beige;
    gap: 2rem;
}

.article-title {
    color: black;
    font-size: 5rem;
    font-family: "EB Garamond", Garamond, serif;
}

.article-subtitle {
    color: black;
    font-size: 2.5rem;
    font-family: "EB Garamond", Garamond, serif;
}

.article-page {
    height: auto;
    border: solid black 1.2px;
    box-shadow: 5px 5px beige;
    width: 80%;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
    font-family: "EB Garamond", Garamond, serif;
    font-weight: 400;
    margin-top: 2rem;
}

.article-t {
    font-weight: 700;
    font-size: 2rem;
    color: black;
    font-family: "EB Garamond", Garamond, serif;
}

.article-p {
    font-weight: 400;
    font-size: 1.25rem;
    color: black;
    font-family: "EB Garamond", Garamond, serif;
}

.page-link {
  color: inherit; 
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.3); 
  text-decoration-thickness: 1.2px;
  text-underline-offset: 4px; 
  text-decoration-skip-ink: auto; 
  transition: all 0.2s ease;
  font-family: "EB Garamond", Garamond, serif;
}

.page-link:hover {
  text-decoration-color: black; 
  text-decoration-thickness: 2px;
  text-underline-offset: 5px; 
}

.page-code-container {
    background: rgb(19, 19, 19);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgb(35, 35, 35);
    overflow-x: auto; 
    margin: 1.5rem 0;
}

.page-code {
    color: #e6e6e6;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem; 
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
 
    white-space: pre; 
}

.page-author {
    font-weight: 700;
    font-size: 0.8rem;
    color: gray;
    font-family: "EB Garamond", Garamond, serif;
}

.page-date {
    font-weight: 700;
    font-size: 0.8rem;
    color: gray;
    font-family: "EB Garamond", Garamond, serif;
}

@media (max-width: 768px) {
    .article-navbar {
        gap: 1rem;
        padding: 1rem;
    }

    .article-title {
        font-size: 3rem;
    }

    .article-subtitle {
        font-size: 1.8rem;
    }

    .article-page {
        width: 90%;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .article-t {
        font-size: 1.6rem;
    }

    .article-p {
        font-size: 1.1rem;
    }

    .page-code {
        font-size: 0.85rem;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .page-code-container {
        padding: 0.8rem 1rem;
    }
}

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

    .article-subtitle {
        font-size: 1.3rem;
    }

    .article-page {
        width: 92%;
        padding: 1rem;
        margin-top: 1rem;
    }

    .article-t {
        font-size: 1.3rem;
    }

    .article-p {
        font-size: 1rem;
    }

    .page-code {
        font-size: 0.75rem;
    }

    .page-code-container {
        padding: 0.6rem 0.8rem;
    }

    .page-author, .page-date {
        font-size: 0.7rem;
    }
}

