@import "utils.css";

body {
    background-color: var(--rp-base);
    color: var(--rp-text);
    font-family: 'Iosevka', monospace;
    font-size: 1rem;
    line-height: 1.7;
    margin: 4rem auto;
    max-width: 750px;
    padding: 0 2rem;
    -webkit-font-smoothing: antialiased;
}

main {
    display: flex;
    flex-direction: column;
}

nav.meta {
    margin-bottom: 2rem;
}

nav.meta a {
    color: var(--rp-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

nav.meta a:hover {
    color: var(--rp-gold);
}

nav.meta a::before {
    content: "←";
}

main > svg {
    width: 70%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
}

main > img {
    width: 70%;
    /* height: auto; */
    margin: -3rem auto;
    display: block;
    transform: rotate(-90deg);
}

.prose {
    margin-top: 2rem;
}

.prose svg {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: block;
}

h1 {
    color: var(--rp-rose);
    font-family: 'Iosevka', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
    text-transform: capitalize;
}

time.meta {
    color: var(--rp-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
}

.ascii-art {
    color: rgb(158, 206, 106);
    font-size: 0.55rem;
    line-height: 1.2;
    margin: 1.5rem auto;
    background: none;
    padding: 0;
    display: block;
    width: fit-content;
    text-align: center;
}

.prose {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.prose p {
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.prose h2 {
    color: var(--rp-iris);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    letter-spacing: -0.01em;
}

.prose h2 a {
    color: var(--rp-rose);
    text-decoration: none;
}

.prose h2 a:hover {
    text-decoration: underline;
}

.prose a {
    color: var(--rp-gold);
    text-decoration: underline;
    text-decoration-color: rgba(246, 193, 119, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
    text-decoration-color: var(--rp-gold);
}

.prose code {
    background-color: var(--rp-surface);
    color: var(--rp-text);
    font-family: 'Iosevka', monospace;
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.prose pre {
    background-color: var(--rp-surface);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
}

.prose pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose blockquote,
.prose q {
    color: var(--rp-muted);
    font-style: italic;
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--rp-muted);
}

.prose ul {
    margin: 0;
    padding-left: 1.25rem;
}

.prose li {
    margin: 0.25rem 0;
}

.prose ul li::marker {
    color: var(--rp-muted);
}

.prose ul .key {
    color: var(--rp-rose);
    font-weight: 600;
}

.prose span.footnote {
    color: var(--rp-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.5rem;
}

.prose strong {
    color: var(--rp-text);
    font-weight: 600;
}

.prose ul span,
.prose ol span {
    color: var(--rp-pine);
    font-weight: 600;
    text-underline-offset: 3px;
}

.prose ul li {
    margin: 0.75rem 0;
}

.prose em {
    font-style: italic;
}

.prose ol {
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prose ol li {
    margin: 0;
    color: var(--rp-text);
}

.prose ol li::marker {
    /* color: var(--rp-pine); */
    font-weight: 600;
}

.prose ol li > p {
    margin-bottom: 0.75rem;
}

.prose ol li > ul {
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    body {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    time.meta {
        margin-bottom: 2rem;
    }
}
