:root {
    /* Cozy & Comfortable Warm Theme */
    --primary-color: oklch(60% 0.12 30); /* Warm Terracotta */
    --secondary-color: oklch(90% 0.05 60); /* Soft Sand */
    --background-color: oklch(97% 0.02 70); /* Warm Ivory */
    --text-color: oklch(25% 0.03 30); /* Deep Charcoal with a hint of warmth */
    --container-bg: oklch(99% 0.01 70);
    --shadow-color: rgba(60, 30, 0, 0.08);
    --accent-color: oklch(75% 0.1 80); /* Soft Sage/Olive */
}

[data-theme='dark'] {
    --primary-color: oklch(75% 0.1 40);
    --secondary-color: oklch(35% 0.05 40);
    --background-color: oklch(18% 0.02 30); /* Deep Coffee */
    --text-color: oklch(92% 0.02 70);
    --container-bg: oklch(22% 0.02 30);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --accent-color: oklch(65% 0.08 80);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--primary-color);
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--container-bg);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 100;
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
}

header {
    text-align: center;
    margin-bottom: 6rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 2rem;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 65% 35% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%; }
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.bio {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 450px;
    margin: 0 auto;
    word-break: keep-all;
}

.blog-post {
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px var(--shadow-color);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.contact-section {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--secondary-color);
    border-radius: 2rem;
    opacity: 0.9;
}

.contact-section h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

input[type="email"],
textarea {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 1rem;
    background-color: var(--container-bg);
    color: var(--text-color);
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea {
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 1.2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

#disqus_thread {
    margin-top: 5rem;
    padding: 2rem;
    background: var(--container-bg);
    border-radius: 2rem;
}
