/*  
Theme Name: marevo theme
Theme URI:
Description: marevo theme
Version: 1.0
Author: Lera
Author URI: 
*/

/*—————————————————————————————————————————————————————————————————*/

/* ———————————————————————————— template notes ***********************
#wrap 					*all content

header 					h1, p
						blog title (h1), blog description (p)
			
nav						ul
						categories, pages
aside					ul [inc dynamicSidebars & widgets if in use]
						sidbar with search, links + additional 
						(postlists etc, see extra ids/classes)
			
#content				*all page content (+ classes assigned by WP)
						article > post on category page
						article h3 > post title (+ link) on category page
						article.pagepost > post on page
						article.pagepost h2 > post title on page
			
footer					ul

*** extras ***

form#searchform			searchbox
input#searchsubmit		submit button, searchbox

*********************** END template notes ———————————————————————————— */

/* ———————————————————————————— Colours ***********************
#151515					text colour

color: #151515					 
opacity: 0.6;           links hover
text-decoration: underline;

#f0ebe2					background
#d6cdbb                 border
*/


/* thanks, Eric
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
    margin: 0;
    padding: 0;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* Box sizing rules */
*, *::before, *::after {
  box-sizing: border-box;
}
/* blockquote */
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
img {
  display: block;
}


/*
GENERAL 
—————————————————————————————————————————————————————————————————*/

/*all links*/
a, a:link, a:visited {
	color: #151515;
	text-decoration: underline;
	transition: transform 0.3s ease;
}

a:hover, a:focus-visible, a:active {
	opacity: 0.6;
	cursor: pointer;
}


/*drawing an unerline while hoovering over a link on site nav*/
nav.sitenav a, nav.sitenav a:link, nav.sitenav a:visited, nav.footnav a, nav.footnav a:link, nav.footnav a:visited {
    position: relative;
    text-decoration: none;
    color: #151515;
	display: inline-block;
	font-weight: normal;
}

/* Create the underline element */
nav.sitenav a::after, nav.footnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.6px;
    background: #151515;
}

/* Animation on interaction */
nav.sitenav a:hover, 
nav.sitenav a:focus-visible, 
nav.sitenav a:active, nav.footnav a:hover, 
nav.footnav a:focus-visible, 
nav.footnav a:active {
    text-decoration: none;  /* Keep underline removed */
    color: #151515;    /* Prevent colour on hover */
}

nav.sitenav a:hover::after, nav.sitenav a:focus-visible::after, nav.sitenav a:active::after, nav.footnav a:hover::after, nav.footnav a:focus-visible::after, nav.footnav a:active::after {
    animation: drawLine 0.4s ease forwards;
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
/* end drawing an unerline while hoovering over a link*/

input, textarea {
	padding: 2px;
	border: 1px solid #333;
}

.clear {
	clear: both;
}

/*————————————————————————————————————————————————————————————————— 
Typography
—————————————————————————————————————————————————————————————————*/

/*————————————————————————————————————————————————————————————————— 
BODY
—————————————————————————————————————————————————————————————————*/
body {
	background: #f0ebe2;
	font-family: 'Gentium Book Plus', 'Gentium', 'Baskerville', 'Times New Roman', 'Droid Serif', 'Times', serif;
	color: #151515;
	margin: auto; /*centered*/
	font-size: 1.2rem;
	line-height: 1.65;
}

main {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

p {
	margin-bottom: 1.8rem;
}

li {
	margin-bottom: 1rem;
}

ul, ol {
	margin-bottom: 2rem;
}

p + h2, p + h3, p + h4 {
	margin-top: 0.7rem;
}

img {
	margin-bottom: 2rem;
}

p + img {
	margin-top: 0.2rem;
}

h2 +img, h3 +img, h4 +img {
	margin-top: 1rem;
}

/*lists styling*/
li:last-of-type {
	margin-bottom: 0;
}

main ul {
    list-style: none;
    padding-left: 2em;
}

main ul li {
    position: relative;
}

main ul li::before {
    content: "";
    position: absolute;
    left: -1.5em;
    top: 0.3em; 
    width: 1em;
    height: 1em;
    background-image: url('images/star.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

main ol {
    list-style-type: lower-roman;
    padding-left: 2em; 
}

main ol li::marker {
    font-weight: bold;
}

main ul li::before {
    content: "";
    position: absolute;
    left: -1.5em;
}


blockquote, q {
	quotes: none;
	padding: 1em 12%;
	margin: 0 0 2em 0;	
	font-weight: 300;
	font-size: 1.2em;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

blockquote:before {
	content: '\201C ';
	font-family: serif;
	float: left;
	margin: -.4em 0 0 -.6em;
	font-size: 3em;
}

blockquote p {
	margin: 0;
}

cite {
	display: block;
	/*margin: 0 0 2em 0;*/
	/*padding: 0 1em 1em;*/
	text-align: right;
	font-style: italic;
}

code { /*for marking up code snippets inline or in blocks*/
	margin: 1.5em 0;
	white-space: pre;
	font: 1em 'andale mono', 'monotype.com', 'lucida console', monospace;
	line-height: 1.5;
}

abbr, acronym {
	border-bottom: 1px dotted #151515;
	font-weight: 600;
}

address {
	margin-top: 1.5em;
	font-style: italic;
}

pre {
	margin: 1.5em 0;
	white-space: pre;
}

strong {
	font-weight: 600;
}

em {
	font-style: italic;
	color: #151515;
	font-weight: 600;
}

del {
	text-decoration: line-through;
	color: #151515;
	font-weight: 600;
}

/*—————————————————————————————————————————————————————————————————
HEADINGS 
—*/

h1, h2, h3, h4, h5, h6 {
	display: block;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	text-align: center;
	margin-bottom: 1rem;
	text-wrap: balance;
	/*text-transform: lowercase;*/
}

h1 {
	font-size: 2.5rem;
	line-height: 1.6;
	font-weight: 600;
	margin-bottom: 0rem;
}

h2 {
	font-size: 2rem;
	line-height: 1.5;
	font-weight: 600;
}

@media (min-width: 1020px) { /*at the same 1020px widtht as site logo*/
	h2 {
		font-size: 2.5rem;
		margin-bottom: 2rem;
	}
}

h3 {
	font-size: 1.6rem;
	font-weight: 500;
}

h4 {
	font-size: 1.4em;
	font-weight: 500;
}

h5 {
	font-size: 1.3em;
	font-weight: 500;
}

h6 {
	font-size: 1.2em;
	font-weight: 500;
}


/* Logo styles - mobile first ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link:hover {
	opacity: 1; /*bc all ther links do opacity 0.6 on hover*/
}

.site-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* logo with a higher layer then header */
.logo-link,
.site-logo {
  position: relative;
  z-index: 1102; /* higher than overlays */
}


/* Desktop styles */
@media (min-width: 1020px) { /*at the same 1020px widtht as site logo*/
    .site-logo {
        height: 60px;
        max-width: 300px;
    }
}

/*—————————————————————————————————————————————————————————————————
HEADER 
—————*/

header {
	position: relative;
	border-bottom: none;
	margin-bottom: 2rem;
	padding-bottom: 1.3rem;
}

/*Custom border for the header*/
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background-image: url('images/border-mobile.svg'); /* Horizontal version */
	transform: rotate(-180deg);
    background-repeat: repeat-x;
    background-size: auto 0.5rem; /* Auto width, fixed height */
    background-position: center bottom;
}


@media (min-width: 800px) {
	header {
		margin-bottom: 3rem;
	}
}

header h1 {
	margin-bottom: 0rem;
	display: block;
	line-height: 0;
}

.header-content {
	width: 90%;
	max-width: 1100px;
	margin: auto; /*centered*/
	/*padding: 1.5rem 0;*/
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
}

/* Search toggle ————————————————————————————————————————————————————————————————— */
.header-search-wrapper {
    position: relative;
	/*background-color: #ffb4f7;*/
}

/* Hide the checkbox */
.search-checkbox {
    display: none;
}

/* Style the search icon label */
.search-toggle-label {
	margin: 0.5rem;
    display: flex; /* to centre icon inside label */
    align-items: center; /* vertical centering*/
    justify-content: right; /* horizontal centering inside the zone */
    cursor: pointer;
    transition: opacity 0.3s ease;
    height: 100%; /* fill container height centering */
	position: relative;
	/* z-index: 1001; higher than the overlay's 999 */
	z-index: 1002;

}

.search-toggle-label:hover {
    opacity: 0.6;
}

.search-toggle-label img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Search dropdown _______________________________________________________________________*/

/* Search dropdown full-screen overlay */
.header-search-dropdown {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(240, 235, 226, 0.97); /* semi-transparent overlay */
	z-index: 1000; /*< 1101*/
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	padding: 2rem; /* space for search form */
	box-sizing: border-box;
}

/* Show full-screen search when checked */
.search-checkbox:checked + .search-toggle-label + .header-search-dropdown {
	display: block;
	opacity: 1;
}

/* Centre the search form vertically and horizontally */
.header-search-dropdown form {
	position: absolute;
	top: 50%;
	left: 57%; /*to center horizontally*/
	transform: translate(-50%, -50%);
	width: 80%;
	max-width: 500px;
}

@media (min-width: 700px) {
	.header-search-dropdown form {
		left: 56%; 
	}
}

@media (min-width: 950px) {
	.header-search-dropdown form {
		left: 55%; 
	}
}

@media (min-width: 1060px) {
	.header-search-dropdown form {
		left: 54%; 
	}
}

/* Search—————————————————————————————————————————————————————— */

form#searchform {
	display: block;
}

form#searchform	input {
	display: block;
	width: 80%;
	padding: 6px;
	margin-bottom: 1rem;
	border-radius: 4px;
	background: none;
	border: 1px solid #151515;
	color: #151515;
	background: rgba(255,255,255,.6); /*transparent white*/
	font-family: 'Gentium Book Plus', 'Gentium', 'Baskerville', 'Times New Roman', 'Droid Serif', 'Times', serif;
	color: #151515;
	font-size: 1.2rem;
}

form#searchform	input:hover,form#searchform	input:active, form#searchform	input:focus-visible {
	border-color: #151515;
	background: rgba(255,255,255,1); /*not transparent white*/
}

/*button styling*/
form#searchform input#searchsubmit {
	display: block;
	width: 80%;
	padding: 6px;
	border: none;
	background: transparent;
	opacity: 1;
	color: rgba(21, 21, 21, 1);
	transition: opacity 0.3s ease;
	cursor: pointer;
	text-decoration: none;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
    text-align: center;
}
form#searchform input#searchsubmit:hover, form#searchform input#searchsubmit:active, form#searchform input#searchsubmit:focus-visible {
	opacity: 0.6;
}


/*—————————————————————————————————————————————————————————————————
NAV 
—————————————————————————————————————————————————————————————————*/

nav.sitenav {
	margin: 1.6rem 0 0 0;
}

/* ———————————————————————— menu toggle ———————————————————————— */
/* hide checkbox */

nav #menu-toggle { /*checkbox*/
	display: none;
}
/* label as toggle */

/* Menu toggle label */
nav .toggle {
	font-size: 1.2rem;
	font-weight: 500 !important;
	color: #151515;
	display: inline-block;
	width: auto;
	margin: 0.3rem 0 0 0;
	padding: 0.2rem 0.5rem;
	cursor: pointer;
	position: relative;
	z-index: 1002; /* keeps toggle above menu */
	transition: opacity 0.3s ease;
}

@media (min-width: 1025px) { /*because logo is getting bigger at 1025px, so i am making menu move lower to be centered */
	nav .toggle {
		margin-top: 0.8rem;
	}
}

/* Triangle icon */
nav .toggle:before {
	content: ' \25B2 ';
	font-weight: 600;
	margin: .4em .4em 0 0;
	font-size: .9em;
	line-height: 1;
	color: #151515;
	display: block;
	float: left;
	transform: rotate(90deg); /* point right initially */
	transition: transform 0.25s ease-out;
}

nav .toggle:hover {
	opacity: 0.6;
}

/* Rotate triangle when checked */
nav #menu-toggle:checked + .toggle::before {
	transform: rotate(180deg); /* point down */
}

/* Full-screen menu overlay */
header nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(240, 235, 226, 0.97); /* semi-transparent overlay */
	z-index: 1000; /*< 1101*/
	text-align: left;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

/* Show overlay when menu is checked */
nav #menu-toggle:checked + .toggle + ul {
	display: block;
	opacity: 1;
}

/* Inner container to centre links vertically */
header nav ul li {
	position: relative;
	top: 35%; /* move halfway down */
	margin: 1.5rem 0;
	padding-left: 8.5vw; /* left alignment */
}

header nav ul li a {
	font-size: 1.5rem;
	font-weight: 500;
}

.header-content {
	width: 90%;
	max-width: 1100px;
	margin: auto;
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
}

/* Keep mobile menu toggle visible */
nav .toggle {
	display: block;
}

/*
MEDIA QUERIES 
—————————————————————————————————————————————————————————————————*/

/*HEADER TO THE LEFT*/
@media (min-width: 1300px) {

	/*#main {
		margin-top: 2.7rem;
	}*/

	/*to be on one line with a site logo*/
	#main {
		margin-top: 6.65rem;
	}

	/*to allow space for h2 on a home page*/
	#main.home-page {
		margin-top: 4.4rem;
	}

	/*to be on one line with header ul + space for decorative illustrations*/
	.nature-spirits-page h2, .mischievous-spirits-page h2, .household-spirits-page h2 {
		margin-bottom: 4.8rem;
	}

	/* Menu toggle label */

    header {
		padding-top: 2rem;
		margin-bottom: 0;
		padding-bottom: 0;
        position: fixed;
        left: 0;
        top: 0;
        width: 250px; 
        height: 100vh;
        background: #f0ebe2;
        /*border-right: 1px solid #151515;*/
		border-bottom: none;
        overflow-y: auto; /* Allow scrolling if content is too tall */
    }
    
    /* Stack header content vertically */
    .header-content {
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        grid-template-columns: none; /* Remove grid */
        gap: 2rem;
    }
    
    /* Logo at top */
    header h1 {
        order: 1;
        margin-bottom: 1rem;
        line-height: normal; /* Reset line-height */
    }
    
    .site-logo {
        height: 80px;
        max-width: 180px;
    }
    
    /* Navigation in middle */
    nav.sitenav {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    nav .toggle {
        display: none;
    }

    header nav ul {
        display: block !important;
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        opacity: 1;
        padding: 0;
    }
    
    header nav ul li {
        position: static;
        top: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    header nav ul li a {
        display: block;
		font-size: 1.3rem;
		font-weight: 500 !important;
        padding: 1rem 0;
		margin: 0 1.5rem;
        text-align: left;
        color: #151515;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    

    
    /* Search at bottom */
    .header-search-wrapper {
        order: 3;
        width: 100%;
        margin-top: auto; /* Push to bottom */
        padding-left: 1.5rem;
    }
    
    .search-toggle-label {
        justify-content: flex-start;
        margin: 0;
    }
    
    /* Push main content to the right!!!!!!!!! */
    body {
        margin-left: 250px; /* as a sidebar width */
    }
    
    /* Adjust main and wrap */
    #wrap {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 3rem;
    }
    
    main {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Fix for full-width spirit pages */
    body.page-template-page-43,
    body.page-template-page-45,
    body.page-template-page-47 {
        margin-left: 250px;
    }
    
    /* Ensure hero sections don't go under sidebar */
    .hero-section {
        margin-left: 0;
        width: 100%;
    }
}



/* Search dropdown to the left side____________________________________________________ */
@media (min-width: 1300px) {
    /* Search dropdown appears below icon in sidebar */
    .header-search-dropdown {
        display: none;
        position: absolute;
        top: 100%; /* Position below the icon */
        left: 0;
        right: 0;
        width: 95%;
        height: auto;
        background: #f0ebe2;
        padding: 0.5rem 1rem 1rem 1rem;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    /* Show dropdown when checkbox is checked */
    .search-checkbox:checked + .search-toggle-label + .header-search-dropdown {
        display: block;
        opacity: 1;
    }
    
    /* Search form in sidebar - vertical layout */
    .header-search-dropdown form {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
    }
    
    /* Search input and button stack vertically */
    form#searchform {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
		margin: 0 0.5rem;
    }
    
    form#searchform input#s {
        width: 100%;
        padding: 10px;
        margin: 0;
    }
    
    form#searchform input#searchsubmit { /*button styling*/
        width: 100%;
        padding: 0.5rem 0rem 0.5rem 0.1rem ;
        margin: 0;
		font-size: 1.2rem;
		font-weight: 500;
		text-align: left;
	}
}


/*  transition animation when switching layouts */
@media (min-width: 1300px) {
    body, header, #wrap {
        transition: all 0.3s ease;
    }
}


/*Custom border for the header*/
@media (min-width: 1300px) {
    header {
        padding-bottom: 0;
    }
    
    header::after {
        width: 0.5rem;
        height: 100vh;
        bottom: auto;
        right: 0;
        top: 0;
        left: auto;
        background-image: url('images/border.svg'); /* Vertical version */
        background-repeat: repeat-y;
		transform: none;
        background-size: 0.5rem auto;
        background-position: right center;
    }
    
    body {
        margin-left: 250px; /* Account for border width */
    }
}


/*—————————————————————————————————————————————————————————————————
SIDEBAR [aside used here as sidebar / secondary content] 
—————————————————————————————————————————————————————————————————*/

aside {
	margin: 3em 10vw;
}

aside ul {
	font-size: .9em;
	margin: 0 0 1em 0;
	list-style: none;
}

aside ul li {
	margin: 0 0 .3em 0;
}



/*
ALL STYLES
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/

img {
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	margin: 1rem 0;
}





/*
HOME PAGE CONTENT
—————————————————————————————————————————————————————————————————*/

.hero-image img {
	display: block;
	width: 100%;       /* let it expand inside its container */
	max-width: 700px;  /* don’t go over this */
	height: auto;      /* keep aspect ratio */
	margin: 0 auto;    
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

/* Individual card styling */
.hero-button {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 300px;
}

/* Image container */
.card-image {
    max-width: 400px;
	width: 100%;
	height: auto;
	margin: auto;
	display: block;
    /*overflow: hidden;*/
}

.card-image img {
    max-width: 400px;
	width: 100%;
	height: auto;
	margin: auto;
	display: block;
}


/* Text container */
.card-text {
	padding: 1rem;
}

.card-text a {
	text-decoration: none;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
    text-align: center;
}

.card-text span {
    display: block;
}


/* POSTS ————————————————————————————————————————————————————————————————————————————————————————————————————————*/

.post-main-grid img, .post-left-grid img, .post-right-grid img {
	max-width: 400px; 
	height: auto;
	margin: auto;
	margin-bottom: 2rem;
}

.pic-right-float img, .pic-left-float img {
	max-width: 500px; 
	height: auto;
	margin: auto;
	margin-bottom: 2rem;
}

@media (min-width: 1050px) {

	.post-main-grid h3, .post-left-grid h3, .text-left-float h3, .text-right-float h3 {
		text-align: left;
	}

	.post-main-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
		margin-bottom: 7rem;
	}

	.post-main-grid p:last-of-type, .post-left-grid p:last-of-type {
		margin-bottom: 0rem;
	}


	.post-left-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
		margin-bottom: 7rem;
	}

	.post-main-grid figure {
		grid-column: 2;
		grid-row: 1;
		margin: 0 auto;
	}

	.post-main-grid img, .post-left-grid img {
		max-width: 500px; 
		margin-bottom: 0;
	}

	.pic-right-float img, .pic-left-float img {
		margin-bottom: 0;
	}

	.post-left-grid figure {
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto;
	}

	.pic-right-float {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 7rem;
	}
	
	.pic-left-float {
		display: flex;
		justify-content: flex-start;
		margin-bottom: 7rem;
	}

	.skinny-text {
		margin-bottom: 7rem;
	}

	.text-left-float, .text-right-float {
		margin-bottom: 7rem;
	}

	.text-left-float p + h3, .text-right-float p + h3, .skinny-text p + h3 {
		margin-top: 7rem;
	}

}

@media (min-width: 1400px) {
	.post-main-grid { /*Because figure already has a margin-bottom*/
		padding-left: 14rem;
	}

	.post-left-grid {
		padding-right: 14rem;
	}

	.skinny-text {
		margin: 0 auto;
		margin-left: 14rem;
		margin-right: 14rem;
		margin-bottom: 7rem;
	}

	.text-left-float {
		display: block;
		margin-right: 14rem; 
		margin-bottom: 7rem;
	}

	.text-right-float {
		display: block;
		margin-left: 14rem; 
		margin-bottom: 7rem;
	}
}


/* STYLES FOR ALL SPIRIT PAGES ——————————————————————————————————————————————————————————————————————————————————————————————*/
.spirit-container {
	margin: 0 auto;
}

.spirit-grid {
    display: grid;
    grid-template-columns: 1fr;
	margin: 0 auto;
    margin-bottom: 2rem;
	max-width: 600px;
}

.nature-post, .mischievous-post, .household-post {
    max-width: 400px; 
    margin: 0 auto;
    width: 100%;
	display: flex;
    flex-direction: column;
    height: 100%;
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
	margin-bottom: 2.5rem; /*space under posts*/
}

@media (min-width: 800px) {
	.spirit-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
		max-width: 100%;
	}
}

@media (min-width: 1100px) {

	.spirit-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
		max-width: 100%;
	}

	.nature-post, .mischievous-post, .household-post {
		max-width: 350px; 
	}
}

/*read more link styling*/
.spirit-grid a.read-more, .spirit-grid a.read-more:link, .spirit-grid a.read-more:visited {
	margin-top: auto; /* This pushes it to the bottom */
	padding-top: 1rem;
	display: block;
	text-decoration: none;
	text-align: center;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	transition: transform 0.3s ease;
}

.spirit-grid a.read-more:hover, .spirit-grid a.read-more:active, .spirit-grid a.read-more:focus-visible {
	opacity: 0.6;
}

/*h3 aka post title link styling*/
.spirit-grid h3 a, .spirit-grid h3 a:link, .spirit-grid h3 a:visited {
	text-decoration: none;
}

h3.post-title {
	font-size: 1.6rem;
	font-weight: 500;
	margin-bottom: 0.2rem; /* Add this - adjust value as needed */
}

.spirit-grid .post-image {
    margin-top: 0;
}


/*date styling*/
.post-meta {
	margin-top: -1rem;
	font-style: italic;
}


/* Fixed decorations____________________________________________________________________________________________ */
.fixed-flower-1, .fixed-flower-2, .fixed-flower-3, .item-1, .item-2, .item-3, .scary-1, .scary-2, .scary-3 {
	display: none;
}


@media (min-width: 1300px) {
	.fixed-flower-1, .fixed-flower-2, .fixed-flower-3, .item-1, .item-2, .item-3, .scary-1, .scary-2, .scary-3 {
		display: block;
	}

	.fixed-flower-1, .fixed-flower-2, .item-1, .item-2, .scary-1, .scary-2 {
		position: absolute;
		left: 35vw; /*header is 250px*/
		top: 15%; /* Vertically */
		transform: translateY(-50%);
		pointer-events: none; /* Allow clicking through it */
	}

	.fixed-flower-2, .item-2, .scary-2 {
		left: 30vw;
		top: 15%; /* Vertically */
	}

	.fixed-flower-1 {
		left: 37vw;
	}
	
	.fixed-flower-2 {
		left: 31vw;
	}

	.fixed-flower-3, .item-3, .scary-3 {
		position: absolute;
		top: 15%;
		right: 19vw;
		transform: translateY(-50%);
		pointer-events: none;
	}

	.scary-3 {
		position: absolute;
		top: 14%;
	}

	.fixed-flower-1 img, .fixed-flower-2 img, .fixed-flower-3 img, .item-1 img, .item-2 img, .item-3 img, .scary-1 img, .scary-2 img, .scary-3 img {
		width: 100px; 
		height: auto;
		opacity: 1;
		animation: gentleFloat 9s ease-in-out infinite;
	}

	.fixed-flower-2 img {
		width: 90px
	}

	.item-3 img {
		width: 100px; 
	}

	.item-1 img {
		width: 120px; 
	}

	.scary-2 img {
		width: 60px;
	}

	.fixed-flower-2 img, .item-2 img, .scary-1 img, .scary-2 img {
		animation: gentleFloat 10s ease-in-out infinite;
		animation-delay: 0.3s;
	}

	.fixed-flower-3 img, .item-3 img, .scary-3 img {
		animation: gentleFloat 11s ease-in-out infinite;
		animation-delay: 0.3s;
	}

	@keyframes gentleFloat {
		0%, 100% {
			transform: translateY(0) rotate(0deg);
		}
		33% {
			transform: translateY(-8px) rotate(2deg);
		}
		66% {
			transform: translateY(4px) rotate(-2deg);
		}
	}
}



/* ———————————————————————————— comments section ———————————————————————————— */

.comments-top-border {
	border-top: 1px solid #151515;
	margin-top: 2rem;
}

section#comments {
    max-width: 700px;   /* or whatever width you want */
    margin: 2rem auto;  /* centers horizontally */
}

/* comment form */
section form#commentform {
	width: 300px;
	margin: 0 auto;
}

section form#commentform textarea {
	width: 300px;
}

section form#commentform input#submit { /*post comment button*/
	width: 300px;
	border: none;
	background: none;
	color: #151515;
	cursor: pointer;
	text-decoration: none;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
    text-align: center;
	padding-bottom: 2rem;
	border-radius: 0;
}


/* comments */
section cite, section cite + span {
	text-align: left;
	font-size: 1.2em;
	display: inline-block;
	color: #999;
}
.commentmetadata {
	color: #999;
	font-size: .9em;
}
section .comment-body {
	padding: 1ch;
	margin: 0 0 2ch 0;
	border-bottom: 1px dashed #D8D8C2;
}
section img.avatar {
	display: block;
	width: 64px;
	height: 64px;
	float: left;
	margin: 0 16px 8px 0;
}
section .comment-body p {
	clear: both;
	margin: 1ch 0;
	font-size: 1.2em;
} 


@media (min-width: 500px) {

	/* comment form */
	section form#commentform {
		width: 400px;
		margin: 0 auto;
	}

	section form#commentform textarea {
		width: 400px;
	}

	section form#commentform input#submit { /*post comment button*/
		width: 400px;
	}
}


/*
ERROR PAGE + HOME PAGE BEASTS
—————————————————————————————————————————————————————————————————*/
.error-page .question-image img {
	display: block;
	margin: auto;
	margin-top: 0;
	width: 100%;
	max-width: 350px;
	height: auto;
}

.error-page p {
	text-align: center;
	margin-bottom: 0;
}

/* Center the search form */
.error-page #searchform {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem auto;
}

/* Style the search input */
.error-page #s {
    max-width: 250px;
    width: 100%;
	margin-bottom: 1rem;
}


/*beasts images*/
.beast-1, .beast-2, .beast-3 {
	display: block;
}

.home-beast-1, .home-beast-2 {
	display: none;
}

.beast-1, .beast-2, .beast-3, .home-beast-1, .home-beast-2 {
	position: absolute;
	transform: translateY(-50%);
	pointer-events: none; /* Allow clicking through it */
}

.beast-1 {
	left: 15vw; /*header is 250px*/
	top: 70%; /* Vertically */
}

.beast-2 {
	left: 10vw;
	top: 40%; /* Vertically */
}

.beast-3 {
	right: 5vw;
	top: 58%; /* Vertically */
}

.beast-1 img, .beast-2 img, .beast-3 img, .home-beast-1 img, .home-beast-2 img {
	width: 40px; 
	height: auto;
	opacity: 1;
	animation: gentleFloat 9s ease-in-out infinite;
}

.home-beast-1 img, .home-beast-2 img {
	width: 45px; 
}

.beast-2 img {
	width: 45px; 
}

.beast-3 img {
	width: 35px; 
}

.beast-1 img, .home-beast-2 img {
	animation: gentleFloat 10s ease-in-out infinite;
}

.beast-2 img {
	animation: gentleFloat 11s ease-in-out infinite;
	animation-delay: 0.3s;
}

.beast-3 img {
	animation: gentleFloat 13s ease-in-out infinite;
	animation-delay: 0.1s;
}

@keyframes gentleFloat {
	0%, 100% {
		transform: translateY(0) rotate(0deg);
	}
	33% {
		transform: translateY(-8px) rotate(2deg);
	}
	66% {
		transform: translateY(4px) rotate(-2deg);
	}
}

@media (min-width: 650px) { /*at the same 1020px widtht as site logo*/
	.beast-1 {
		left: 25vw; /*header is 250px*/
	}
	
	.beast-2 {
		left: 20vw;
	}

	.beast-3 {
		right: 17vw;
	}
}

@media (min-width: 950px) { /*at the same 1020px widtht as site logo*/
	.beast-1 {
		left: 35vw; /*header is 250px*/
	}
	
	.beast-2 {
		left: 30vw;
	}

	.beast-3 {
		right: 26vw;
	}
}

@media (min-width: 1300px) { /*at the same 1020px widtht as site logo*/
	.home-beast-1, .home-beast-2 {
		display: block;
		pointer-events: auto; /*to make the hovering effect work*/
		cursor: pointer;
		transition: left 0.9s ease, right 0.9s ease;
	}

    /* Left beast moves left */
    .home-beast-1:hover {
        left: calc(31vw - 10px); /* Subtract to move left */
    }
    
    /* Right beast moves right */
    .home-beast-2:hover {
        right: calc(13vw - 10px); /* Subtract from right to move right */
    }

	.beast-1 {
		left: 46vw; /*header is 250px*/
		top: 70%; /* Vertically */
	}
	
	.beast-2 {
		left: 42vw;
		top: 40%; /* Vertically */
	}

	.beast-3 {
		right: 26vw;
		top: 58%; /* Vertically */
	}

	.home-beast-1 {
		left: 31vw; /*header is 250px*/
		top: 36%; /* Vertically */
	}

	.home-beast-2 {
		right: 13vw;
		top: 54%; /* Vertically */
	}
}

@media (min-width: 1400px) {
	.home-beast-2 {
		right: 16vw;
	}

	.home-beast-2:hover {
        right: calc(16vw - 10px); /* Subtract from right to move right */
    }
}

@media (min-width: 1500px) {
	.home-beast-1 {
		left: 33vw; /*header is 250px*/
	}

	.home-beast-1:hover {
        left: calc(33vw - 10px);
    }

	.home-beast-2 {
		right: 18vw;
	}

	.home-beast-2:hover {
        right: calc(18vw - 10px);
    }
}

@media (min-width: 1020px) { /*at the same 1020px widtht as site logo*/
	.error-page h2 {
		font-size: 2.5rem;
		margin-bottom: 1rem;
	}
}

@media (min-width: 1300px) {

	.error-page #s {
		max-width: 300px;
		width: 100%;
	}
    
    .error-page form#searchform input#searchsubmit {
        width: auto; /* Don't stretch full width */
        text-align: center; 
        font-size: 1.5rem; 
        font-weight: normal; 
        margin: 0;
    }
}


/*
SEARCH RESULTS PAGE 
—————————————————————————————————————————————————————————————————*/

.search-results article p {
	text-align: left;
}

.search-results article h3 a {
	text-decoration: none !important;
}

.search-results article p:first-of-type {
	margin-bottom: 0.5rem;
	font-style: italic; /*to make the date italic, the same as on the category pages*/
}

.search-results article .postmetadata {
	margin-bottom: 3rem;
}

.search-results #searchform {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem auto;
}

/* Style the search input */
.search-results #s {
    max-width: 250px;
    width: 100%;
	margin-bottom: 1rem;
}

@media (min-width: 1300px) {

	.search-results #s {
		max-width: 300px;
		width: 100%;
	}
    
    .search-results form#searchform input#searchsubmit {
        width: auto; /* Don't stretch full width */
        text-align: center; 
        font-size: 1.5rem; 
        font-weight: normal; 
        margin: 0;
    }
}


/*PREVIOUS AND NEXT POST LINKS STYLING*/

/* Post navigation container */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

/* Navigation links wrapper */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

/* Individual navigation items */
.post-navigation .nav-previous {
    text-align: left;
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
    flex: 1;
}

/* Style the links */
.post-navigation a {
    text-decoration: none;
    display: block;
}

/* Style the strong titles */
.post-navigation strong {
    display: block;
    font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 800px) {

	.post-navigation strong {
			display: inline;
	}

	/*Stars*/
	.post-navigation .nav-previous a::before,
	.post-navigation .nav-next a::after {
		content: "";
		display: inline-block;
		width: 1em;
		height: 1em;
		background-image: url('images/star.svg');
		background-size: contain;
		background-repeat: no-repeat;
		vertical-align: middle;
	}

	/* Position stars */
	.post-navigation .nav-previous a::before {
		margin-right: 0.5em;
	}

	.post-navigation .nav-next a::after {
		margin-left: 0.5em;
	}


	.post-navigation .nav-next a::after, .post-navigation .nav-previous a::before {
		transition: transform 0.5s ease;
	}
	
	/* Hover on the parent link*/
	.post-navigation .nav-next a:hover::after {
		transform: rotate(45deg);
	}

	.post-navigation .nav-previous a:hover::before {
		transform: rotate(-45deg);
	}

}

/* Contact Form 7________________________________________________________________________________________________________________________________ */

/* Contact form container */
.wpcf7 {
	width: 300px;
	margin: 0 auto;
}

/* Input fields and textarea */
.wpcf7-form input, .wpcf7-form textarea {
	width: 300px;
	padding: 6px;
	margin-bottom: 0rem;
	border-radius: 4px;
	border: 1px solid #151515;
	background: rgba(255,255,255,.6);
	font-family: 'Gentium Book Plus', Cambria, Georgia, 'Times New Roman', Times, serif;
	font-size: 1.2rem;
	color: #151515;
}

.wpcf7-form input:hover, .wpcf7-form textarea:hover,
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
	background: rgba(255,255,255,1);
}

/* Submit button */
.wpcf7-form input[type="submit"] {
	width: 300px;
	border: none;
	background: none;
	color: #151515;
	cursor: pointer;
	text-decoration: none;
	font-family: 'Chelsea Market', 'Amatic SC', 'Montserrat', 'Trebuchet MS', sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	text-align: center;
	padding-bottom: 2rem;
	border-radius: 0;
	transition: opacity 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
	opacity: 0.6;
}

/* Responsive - larger screens */
@media (min-width: 500px) {
	.wpcf7 {
		width: 400px;
	}
	
	.wpcf7-form input, .wpcf7-form textarea {
		width: 400px;
	}
	
	.wpcf7-form input[type="submit"] {
		width: 400px;
	}
}


/* Glossary—————————————————————————————————————————————————————————————————*/


.glossary-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.glossary-letter {
    font-size: 1.6rem;
    margin: 1.25rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
   /*border-bottom: 1.5px solid #d6cdbb;*/
    color: #151515;
}

.glossary-letter {
    position: relative;
    display: block; 
}

.glossary-letter {
    position: relative;
    display: block;
}

.glossary-letter::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0; 
    height: 0.5rem;
	transform: rotate(-180deg);
    background-image: url('images/border-mobile.svg');
    background-repeat: repeat-x;
    background-size: auto 0.5rem;
    z-index: 1;
}

.glossary-list {
    padding: 0;
    margin-bottom: 1.5rem;
}

.glossary-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
}

/* Mobile first - stack vertically, centered */
.glossary-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

/* Image container - mobile size */
.glossary-image-container {
    width: 250px;
    height: auto;
}

.glossary-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content area */
.glossary-content {
    width: 100%;
}

/* Details element - the whole dropdown */
.glossary-details {
    margin: 0;
    border: none;
    padding: 0;
}

/* h4 title - this is clickable */
.glossary-title-summary {
    cursor: pointer;
    list-style: none;
	display: inline-block;
    position: relative;
    transition: background-color 0.4s ease;
    padding: 0;
    margin: 0;
}

/* Remove default markers */
.glossary-title-summary::-webkit-details-marker {
    display: none;
}

.glossary-title-summary::marker {
    content: none;
}

/* The actual h4 title inside summary */
.glossary-details h4 {
    margin: 0;
    font-size: 1.4rem;
    color: #151515;
    padding-left: 25px;
    position: relative;
    display: inline-block;
}

.glossary-title-summary::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('images/star.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.5s ease;
}

.glossary-term-title {
	padding-left: 0;
	text-align: left;
}

/* Rotate triangle when open */
.glossary-details[open] .glossary-title-summary::before {
    transform: translateY(-50%) rotate(90deg);
}

/* Hover effect on the title */
.glossary-title-summary:hover .glossary-term-title {
    color: #151515;
}

/* Definition content - drops down under the title */
.glossary-definition {
    padding: 10px 0 0 25px;
    margin-top: 8px;
    text-align: left;
}

/* Remove list styling */
main.glossary-archive ul li::before {
    background-image: none;
}

main.glossary-archive ul li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Responsivee */
@media (min-width: 1025px) {
    .glossary-title {
        margin-bottom: 2rem;
		font-size: 2.5rem;
    }
    
    .glossary-letter {
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .glossary-item {
        padding: 1rem;
    }

	.glossary-details h4 {
		text-align: center;
	}
    
    .glossary-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: start;
        grid-gap: 2rem;
    }
    
}

@media (min-width: 1400px) {
    .glossary-area {  /*The same as the .skinny.text*/
        margin: 0 auto;
        margin-left: 14rem;
        margin-right: 14rem;
        margin-bottom: 7rem;
    }

}


/* FOOTER 
—————————————————————————————————————————————————————————————————*/

footer {
	/*border-top: 1px solid #D8D8C2;*/
	position: relative;
	padding: 3.3rem 0 1rem 0;
}

footer ul {
	margin: auto;
	display: grid;
	grid-template-columns: 1fr;
}

footer ul li {
	margin: 0 auto;
	text-align: center;
	margin-bottom: 0.3rem;
	font-size: 1.1rem;
}

footer ul li:last-child {
	margin-bottom: 1rem;
}

footer nav ul {
	max-width: 800px;
	margin: auto;
	display: grid;
	grid-template-columns: 1fr;
}

footer nav ul li {
	margin: 0 auto;
	text-align: center;
	margin-bottom: 1rem;
}

footer nav ul li:last-child {
	margin-bottom: 2rem;
}

footer nav ul li a {
	font-size: 1.3rem;
	font-weight: 500 !important;
	padding: 3px;
	transition: 0.3s; 
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background-image: url('images/border-mobile.svg');
    background-repeat: repeat-x;
    background-size: auto 0.5rem;
    background-position: center top;
}


@media (min-width: 800px) {
	footer nav ul {
		margin: auto;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}











