/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    line-height: 1.6;
    color: #fff;
    background-color: #27272A;
    min-height: 100vh;
}

/* Main Content */
.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Fade-in animation for home page */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 60px 0 30px 0;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ccc;
}

/* List styling */
ul, ol {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 30px;
}

ul li, ol li {
    margin-bottom: 8px;
}

a {
    color: #fff;
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
}

/* Remove underline from back to blog links */
a[href*="/blog"]:not(.post-title):not(.job-title) {
    text-decoration: none;
}

a[href*="/blog"]:not(.post-title):not(.job-title):hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Signature */
.signature {
    font-style: italic;
    margin: 30px 0;
}

/* Divider */
hr {
    border: none;
    border-top: 1px solid #404040;
    margin: 60px 0 40px 0;
}

/* Careers Section */
.careers {
    margin: 30px 0;
}

.job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.job-title {
    text-decoration: underline;
    color: #fff;
}

.job-title:hover {
    opacity: 0.8;
}

.location {
    color: #999;
    font-size: 0.9rem;
}

/* Blog Posts Section */
.blog-posts {
    margin: 30px 0;
}

.blog-post {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.post-title {
    text-decoration: underline;
    color: #fff;
}

.post-title:hover {
    opacity: 0.8;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
}

.loading {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 40px 0;
}

/* Post metadata styling */
.post-meta {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 30px;
}

.contact {
    margin-top: 40px;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #404040;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
    width: 100%;
}

.footer-left {
    display: flex !important;
    gap: 20px;
    flex-grow: 1;
    justify-content: center !important;
    align-items: center;
}

.footer-left a {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-left a:hover {
    color: #999;
    text-decoration: underline;
}

.footer-right {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* Theme Toggle */
.theme-toggle {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #777;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin: 0;
    font-family: inherit;
    position: relative;
}

.theme-toggle:hover {
    color: #999;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: transform 0.3s ease;
    font-style: normal;
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* CSS-based icons as fallback */
.theme-toggle .theme-icon:before {
    content: "◐";
    display: block;
    font-size: 16px;
    line-height: 1;
}

body.light-theme .theme-toggle .theme-icon:before {
    content: "◑";
}

/* Light Theme */
body.light-theme {
    background-color: #fefefe;
    color: #333;
}

body.light-theme h1,
body.light-theme h2 {
    color: #333;
}

body.light-theme p,
body.light-theme ul,
body.light-theme ol,
body.light-theme li {
    color: #555;
}

body.light-theme a {
    color: #333;
}

body.light-theme a:hover {
    opacity: 0.7;
}

body.light-theme hr {
    border-top: 1px solid #e0e0e0;
}

body.light-theme .footer {
    border-top: 1px solid #e0e0e0;
}

body.light-theme .footer-left a {
    color: #666;
}

body.light-theme .footer-left a:hover {
    color: #333;
}

body.light-theme .theme-toggle {
    color: #666;
    background-color: transparent !important;
}

body.light-theme .theme-toggle:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .post-meta,
body.light-theme .post-date,
body.light-theme .location {
    color: #777;
}

body.light-theme .loading {
    color: #777;
}

body.light-theme .error {
    color: #d63384;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .job {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left {
        justify-content: center;
    }
} 