/* Meggie's Sourdough Bakery — Custom Styles */

/* Base font sizes */
html {
    font-size: 16px;
}

/* Selection color */
::selection {
    background: #059669;
    color: #FDFBF7;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-img {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav,
    #specials,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        opacity: 0.6;
    }
}

/* Custom focus for mobile menu button */
#menu-btn:active {
    transform: scale(0.95);
}

/* Image loading placeholder */
img {
    background-color: #EDE4CC;
}

/* Subtle texture overlay on cream sections */
.wheat-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23059669' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
