@font-face {
    font-family: 'Takota';
    src: url('TAKOTA-7LRL.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --blood-red: #8B0000;
    --dark-red: #4A0000;
    --night-blue: #1a1a2e;
    --moon-silver: #c0c0c0;
    --shadow-gray: #2a2a2a;
    --parchment: #f4f1e8;
}

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

body,
html {
    height: 100%;
    font-family: 'Libre Baskerville', serif;
    background-color: var(--night-blue);
    color: var(--parchment);
    overflow: hidden;
}

.background-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    height: 100%;
    background-image: url('cover.webp');
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 80%, black 100%);
    z-index: 1;
}

@media (min-width: 960px) {
    .overlay {
        background:
            linear-gradient(to right, black, transparent 15%, transparent 85%, black),
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 80%, black 100%);
    }
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: 'Takota', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--blood-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--parchment);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.description {
    width: 80%;
    margin-bottom: 2rem;
}

.description p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.divider {
    width: 30%;
    height: 2px;
    background-color: var(--blood-red);
    margin-bottom: 2rem;
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.links-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.version {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.download-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--blood-red);
    color: var(--parchment);
    text-decoration: none;
    font-family: 'Montserrat', serif;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link {
    display: inline-block;
    color: var(--parchment);
    text-decoration: underline;
    font-family: 'Montserrat', serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.substack-link:hover {
    color: var(--blood-red);
    border-bottom-color: var(--blood-red);
    text-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
}

.download-btn:hover {
    background-color: var(--blood-red);
    color: white;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
    padding: 0 2rem;
}

.stamp {
    width: 100px;
    opacity: 0.8;
}

.rounded-stamp {
    border-radius: 30%;
}

.github-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    color: var(--parchment);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.github-icon:hover {
    opacity: 1;
    color: var(--blood-red);
    transform: scale(1.1);
}

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

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        width: 100%;
    }

    .footer {
        padding: 0;
        justify-content: center;
        gap: 2rem;
    }
}

.hidden {
    display: none !important;
}