/* ============================================================
PROJECT: Baking with Echo (Recipe Template)
DESIGNER: Lavina Logos & Design
LAST UPDATED: July 2026
DESCRIPTION: Clean, functional, and variable-driven layout.
=============================================================== */

/* ==================================================
   1. THE MASTER RESET & VARIABLES
   ================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	}

:root {
    /* Echo Palette */
    --clr-bg: #fffaf0;        /* Floral White / Cream Parchment */
    --clr-primary: #7b219f;   /* Signature Echo Purple */
    --clr-primary-dark: #4a148c;
    --clr-text-dark: #4a4a4a; /* Soft Charcoal */
    --clr-hover: #ffca28;     /* Honey Gold */
    --clr-shadow: rgba(0, 0, 0, 0.2);
    --clr-shadow-soft: rgba(123, 33, 159, 0.15);
    
    /* Typography */
    --font-main: 'Lora', serif;
    --font-heading: 'Cookie', cursive;
    --font-nav: Georgia, serif;
	}

img {
    max-width: 100%;
    display: block;
    height: auto;
	}

/* ========================
   GLOBAL & BODY
   ======================== */
body {
    background-color: var(--clr-bg);
    font-family: var(--font-main);
	font-weight: 300;
    color: var(--clr-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
	}

ul, ol {
    padding-left: 20px;
	}

li {
    margin-bottom: 10px;
	}

hr {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, transparent, var(--clr-primary), transparent);
	margin: 10px 0;
	}

/* ========================
   NAVIGATION
   ======================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background: var(--clr-primary);
    padding: 15px 40px;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 10px var(--clr-shadow);
	}

.header {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%;
	}

.header-img {
	width: 100%; 
	max-width: 500px; 
	height: auto; 
	display: block; 
	}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
	}

.nav-center h1 {
    font-family: var(--font-nav);
    font-size: 2.2rem;
    color: var(--clr-primary); 
    margin: 0;
    font-weight: 900;
    text-shadow: 
        1px 1px 0px var(--clr-bg),        
        -1px -1px 1px var(--clr-primary-dark),      
        2px 2px 5px rgba(0,0,0,0.3);
	}


.nav-links {
    display: inline-flex;
    gap: 20px; 
    list-style: none;
    margin: 0; 
	padding: 0;
	white-space: nowrap; 
	align-items: center; 
	vertical-align: middle; 
	}

.nav-links a, .nav-links li a {
    color: var(--clr-bg);        
    text-decoration: none; 
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
	}

.nav-links a:hover {
	transform: translateY(-3px); 
	color: var(--clr-hover);
	}

.nav-spacer {
    font-size: 0.6rem;
    color: var(--clr-hover) !important;
    opacity: 0.9;
	display: inline-flex; 
	align-items: center; 
	vertical-align: middle; 
	}
	
.hamburger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    touch-action: manipulation;
    background: transparent; 
    border: none;
    padding: 0;             
	}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffca28; /* Fixed Honey Gold directly */
    transition: all 0.3s ease;
	}

/* ========================
   CONTENT CONTAINER
   ======================== */
.content-container {
    max-width: 800px; 
    margin: 40px auto; 
    background-color: var(--clr-bg); 
    border: 2px solid var(--clr-primary);
    padding: 40px;
    box-shadow: 0 15px 35px var(--clr-shadow), 
                0 5px 15px rgba(0, 0, 0, 0.1);
	}

.recipe-header {
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
	}
	
.intro-box {
    margin-bottom: 30px;
    padding-bottom: 20px;
	}
	
.badge-letter {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    float: left;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin-right: 15px;
    margin-bottom: 5px;
    display: inline-block;
    text-align: center;
    background-color: #fff;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px var(--clr-shadow-soft);
}

.intro-box h1 {
    font-family: var(--font-heading);
    font-size: 4.0rem;
    font-weight: 400; 
    color: var(--clr-text-dark);
    margin: 0;
	}

.intro-box p {
    line-height: 1.6; 
    margin-bottom: 1rem; 
	}

.intro-box p:last-of-type {
    margin-bottom: 0; 
	}

.intro-box .signature {
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    font-weight: 400; 
    color: var(--clr-text-dark); 
    text-align: right; 
    margin-bottom: 20px; 
	}

.intro-box .signature a {
    text-decoration: none; 
	}
	
.intro-box::after {
	content:"";
	display: table; 
	clear: both; 
}

.index-header {
    text-align: center;
    padding: 40px 50px;
	}

.index-header h1  {
    font-family: var(--font-heading);
    font-size: 5.6rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 30px;
    text-align: center; 
    color: var(--clr-text-dark);
    line-height: 1.2;
	}

.index-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 30px; 
    text-align: center; 
    color: var(--clr-text-dark);
    line-height: 1.2;
	}

.recipe-title h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--clr-text-dark);
    line-height: 1.2;
	}

.recipe-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--clr-text-dark);
	}

.recipe-meta {
    font-size: 0.9rem;
    color: var(--clr-text-dark);
    margin-top: 8px;
    display: flex;
    gap: 20px;
    font-style: italic;
	}

.print-btn {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-main);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 2px 2px 0px var(--clr-primary-dark);
    transition: all 0.2s ease;
	}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--clr-hover);
	}

/* ==================================================
   DESKTOP GRID & CARD BASICS (FIXED FOR STACKING)
   ================================================== */
	.recipe-index-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 2rem;
		max-width: 900px;
		margin: 0 auto;
		padding: 1.5rem;
		}

	a.recipe-card, div.recipe-card {
		text-decoration: none;
		color: inherit;
		background-color: #ffffff;
		border-top: 4px solid var(--clr-primary); 
		box-shadow: 0 2px 5px var(--clr-shadow);
		padding: 25px;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		 transition: transform 0.3s ease, box-shadow 0.3s ease;
		}

	.recipe-card p {
		margin-bottom: 20px;
		}
		
	.recipe-card:hover,
	div.recipe-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        border-color: var(--clr-primary);
    }


	h3 {
		color: var(--clr-primary);
		font-size: 1.4rem;
		border-bottom: 1px solid var(--clr-primary);
		padding-bottom: 5px;
		margin-top: 0;
		margin-bottom: 10px; 
		text-transform: uppercase;
		letter-spacing: 1px;
		}

	.recipe-grid {
		display: flex; 
		gap: 20px; 
		align-items: flex-start; 
		}

	.recipe-grid h3 {
		margin-bottom: 15px; 
		}

	.recipe-grid h4 {
		margin-bottom: 12px; 
		line-height: 1.6;
		font-style: italic; 
		}

	.ingredients, .instructions {
		flex:1;
		}

	.ingredients li, 
	.instructions li  {
		margin-bottom: 12px; 
		line-height: 1.6;
		}

	.card-link {
		margin-top: auto; /* Pushes link to the card footer */
		font-family: var(--font-heading);
		font-size: 1.8rem;
		color: var(--clr-primary-dark);
		text-align: right;
		text-decoration: none !important;
		}

	.recipe-card.pending {
		pointer-events: none;
		opacity: 0.7;
		filter: grayscale(50%); 
		}

	.back-to-index {
		color: var(--clr-primary);
		font-weight: bold;
		text-decoration: none;
		font-family: var(--font-main);
		font-size: 1.1rem;
		transition: 0.3s;
		}

	.back-to-index:hover {
		color: var(--clr-primary-dark);
		}

	.back-link-container {
		margin-top: 40px;
		text-align: center;
		padding-top: 20px;
	}

/* ========================
   HIGH ALTITUDE DIRECTIONS
   ======================== */
	.high-altitude-directions {
		text-align: center;
		margin: 30px 0;
		padding: 20px;
		}

	.high-altitude-directions p {
		font-style: italic;
		font-size: 1.05rem;
		margin-top: 20px;
		text-decoration: none; 
		text-align: center; 
		}

	.high-altitude-directions a {
		color: var(--clr-text-dark);
		text-decoration: none;
		transition: color 0.3s ease;
		text-align: center; 
		}

	.high-altitude-directions a:hover,
	.high-altitude-directions a:focus {
		color: var(--clr-primary-dark);
		}

	.recipe-card.alt-recipe-card {
		padding: 40px 20px;
		}

	.recipe-card.alt-recipe-card h1 {
		font-family: var(--font-heading); 
		font-size: 2.8rem; 
		font-weight: 200; 
		color: var(--clr-text-dark); 
		text-align: center; 
		letter-spacing: 2px; 
		margin-bottom: 5px;
		}

	.recipe-card.alt-recipe-card p {
		font-style: italic;
		text-align: center;
		color: var(--clr-text-dark);
		margin-bottom: 40px;
		}

	.guide-section {
		padding: 20px 10px; 
		scroll-margin-top: 40px; 
		}
		
	.guide-section h3 {	
		font-family: var(--font-main); 
		font-size: 1.5rem;
		color: var(--clr-text-dark);
		margin-bottom: 5px;
		padding-top:30px;
		}
		
	.alt-list ul {
		list-style-type: none; 
		padding: 0;
		}
			
	.alt-list li {
		margin-bottom: 20px;
		font-size: 1.1rem;
		}
			
	.return-link {
		color: var(--clr-primary);
		text-decoration: none;
		font-family: var(--font-main);
		font-size: 1.1rem;
		font-weight: bold;
		transition: color 0.3s ease;
	}

	.return-link:hover,
	.return-link:focus {
		color: var(--clr-primary-dark);
}

/* ========================
   FOOTER (Screen Version)
   ======================== */
	footer {
		background: transparent;
		padding: 40px 10px; 
		text-align: center; 
		color: var(--clr-primary);
		letter-spacing: 1px; 
		text-transform: uppercase;
		font-size: 0.85rem;
		line-height: 1.5;
	}

	footer a {
		text-decoration: none; 
		color: var(--clr-primary);
		display: block;        
		margin-bottom: 5px;  
	}

	footer a:hover {
		color: var(--clr-hover);
		text-shadow: 0 1px 1px var(--clr-shadow-soft);
		transform: translateY(-3px);
	}
	
	.footer-copy {
		display: inline-block; 
		text-align: center; 
	}

	#current-year {
		font-weight: bold; 
		color: var(--clr-primary);
}

/* ===========================================
   MOBILE RESPONSIVENESS (FIXED REPEAT SYNTAX)
   ============================================ */
@media screen and (max-width: 768px) {
     .navbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }
	
    .nav-center {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
	
	.hamburger {
        display: flex; 
        position: absolute;
        left: 15px;
        top: 15px;
        z-index: 1000; /* Forces it over your header image */
    }
	
    .header { flex-direction: column; }
	
    .nav-links {
        display: none;
        flex-direction: column;
        width: 90%;
        max-width: 320px;
        margin: 60px auto 20px auto;
        padding: 20px;
		background-color: var(--clr-bg); 
		text-align: center; 
		border: 1px solid var(--clr-primary); 
		box-shadow: 5px 5px 0px rgba(255, 250, 240, 0.5);
    }

    .nav-links.active {
        display: flex;
    }
	
    .nav-links a {
        display: block;
        width: 220px;
        margin: 5px auto;
        padding: 12px 20px;
        text-align: center;
        color: var(--clr-primary);
        background: var(--clr-bg);
        border: 1px solid var(--clr-primary);
        box-shadow: 4px 4px 0px var(--clr-primary-dark);
    }
	
	.nav-links .nav-spacer {
        display: none !important; 
    }
	
	.content-container {
        width: 100%;
        padding: 20px;
        margin: 20px auto;
    }
		
    .recipe-title h1 {
        font-family: var(--font-heading);
        font-size: 2.8rem;
        color: var(--clr-text-dark);
        line-height: 1.2;
    }

    .recipe-title h2 {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: var(--clr-text-dark);
        line-height: 1.2;
    }
		
    .print-btn {
        display: block; 
        width: 80%; 
        max-width: 280px; 
        margin: 15px auto; 
        text-align: center;
    }
		
    .recipe-grid { 
		display: block; 
	}
	
    .recipe-header { 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        gap: 15px; 
    }
	
    .recipe-index-grid {
        display: grid; 
        grid-template-columns: 1fr; 
		justify-content: center; 
        gap: 20px;
        padding: 0 15px; 
    }

    .recipe-card {
        width: 100%;
        margin: 0 auto;
        padding: 20px; 
        box-sizing: border-box;
    }
			
    .recipe-card h3 {
        font-size: 1.35rem; 
    }
	
	.recipe-card.alt-recipe-card h1 {
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    font-weight: 200; 
    color: var(--clr-text-dark); 
    text-align: center; 
    letter-spacing: 2px; 
    margin-bottom: 5px;
	}

    .back-home {
        display: block;
        text-align: center;
        margin-top: 40px;
        color: var(--clr-primary);
        text-decoration: none;
        font-size: 1.1rem;
    }
		
    .index-header h1 {
        font-size: 2.8rem;
		text-align: center; 
    }
}
	
@media(hover:hover) and (pointer:fine) {
    a.recipe-card:hover,
    div.recipe-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px var(--clr-shadow);
    }
}

/* ============================================================
   PRINT LOGIC (Minimalist & Ink-Friendly)
   ============================================================ */
@media print {
    .navbar, .print-btn, .back-link-container, .hamburger {
        display: none !important;
    }
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
    }
    .content-container {
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    footer {
        background: transparent !important;
        border-top: 1px solid #000 !important;
        margin-top: 30px;
        padding: 10px 0;
        display: block !important;
        text-transform: uppercase; 
    }
	
    .site-footer a {
        text-decoration: none; 
    }
}