/* ===== Reset & base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Layout ===== */
header,
main,
footer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== Header ===== */
header {
    text-align: center;
    padding-top: 2rem;
}

header h1 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 0.5rem;
}

.meta-info {
    font-size: 0.95rem;
    color: #555;
}

.meta-info a {
    color: #0066cc;
    text-decoration: none;
}

.meta-info a:hover {
    text-decoration: underline;
}

/* ===== Sections ===== */
section {
    margin-top: 2rem;
}

h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* ===== Lists ===== */
ul, ol {
    padding-left: 1.2rem;
}

li {
    margin: 0.3rem 0;
}

/* ===== Details element ===== */
details {
    background: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

summary {
    cursor: pointer;
    font-weight: 500;
}

/* ===== Links ===== */
a {
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Footer navigation to sections */
footer nav {
    margin-top: 0.5rem;
}

footer nav a {
    margin: 0 0.5rem;
    color: #666;
    text-decoration: none;
}

footer nav a:hover {
    color: #000;
}

/* ===== Mobile adjustments ===== */
@media (max-width: 480px) {
    header,
    main,
    footer {
        padding: 0.8rem;
    }

    body {
        font-size: 15px;
    }
}


.image-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem;
    margin: 1.2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.image-card figcaption {
    font-size: 0.9rem;
    color: #444;
    text-align: center;
    padding: 0.3rem 0.5rem;
}

/* Responsive images */
@media (max-width: 600px) {
    .image-card img {
        max-width: 100%;
    }
}
