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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.last-updated {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.65;
}

.subscribe-form {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.subscribe-form input[type="email"] {
    padding: 0.45rem 0.7rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 250px;
    color: #333;
}

.subscribe-form button {
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.subscribe-form button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 170px;
    color: #333;
}

.search-form button {
    padding: 0.4rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    font-size: 0.85rem;
    cursor: pointer;
}

.search-form button:hover {
    background: #eee;
}

.search-clear {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: 0.2rem;
}

.search-clear:hover {
    color: #333;
}

.search-info {
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    background: #eaf4fe;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.message-box {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.message-box h2 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.message-box p {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #555;
}

.message-box a {
    color: #2c3e50;
}

.message-box--error h2 {
    color: #c0392b;
}

.page-nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.page-nav__links {
    display: flex;
    gap: 1.5rem;
}

.page-nav a {
    color: #2c3e50;
    text-decoration: none;
}

.page-nav a:hover {
    text-decoration: underline;
}

.nav-current {
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.2rem;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.date-group {
    margin-bottom: 2rem;
}

.date-heading {
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

.entries {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.entry {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.entry-photo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.entry-photo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.no-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
}

.entry-info {
    flex: 1;
    min-width: 0;
}

.entry-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.entry-name a {
    color: #2c3e50;
    text-decoration: none;
}

.entry-name a:hover {
    text-decoration: underline;
}

.entry-details {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail.place::before {
    content: "\1F4CD ";
}

.entry-source {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.2rem;
}

.seo-text {
    margin-top: 2rem;
    padding: 1.2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.seo-text h2 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.seo-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.place-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

.place-links span {
    color: #ccc;
    margin: 0 0.15rem;
}

.place-links a {
    color: #555;
    text-decoration: underline;
}

.place-links a:hover {
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.sources {
    margin-top: 1.2rem;
}

.sources a {
    color: #555;
    text-decoration: underline;
}

.sources a:hover {
    text-decoration: none;
}

.footer-info {
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
}

.footer-links {
    margin-top: 0.4rem;
}

.footer-links a {
    color: #555;
    text-decoration: underline;
}

.footer-links a:hover {
    text-decoration: none;
}

footer > p {
    margin-bottom: 0.3rem;
}

.copyright {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: #aaa;
}

.archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.archive-year__title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.archive-months {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
}

.archive-month {
    font-size: 0.85rem;
    color: #2c3e50;
    text-decoration: none;
}

.archive-month:hover {
    text-decoration: underline;
}

.archive-month--active {
    font-weight: bold;
    border-bottom: 2px solid #2c3e50;
}

.archive-selection {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #2c3e50;
}

.detail.age {
    color: #888;
    font-style: italic;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.3rem;
    }

    .subscribe-form input[type="email"] {
        width: auto;
        flex: 1;
    }

    .page-nav {
        flex-wrap: wrap;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        flex: 1;
        width: auto;
    }

    .entry-photo {
        width: 45px;
        height: 45px;
    }

    .entry-photo img,
    .no-photo {
        width: 45px;
        height: 45px;
    }
}
