/* ===========================
   EDMOND AGAR THEME — LAYOUT
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Ruthie&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Euphoria+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marck+Script&family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Marck+Script&family=Special+Elite&display=swap');

.homemade-apple-regular {
  font-family: "Homemade Apple", cursive;
  font-weight: 400;
  font-style: normal;
}


.ruthie-regular {
	font-family: "Ruthie", cursive;
	font-weight: 400;
	font-style: normal;
}

.euphoria-script-regular {
	font-family: "Euphoria Script", cursive;
	font-weight: 400;
	font-style: normal;
}

h1,
h2,
h3,
h4,
.special-elite-regular {
	font-family: "Special Elite", system-ui;
	font-weight: 400;
	font-style: normal;
}

.marck-script-regular,
.edmondfont {
	font-family: "Marck Script", cursive;
	font-weight: 400;
	font-style: normal;
}

.post-title {
	text-transform: none !important;
	font-weight: 600;
	font-size: 2rem;
}

html,
body {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: 'Garamond', 'Georgia', serif;
	background: #D3CEBB;
	background: linear-gradient(185deg, rgba(211, 206, 187, 1) 0%, rgba(239, 237, 232, 1) 100%);
	color: #2a1f1a;
}

/* Reset all link styles site-wide */
a,
a:visited,
a:hover,
a:focus,
a:active {
	text-decoration: none !important;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	background: none;
	outline: none;
	text-transform: none;
}


.container {
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
}


/* ===========================
   HEADER STRUCTURE
   =========================== */


.site-header {
	position: relative;
	overflow: hidden;
	width: 100%;
	z-index: 10;
}

.site-main {
	max-width: 1000px;
	padding: 0 2rem;
	margin: 0 auto;

}

.site-main,
.scrap-container {
	background: transparent !important;
}

/* ===== Top Bar ===== */
.top-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 60, 55, 0.6);
	color: #fff;
	font-size: 0.9rem;
	padding: 0.4rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 5;
}

.top-bar .social-icons a {
	color: #fff;
	margin-left: 10px;
	transition: opacity 0.2s ease;
}

.top-bar .social-icons a:hover {
	opacity: 0.7;
}

.hero-area {
	position: relative;
	height: 400px;
	/* adjust as needed */
	overflow: hidden;
}

.hero-bg {
	background: #003c37 url('images/edmonddesk2.jpg');
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	/* fade to darker teal instead of black */
	background: radial-gradient(circle at center,
			transparent 60%,
			#001f1d 100%);
	pointer-events: none;
	mix-blend-mode: multiply;
}

.hero-logo {
	position: relative;
	z-index: 1;
	text-align: center;
	padding-top: 100px;
	/* adjust to move logo down a bit */
	color: #fff;
}

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

.site-description {
	font-size: 1.2em;
	margin-top: 10px;
}

/* Mobile stacking */
@media (max-width: 500px) {
	.site-description {
		font-size: .9em;
		margin-top: 10px;
	}
}


/* ===========================
   NAVIGATION BAR
   =========================== */

.shadowlift {
	position: relative;
	/* creates a stacking context for pseudo-elements */
	max-width: 1000px;
	margin: -30px auto 2rem auto;
	/* Overlaps hero */

}

.shadowlift::before,
.shadowlift::after {
	content: "";
	position: absolute;
	/* required for z-index to work */
	content: "";
	bottom: 20px;
	left: 5rem;
	width: 50%;
	top: 20%;
	max-width: 300px;
	background: #777;
	-webkit-box-shadow: 0 15px 10px #000;
	-moz-box-shadow: 0 15px 10px #000;
	box-shadow: 0 15px 10px #000;
	-webkit-transform: rotate(-3deg);
	-moz-transform: rotate(-3deg);
	-o-transform: rotate(-3deg);
	-ms-transform: rotate(-3deg);
	transform: rotate(-3deg);
	z-index: 0;
	/* Push behind the parent */
	-webkit-box-shadow: 0px 12px 19px 5px #000000;
	box-shadow: 0px 12px 19px 5px #000000;

}

.shadowlift:after {
	-webkit-transform: rotate(3deg);
	-moz-transform: rotate(3deg);
	-o-transform: rotate(3deg);
	-ms-transform: rotate(3deg);
	transform: rotate(3deg);
	right: 5rem;
	left: auto;
}

/* -------------------------
   MAIN NAVIGATION
-------------------------- */
.main-nav {
	position: relative;
	margin: auto;
	background: #003c37;
	background: linear-gradient(185deg, rgba(0, 60, 55, 1) 0%, rgba(4, 46, 43, 1) 100%);
	color: #d9c27f;
	width: 90%;
	max-width: 1000px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.3s ease;
	z-index: 1001;
	/* above hero */
}

/* -------------------------
   NAV LIST
-------------------------- */
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

nav ul li {
	position: relative;
	/* anchor for dropdown */
}

nav ul li a,
nav ul li a:visited {
	display: block;
	padding: 0 20px;
	line-height: 70px;
	color: #fff;
	text-decoration: none;
	position: relative;
	transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover underline effect */
nav ul li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 10px;
	width: 0%;
	height: 2px;
	background-color: #d9c27f;
	transition: width 0.35s cubic-bezier(.2, .9, .2, 1);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
	width: 100%;
}

/* subtle lift on hover */
nav ul li a:hover {
	transform: translateY(-2px);
}

/* -------------------------
   DROPDOWN
-------------------------- */
.sub-menu {
	position: absolute;
	top: calc(100% - 5px);
	left: 0;
	display: none;
	min-width: 200px;
	background: #f9f6ef;
	color: #003c37;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	border: 1px solid #d9c27f;
	z-index: 9999;
	will-change: transform, opacity;
	transform-origin: top center;
}

.sub-menu a,
.sub-menuul a:visited {
	color: #003c37 !important;
}

/* Show dropdown on hover (desktop) */
nav ul li:hover>.sub-menu,
nav ul li:focus-within>.sub-menu {
	display: block;
	animation: floatDown 0.36s cubic-bezier(.2, .9, .2, 1) both;
}

/* Dropdown animation */
@keyframes floatDown {
	from {
		opacity: 0;
		transform: translateY(-6px) scaleY(.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scaleY(1);
	}
}

/* Dropdown links */
nav ul li ul li a {
	padding: 15px;
	line-height: 20px;
	color: #003c37;
}

/* -------------------------
   MOBILE NAV BAR
-------------------------- */
.nav-mobile {
	display: none;
	/* Hidden on desktop */
}

@media only screen and (max-width: 768px) {
	.nav-mobile {
		display: flex;
		/* Only show on mobile */
		position: relative;
		background: #003c37;
		/* match main nav background */
		color: #fff;
		height: 45px;
		/* thin line */
		width: 100%;
		z-index: 9999;
		justify-content: space-between;
		align-items: center;
		padding: 0 1rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.nav-mobile::before {
		content: "Menu";
		font-size: 0.9rem;
		text-transform: uppercase;
		letter-spacing: 1px;
	}

	nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	nav ul li a {
		padding: 15px;
		line-height: 20px;
	}

	nav ul li ul li a {
		padding-left: 30px;
	}

	.sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		background: #04423d;
	}

	.sub-menu a,
	.sub-menuul a:visited {
		color: #d9c27f !important;
	}
}

/* -------------------------
   MOBILE TOGGLE BUTTON
-------------------------- */
#nav-toggle {
	cursor: pointer;
	position: relative;
	width: 35px;
	height: 25px;
}

#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
	display: block;
	position: absolute;
	content: "";
	height: 4px;
	width: 100%;
	background: #fff;
	border-radius: 1px;
	transition: all 0.3s ease-in-out;
}

#nav-toggle span {
	top: 10px;
}

#nav-toggle span:before {
	top: -10px;
}

#nav-toggle span:after {
	bottom: -10px;
}

#nav-toggle.active span {
	background-color: transparent;
}

#nav-toggle.active span:before {
	top: 0;
	transform: rotate(45deg);
}

#nav-toggle.active span:after {
	top: 0;
	transform: rotate(-45deg);
}

/* -------------------------
   GENERAL FIXES
-------------------------- */
.main-nav,
nav,
header,
.hero,
.container,
.wrap {
	overflow: visible !important;
	/* allow dropdown to escape */
	transform: none !important;
	/* remove clipping */
	perspective: none !important;
}

/* ===========================
   HERO AREA — FRONT PAGE
   =========================== */

#herocta {
	position: relative;
	display: block;
	width: 100%;
	z-index: 1;
	clear: both;
	margin-bottom: 2rem;
}

/* keeps container centred and height organic */
.latest-section {
	display: flex;
	justify-content: center;
}

.latest-container {
	position: relative;
	width: 92%;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: clamp(295px, 45vw, 300px);
	/* dynamic organic height */
}

/* ===========================
   BOXES (shared look)
   =========================== */

.big-box,
.agenda-box,
.small-box {
	position: absolute;
	padding: 1.6rem 1.5rem;
	font-family: "Garamond", serif;
	color: #222;
	transition: transform 0.28s ease;
}

/* stacking order */
.big-box {
	z-index: 5;
}

.small-box {
	z-index: 6;
}

.agenda-box {
	z-index: 7;
}

/* ===========================
   INDIVIDUAL BOXES
   =========================== */

.big-box {
	/*background: #f8f4ec; */
	width: 66%;
	left: 47px;
	top: 0;
	height: 261px;
	padding: 10px 2rem;
}

/* temporarily removed
.small-box {
  background: #f1ecdd;
  width: 34%;
  left: 4%;
  top: 363px;
}                      */

.agenda-box {
	background: #E8DCC3 url('https://edmondagar.com/wp-content/uploads/2025/11/newspaper-texture.jpg') center/cover no-repeat;
	width: 38%;
	right: -21%;
	top: -15px;
	max-width: 163px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ===========================
   BOOKMARK
   =========================== */

/* ===========================
   BOOKMARK — tucked under, slides left
   =========================== */

.bookmark-wrapper {
	position: absolute;
	top: 0;
	right: 161px; /* still anchored to the right edge of its container (agenda) */
	z-index: 6;
	width: 60px;   /* visible tab width */
	height: 160px; /* vertical tab height */
	pointer-events: auto;
	overflow: visible;
	cursor: pointer;
}

/* entire card — includes hidden note + visible tab */
.bookmark-inner {
	position: relative;
	width: 160px;;/* total width when revealed */
	height: 100%;
    padding: 5px;
	background:
		linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
		url('https://edmondagar.com/wp-content/uploads/2025/11/bookmarkgreen.jpg') center/cover no-repeat;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0 6px 14px rgba(0,0,0,0.25);
clip-path: polygon(9% 0, 100% 0%, 100% 100%, 0 100%, 0 48%, 8% 48%);
	transform: translateX(calc(100% - 60px)); /* tuck most of it under container */
	transition: transform 0.42s cubic-bezier(.2, .9, .2, 1);
	will-change: transform;
}

/* paper area for message */
.bookmark-note {
	position: absolute;
	top: 0;
	right: 0;
	width: calc(100% - 83px); /* leave space for tab */
	height: 100%;
	background: rgba(250, 244, 232, 0.96);
	padding: 1rem 1.2rem;
	font-family: "Garamond", serif;
	font-size: 0.95rem;
	color: #222;
	line-height: 1.4;
	box-shadow: inset 0 -3px 0 rgba(0,0,0,0.05);
}

/* hover — pull left (out from under the agenda) */
.bookmark-wrapper:hover .bookmark-inner,
.bookmark-wrapper:focus-within .bookmark-inner {
	transform: translateX(0);
}


.agenda h2 {
	font-family: 'IM Fell English SC', serif;
	font-size: 1rem;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	text-transform: uppercase;
	border-bottom: 1px dashed #013733;
	padding-bottom: 0.3rem;
    text-align: center;
}

.agenda ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.agenda li {
	position: relative;
	padding-left: 1.2rem;
	margin: 0.2rem 0;
	font-size: 1rem;
	line-height: 1;
	font-family: "Marck Script", cursive;
	color: #023632;
}


.agenda li::before {
    content: "–"; /* or use other hand-drawn symbols like "•" or "✦" */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    transform: rotate(0deg); /* default rotation */
}

/* add slight rotation/variation per item */
.agenda li:nth-child(odd)::before {
    transform: rotate(-10deg);
}

.agenda li:nth-child(even)::before {
    transform: rotate(8deg);
}

.agenda li:nth-child(3)::before {
    transform: rotate(-5deg);
}

.agenda li:nth-child(5)::before {
    transform: rotate(12deg);
}

.agenda li.blocked {
	cursor: help;
}

.agenda li.blocked:hover {
	color: #e7e2d9;
	text-decoration: none;
	transition: 0.2s;
}

.agenda li {
  display: block;
  transform-origin: center left;
  transition: transform 0.3s ease;
}

/* Small random-looking tilts */
.agenda li:nth-of-type(1) { transform: rotate(-0.4deg) translateY(-0.5px); }
.agenda li:nth-of-type(2) { transform: rotate(0.6deg) translateY(0.5px); }
.agenda li:nth-of-type(3) { transform: rotate(-0.3deg) translateY(1px); }
.agenda li:nth-of-type(4) { transform: rotate(0.5deg) translateY(-0.5px); }
.agenda li:nth-of-type(5) { transform: rotate(-0.6deg) translateY(0.3px); }
.agenda li:nth-of-type(6) { transform: rotate(0.4deg) translateY(0.8px); }

/* Optional: hover gives a little lift */
.agenda li:hover {
  transform: rotate(0deg) scale(1.02);
}


.latestmemorygrid {
	display: grid;
	grid-template-columns: minmax(0, 200px) 1fr;
	/* left caps at 250px, right fills the rest */
	gap: 1.4rem;
	align-items: start;
	width: 100%;
}

/* The left post */
.latestmemorypost {
	display: flex;
	justify-content: center;
	margin: -20px 0 0 -20px;
}

.classifieddesktop {
	margin-top: -5rem;
}

/* ENVELOPE CSS --*/
.envelope {
	position: relative;
	width: 400px;
	height: 300px;
	margin: auto;
	perspective: 1000px;
	cursor: pointer;
	transition: transform 0.8s ease-out, margin-top 0.8s ease-out;
    
}


.envelope-front {
	position: relative;
	width: 100%;
	height: 100%;
}

/* 🔹 Base image & layer settings */
.envelope img,
.envelope .card {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	display: block;
}

/* 🔹 Envelope layers */
.bottom-back {
	z-index: 1;
	height: 180px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.bottom-top {
	z-index: 3;
    height: 64%;
    top: -11px  !important;
}

/* 🔹 Card inside the envelope */
.card {
  position: relative;
  background: #fffdf8 url('https://edmondagar.com/wp-content/uploads/2025/11/papertexturefoldeded.jpg') center/cover no-repeat;
padding: 1.8rem 2rem;
  color: #1a1a1a;
  font-family: 'IM Fell English', serif;
  line-height: 1.6;
  max-width: 306px;
  margin-left: .5rem;
  z-index: 2;
  max-height: 115px !important;
  filter: drop-shadow(3px 4px 6px rgba(0, 0, 0, 0.85)) !important;
  overflow: hidden;
}

/* The lighting crease overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 49%, rgba(0,0,0,0.07) 51%);
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0; /* sits behind the text, not on top */
}

/* Slightly skew or rotate each paragraph to mimic folds */
.card p {
  position: relative;
  z-index: 1; /* ensures text is above the overlay */
  margin: 1em 0;
  transform-origin: center;
  transition: transform 0.5s ease;
    font-family: "Homemade Apple", cursive;
}
.card span {
  display: block;
  transform-origin: center;
}

.card p .line {
  display: flex; /* or inline-block with 100% width */
  width: 100%;
  transform-origin: center;
  justify-content: space-between; /* spreads words slightly to fill line */
}
.card p.dearedletteren .line {
  display: inline-block;  /* don't stretch it */
  justify-content: flex-start;
  width: auto;            /* no forced full width */
  transform: none;        /* no per-line tilt */
  text-align: left;
}

.card p .line:nth-of-type(odd) {
  transform: rotate(-0.4deg) translateY(-0.5px);
}
.card p .line:nth-of-type(even) {
  transform: rotate(0.4deg) translateY(0.5px);
}


/* 🔹 Flap container (3D rotate) */
.flap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 45%;
	transform-origin: top center;
	transform-style: preserve-3d;
	transition: transform 0.8s ease, z-index 0.8s ease;
	z-index: 4;
}

/* Flap faces */
.flap-outside,
.flap-inside {
	position: absolute;
	width: 100%;
height: 120% !important;
  backface-visibility: hidden;
  top: -15px !important;
}

.flap-outside {
	transform: rotateX(0deg);
}

.flap-inside {
	transform: rotateX(180deg);
}


.envelope.opening-flap .flap {
  transform: rotateX(-160deg);
  transition: transform 0.8s ease;
  z-index: 1;
}


/* 🔹 --- CLOSING SEQUENCE --- */
.envelope.closing-card .card {
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.envelope.closing-flap .flap {
  transform: rotateX(0deg);
  transition: transform 0.8s ease;
  z-index: 4;
}

/* Make sure .open only applies when intended */
.envelope.open .flap {
  transform: rotateX(-160deg);
  z-index: 1;
  transition: transform 0.8s ease;
}

.envelope.open .card {
  transform: translateY(-35%);
  z-index: 2;
  transition: transform 0.4s ease 0.6s; /* 0.6s delay matches close sequence */
}

.envelope.pre-close-card .card {
  transform: translateY(-35%); /* same as open */
  transition: none; /* no animation yet */
}


/* Optional polish */
.envelope.open .card p {
	transition: opacity 0.4s ease 0.7s;
	opacity: 1;
}

.card p {
	margin: 0 0 10px;
	line-height: 1.3;
	font-size: 0.9rem;
	opacity: 0.95;
}

/* ✨ Add this hover/focus lift effect */
.envelope:hover .flap,
.envelope:focus-within .flap {
	transform: rotateX(-15deg);
	/* small lift upward */
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Keep it from triggering when already open */
.envelope.open:hover .flap,
.envelope.open:focus-within .flap {
	transform: rotateX(-160deg);
}


/* Mobile: hide classified filler, post full width */
@media (max-width: 700px) {
	.latestmemorypost {
		margin-left: -33%;
	}

	.latestmemorygrid {
		grid-template-columns: 1fr;
	}

	.classifieddesktop {
		display: none;
	}

    .scrap-container::before {
      top: -9px !important;
      font-size: 0.6rem !important;
    }
}

@media (max-width: 800px) {
	.bookmark-wrapper {
  right: 188px;
    }
}



/* ===========================
   RESPONSIVE ADJUSTMENTS HEROCTA
   =========================== */

@media (max-width: 500px) {

	#herocta {
        margin-bottom: 3rem;
    }

	.latestmemorypost {
    margin-left: -27%;
    margin-top: 3px;
	}


	.classifieddesktop {
		display: none;
	}

	.latest-container {
        margin-bottom: 4rem;
    }

	/* main box stays centered and fluid */
	.big-box {
width: 60%;
        left: 4%;
		top: 0;
	}

	/* agenda keeps right overlap
	.agenda-box {
		width: 28%;
		right: 32px;
		top: 21px;
	}

	.agenda li {
		position: relative;
		padding-left: 1.2rem;
		margin: 0.6rem 0;
		font-size: 10px;
		line-height: 1;
	} */

	/* small box drops below main + agenda */
	.small-box {
		position: relative;
		top: 302%;
		left: auto;
		width: 92%;
		margin: 1rem auto 0;
		z-index: 5;
	}

    .bookmark-inner { width: 144px;}
       .bookmark-wrapper { right: 143px;}
}


/* ===========================
   MAIN CONTENT OUTLINE
   =========================== */
article {
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px;
}

/* ===========================
   FOOTER CTA
   =========================== */




.footwrapcta {
  background: #003c37 url('images/clockwallgr.jpg') center/cover no-repeat;
  width: 100%;
  height: 200px;
  position: relative;
  filter: sepia(0.4) contrast(1.1) brightness(0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footwrapcta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 60%, #001f1d 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.footwrapctare {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(1px); /* softens background for readability */
}

.footwrapctare img {
  display: block;
  margin: 0 auto 1rem;
}

.footwrapctare h3 {
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(106, 121, 100, 0.8);
  margin: 0.5rem 0;
  font-family: "Ruthie", cursive;
}

.footwrapctare h6 {
  font-family: "Special Elite", system-ui;
  margin: 0.2rem 0 0 0;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ===========================
   FOOTER BASE
   =========================== */

footer {
  background: #f1e6c8;
  color: #3b2b20;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #d5c7a3;
  font-size: 0.9rem;
  position: relative;
}

footer a {
  color: #3b2b20 !important;
  border-bottom: 1px dashed rgba(59, 43, 32, 0.5);
  transition: all 0.2s ease;
}

footer a:hover {
  color: #2a1f1a !important;
  border-bottom: 1px solid #2a1f1a;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li a {
  font-family: "Special Elite", system-ui;
}

/* ===========================
   Responsive adjustments
   =========================== */
@media (max-width: 600px) {
  .footwrapcta {
    height: 180px;
    padding: 1rem;
  }

  .footwrapctare h3 {
    font-size: 1.6rem;
  }

  .footwrapctare h6 {
    font-size: 0.9rem;
  }

  .footer-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===============================
   Scrap Masonry Grid Container
   =============================== */
.scrap-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	justify-content: center;
	align-items: center;
	grid-auto-rows: 250px;
	max-width: 900px;
	margin: auto;
	border-top: 5px double #003531;
	padding-top: 3rem;
	position: relative; /* important for positioning the label */
}

.scrap-container::before {
    content: "Personal Archives of Edmond Agar. Do not touch";
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: #DAD6C8;
    mix-blend-mode: normal;
    color: #003531;
    font-family: "Special Elite", system-ui;
    font-size: 0.9rem;
    padding: 0 0.75rem;
    letter-spacing: 0.5px;
    display: block;
    width: max-content;
    text-align: center;
}

/* Prevent breaking mid-item (for multi-column fallback) */
.scrap-container>* {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	-moz-column-break-inside: avoid;
	page-break-inside: avoid;
}

.scrap-container>.eddie {
	display: flex;
	justify-content: center;
	/* horizontal */
	align-items: center;
	/* vertical */
	text-align: center;
}


/* === Responsive Tweaks === */
@media (max-width: 1000px) {
	.scrap-container {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 0.9rem;
	}
}

@media (max-width: 700px) {
	.scrap-container {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 0.8rem;
	}
}

@media (max-width: 500px) {
	.scrap-container {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 0.7rem;
	}
}

/* Optional: Titles inside items */
.scrap-container h4 {
	font-size: 1rem;
}

/* ========== Scrap Paper Base ========== */
.scrap {
	position: relative;
	color: #333;
	width: 150px;
	height: 150px;
	padding: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	transform-origin: center center;
}

/* Slight lift + tilt on hover */
.scrap:hover {
	transform: translateY(-2px) rotate(var(--rot)) scale(1.02) !important;
}

.scrap-wrap {
	position: relative;
	display: inline-block;
	max-width: 200px;
}


/* Ensure the scrap stays above */
.scrap {
	position: relative;
	z-index: 1;
}

/* Optional: animate shadow slightly on hover */
.scrap-wrap:hover::before {
	opacity: 0.35;
	transform: translate(2px, 4px);
	filter: blur(12px);
}

/* ========== Scrap Front (Photo Layer) ========== */
.scrap-front {
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	text-align: center;
	color: #222;
	font-weight: 500;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* This shadow stays visible outside the clip-path */
}

.scrap-front img {
	position: absolute;
	inset: 0;
	width: 88%;
	height: 88%;
	object-fit: cover;
	clip-path: inherit;
	z-index: 5;
	margin: 6%;
}

/* ========== Scrap Shadows ========== */
.scrap-shadows {
	position: relative;
	display: inline-block;
}

.scrap-shadows::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	filter: blur(10px);
	border-radius: 8px;
	z-index: 3;
	clip-path: inherit;
	transition: opacity 0.3s ease, transform 0.3s ease;
}


.scrap-front p {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.7);
	margin: 0;
	padding: 0.5rem 0;
	font-size: 0.45rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== Scrap Back (Note Layer) ========== */
.scrap-back {
	position: relative;
	z-index: 2;
	background: url("https://edmondagar.com/wp-content/uploads/2025/11/newspaper-texture.jpg") repeat;
	background-size: 400px auto;
	padding: 1.5rem;
	margin: -4rem 0 0 -1rem;
	/* Slight offset under front */
	box-shadow: inset 0 0 0 1px #e0dccc;
	transform: translateY(15px);
	width: 105%;
	height: 100px;
}

.scrap-back2 {
	background: #D3CFBE url("https://edmondagar.com/wp-content/uploads/2025/11/notepaper2.png") repeat;
}

.scrap-shadows2 {
	position: relative;
	display: inline-block;
	width: 42%;

}


/* --- Frame overlays --- */
/* --- Frame overlays --- */
.frame1::after,
.frame2::after,
.frame3::after,
.frame4::after,
.frame5::after,
.frame6::after,
.frame7::after,
.frame8::after {
	content: "";
	position: absolute;
	inset: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
	z-index: 10;
}

/* Individual frame images */
.frame1::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe1.png");
}

.frame2::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe2.png");
}

.frame3::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe3.png");
}

.frame4::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe4.png");
}

.frame5::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe5a.png");
}

.frame6::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe6.png");
}

.frame7::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe7.png");
}

.frame8::after {
	background-image: url("https://edmondagar.com/wp-content/uploads/2025/11/scrapframe8.png");
}



.scrap-shadows2::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	filter: blur(10px);
	border-radius: 8px;
	z-index: 1;
	clip-path: inherit;
	transition: opacity 0.3s ease, transform 0.3s ease;
}


.scrap-back h4 {
	margin-top: 3.8rem;
	width: 103%;
	line-height: 1.3;
	text-align: left;
}

.scrap-back.frame1::after,
.scrap-back.frame2::after,
.scrap-back.frame3::after,
.scrap-back.frame4::after,
.scrap-back.frame5::after,
.scrap-back.frame6::after,
.scrap-back.frame7::after,
.scrap-back.frame8::after {
    content: none !important;
}


/* --- subtle natural variation --- */
.scrap-wrap:nth-child(2n) .scrap-back {
	margin: -5.1rem -3rem 0 0;
}

.scrap-wrap:nth-child(3n) .scrap-back {
	margin: -4.9rem 0 0 -2rem;
}

.scrap-wrap:nth-child(4n) .scrap-back {
	margin: -5rem -2rem 0 0.5rem;
}

.scrap-wrap:nth-child(5n) .scrap-back {
	margin: -5.1rem -0.5rem 0 -1.5rem;
}

/* Optional: tiny tilt for added realism */
.scrap-wrap:nth-child(odd) .scrap-back {
	transform: translateY(15px) rotate(-1.5deg);
}

.scrap-wrap:nth-child(even) .scrap-back {
	transform: translateY(15px) rotate(1.5deg);
}

/* Reveal effect on hover */
.scrap-stack:hover {
	transform: translateY(-25px) rotateX(8deg);
}


@media only screen and (max-width: 768px) {
	.scrap {
		width: 117px !important;
	}

	.polaroid {
		width: 130px !important;
	}

	.polaroid-photo {
		height: 100px !important;
	}
}


.scrap-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.scrap-link:hover .post-title {
	text-decoration: underline;
	/* optional hover cue */
}


/* Responsive */
@media (max-width: 768px) {

	.scrap-front,
	.scrap-back {
		width: 90px !important;
	}

	.scrap-front {
		width: 90px !important;
		height: 90px !important;
	}
}


/* ========== Hand-Drawn Arrow ========== */
.arrow-doodle {
	position: absolute;
	bottom: 5px;
	left: 61%;
	transform: translateX(-50%);
	width: 80px;
	height: 64px;
	opacity: 0.85;
	pointer-events: none;
}

.arrow-doodle path,
.arrow-doodle polyline {
	stroke: #4a3b2c;
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ========== Polaroid Cards ========== */
.polaroid {
	margin: 15px;
	width: 200px;
	padding: 10px;
	background-color: #e9e9e9;
	box-sizing: border-box;
	filter: drop-shadow(3px 4px 6px rgba(0, 0, 0, 0.15));

	transform: rotate(var(--random-rot, 0deg));
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle lift and brighten */
.polaroid:hover {
	transform: rotate(var(--random-rot, 0deg)) translateY(-4px) scale(1.03) !important;
	filter: drop-shadow(3px 4px 6px rgba(0, 0, 0, 0.15)) !important;

}

/* Polaroid photo area */
.polaroid-photo {
	background-size: cover;
	background-position: center center;
	background-color: white;
	width: 100%;
	height: 160px;
	box-shadow: inset 0 0 30px rgba(99, 99, 80, 0.8);
	border-radius: 3px;
}

/* Polaroid label */
.polaroid h4 {
	text-align: center;
	color: #3c3c3c;
	letter-spacing: 0.5px;
	transition: transform 0.2s ease;
	line-height: 1;
	margin: 0;
	padding: 10px 5px;
}

/* Fun little wiggle on hover */
.polaroid:hover h4 {
	transform: rotate(-1deg);
}


.note {
	width: 150px;
	/* fixed width */
	min-height: 130px;
	/* minimum height, but can expand */
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 1px 1px 2px #c6939a;
	margin: 50px auto;
	position: relative;
	padding: 1rem;
	/* add breathing room for text */
	box-sizing: border-box;
	/* ensures padding doesn't increase width */
	text-align: center;
	/* optional, keeps text tidy */
	flex-direction: column;
	/* lets multiple lines stack naturally */
	word-break: break-word;
	/* prevents overflow from long words */
}

.note::after {
	content: "";
	position: absolute;
	inset: 0;
	/* shorthand for top/right/bottom/left: 0 */
}

/* ================================
   NOTE COLOUR VARIANTS
================================ */


/* Gold */
.note.gold {
	background: linear-gradient(to bottom right, #e5c26e 20%, rgba(243, 223, 153, 0)) #f3df99;
	box-shadow: 2px 2px 2px #e5c26e;
}

.note.gold::after {
	background:
		linear-gradient(rgba(243, 223, 153, 0), 50%, #e5c26e, 51%, rgba(243, 223, 153, 0)),
		linear-gradient(to right, rgba(243, 223, 153, 0), 50%, #e5c26e, 51%, rgba(243, 223, 153, 0));
}

/* Parchment */
.note.parchment {
	background: linear-gradient(to bottom right, #e7dcc3 20%, rgba(247, 240, 221, 0)) #f7f0dd;
	box-shadow: 2px 2px 2px #e7dcc3;
}

.note.parchment::after {
	background:
		linear-gradient(rgba(247, 240, 221, 0), 50%, #e7dcc3, 51%, rgba(247, 240, 221, 0)),
		linear-gradient(to right, rgba(247, 240, 221, 0), 50%, #e7dcc3, 51%, rgba(247, 240, 221, 0));
}

/* Teal */
.note.teal {
	background: linear-gradient(to bottom right, #8ab8b2 20%, rgba(182, 216, 210, 0)) #b6d8d2;
	box-shadow: 2px 2px 2px #8ab8b2;
}

.note.teal::after {
	background:
		linear-gradient(rgba(182, 216, 210, 0), 50%, #8ab8b2, 51%, rgba(182, 216, 210, 0)),
		linear-gradient(to right, rgba(182, 216, 210, 0), 50%, #8ab8b2, 51%, rgba(182, 216, 210, 0));
}

/* Pink */
.note.pink {
	background: linear-gradient(to bottom right, #f3c6c9 20%, rgba(243, 198, 201, 0)) #f3c6c9;
	box-shadow: 2px 2px 2px #f3c6c9;
}

.note.pink::after {
	background:
		linear-gradient(rgba(243, 198, 201, 0), 50%, #f3c6c9, 51%, rgba(243, 198, 201, 0)),
		linear-gradient(to right, rgba(243, 198, 201, 0), 50%, #f3c6c9, 51%, rgba(243, 198, 201, 0));
}

/* Light Blue */
.note.lightblue {
	background: linear-gradient(to bottom right, #d0e1f2 20%, rgba(208, 225, 242, 0)) #d0e1f2;
	box-shadow: 2px 2px 2px #d0e1f2;
}

.note.lightblue::after {
	background:
		linear-gradient(rgba(208, 225, 242, 0), 50%, #d0e1f2, 51%, rgba(208, 225, 242, 0)),
		linear-gradient(to right, rgba(208, 225, 242, 0), 50%, #d0e1f2, 51%, rgba(208, 225, 242, 0));
}

/* Soft Lavender */
.note.lavender {
	background: linear-gradient(to bottom right, #e3d9f0 20%, rgba(227, 217, 240, 0)) #e3d9f0;
	box-shadow: 2px 2px 2px #e3d9f0;
}

.note.lavender::after {
	background:
		linear-gradient(rgba(227, 217, 240, 0), 50%, #e3d9f0, 51%, rgba(227, 217, 240, 0)),
		linear-gradient(to right, rgba(227, 217, 240, 0), 50%, #e3d9f0, 51%, rgba(227, 217, 240, 0));
}

/* Soft Green */
.note.softgreen {
	background: linear-gradient(to bottom right, #d8ebdf 20%, rgba(216, 235, 223, 0)) #d8ebdf;
	box-shadow: 2px 2px 2px #d8ebdf;
}

.note.softgreen::after {
	background:
		linear-gradient(rgba(216, 235, 223, 0), 50%, #d8ebdf, 51%, rgba(216, 235, 223, 0)),
		linear-gradient(to right, rgba(216, 235, 223, 0), 50%, #d8ebdf, 51%, rgba(216, 235, 223, 0));
}

/* Red Accent */
.note.red {
	background: linear-gradient(to bottom right, #f5b3b0 20%, rgba(245, 179, 176, 0)) #f5b3b0;
	box-shadow: 2px 2px 2px #f5b3b0;
}

.note.red::after {
	background:
		linear-gradient(rgba(245, 179, 176, 0), 50%, #f5b3b0, 51%, rgba(245, 179, 176, 0)),
		linear-gradient(to right, rgba(245, 179, 176, 0), 50%, #f5b3b0, 51%, rgba(245, 179, 176, 0));
}

.note:hover {
	filter: brightness(0.97) contrast(1.05);
	transform: rotate(0.2deg) scale(0.985);
}

.note:hover::after {
	opacity: 0.5;
}


/* Tape elements */
.tape-section {
	position: absolute;
	width: 100%;
}

.top-tape {
	position: absolute;
	height: 4vmin;
	top: -5px;
	width: 110%;
	background-color: #dbd8be;
	border-right: 1px dotted #b7b49d;
	border-left: 1px dotted #b7b49d;
	opacity: 0.5;
}

.tape-section:first-of-type {
	top: 0;
}

.tape-section:last-of-type {
	bottom: 0;
}

.tape-section::before,
.tape-section::after {
	content: "";
	width: 10vmin;
	height: 4vmin;
	position: absolute;
	background-color: #dbd8be;
	opacity: 0.5;
	border-right: 1px dotted #b7b49d;
	border-left: 1px dotted #b7b49d;
}

.tape-section:last-of-type::after {
	transform: rotate(-45deg);
	right: -4vmin;
	top: -3vmin;
}

.tape-section:first-of-type::before {
	transform: rotate(-45deg);
	left: -4vmin;
}

.tape-section:first-of-type::after {
	transform: rotate(45deg);
	right: -4vmin;
	top: 0;
}

.tape-section:last-of-type::before {
	transform: rotate(45deg);
	left: -4vmin;
	bottom: 0;
}

.tape-section,
.top-tape {
	position: absolute;
	background-color: #dbd8be;
	opacity: 0.55;
	border-left: 1px dotted #b7b49d;
	border-right: 1px dotted #b7b49d;
	pointer-events: none;
	z-index: 5;
}

/* Corners (single tape piece per corner) */
.tape-section.top-left {
	width: 10vmin;
	height: 4vmin;
	top: -1vmin;
	left: -2vmin;
	transform: rotate(-45deg);
}

.tape-section.top-right {
	width: 10vmin;
	height: 4vmin;
	top: -1vmin;
	right: -2vmin;
	transform: rotate(45deg);
}

.tape-section.bottom-left {
	width: 10vmin;
	height: 4vmin;
	bottom: -1vmin;
	left: -2vmin;
	transform: rotate(45deg);
}

.tape-section.bottom-right {
	width: 10vmin;
	height: 4vmin;
	bottom: -1vmin;
	right: -2vmin;
	transform: rotate(-45deg);
}

/* Full-width top bar tape */
.top-tape {
	top: -5px;
	left: -5%;
	width: 110%;
	height: 4vmin;
	opacity: 0.5;
}


/* ================================
   POSTCARD BASE
================================ */
.postcard-container {
	perspective: 900px;
	display: inline-block;
	margin: 1rem;
	z-index: 1;
	max-width: 162px;

}

.postcard {
	width: clamp(160px, 26vw, 260px);
	aspect-ratio: 500 / 323;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.8s ease;
	cursor: pointer;
	transform-origin: center center;
	overflow: visible;
	backface-visibility: hidden;
	z-index: 2;
	margin: 0 0 0 -2.5rem;
}

/* ================================
   FRONT & BACK FACES
================================ */
.postcard-front,
.postcard-back {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	overflow: hidden;
	backface-visibility: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.postcard-front img,
.postcard-back img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.postcard-back {
	transform: rotateY(180deg);
}

/* ================================
   INTERACTION STATES
================================ */

/* Hover straighten (disabled when expanded in JS) */
.postcard-container:hover .postcard {
	transform: rotateY(0deg);
}

/* Expanded (fixed center, proportional scaling) */
/* Expanded (fixed center, proportional scaling) */
.postcard.expanded {
	position: fixed !important;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	width: auto !important;
	height: auto !important;
	max-width: 90vw;
	max-height: 80vh;
	/* <-- never taller than viewport */
	aspect-ratio: 500 / 323;
	z-index: 9999999 !important;
	cursor: grab;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	transition: transform 0.8s ease, box-shadow 0.4s ease;
}

/* Keep shape + proportionality when resizing viewport */
.postcard.expanded img,
.postcard.expanded .postcard-front,
.postcard.expanded .postcard-back {
	width: 100%;
	height: auto;
	aspect-ratio: 500 / 323;
}

/* Flipped side */
.postcard.flipped {
	transform: rotateY(180deg) !important;
}


/* Prevent clipping when a postcard is expanded */
body.postcard-expanded,
html.postcard-expanded,
body.postcard-expanded #page,
body.postcard-expanded .site,
body.postcard-expanded .site-content,
body.postcard-expanded .entry-content,
body.postcard-expanded article {
	overflow: visible !important;
	position: static !important;
	transform: none !important;
	z-index: auto !important;
}

/* Ensure expanded postcard is on top and not clipped */
body.postcard-expanded .postcard {
	pointer-events: auto !important;
	overflow: visible !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}


.postcard-container p {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.postcard-container,
.postcard {
	transform-style: preserve-3d;
	perspective: 1000px;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
	.postcard {
		width: clamp(140px, 42vw, 180px);
	}
}


/*--- Curiosity items ----*/

.curiositypost {
	position: relative;
	width: 150px;
	margin: 2rem auto;
	display: block;
	pointer-events: none;
	margin: -145px auto 0 auto;

}

.curiositypost img {
	position: absolute;
	left: 50%;
	top: 0;
	transform-origin: 50% 50%;
	transform: translateX(-50%);
	filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.35));
	transition: transform 220ms cubic-bezier(.2, .9, .2, 1), box-shadow 220ms, z-index 120ms;
	pointer-events: auto;
	cursor: pointer;
}

.curiositypost img:hover {
	transform: translateX(-50%) translateY(-6%) scale(1.12) rotate(0deg) !important;
	z-index: 9999 !important;
	filter: drop-shadow(6px 10px 20px rgba(0, 0, 0, 0.6));
}

/* ========== Dear Edmond (Newspaper Scrap Style) ========== */


.deared-shadows {
	position: relative;
	display: inline-block;
	width: 150px;
	z-index: 0;
	/* ensure the wrapper is below the inner content */
}

/* shadow behind everything */
.deared-shadows::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	filter: blur(10px);
	border-radius: 8px;
	z-index: -1;
	/* behind the article */
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ensure article floats above the shadow */
.deared-wrap.scrap {
	background: #F4F4EC url("https://edmondagar.com/wp-content/uploads/2025/11/dearedmondtitle.png") no-repeat center top;
	background-size: 114px;
	position: relative;
	display: inline-block;
	width: 115px;
	overflow: hidden;
	z-index: 1;
	/* above shadow */
}

.dearedmond {
	position: relative;
	width: 200px;
	box-sizing: border-box;
	overflow: visible;
	width: 115px;
}

/* Main center column */
.dearedscrap-content {
	color: #666562;
	height: 220px;
	width: 115px;
	margin: 0 auto;
	margin-left: 1px;
	margin-top: 37px;
	border-left: 1px solid #BBBAB4;
	border-right: 1px solid #BBBAB4;
	padding: 0 5px;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	column-count: 2;
	text-align: justify;
	column-gap: 5px;
	/* Adds a 20px gap between columns */
}

.dearedscrap-content p,
.dearedscrap-side1 p,
.dearedscrap-side2 p {
	font-size: 5px !important;
	line-height: 1 !important;
	color: #666562;
}

/* Left clipping */
.dearedscrap-side1 {
	position: absolute;
	top: -58px;
	left: -37px;
	width: 30px;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	text-align: right;
}

/* Right clipping */
.dearedscrap-side2 {
	position: absolute;
	top: -59px;
	left: 123px;
	width: 30px;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	text-align: left;
}

.dearedmond img {
	filter: grayscale(1) !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 auto !important;
}

.dearedmond:hover img,
.dearedmond:focus img {
	filter: grayscale(0) !important;
}

.deared-inline-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin: 0 0 -10px 0 !important;
}

.deared-inline-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 500px) {
	.dearedscrap-content {
		height: auto;
	}

	.dearedmond {
		width: 100%;
	}

}

/* ================================
   BOTANICALS (sprig over label)
   ================================ */
.botanicals {
	--label-bg: #5D2A1D;
	--outline: #E6D0A4;
	--tape: #E8DCB5;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2rem;
	background-size: cover;
	background-position: center;
	max-width: 150px;
	margin-top: -3rem;
}


.botanical-label {
	transform-origin: center;
	transition: transform 0.8s ease;
}

.botanical-label.loaded {
	transform: rotate(0deg);
}


.label-shadow {
	position: absolute;
	top: 81px;
	left: 52%;
	width: 141px;
	height: 82px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.35);
	filter: blur(10px);
	border-radius: 8px;
	z-index: 0;
}

.botanical-label {
	position: relative;
	z-index: 1;
	/* above shadow */
}


/* Label base */
.botanicals .botanical-label {
	position: relative;
	width: 210px;
	height: 82px;
	background: var(--label-bg);
	clip-path: polygon(10% 0, 90% 0, 100% 15%, 100% 85%, 90% 100%, 10% 100%, 0% 85%, 0% 15%);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	z-index: 1;
	top: 42px;
}

/* Inner border with small random variations */
.botanicals .botanical-label::before {
	content: "";
	position: absolute;
	inset: var(--border-inset, 8px);
	/* default 8px */
	border: 2px var(--border-style, solid) rgba(230, 208, 164, 0.5);
	clip-path: inherit;
	pointer-events: none;
}


/* Label text */
.botanicals .label-content {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--outline);
	font-family: "Georgia", serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 10px !important;
	padding: 17px;
}


.botanicals .label-content h4 {
	font-size: 9px !important;
}

/* Overlay group — positioned relative to label */

.botanical-overlay {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	/* so it doesn't block clicks */
	z-index: 3;
	width: 100% !important;
}

.botanical-sprig {
	display: block;
	max-height: 200px;
	width: auto;
	transform: rotate(-3deg);
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
	z-index: 3;

}

.botanical-overlay img {
	max-width: 200px;
	margin-top: -4px;
	margin: 0 auto;
}

.botanical-overlay {
	pointer-events: none;
	/* overlay container itself doesn’t block clicks */
}

.botanical-overlay a {
	pointer-events: auto;
	/* allow clicks on the link inside */
}

/* tape look */
.tape {
	position: absolute;
	top: 152px;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-2deg);
	width: 80px;
	height: 10px;
	background: rgba(255, 255, 230, 0.65);
	border: 1px solid rgba(180, 170, 130, 0.4);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(1px);
	z-index: 5;
	opacity: 0.9;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.4s ease;
}


/* ------------------------------
   Botanicals idle wiggle
   ------------------------------ */
@keyframes botanicals-wiggle {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}

	25% {
		transform: translate(1px, -1px) rotate(-0.5deg);
	}

	50% {
		transform: translate(-1px, 1px) rotate(0.5deg);
	}

	75% {
		transform: translate(1px, 1px) rotate(-0.5deg);
	}

	100% {
		transform: translate(0, 0) rotate(0deg);
	}
}

/* ---------------------------------
   BOTANICALS HOVER BEHAVIOUR (revised)
   --------------------------------- */


/* Hovering the whole card — gentle nudge */
.botanicals:hover {
	/* Add a little lift + tilt, layered on top of JS transforms */
	scale: 1.01;

}


/* ================================
   ERROR POPUP EXPANDABLE STYLE
   ================================ */
.error-system {
	z-index: 1000;
}

/* ===== Popup Base ===== */
.error-popup {
	max-width: 140px;
	min-width: 100px;
	margin: 3rem auto;
	border: 1px solid #c9c9c9;
	border-radius: 10px;
	background: #fdfdfd;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	font-family: 'Courier New', monospace !important;
	text-align: center;
	overflow: hidden;
	animation: errorFade 0.3s ease-out;
	transition:
		all 0.4s ease-in-out,
		box-shadow 0.3s ease-in-out;
	position: relative;
}

/* Expanded state */
.error-popup.open {
	max-width: 300px;
	transform: scale(1.03);
	box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
	z-index: 5;
}

/* Adjust if near screen edge */
.error-popup.edge-right.open {
	transform: translateX(-80px) scale(1.03);
}

.error-popup.edge-left.open {
	transform: translateX(80px) scale(1.03);
}

/* ===== Header ===== */
.error-header {
	background-color: #e74c3c;
	padding: 1rem;
	border-bottom: 1px solid #b83a2e;
	display: flex;
	justify-content: center;
	align-items: center;
}

.error-icon {
	font-size: 2rem !important;
	color: white !important;
}

/* ===== Body ===== */
.error-body {
	padding: 0.75rem 1rem;
	transition: all 0.4s ease-in-out;
}

.error-body h4 {
	margin: 0 0 0.75rem;
	color: #111 !important;
	font-size: 0.7rem !important;
	font-weight: bold !important;
	text-shadow: 0 0 1px #bbb;
}

/* ===== Expandable Content ===== */
.error-overlay-content {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	text-align: left;
	transition: max-height 0.5s ease, opacity 0.3s ease;
}

.error-popup.open .error-overlay-content {
	max-height: 400px;
	opacity: 1;
	margin-top: 0.5rem;
	font-size: 10px;
}

/* ===== Buttons ===== */
.error-toggle-btn {
	background-color: #e74c3c !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 0.4rem 1.5rem !important;
	cursor: pointer !important;
	font-weight: bold !important;
	font-family: 'Courier New', monospace !important;
	font-size: 0.6rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	display: inline-block !important;
	margin: 0.5rem auto 0 !important;
	transition: all 0.25s ease-in-out !important;
}

.error-toggle-btn:hover {
	background-color: #c0392b !important;
	transform: translateY(-1px) !important;
}

/* Move button to bottom when open */
.error-popup.open .error-toggle-btn {
	margin-top: 1rem !important;
}

/* ===== Animation ===== */
@keyframes errorFade {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* -----ARCHIVE CSS -----*/
.archive-header {
	text-align: center;
	margin: 4rem auto 2rem;
}

.archive-title {
	font-size: 2.2rem;
	color: var(--accent-color, #fff);
	margin-bottom: 1rem;
}

.archive-description {
	font-size: 1rem;
	color: #ccc;
	max-width: 600px;
	margin: 0 auto;
}

.pagination {
	text-align: center;
	margin: 3rem 0;
}


/* //// SINGLE AND PAGES ///*/

.single-wrapper {
	padding: 0 1rem;

}

.single-inner {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
}

.content-area {
	line-height: 1.8;
}


.post-title {
	font-size: 2rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.post-meta {
	font-size: 0.9rem;
	opacity: 0.7;
	margin-bottom: 2rem;
}

.post-image-text {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 2rem;
	align-items: start;
}

.post-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar {
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	padding-left: 2rem;
}

.sidebar h3 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

@media (max-width: 900px) {
	.single-inner {
		grid-template-columns: 1fr;
	}

	.post-image-text {
		grid-template-columns: 1fr;
	}

	.sidebar {
		border-left: none;
		padding-left: 0;
		margin-top: 3rem;
	}
}

/* === Single Post/Page Scoped Styles === */
.single .post-body,
.page .post-body {
	position: relative;
	font-size: 1.1rem;
	line-height: 1.8;
}

/* --- Featured image float (dynamic left/right) --- */
.single .featured-image,
.page .featured-image {
	position: relative;
	width: 50%;
	max-width: 300px;
	margin-bottom: 1.5rem;
}

.polaroid-wrapper.right,
.single .featured-image.right,
.page .featured-image.right {
	float: right;
	margin-left: 1.5rem;
}

.polaroid-wrapper.left,
.single .featured-image.left,
.page .featured-image.left {
	float: left;
	margin-right: 1.5rem;
}

.single .featured-image img,
.page .featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Featured image float + responsive max width --- */
.single .featured-image,
.page .featured-image,
.polaroid-wrapper {
	position: relative;
	width: 100%;
	max-width: 300px;
	/* maximum width for desktop */
	height: auto;
	/* maintain aspect ratio */
	margin-bottom: 1.5rem;
	display: block;
}

/* Floats for desktop */
.polaroid-wrapper.right,
.single .featured-image.right,
.page .featured-image.right {
	float: right;
	margin-left: 1.5rem;
}

.polaroid-wrapper.left,
.single .featured-image.left,
.page .featured-image.left {
	float: left;
	margin-right: 1.5rem;
}

/* Scrap images fill container */
.single .featured-image .scrap img,
.page .featured-image .scrap img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* Polaroid / Botanicals images fill container */
.polaroid-wrapper img,
.botanical-overlay img {
	width: 100%;
	height: auto;
	display: block;
}

/* Clear floats after post content */
.single-post::after {
	content: "";
	display: table;
	clear: both;
}


/* --- Scrap Style --- */
.single .featured-image .scrap,
.page .featured-image .scrap {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	background: none;
	position: relative;
}

.single .featured-image .scrap img,
.page .featured-image .scrap img {
	width: 89%;
	height: 89%;
	object-fit: cover;
	/* fill entire container */
	display: block;
}

body.single-post .scrap-front {
	height: 222px !important;
	width: 222px !important;
	margin-bottom: 1rem !important;
}

/* --- Polaroid Style --- */

body.single-post .polaroid {
	width: 275px !important;
}

body.single-post .polaroid-wrapper .caption {
	margin-top: .5rem !important;
}

/* --- Dear Edmond Single Post --- */
body.single-post .category-dear-agar.post_style-dearedmond {
	background: #faf8f2;
	color: #222;
	font-family: 'Times New Roman', serif;
	border: 1px solid #d6d0c4;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 2rem;
	margin: 2rem auto;
	max-width: 800px;
	line-height: 1.75;
	position: relative;
	overflow: hidden;
}

/* Top banner image */
body.single-post .category-dear-agar.post_style-dearedmond::before {
	content: "";
	display: block;
	width: 100%;
	aspect-ratio: 373 / 188;
	background: url('https://edmondagar.com/wp-content/uploads/2025/11/dearedmondtitle.png') center no-repeat;
	background-size: contain;
	margin-bottom: 1.25rem;
}

/* Two-column layout for content body */
body.single-post .category-dear-agar.post_style-dearedmond .post-body {
	column-count: 2;
	column-gap: 2rem;
	position: relative;
}

/* First letter flair like a newspaper editorial */
body.single-post .category-dear-agar.post_style-dearedmond .post-body p:first-of-type::first-letter {
	float: left;
	font-size: 2.5rem;
	line-height: 1;
	padding-right: 0.25rem;
	font-family: 'Georgia', serif;
	color: #222;
}

/* Headings mimic old subheads */
body.single-post .category-dear-agar.post_style-dearedmond h2,
body.single-post .category-dear-agar.post_style-dearedmond h3 {
	font-family: 'Georgia', serif;
	border-bottom: 1px solid #d6d0c4;
	padding-bottom: 0.25rem;
	margin-top: 1.5rem;
	font-size: 1.15rem;
}

/* Paper texture overlay */
body.single-post .category-dear-agar.post_style-dearedmond::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
	opacity: 0.2;
	pointer-events: none;
}

/* Links look like old ink */
body.single-post .category-dear-agar.post_style-dearedmond a {
	color: #5a4b38;
	text-decoration: underline dotted;
	transition: color 0.2s ease;
}

body.single-post.category-dear-agar.post_style-dearedmond a:hover {
	color: #222;
}

/* === Dear Edmond “Advertisement” Style for Jetpack Share Box === */
body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy {
	position: relative;
	margin: 3rem auto 1rem;
	max-width: 600px;
	background: #f9f7f1;
	border: 1px solid #c7bfae;
	border-radius: 4px;
	padding: 1rem 1.5rem;
	font-family: 'Courier New', monospace !important;
	text-align: center;
	box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.1);
	transform: rotate(-0.3deg);
	clear: both;
	column-span: all;
}

/* Ad header label */
body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy::before {
	content: "ADVERTISEMENT";
	position: absolute;
	top: -0.8rem;
	left: 50%;
	transform: translateX(-50%);
	background: #f9f7f1;
	color: #555;
	font-size: 0.65rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 0 0.5rem;
}

body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy h3 {
	font-family: 'Courier New', monospace !important;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #3b2e1a;
	background: #efe9dc;
	border: 1px dashed #bfb4a3;
	display: inline-block;
	padding: 0.3rem 0.6rem;
	margin-bottom: 1rem;
}

body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 1.25rem;
	margin: 0;
	padding: 0;
}

body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy li a {
	text-decoration: none !important;
	color: #463c29 !important;
	font-size: 0.85rem;
	transition: all 0.2s ease;
	border-bottom: 1px dotted transparent;
}

body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy li a:hover {
	color: #111 !important;
	border-bottom: 1px dotted #111;
}

body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy .share-customize-link {
	display: none !important;
}

/* Subtle aged paper lines for texture */
body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy {
	background-image: repeating-linear-gradient(rgba(0, 0, 0, 0.02) 0 1px,
			transparent 1px 3px);
}

/* === Responsive Adjustments for Dear Edmond === */
@media (max-width: 600px) {

	.site-main,
	.single-wrapper {
		padding: 0 !important;
	}

	/* Stack content in one column */
	body.single-post .category-dear-agar.post_style-dearedmond .post-body {
		column-count: 1;
	}

	/* Soften spacing for mobile */
	body.single-post .category-dear-agar.post_style-dearedmond {
		padding: 1.25rem;
		margin: 1rem;
	}

	/* Move image to bottom on mobile */
	body.single-post .category-dear-agar.post_style-dearedmond .post-body img {
		top: auto;
		bottom: 0;
		transform: none;
		margin-top: 2rem;
	}

	/* Keep Jetpack “ad” centered */
	body.single-post .category-dear-agar.post_style-dearedmond .sharedaddy {
		max-width: 100%;
		margin: 2rem auto;
		padding: 1rem;
		transform: none;
	}
}

/* Dear Agar inline figure */
.dear-agar-inline {
	border: 2px solid var(--paper-edge, #ccc);
	background: #fdfcf8;
	padding: 0.5rem;
	margin: 2rem 0;
	/* full width spacing */
	width: 100%;
	/* fill parent container */
	box-sizing: border-box;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
	/* prevents hover zoom overflow */
}

.dear-agar-inline img {
	width: 100% !important;
	/* take full width of figure */
	height: auto !important;
	display: block;
	border-radius: 6px;
	transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
	filter: grayscale(1);
	opacity: 0.85;
}

.dear-agar-inline img:hover,
.dear-agar-inline img:focus {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.02);
}

body.single-post .category-dear-agar.post_style-dearedmond .featured-image {
	width: 100% !important;
	/* take full width of figure */
}

.dear-agar-caption {
	font-family: "IM Fell English", serif;
	font-size: 0.9rem;
	color: #555;
	margin-top: 0.5rem;
	text-align: center;
	font-style: italic;
}

.dear-agar-inline img:hover,
.dear-agar-inline img:focus {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.02);
}


body.single-post .featured-image {
	width: 100%;
	/* figure fills container */
	margin: 0 auto;
	/* center if needed */
}

body.single-post .scrap-wrap {
	width: 100%;
}

body.single-post .scrap-front {
	width: 100%;
	/* fill the parent width */
	aspect-ratio: 1 / 1;
	/* always square */
	overflow: hidden;
	position: relative;
}

body.single-post .scrap-front img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	/* cover the square area nicely */
}

/* Optional: adjust for very small screens */
@media (max-width: 768px) {
	body.single-post .featured-image {
		width: 100%;
		/* figure fills container */
		margin: 0 auto;
		/* center if needed */
	}

	body.single-post .scrap-wrap {
		width: 100%;
	}

	body.single-post .scrap-front {
		width: 100%;
		/* fill the parent width */
		aspect-ratio: 1 / 1;
		/* always square */
		overflow: hidden;
		position: relative;
	}

	body.single-post .scrap-front img {
		width: 100%;
		height: 100%;
		display: block;
		object-fit: cover;
		/* cover the square area nicely */
	}

}


body.single-post .style-botanicals .featured-image .img {
	margin-top: -44px !important;
}

/* ================================
   BOTANICALS (sprig over label)
   Only for single posts
   ================================ */

/* Overlay group — positioned relative to label */
body.single-post .botanicals {
	margin: 0 0 5rem 0;
}




#riddle-container {
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  	font-family: "Special Elite", system-ui;
	font-weight: 400;
	font-style: normal;
}

#riddle-container input {
  padding: 8px;
  margin-right: 10px;
  width: 60%;
}

#riddle-btn, .ff-btn {
  padding: 8px 12px;
	box-shadow: 0px 10px 14px -7px #3e7327;
	background:linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
	background-color:#77b55a;
	border-radius:4px;
	border:1px solid #4b8f29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-size:13px;
	font-weight:bold;
	padding:6px 12px;
	text-decoration:none;
	text-shadow:0px 1px 0px #5b8a3c;
    	font-family: "Special Elite", system-ui;
	font-weight: 400;
	font-style: normal;
}
#riddle-btn:hover, .ff-btn:hover {
	background:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
	background-color:#72b352;
}
#riddle-btn:active, .ff-btn:active {
	position:relative;
	top:1px;
}







#secondary .scrap-container::before { content: none !important;}

#secondary .scrap-front {
  height: 150px !important;
  width: 150px !important;
}

#secondary .scrap-front img {
  width: 83%;
    height: 83%;
}



/* ================================
   FULL RESPONSIVE CONTENT OVERRIDE
   ================================ */

.single-inner {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important; /* content + sidebar */
    gap: 3rem !important;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0; /* allow shrinking */
}

.content-area {
    min-width: 0 !important; /* critical for wrapping inside flex/grid */
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.8;
}


/* Sidebar shouldn’t force content overflow */
.sidebar {
    min-width: 0 !important;
    overflow-wrap: break-word;
}

/* Small screen adjustments */
@media (max-width: 900px) {
    .single-inner {
        grid-template-columns: 1fr !important; /* stack content + sidebar */
    }

    .sidebar {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 2rem !important;
    }

    .content-area {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .single .post-body,
    .page .post-body {
        column-count: 1 !important;
    }

  
}
