* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5ebe0;
    padding: 10px;
    max-width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fdf8f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header {
    background: #c44545;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.timestamp {
    font-size: 14px;
    opacity: 0.9;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.image-wrapper {
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-caption {
    margin-top: 8px;
    padding: 10px;
    background: #f5ebe0;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.image-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.image-attribution {
    color: #666;
    font-size: 12px;
}

.image-attribution a {
    color: #c44545;
    text-decoration: none;
}

.image-attribution a:hover {
    text-decoration: underline;
}

.attribution-detail {
    margin-top: 3px;
}

.article-link {
    margin: 20px;
    padding: 15px;
    background: #fde8e8;
    border-radius: 8px;
    border-left: 4px solid #c44545;
}

.article-link a {
    color: #c44545;
    text-decoration: none;
    font-weight: 500;
}

.article-link a:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #e8ddd0;
}

nav a {
    color: #c44545;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background: #f5ebe0;
    font-weight: 500;
}

nav a:hover {
    background: #ead9c9;
}

nav .disabled {
    color: #ccc;
    pointer-events: none;
}

.source-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

/* Archive page specific styles */
.archive-list {
    list-style: none;
}

.archive-list li {
    margin: 10px 0;
    padding: 10px;
    background: #f5ebe0;
    border-radius: 5px;
}

.archive-list a {
    color: #c44545;
    text-decoration: none;
    font-weight: 500;
}

.archive-list a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ddd0;
}

.back-link a {
    color: #c44545;
    text-decoration: none;
}
