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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

:root {
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #3d5a3d;
    --accent-hover: #2c4a2c;
    --brown-accent: #8b5a3c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 18px;
    border-radius: 16px;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-color);
    color: white;
}

/* Main Content */
main {
    flex: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
    min-height: auto;
}

.content-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.content-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Simple Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Simple Cards */
.card {
    padding: 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Simple Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    background: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    margin: 0 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(61, 90, 61, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Logbook specific styles */
.log-entry {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.log-entry h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.log-entry .date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.log-entry h4, .log-entry .full-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

/* Media gallery styles */
.media-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-item img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.media-item img:hover {
    opacity: 0.9;
}

.media-item h4 {
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.media-item p {
    color: var(--text-secondary);
    margin: 0 1.5rem 1.5rem;
}

/* Adventures styles */
.adventure-date {
    color: var(--brown-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image enhancements */
img {
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

img:hover {
    opacity: 0.9;
}

/* Simple decorative bars */
.decorative-bars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.bar {
    height: 3px;
    border-radius: 2px;
    background: var(--brown-accent);
    opacity: 0.6;
}

.bar:nth-child(1) { width: 60px; }
.bar:nth-child(2) { width: 30px; opacity: 0.4; }
.bar:nth-child(3) { width: 15px; opacity: 0.2; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 2rem;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Note content styles */
.note-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.note-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Back link styles */
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Date styles */
.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Article styles */
article {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Title styles for individual pages */
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* Center content styling */
.center-content {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.center-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.center-content p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Clean minimal styling for the placeholder text */
.placeholder-text {
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin: 4rem 0;
    font-size: 1.1rem;
}

/* Log entry article styling */
article {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: transform 0.2s ease;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

article:last-child {
    border-bottom: none;
}

article:hover {
    transform: translateY(-2px);
}

article h2:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

article a:hover {
    color: var(--accent-color);
}

/* Enhanced date styling */
.date {
    color: var(--brown-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}