/* 1. Import Roboto from Google Fonts */
/*
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');
*/

:root {
    --bg: #FDFCF0; 
    --text: #202020;
    --link: #0055BB;
    --code-bg: #F0EEDC;
    --quote-border: #DCD9BC;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1d18; 
        --text: #e2e8df;
        --link: #8eb486;
        --code-bg: #242921;
        --quote-border: #3a4235;
    }
}

/* Layout & Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    max-width: 720px; 
    margin: 0 auto;
    padding: 2rem 1.5rem; 
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.75;
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

main { 
    flex: 1;
    font-size: 1.0rem; 
}

/* Typography */
h1 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: 0.01em; font-weight: 700; text-transform: uppercase;}

a {
    color: var(--link);
    text-decoration: none;
    opacity: 0.85;
    font-weight: 400;
}

a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================================================
   POSTLIST (Index Page)
   ========================================================================== */

.post-list {
    column-count: 2;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.post-list li {
    margin-bottom: 0.8rem;
    break-inside: avoid;
}

.post-list a {
    color: var(--link);
    opacity: 0.85;
}

.post-list a:hover {
    opacity: 1;
    color: var(--text);
    text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    padding: 3rem 0;
    border-top: 2px solid var(--quote-border);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 0.2rem;
    color: var(--text);
    border-bottom: 1px solid var(--quote-border);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-column p, 
.footer-column address {
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
    font-style: normal;
}

/* Elements */
img { max-width: 100%; height: auto; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--quote-border); margin: 3rem 0; }

@media (max-width: 600px) {
    .post-list { column-count: 2; } 
    .site-footer { flex-direction: column; gap: 1.5rem; }
}

/* ==========================================================================
   POST / ARTICLE STYLES
   ========================================================================== */

article {
    margin: 0 auto;
    padding: 1rem 0;
}

article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 3rem auto;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

article ul, article li, article p, article h2, article h3 {
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}

article h2, 
article h3 {
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

article h2 { font-size: 1.5rem; }
article h3 { font-size: 1.2rem; }

article ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem auto;
}

article li {
    display: flex;            /* Fixes alignment/indentation */
    align-items: baseline;    /* Keeps text tops level */
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

article li strong, 
article li b {
    flex-shrink: 0;           /* Prevents descriptor from squishing */
    min-width: 80px;          /* Vertical alignment for all keys */
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    opacity: 0.5;
}

/* Standard markdown **key**: output */
article li strong::after {
    content: ":";
}

nav.post-nav {
    margin-bottom: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}