:root {
    --bg-color: #d1cbbc;
    --text-color: #3d3a36;
    --card-bg: #c4beb3;
    --border-color: #b3aca2;
    --subtle-text: #524d46;
    --highlight-color: #7a6843;
    --highlight-hover: #685834;
    --button-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    width: 80%;
    max-width: 960px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    color: var(--subtle-text);
}

nav {
    background: #cac3b9;
    /* A slightly different shade, kept separate for now */
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: var(--subtle-text);
    text-decoration: none;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--text-color);
}

main {
    padding: 2rem 0;
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid #cac3b9;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

h3 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.card,
.blog-post-full {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card {
    border-left: 4px solid var(--highlight-color);
}

/* Note: Keeping specific card h3 if needed, but global h3 might override if not careful. 
   In original css card h3 had specific margins. */
.card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
    /* Reset global h3 top margin for cards */
}

.blog-post-full {
    padding: 2rem;
}

.blog-post-full h2 {
    margin-bottom: 1rem;
}

.blog-post-full .post-meta {
    font-size: 0.9rem;
    color: var(--subtle-text);
    margin-bottom: 2rem;
}

.card .post-meta {
    font-size: 0.9rem;
    color: var(--subtle-text);
    margin-bottom: 0.5rem;
}

.blog-post-full p,
.blog-post-full ul,
.blog-post-full ol {
    margin-bottom: 1.5rem;
}

.blog-post-full ul,
.blog-post-full ol {
    list-style-position: inside;
    padding-left: 1rem;
}

.blog-post-full hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

pre {
    background-color: #2d2a26;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.cv-entry ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--button-text);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--highlight-hover);
}

.contact-methods {
    margin-top: 2rem;
}

footer {
    background: var(--card-bg);
    color: var(--subtle-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    header {
        padding: 2rem 0;
    }
}