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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 2rem 1rem;
}

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

header {
    background: white;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #dc2626;
}

header img {
    max-width: 400px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    color: black;
}

h3 {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

p {
    margin: 0.5rem 0;
}

tt, code {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    background-color: #f0f0f0;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

main {
    padding: 2.5rem 2rem;
}

/* Banner (index page) */
.banner {
    background: #8b1821;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
}

.banner a {
    color: white;
    text-decoration: underline;
}

.banner a:hover {
    opacity: 0.9;
}

/* Features section (index page) */
.features-hero-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

figure.hero-image {
    flex: 1;
    min-width: 0;
    text-align: center;
    margin: 0;
}

figure.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.features-list {
    flex: 1;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    padding-left: 2rem;
    margin: 0;
}

.features-list ul {
    padding-left: 2rem;
}

/* Gallery section (index page) */
section.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

section.gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section.gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social section (index page) */
section.social {
    background: #fafafa;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0 1rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-content {
    flex: 1;
    text-align: center;
}

section.social h2 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.social-links a:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.picoides-illustration {
    flex-shrink: 0;
    max-width: 200px;
}

.picoides-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ section (index page) */
section.faq {
    padding: 2rem;
}

section.faq h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

section.faq dl {
    max-width: 800px;
    margin: 0 auto;
}

section.faq dt {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

section.faq dt:first-of-type {
    margin-top: 0;
}

section.faq dd {
    color: #555;
    line-height: 1.7;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

/* Newsletter section (index page) */
section.newsletter {
    text-align: center;
    margin-top: 1rem;
    padding: 0 2rem 2rem;
}

/* Preview page sections */
section.preview-panel {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

section.preview-panel h3 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dc2626;
    text-align: center;
    opacity: 1;
}

.changelog-entry {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.changelog-entry:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.changelog-entry h4 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.changelog-entry ul {
    margin-left: 1.25rem;
    color: #555;
}

.changelog-entry li {
    margin-bottom: 0.25rem;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

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

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

/* Responsive styles */
@media (max-width: 768px) {
    header img {
        max-width: 250px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .features-hero-container {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
    }

    section.social {
        flex-direction: column;
    }

    .social-illustration {
        max-width: 200px;
    }
}
