body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0;
    color: #333;
    background-color: #fcfcfc;
}

header {
    position: relative;
    margin-bottom: 40px;
    background-color: #006eb6;
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header .subtitle {
    font-size: 1.1em;
    margin: 5px 0 15px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 0.9em;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

.social-icons {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.9;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 1;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-tags-mini {
    margin-left: 10px;
    font-size: 0.8em;
}

.post-tags-mini a {
    color: #888;
    text-decoration: none;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

.post-tags {
    margin-left: 15px;
}

.post-tags a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.tag-group h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 50px;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 15px;
}

.post-date {
    color: #888;
    font-family: monospace;
    margin-right: 15px;
}

article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

article h1 {
    margin-bottom: 0;
}

.meta {
    color: #888;
    margin-top: 0;
    font-size: 0.9em;
}

.content {
    margin-top: 40px;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section {
    display: flex;
    gap: 30px;
    align-items: center; /* Center vertically to help photo 'surround' bio if heights differ */
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-image {
    flex: 0 0 200px;
    margin: 0 !important;
}

.profile-image img {
    margin: 0 !important; /* Override the 20px auto margin from .content img */
}

.profile-bio {
    flex: 1;
    min-width: 300px;
}

.profile-bio h2 {
    margin-top: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
