/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TWO-COLUMN GRID LAYOUT
   =================================== */
.page-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    padding: 3rem 2rem;
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.site-title a:hover {
    color: #000;
}

.site-tagline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.site-nav a {
    display: block;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #000;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.content {
    padding: 4rem 6rem;
    max-width: 900px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.4rem;
    max-width: 720px;
}

a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration-color: #666;
}

ul,
ol {
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
    max-width: 720px;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid #ddd;
    color: #555;
    font-style: italic;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #f4f4f4;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

pre {
    background: #f4f4f4;
    padding: 1.2rem;
    overflow-x: auto;
    margin-bottom: 1.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

pre code {
    background: none;
    padding: 0;
}

/* ===================================
   IMAGES
   =================================== */
img {
    display: block;
    margin: 3rem auto;
    max-width: 100%;
    height: auto;
}

/* ===================================
   PAGE & POST SPECIFIC
   =================================== */
.page-header,
.post-header {
    margin-bottom: 2rem;
}

.page-title,
.post-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.page-body,
.post-body {
    font-size: 1.05rem;
}

.posts-list {
    list-style: none;
    padding-left: 0;
    max-width: 720px;
}

.posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ececec;
}

.posts-list li:last-child {
    border-bottom: none;
}

.posts-list-date {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}
/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .page-container {
        grid-template-columns: 220px 1fr;
    }

    .content {
        padding: 3rem 4rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 2rem 1.5rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}
