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

:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 0%);
    --primary: hsl(0, 84%, 45%);
    --primary-light: hsl(0, 84%, 55%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);
    --card: hsl(0, 0%, 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: hsl(0, 0%, 5%);
        --foreground: hsl(0, 0%, 100%);
        --primary: hsl(0, 84%, 55%);
        --primary-light: hsl(0, 84%, 65%);
        --muted: hsl(0, 0%, 12%);
        --muted-foreground: hsl(0, 0%, 65%);
        --border: hsl(0, 0%, 15%);
        --card: hsl(0, 0%, 8%);
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5A060E;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .title {
        font-size: 2rem;
    }
}

.description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -4px hsla(0, 0%, 0%, 0.1);
}

.section-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.paragraph {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.footer {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-email {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.footer-email:hover {
    opacity: 0.8;
}

.poster-grid {
    display: grid;
    gap: 5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px; /* optional, keeps it from stretching too wide */
    margin: 0 auto;
}

.poster {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px hsla(0, 0%, 0%, 0.1);
}

.poster img {
    width: 250px;
    height: auto;
    display: block;
}

/* Mobile: 1 per row */
@media (max-width: 767px) {
    .poster-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet & up: up to 3 per row */
@media (min-width: 768px) {
    .poster-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.page-title {
    text-align: center;
    width: 100%;
    margin: 0 auto 3rem;
}

.poster a, .no-link {
    text-decoration: none;   /* removes underline */
    color: inherit;          /* prevents blue/purple text */
    display: block;          /* makes full card clickable */
}

.poster a:hover, .no-link:hover {
    text-decoration: none;   /* ensures no underline on hover */
}

.poster-info {
    padding: 1rem 0.75rem 1.25rem;
    text-align: center;
}

.poster-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.4;
}
