/* =============================================
   Classic Personal Website Stylesheet
   A tribute to simpler times on the web
   ============================================= */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f0e6;
    --text-color: #2c2416;
    --accent-color: #6b4423;
    --link-color: #1a4480;
    --link-visited: #5c3d6e;
    --link-hover: #c44;
    --border-color: #c4b89d;
    --light-accent: #e8e0d0;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4b89d' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: #fffdf8;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* Header */
header {
    text-align: center;
    padding: 20px 0 10px;
}

header h1 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.tagline {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
}

/* Navigation */
nav {
    text-align: center;
    padding: 15px 0;
    margin: 10px 0;
    background-color: var(--light-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    padding: 5px 15px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

nav a:visited {
    color: var(--link-color);
}

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

nav a.active {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

nav .divider {
    color: var(--border-color);
}

/* Decorative HR */
hr.decorative {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent
    );
    margin: 25px 0;
}

hr.post-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 25px 0;
}

/* Main Content */
main {
    padding: 20px 0;
}

main h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

main h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: underline;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
}

/* Sections */
section {
    margin-bottom: 30px;
}

.intro {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: #666;
}

/* Welcome Section */
.welcome p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* About Section */
.about-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-box {
    flex: 0 0 150px;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    background-color: var(--light-accent);
}

.profile-photo {
    width: 150px;
    height: auto;
    border: 3px solid var(--border-color);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.contact-cta {
    background-color: var(--light-accent);
    padding: 12px 15px;
    border-left: 3px solid var(--accent-color);
    margin-top: 15px;
}

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

.bio p {
    margin-bottom: 12px;
}

/* Updates List */
.update-list {
    list-style: none;
    padding-left: 0;
}

.update-list li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}

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

.update-list .date {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Tags Filter */
.tags-filter {
    text-align: center;
    padding: 15px;
    margin-bottom: 25px;
    background-color: var(--light-accent);
    border: 1px solid var(--border-color);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    line-height: 2;
}

.tags-label {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.tag-link {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 5px;
    padding: 2px 5px;
    transition: background-color 0.2s ease;
}

.tag-link:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.tag-link.active {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

.no-posts-message {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
    border: 1px dashed var(--border-color);
    margin-top: 20px;
}

/* Blog Archive List */
.blog-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    line-height: 2;
}

.blog-archive-list li {
    border-bottom: 1px dotted var(--border-color);
    padding: 5px 0;
}

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

.blog-archive-list .date {
    color: var(--accent-color);
    margin-right: 10px;
}

.blog-archive-list a {
    color: var(--link-color);
    text-decoration: none;
}

.blog-archive-list a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.blog-archive-list a:visited {
    color: var(--link-visited);
}

.blog-archive-list .tag {
    color: #888;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
}

.pagination a,
.pagination .current-page {
    padding: 5px 10px;
    margin: 0 3px;
}

.pagination .current-page {
    font-weight: bold;
    color: var(--accent-color);
}

/* Photo Gallery - Year/Trip Organization */
.year-section {
    margin-bottom: 40px;
}

.year-heading {
    font-size: 1.4rem;
    font-weight: normal;
    color: var(--accent-color);
    text-align: center;
    padding: 12px 0;
    margin-bottom: 25px;
    background: linear-gradient(
        to right,
        transparent,
        var(--light-accent) 15%,
        var(--light-accent) 85%,
        transparent
    );
    letter-spacing: 3px;
}

.trip-section {
    margin-bottom: 35px;
    padding: 20px;
    background-color: rgba(232, 224, 208, 0.3);
    border: 1px solid var(--border-color);
}

.trip-heading {
    font-size: 1.15rem;
    font-weight: normal;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.photo-item {
    text-align: center;
    overflow: hidden;
}

.photo-item a {
    display: block;
    text-decoration: none;
}

.gallery-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-caption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Video Gallery */
.video-gallery {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.video-heading {
    font-size: 1rem;
    font-weight: normal;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.video-item {
    max-width: 100%;
}

.gallery-video {
    width: 100%;
    max-width: 500px;
    border: 2px solid var(--border-color);
    background-color: #000;
}

.gallery-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 30px;
    padding: 15px;
    background-color: var(--light-accent);
    border: 1px dashed var(--border-color);
}

/* Preview Gallery (limited images) */
.preview-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 350px;
}

/* View Album Link */
.view-album {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.view-album a {
    color: var(--link-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--light-accent);
    transition: all 0.2s ease;
    display: inline-block;
}

.view-album a:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    text-decoration: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* Album Page Section */
.album-section {
    margin-bottom: 30px;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comments-section h2 {
    margin-bottom: 15px;
}

.comments-intro {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.giscus-container {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    min-height: 200px;
}

.no-js-message {
    text-align: center;
    padding: 30px;
    background-color: var(--light-accent);
    border: 1px dashed var(--border-color);
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 8px;
}

.copyright {
    color: #888;
}

.visitor-counter {
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #999;
}

.back-to-top a {
    font-size: 0.85rem;
    color: #888;
}

.back-to-top a:hover {
    color: var(--link-hover);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 0;
        border: none;
    }

    header h1 {
        font-size: 1.6rem;
    }

    nav a {
        padding: 5px 10px;
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-image {
        height: 100px;
    }

    .trip-section {
        padding: 15px;
    }

    .gallery-video {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
        border: none;
    }

    nav {
        background: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

