/* ==========================================
   SCHEGGE DI ME - Warm Soft Theme
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --bg-primary: #fdf8f3;
    --bg-secondary: #f5ebe0;
    --text-primary: #3d3228;
    --accent: #b8860b;
    --accent-light: #d4a84b;
    --accent-dark: #8b6508;
    --white: #ffffff;
    --shadow-soft: rgba(61, 50, 40, 0.08);
    --shadow-medium: rgba(61, 50, 40, 0.12);

    --font-body: 'Lora', Georgia, serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

ul, ol {
    list-style: none;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

/* ==========================================
   Container
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   Header & Navigation
   ========================================== */
header {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-soft);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.03;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--accent);
    display: block;
    font-style: italic;
}

.hero .tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero .cta-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.hero .cta-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    color: var(--white);
}

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem auto 0;
}

/* ==========================================
   Poems Grid
   ========================================== */
.poems-section {
    background-color: var(--bg-primary);
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==========================================
   Poem Cards
   ========================================== */
.poem-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.poem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.poem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.poem-card h3 a {
    color: var(--text-primary);
}

.poem-card h3 a:hover {
    color: var(--accent);
}

.poem-card .excerpt {
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.poem-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.poem-card .read-more::after {
    content: '\2192';
    transition: var(--transition);
}

.poem-card .read-more:hover::after {
    transform: translateX(5px);
}

/* ==========================================
   Single Poem Page
   ========================================== */
.poem-page {
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

.poem-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.poem-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.poem-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.poem-meta {
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
}

.poem-content {
    font-size: 1.15rem;
    line-height: 2;
}

.poem-content p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.poem-content .stanza {
    margin-bottom: 2.5rem;
}

.poem-content .verse {
    display: block;
    margin-bottom: 0.3rem;
}

.poem-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-secondary);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.back-link::before {
    content: '\2190';
    transition: var(--transition);
}

.back-link:hover::before {
    transform: translateX(-5px);
}

/* ==========================================
   Newsletter Section
   ========================================== */
.newsletter {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-secondary);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-dark);
}

/* ==========================================
   About Page
   ========================================== */
.about-section {
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.about-text {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.about-text h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.about-text h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem auto 0;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-quote {
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.contact-form h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-form .subtitle {
    text-align: center;
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-primary);
    opacity: 0.85;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 50, 40, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1rem;
        display: none;
        box-shadow: 0 5px 15px var(--shadow-soft);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-bottom: 1px solid rgba(61, 50, 40, 0.1);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1rem;
    }

    nav a::after {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    /* Poems Grid */
    .poems-grid {
        grid-template-columns: 1fr;
    }

    /* Poem Page */
    .poem-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* About & Contact */
    .about-text,
    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .poem-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================
   Enhanced Mobile Styles
   ========================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Safe area padding for notched phones (iPhone X+, etc.) */
@supports (padding: env(safe-area-inset-top)) {
    header {
        padding-top: calc(1rem + env(safe-area-inset-top));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Minimum touch target size for accessibility (44px minimum) */
    a,
    button,
    .nav-toggle,
    input[type="submit"],
    input[type="button"],
    .cta-btn,
    .read-more,
    .back-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Navigation links with proper touch targets */
    nav a {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }

    /* Prevent iOS zoom on input focus (requires 16px minimum) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Better spacing for small screens */
    .hero {
        padding: 3rem 0;
    }

    .hero .tagline {
        padding: 0 1rem;
    }

    .hero .cta-btn {
        padding: 0.875rem 2rem;
        min-height: 48px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Poem cards mobile optimization */
    .poem-card {
        padding: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .poem-card h3 {
        font-size: 1.2rem;
    }

    .poem-card .excerpt {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .poem-card .read-more {
        min-height: 44px;
        padding: 0.5rem 0;
    }

    /* Poem page mobile optimization */
    .poem-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: var(--border-radius);
    }

    .poem-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .poem-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .poem-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .back-link {
        padding: 0.75rem 1.5rem;
        background-color: var(--bg-secondary);
        border-radius: var(--border-radius);
    }

    /* Newsletter form mobile */
    .newsletter {
        padding: 2.5rem 0;
    }

    .newsletter-content {
        padding: 0 0.5rem;
    }

    .newsletter-form {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }

    .newsletter-form input[type="email"] {
        padding: 0.875rem 1rem;
        font-size: 16px;
    }

    .newsletter-form button {
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }

    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px;
    }

    .submit-btn {
        padding: 1rem;
        min-height: 48px;
    }

    /* About page mobile */
    .about-text {
        padding: 1.5rem 1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-quote {
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
    }

    /* Footer mobile spacing */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h4 {
        margin-bottom: 0.75rem;
    }

    .footer-section ul li {
        margin-bottom: 0.75rem;
    }

    .footer-section ul li a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    /* Responsive typography that scales properly */
    html {
        font-size: 14px;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    /* Container tighter padding */
    .container {
        padding: 0 0.75rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: calc(100% - 2rem);
        max-width: 280px;
    }

    /* Section spacing */
    section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    /* Poem card compact */
    .poem-card {
        padding: 1rem;
    }

    .poem-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .poem-card .excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Poem page compact */
    .poem-container {
        padding: 1.25rem 0.75rem;
        margin: 0 0.25rem;
    }

    .poem-header h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .poem-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* Logo smaller */
    .logo {
        font-size: 1.3rem;
    }

    /* Forms compact */
    .contact-form,
    .about-text {
        padding: 1.25rem 0.75rem;
    }

    /* Newsletter compact */
    .newsletter-content h2 {
        font-size: 1.5rem;
    }

    .newsletter p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Poem Navigation - Stack vertically on mobile */
@media (max-width: 768px) {
    .poem-navigation,
    .poem-nav,
    .nav-poems {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .poem-navigation a,
    .poem-nav a,
    .nav-poems a,
    .prev-poem,
    .next-poem {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1rem;
        background-color: var(--bg-secondary);
        border-radius: var(--border-radius);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .poem-navigation a:hover,
    .poem-nav a:hover,
    .nav-poems a:hover {
        background-color: var(--accent);
        color: var(--white);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .poem-card:hover {
        transform: none;
    }

    .hero .cta-btn:hover {
        transform: none;
    }

    .submit-btn:hover {
        transform: none;
    }

    /* Add active states instead */
    .poem-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px var(--shadow-soft);
    }

    .hero .cta-btn:active,
    .submit-btn:active,
    .newsletter-form button:active {
        transform: scale(0.98);
        background-color: var(--accent-dark);
    }

    a:active,
    button:active {
        opacity: 0.8;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
    }

    .poem-container {
        max-width: 90%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-soft: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
    }

    a, button {
        text-decoration: underline;
    }

    .poem-card::before {
        height: 6px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero::before {
        animation: none;
    }
}

/* ==========================================
   Image Styles
   ========================================== */

/* Poem Card Images (index.html) */
.poem-card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 3px 10px var(--shadow-soft);
}

/* Poem Page Images (individual poem pages) */
.poem-image {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 400px;
    margin: 0 auto 2rem auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-soft);
    object-fit: contain;
}

/* About Page Logo/Image */
.about-image {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
    border-radius: var(--border-radius);
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .poem-card-image {
        margin-bottom: 0.75rem;
    }

    .poem-image {
        max-height: 300px;
        margin-bottom: 1.5rem;
    }

    .about-image {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .poem-image {
        max-height: 250px;
        margin-bottom: 1rem;
    }

    .about-image {
        max-width: 150px;
        margin-bottom: 1rem;
    }
}
