@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-light: #4b5563;
    --accent: #0056b3;
    --border: #eaeaea;
    --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --text: #f3f4f6;
        --text-light: #9ca3af;
        --accent: #60a5fa;
        --border: #333333;
    }
}

* { box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container.wide {
    max-width: 1100px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.sticky-header .nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container.wide {
    max-width: 1100px !important;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    border-left: 1px solid var(--border);
    padding-left: 1rem;
    margin-left: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent) !important;
}

@media (max-width: 800px) {
    .sticky-header .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 500px) {
    .nav-links {
        gap: 0.75rem 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
}

.sticky-header a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
}

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

.sticky-header .site-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.post-meta {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

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

.post-response {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    font-size: 0.95rem;
}

.post-response strong {
    color: var(--text-light);
    margin-right: 0.5rem;
}

.post-response a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.post-response a:hover {
    text-decoration: underline;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

header p {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 400;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.h-entry, .h-event {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.h-entry .p-name, .h-event .p-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.h-entry .p-name a, .h-event .p-name a {
    color: var(--text);
    text-decoration: none;
}

.h-entry .p-name a:hover, .h-event .p-name a:hover {
    color: var(--accent);
}

.h-entry:last-of-type, .h-event:last-of-type {
    border-bottom: none;
}

.event-details {
    background: var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--accent);
}

/* Read/Book styles */
.read-display {
    background: var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--accent);
}

.read-status {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.read-cover {
    width: 100px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.read-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.read-title a {
    color: var(--text);
    text-decoration: none;
}

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

.read-author {
    font-style: italic;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .read-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.event-details h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
}

.event-time, .event-location {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.weight-display {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2ecc71;
    font-weight: 700;
}

.e-content {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.e-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.dt-published {
    color: var(--text-light);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.p-category {
    background: var(--border);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-decoration: none;
}

.p-category:hover {
    background: var(--accent);
    color: white;
}

.checkin {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.checkin h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.checkin .address {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.checkin .map-container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.checkin .leaflet-map {
    display: block;
    width: 100%;
    height: 400px;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
}

.back-link:hover {
    text-decoration: underline;
}

/* Life Stack Styles */
.stack-section {
    margin-bottom: 2.5rem;
}

.stack-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.stack-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.stack-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.stack-list li strong {
    color: var(--text);
    font-weight: 600;
}

.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer .feed-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.site-footer .feed-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 0.5rem;
}

.site-footer .feed-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Webmentions */
.webmentions-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.webmentions-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.wm-likes, .wm-reposts {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.wm-like-author, .wm-repost-author {
    display: inline-block;
    margin-right: 0.5rem;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.wm-replies {
    margin-top: 1.5rem;
}

.wm-reply {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.wm-reply-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wm-author-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
    object-fit: cover;
}

.wm-author-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.read-more {
    margin-top: 1rem;
}

.continue-reading {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.continue-reading:hover {
    text-decoration: underline;
}

.wm-reply-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.webmention-form-container {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.webmention-form-container h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.webmention-form-container p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.webmention-form {
    display: flex;
    gap: 0.5rem;
}

.webmention-form input[type="url"] {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
}

.webmention-form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.webmention-form button:hover {
    opacity: 0.9;
}

.webmention-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .webmention-form {
        flex-direction: column;
    }
}

/* Sidebar and Layout */
.site-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 6rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

@media (max-width: 1000px) {
    .site-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.location-display {
    font-size: 0.95rem;
    line-height: 1.5;
}

.weather-display {
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-display i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    margin-top: 0.25rem;
}

.weather-temp {
    font-weight: 500;
}

.weather-feels {
    font-size: 0.8rem;
    color: var(--text-light);
}

.weather-desc {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.875rem;
}

.update-freq {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.update-freq a {
    color: var(--text-light);
    text-decoration: underline;
}

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

/* Author Card */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-card h3 {
    margin-bottom: 0.75rem !important;
    font-size: 1.25rem !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.author-card .p-note {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.author-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
}

.author-social a {
    color: var(--text-light);
    transition: color 0.2s;
}

.author-social a:hover {
    color: var(--primary);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.checkin-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
}

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

.checkin-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Pagination Index */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

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

.pagination-link.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination-ellipsis {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    text-decoration: underline;
}
