body {
	/* background-image: url('assets/anthony-lee-zZ-G8iQOwa8-unsplash.jpg'); */
	background-image: url('assets/niki-clark-nSRdKJyZxW8-unsplash.jpg');
	/* background-image: url('assets/wolfgang-hasselmann-woc0LZaz7S4-unsplash.jpg'); */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #7a1818;
	/* background-attachment: fixed; */
	/* color: #3d0808; */
	font-family: 'Georgia', serif;
	
	margin: 0;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 3rem;
	line-height: 1.6;
}

body::before {
	content: "";
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: -1;
}

.content-wrapper {
	border-radius: 12px;
	padding: 2rem 3rem;
	/* background: rgba(160,160,160,0.9);  /1* a bit more opaque for readability on small screens *1/ */
	background: rgba(200,200,200,0.9);  /* a bit more opaque for readability on small screens */
	
	max-width: 900px;
	width: 100%;           /* allow it to shrink on small screens */
	box-sizing: border-box;
}

.window {
	width: 90%;
	max-width: 900px;
	margin: 40px auto;
	overflow: hidden;
	font-family: sans-serif;
	position: relative;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */ 
}

.window {
    /* background: rgba(110,100,100,0.15); */
    background: rgba(110,100,100,0.15);
}


.window + .window {
	margin-top: 3rem;
}

.window-header {
	color: #fff;
	padding: 12px 16px;
	font-weight: bold;
	display: flex;
	/* align-items: center; */
	justify-content: space-between;
}


.window-content {
	padding: 20px;
	color: #333;
}

/* mobile formatting */
@media (max-width: 600px) {
	body {
		padding: 1rem;
		flex-direction: column;  /* if flex stays on body */
	}

	.content-wrapper {
		padding: 1rem 1.5rem;
		/* background: rgba(160,160,160,0.7);  /1* a bit more opaque for readability on small screens *1/ */
		background: rgba(200,200,200,0.8);  /* a bit more opaque for readability on small screens */
	}

	.window {
		width: 100%;
		margin: 20px auto;
	}

	.window-header {
		font-size: 1rem;
		padding: 8px 12px;
	}

	.window-content {
		padding: 15px;
	}
}

code {
  display:inline;
  /* white-space: normal; */
  /* font-family: 'Courier New', monospace; */
  font-family: monospace;
  background: rgba(100, 32, 32, 0.2); /* warm marroon when mixed with background chestnut brown */
  color: #541710;
  padding: 0.2em 0.4em;
  border-radius: 0px;
}


/* pre { */
/*   display: block; */
/*   white-space: pre;               /1* preserve line breaks exactly *1/ */
/*   overflow-x: auto;               /1* horizontal scroll if long lines *1/ */
/*   margin: 1rem 0; */
/*   background: rgba(255,255,255,0.06); */
/*   padding: 0.4rem 0.4rem; */
/*   border-radius: 8px; */
/* } */

/* pre > code { */
/*   display: block; */
/*   white-space: inherit;    /1* keep the pre’s pre formatting *1/ */
/*   padding: 0;              /1* use pre’s padding *1/ */
/*   /1* background: transparent; *1/ */
/* } */

pre {
  display: block;
  white-space: pre;               
  overflow-x: auto;               
  margin: 1rem 0;
  background: rgba(100, 32, 32, 0.2); /* warm marroon when mixed with background chestnut brown */
  padding: 0.4rem;
  border-radius: 8px;
}

pre > code {
  display: block;
  padding: 0;           
  background: transparent;
  /* background: rgba(100, 32, 32, 0.2); /1* warm marroon when mixed with background chestnut brown *1/ */
}

/* pre, code { */
/* 	line-height: 1.2; */
/*     font-size: 0.8rem; */
/* 	font-family: monospace; */
/* 	white-space: pre; */
/* } */

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.0rem;
  }
  h3 {
	  font-size: 0.8rem;
  }
  p {
	  font-size: 0.8rem;
  }
  pre, code {
    font-size: 0.7rem;
	line-height: 1.2;
  }

  pre {
    white-space: pre-wrap;
  }
  ul, ol {
    font-size: 0.9rem;
  }
}


/* --------------- */
/* Change link color to a warm mustard */
a {
  color: #f5e6b8;
  /* color: #d4a017; /1* mustard yellow *1/ */
  text-decoration: underline;
  /* transition: color 0.3s ease; */
}

a:hover, a:focus {
  color: #c4b893; /* a bit darker on hover/focus */
  outline: none;
}

/* Post titles - soften white to a warm off-white */
h1, h2, h3 {
	color: #401414;
  /* color: #f5e6b8; /1* soft creamy yellow *1/ */
  /* color: #c4b893; */
  /* color: #a39771 */
  /* Optional: add subtle text shadow for better contrast */
  /* text-shadow: 1px 1px 2px rgba(0,0,0,0.4); */
}

/* If you want the window-header (post title container) to match */
.window-header {
    font-size: 1.2rem;
	color:#401414;
	/* color:#7a5d21; */
  /* color: #f5e6b8; /1* same warm off-white *1/ */
  /* text-shadow: 1px 1px 2px rgba(0,0,0,0.4); */
}

/* Optional: smooth link underline on hover */
a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Bonus: gently warm background for links on hover */
a:hover, a:focus {
  background-color: rgba(212, 160, 23, 0.15); /* subtle mustard glow */
  border-radius: 3px;
}


/* Make all images scale down on smaller screens */
img {
    max-width: 100%;  /* never exceed the container width */
    height: auto;     /* maintain aspect ratio */
    display: block;   /* removes inline spacing issues */
    margin: 1rem 0;   /* optional spacing */
}

