@layer defaults;

/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */


/*Main*/
body {
  background-color: #fae6b3;
  background-image: url(images/bg.png);
  background-repeat: repeat;
  background-position: top;
  color: black;
  font-family: 'Courier New';
}

hr {
	height:0.0625em;
	border-width:0;
	color:gray;
	background-color:gray
}


#sidebar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 8.125em;
  background-color: #c0b490;
  position: -webkit-sticky;
  position: sticky;
  height: 100%;
  overflow: auto;
  top: 0;
}

li a {
  display: block;
  color: black;
  padding: 0.5em 1em;
  text-decoration: none;
}

li a.active {
  background-color: #f6ad55;
  color: white;
}

li a:hover:not(.active) {
  background-color: #555555;
  color: white;
}

#content_t {  
margin-left:1.25em;padding:0.9375em;position:auto;
}

#container {
  margin: 3em auto;
  margin-top:auto;
  width: 90%;
	max-width: 43.75em;
	background-color: #fae6b3;
  color: #151515; 
  outline-color: #c0b490;
  outline-style: ridge;
  outline-width: 0.25em;
  outline-offset: 0;
}

#header {
  background-color: #c0b490;
  border-color: #a9a9a9;
  border-style: ridge;
  border-width: 0 0 0 0;
  top: 0;
}

.image-container img {
  height: auto;
  max-width: 100%;
}

#banner {
  margin: 3em auto;
  margin-top:auto;
  width: 90%;
	max-width: 43.75em;
	background-color: #c0b490;
  color: #151515; 
  outline-color: #c0b490;
  outline-style: ridge;
  outline-width: 0.25em;
  outline-offset: 0;
}

#banner_text {
text-align: center;
}
@layer defaults {

/* POSTS */

article > header {
	margin-block-end: 1rem;
	padding-block-end: 1rem;
	border-block-end: var(--line);
	h1 {
		margin-block-end: 0.5rem;
		font-size: 2.2rem;
	}
	& + * {
		margin-block-start: 0;
	}
}
#post-tags {
	margin-block: 0;
	& > li:not(:last-child)::after {
		content: ""; /* comma + non-breaking space */
	}
	a::before {
		content: "#";
	}
}
#post-nav > ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap);
	padding-inline-start: 0;
	list-style-type: "";
	& > :first-child > a::before {
		content: "\2190 \a0"; /* left arrow + non-breaking space */
	}
	& > :last-child {
		text-align: right;
		a::after {
			content: "\2192 \a0"; /* right arrow + non-breaking space */
		}
	}
}

/* POST LISTS */

.post-list {
	padding-inline-start: var(--gap);
	list-style-type: "";
	text-indent: calc(-1 * var(--gap));
	font-size: var(--interface-font-size);
}
#tag-index {
	padding-inline-start: 0;
	list-style-type: "";
	details {
		margin-block: 0;
	}
	[open] {
		margin-block-end: 1rem;
	}
	summary {
		font-size: var(--interface-font-size);
	}
}

.flex-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding-inline-start: 0;
	list-style-type: "";
}

/* TEXT */
:is(h1, h2, h3) + * {
	margin-block-start: 0;
}
h1 {
	margin-block-start: 1rem;
	margin-block-end: 0;
}
h2 {
	margin-block-start: 3rem;
	margin-block-end: 0.25rem;
}
h3 {
	margin-block-start: 2rem;
	margin-block-end: 0.25rem;
}
details {
	margin-block: 1rem;
	margin-inline-start: var(--gap);
}
summary {
	cursor: pointer;
	font-weight: bold;
	margin-inline-start: -1rem;
	& + * {
		margin-block-start: 0;
	}
}

code {
	font-size: 0.8em;
}
.code-block {
	display: block;
	margin-block: 1rem;
	overflow-x: auto;
	white-space: pre;
	tab-size: 4ch;
}
blockquote {
	margin-inline: var(--gap);
}

:root {
	--gap: 0.1rem;
  --interface-font-size: 1.2em;
}
}