/* main.css */
@import "variables.css";
/*────────────────────────────────────────────────
    0) RESET
────────────────────────────────────────────────*/
*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    border: 0;
    margin: 0;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
/*────────────────────────────────────────────────
    1) BASE TYPOGRAPHY
────────────────────────────────────────────────*/
html {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
    tab-size: 4.0;
} body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    tab-size: inherit;
}
/*────────────────────────────────────────────────
    2) LINKS & BUTTONS
────────────────────────────────────────────────*/
a {
    color: var(--theme-primary);
    transition: color .15s ease-in-out;
    text-decoration: none;
} a:hover {
    color: var(--theme-primary-hover);
} button {
    background-color: var(--theme-accent);
    color: var(--theme-inverse);
    padding: 0.5rem 1.0rem;
    border: none;
    cursor: pointer;
} button:hover {
    background-color: var(--theme-primary-hover);
    color: var(--theme-inverse);
}
/*────────────────────────────────────────────────
    3) HEADINGS & TEXT
────────────────────────────────────────────────*/
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-secondary);
    font-weight: inherit;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
h1  { font-size: 1.5rem; }
h2  { font-size: 1.3rem; margin-top: 2.0rem; }
h3, h4, h5, h6  { font-size: 1.2rem; margin-top: 2.0rem; }
p, ul, ol, pre  { margin-top: 1.0rem; }
li      { margin-left: 1.5rem; }
li + li { margin-top: 0.3rem; }
blockquote {
    font-style: italic;
    border-left: 0.5rem solid var(--theme-primary);
    padding-left: 1.0rem;
    margin: 2.0rem 0;
}
/*────────────────────────────────────────────────
    4) PROSE CONTENT
────────────────────────────────────────────────*/
.prose {
    line-height: 1.7;
} .prose a {
    text-decoration: underline;
} .prose code {
    background-color: var(--theme-surface);
} .prose pre {
    background-color: var(--theme-surface);
    box-sizing: border-box;
    border: .3rem solid var(--theme-primary);
    border-radius: .0rem;
    padding: .8rem 1.2rem;
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
}
/*────────────────────────────────────────────────
    5) COMMON UTILITIES
────────────────────────────────────────────────*/
.hidden  { display: none; }
.flex  { display: flex; }
.block  { display: block; }
.inline-block  { display: inline-block; }
.items-center  { align-items: center; }
.justify-between  { justify-content: space-between; }
.transition  { transition: all .15s cubic-bezier(.4,0,.2,1); }
/*────────────────────────────────────────────────
    6) RESPONSIVITY
────────────────────────────────────────────────*/
.blueprint {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
} @media (min-width: 768px) {
    .blueprint {
        flex-direction: row;
        align-items: flex-start;
    }
}
.aether {
    background-color: var(--theme-primary);
    position: static;
    flex-shrink: 0;
    padding: 1rem;
} @media (min-width: 768px) {
    .aether {
        position: sticky;
        align-self: flex-start;
        overflow-y: auto;
        width: 250px;
        height: auto;
        min-height: 100vh;
        padding: 0;
        top: 0;
    }
}
.dotslash {
    background-color: var(--theme-primary);
    color: var(--theme-inverse);
    display: flex;
    flex-direction: row;
    margin-bottom: 1.0rem;
} @media (min-width: 768px) {
    .dotslash {
        justify-content:center;
        padding: 1.5rem 0;
        margin-bottom: 0;
    }
} .dotslash:hover {
    background-color: var(--theme-primary-hover);
    color: var(--theme-inverse);
}
.dotslash-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
} @media (min-width: 768px) {
    .dotslash-inner {
        margin-right: 0;
    }
}
.astronomy {
    background-color: var(--theme-primary);
    color: var(--theme-inverse);
    flex: 1 1 auto;
    text-transform: uppercase;
    font-size: x-large;
    margin: 0;
} @media (min-width: 768px) {
    .astronomy {
        flex: 0 1 auto;
        font-size: x-large;
        padding: 1.5rem 0 1.5rem 1.5rem;
        margin-bottom: 3rem;
    }
} .astronomy:hover {
    background-color: var(--theme-primary-hover);
    color: var(--theme-inverse);
} .dotslash:hover .astronomy {
    background-color: var(--theme-primary-hover);
    color: var(--theme-inverse);
}
.overworld {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    font-size: 1.125rem;
    margin: 1rem;
} @media (min-width: 768px) {
    .overworld {
        font-size: 1rem;
        margin: 0;
    }
}
.book {
    display: flex;
    flex-direction: row;
    justify-content: center;
} @media (min-width: 768px) {
    .book {
        justify-content:space-between;
        margin-left: 4rem;
    }
}
.paper {
    max-width: var(--content-width);
    flex: 1 1 auto;
} @media (min-width: 768px) {
    .paper {
        margin-right: 4rem;
    }
}
.binder {
    display: none;
    flex: 1 1 0;
    max-width: 400px;
} @media (min-width: 1536px) {
    .binder {
        display: block;
    }
}
.nether {
    color: var(--theme-secondary);
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    max-width: var(--content-width);
    margin-top: 3rem;
    padding-bottom: 4rem;
} @media (min-width: 768px) {
    .nether {
        margin-left: 4rem;
        margin-right: 4rem;
    }
}
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 768px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }
}
/*────────────────────────────────────────────────
    7) NAVIGATION
────────────────────────────────────────────────*/
.compass {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
} @media (min-width: 768px) {
    .compass {
        flex-direction: column;
        overflow: auto;
    }
}
.compass-dot {
    background-color: var(--theme-inverse);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: .5rem;
    transform: scale(0);
    transition: transform .15s ease-in-out,
                background-color .15s ease-in-out;
}
.compass-link {
    color: var(--theme-inverse);
    font-size: large;
    text-decoration: none;
}
.compass-arrow {
    background-color: var(--theme-primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 0;
    padding-left: 3rem;
} .compass-arrow:hover {
    background-color: var(--theme-primary-hover);
} .compass-arrow:hover .compass-dot {
    background-color: var(--theme-inverse);
    transform: scale(1);
} .compass-arrow:hover .compass-link {
    color: var(--theme-inverse);
} .compass-arrow.active {
    background-color: var(--theme-primary-hover);
} .compass-arrow.active .compass-dot {
    background-color: var(--theme-inverse);
    transform: scale(1);
} .compass-arrow.active .compass-link {
    color: var(--theme-inverse);
}
@media (max-width: 768px) {
    .compass-arrow {
        flex-direction: column-reverse;
        padding: 1rem 1rem 1rem 1rem;
        margin: 0 1rem 0 0;
    }
}
/*────────────────────────────────────────────────
    8) POST LIST
────────────────────────────────────────────────*/
.post-list {
    list-style: none;
} .post-list li {
    margin-left: 0;
} .post-list li + li {
    margin-top: .5rem;
} .post-list a {
    color: var(--theme-primary);
    transition: color .15s ease-in-out;
    text-decoration: none;
} .post-list a:hover {
    color: var(--theme-primary-hover);
}
/*────────────────────────────────────────────────
    9) PROJECT LIST
────────────────────────────────────────────────*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.project-card {
    background-color: var(--theme-bg);
    border: 1px solid var(--theme-secondary);
    border-left: 4px solid var(--theme-primary);
    border-radius: 4px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.15);
}
.project-title {
    margin: 0 0 0.2rem 0;
    font-size: 1.5rem;
    color: var(--theme-secondary);
    line-height: 1.2;
}
.project-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease-in-out;
}
.project-title a:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}
.project-meta {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--theme-secondary);
    margin-bottom: 1rem;
    font-weight: normal;
    opacity: 0.8;
}
.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-pill {
    background-color: var(--theme-primary);
    color: var(--theme-inverse);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    transition: opacity .15s ease-in-out, background-color .15s ease-in-out;
}
.tag-pill:hover {
    opacity: 1;
    background-color: var(--theme-primary-hover);
}
/*────────────────────────────────────────────────
    10) WRITING LIST
────────────────────────────────────────────────*/
.writing-stream {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--theme-primary);
    padding-left: 2rem;
}
.writing-row {
    display: flex;
    flex-direction: column;
}
.writing-meta {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}
.writing-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--theme-secondary);
}
.writing-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease-in-out;
}
.writing-title a:hover {
    color: var(--theme-primary-hover);
}
.writing-tags {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}
.tag-text {
    background-color: var(--theme-primary);
    color: var(--theme-inverse);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-family: sans-serif;
}
.tag-text:hover {
    opacity: 1;
    background-color: var(--theme-primary-hover);
}
@media (max-width: 768px) {
    .writing-stream {
        padding-left: 1rem;
        border-left-width: 4px;
    }
}
