/* 1. Global Reset & Layout */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding: 0 1.5rem;   /* Side padding for mobile */
    max-width: 680px;
    margin: 0 auto;
}

/* 2. Typography (The "Quiet" Settings) */
h1, h2, h3 {
    text-transform: none;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1 { font-size: 2rem; margin-bottom: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }

p { margin-bottom: 1.5rem; }

a { 
    color: #000; 
    text-decoration: none; 
    transition: opacity 0.2s;
}

a:hover { opacity: 0.6; }

/* 3. Header & Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3rem 0 1rem;
    border-bottom: 2px solid #000;
    margin-bottom: 3rem;
}

.main-header h1 {
    margin-bottom: 0; 
    line-height: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.main-header nav a {
    margin-left: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 4. Blog Posts */
.post { margin-bottom: 3rem; }

.post-date { 
    display: block;
    font-size: 0.8rem; 
    color: #666; 
    margin-bottom: 0.5rem; 
}

.post-image {
    width: 100%;
    height: auto;
    background: #f0f0f0; 
    margin: 2rem 0;
    border: 1px solid #000;
}

/* 1. Only underline links that ARE NOT the back-link */
.post-full-content a:not(.back-link) {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: all 0.2s ease-in-out;
}

/* 2. Style for the back-link (No underline) */
.post-full-content a.back-link {
    text-decoration: none;
    border-bottom: none;
    color: inherit;
}

/* 3. Hover state for the underlined links */
.post-full-content a:not(.back-link):hover {
    color: #666;
    border-bottom-color: #666;
}

/* 5. Footer */
footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    border-top: 1px solid #000;
    padding: 2rem 0 4rem;
}