 :root {
     --bg-primary: #1a0f0a;
     --bg-secondary: #2d1810;
     --bg-tertiary: #211510;
     --bg-footer: #140c07;
     --text-primary: #e8d5c4;
     --text-secondary: #b8a090;
     --text-muted: #a88b72;
     --text-accent: #d4a574;
     --accent-primary: #c4822f;
     --accent-hover: #d4943f;
 }

 html,
 body {
     height: 100%;
     margin: 0;
 }

 .font-heading {
     font-family: 'Playfair Display', Georgia, serif;
 }

 .font-body {
     font-family: 'Source Sans 3', sans-serif;
 }

 .hero-bg {
     background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 30%, #3d2217 60%, #1a0f0a 100%);
     position: relative;
 }

 .hero-bg::before {
     content: '';
     position: absolute;
     inset: 0;
     background:
         radial-gradient(ellipse at 20% 80%, rgba(196, 130, 50, 0.15) 0%, transparent 50%),
         radial-gradient(ellipse at 80% 20%, rgba(196, 130, 50, 0.08) 0%, transparent 50%);
 }

 .grain {
     position: absolute;
     inset: 0;
     opacity: 0.03;
     background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
 }

 .star {
     position: absolute;
     width: 2px;
     height: 2px;
     background: #c4822f;
     border-radius: 50%;
 }

 @keyframes twinkle {

     0%,
     100% {
         opacity: 0.2;
     }

     50% {
         opacity: 0.8;
     }
 }

 .star {
     animation: twinkle 3s ease-in-out infinite;
 }

 @keyframes fadeUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .fade-up {
     animation: fadeUp 0.8s ease-out forwards;
     opacity: 0;
 }

 .fade-up-d1 {
     animation-delay: 0.15s;
 }

 .fade-up-d2 {
     animation-delay: 0.3s;
 }

 .fade-up-d3 {
     animation-delay: 0.45s;
 }

 .fade-up-d4 {
     animation-delay: 0.6s;
 }

 .purchase-card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .purchase-card:hover {
     transform: translateY(-4px);
     box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
 }

 .divider-line {
     width: 60px;
     height: 2px;
     background: #c4822f;
     margin: 0 auto;
 }

 .nav-link {
     position: relative;
     color: #d4a574;
     transition: color 0.3s;
 }

 .nav-link::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 1px;
     background: #c4822f;
     transition: width 0.3s;
 }

 .nav-link:hover {
     color: #c4822f;
 }

 .nav-link:hover::after {
     width: 100%;
 }

.scroll-smooth {
    scroll-behavior: smooth;
}

body {
    box-sizing: border-box;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High contrast focus for better visibility */
.nav-link:focus,
.purchase-card:focus {
    outline: 3px solid var(--accent-primary);
    outline-offset: 4px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Recipe Cards */
.recipe-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
