/* --------------- Global --------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --------------- Fonts --------------- */

.merriweather-400 {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.anaheim-400 {
    font-family: "Anaheim", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.anaheim-500 {
    font-family: "Anaheim", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* --------------- Body --------------- */

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f6f5ec;
}

/* --------------- Header --------------- */
header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #000;
    background: #f6f5ec;
    z-index: 99;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#inner {
    width: 75%;
    margin: 0 auto;
    padding: 0.1rem;
}

header h2 {
    font: 400 18px/1.2 monospace;
}

header h2 #dot:hover {
    cursor: pointer;
    font-weight: 700;
}

/* --------------- Index grid --------------- */
main {
    width: 75%;
    margin: 0 auto;
    border-bottom: 1px solid #000;
    padding-bottom: 3rem;
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-post {
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
}

.blog-post .title {
    padding: 1.25rem;
}

.blog-post .title h2 {
    margin: 0;
    font-size: 20px;
}

.blog-post .date {
    color: dimgray;
}

.blog-post .content {
    position: relative;
    border-top: 1px solid #000;
    padding: 1.25rem;
    flex: 1 0 auto;
}

.blog-post .description {
    display: block;
    margin-bottom: 4rem;
}

.blog-post button {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-post button:hover {
    transform: translate(0.6rem);
}

.blog-post .footer {
    border-top: 1px solid #000;
    display: flex;
}

.blog-post .tag {
    background: #fe7743;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    border-right: 1px solid #000;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.blog-post .read-time {
    color: dimgray;
    padding: 0.6rem 1.2rem;
}

/* --------------- Footer --------------- */
footer {
    width: 75%;
    margin: 2rem auto 4rem;
}

footer #contact-div,
footer #copyright-div {
    padding: 1rem 0;
    border-bottom: 1px solid #000;
}

footer #contact-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

footer .contact-div-child {
    border-left: 1px solid black;
    padding: 1rem;
}

footer h2 {
    margin: 0;
}

footer .footer-link {
    color: black;
    text-decoration: none;
}

footer .footer-link:hover {
    color: #273f4f;
}

footer .wip-link {
    color: black;
    text-decoration: none;
}

footer .wip-link:hover {
    font-weight: 500;
}

.x-logo {
    font-size: 20px;
}

footer .crypto-link {
    cursor: pointer;
    color: black;
    text-decoration: none;
    position: relative;
}

footer .crypto-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

footer .crypto-link:hover::after {
    opacity: 1;
}

footer .crypto-link:hover {
    color: #273f4f;
}

/* --------------- Post page --------------- */
#post {
    width: 40%;
    margin: 2rem auto;
    line-height: 1.6;
}

sub,
sup {
    color: dimgray;
}

.quote {
    color: dimgray;
    padding: 20px;
    font-style: italic;
    text-align: justify;
    margin: 0 auto;
}

.post-a {
    color: black;
}

.post-a:hover {
    font-weight: 700;
    color: darkslateblue;
}

/* --------------- Responsiveness --------------- */
@media only screen and (max-width: 1300px) {
    #post {
        width: 60%;
    }
}

@media only screen and (max-width: 1000px) {
    #post {
        width: 70%;
    }
}

@media only screen and (max-width: 800px) {
    #post {
        width: 80%;
    }

    footer .contact-div-child {
        border-left: 0;
        border-top: 1px solid black;
    }
}

#post h1 {
    margin-top: 0;
}
