html {
	width: 100vw;
	background: linear-gradient(aliceblue, steelblue);
}

body {
	margin: 0 auto;
	padding: 0;
	min-height: 100vh;
	grid-template-areas:
		"padding head"
		"side main"
		"side foot";
}


nav menu {
	list-style-type: none;
	text-align: right;
}

main {
	grid-area: main;
}


main#index {
	display: flex;
	padding: 0.5rem;
}


section#about {
	grid-area: side;
	text-align: right;
}

section#recently-published {
	grid-area: main;
}

section#recently-modified {
	text-align: right;
}

#recently-published p {
	margin-top: 0;
}

#recently-published h2 {
	margin-bottom: 0;
}

#spoiler-warning {
	margin: 1rem 0;
	position: fixed;
	bottom: 0;
}
	

nav#TableOfContents ul {
	list-style-type: devanagari;
	padding-left: 1.75rem;
}

nav#TableOfContents ul li {
	margin: 0.3rem 0;
	font-weight: 200;
	text-shadow:  aliceblue 0 -1px 0.2rem;
	color: rgba(50, 0, 150, 0.5);
	letter-spacing: 0.01em;
}

nav#TableOfContents ul li a {
	color: inherit;
	text-decoration: none;
	border: unset;
}

h1 {
	margin: 0;
	font-weight: 400;
	color: rgba(100,0,50, 0.6);
}

h2 {
	margin: 0.3rem 0;
	font-weight: 200;
	text-shadow: rgba(50, 0, 150, 0.5) 0 0 0.2rem;
	color: white;
	letter-spacing: 0.01em;
}

h3 {
	margin: 0.3rem 0;
	font-weight: 200;
	text-shadow: steelblue 0 0 0.1rem;
	color: aliceblue;
	letter-spacing: 0.01em;
}


h2 ~ p ~ a:link {
	font-weight: 800;
	font-size: 0.7rem;
	color: red;
	display: block;
}



li > time {
	font-size: 0.8rem;
}

a:link {
	color: inherit;
	text-decoration: inherit;
}

a:active {
	text-decoration: inherit;
}

a:visited {
	color: inherit;
}

main p {
	color: rgba(90,0,0,0.9);
	margin: 0 0 1.5rem 0;
}

footer {
	grid-area: foot;
	color: rgba(255,255,180,0.9);
	letter-spacing: 0.1rem;
}


article main > * {
  max-width: 70ch;
}

blockquote {
  box-sizing: border-box;
  max-width: 70ch;
  border-left: solid 0.5rem;
  padding-left: 2rem;
  margin: 1.5rem 0.25rem;
}

blockquote p {
	margin: 0;
}

img {
  width: 66ch;
  border-radius: 0.25rem;
}

ol,
ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-top: 0;
  margin-bottom: 0;
}

ul#roaming {
	list-style-type: upper-roman;
	width: unset;
}

ul#article {
	list-style-type: none;
	margin-top: 0;
	padding: 0;
	width: unset;
}

ul#links {
	list-style-type: disclosure-closed;
	padding: 1rem;
}

ul li span {
	font-size: 0.7rem;
	font-style: italic;
}

.highlight pre {
  box-sizing: border-box;
  padding: 0.75rem 0.5rem;
  border-radius: 0.25rem;
  overflow-x: scroll;
  margin: 0;
}

p:has(+ *.highlight),
p:has(+ ol),
p:has(+ ul) {
  margin-bottom: 0.25rem;
}

.highlight + p {
  margin-top: 0.5rem;
}

@media (max-width: 850px) {
	body {
		padding: 5px;
	}
	body > header {
		font-size: 1.8em;
		font-weight: 300;
		letter-spacing: 0.2rem;
		color: white;
		text-shadow: rgba(250, 100, 0, 0.8) 1px 1px 2px;
		grid-area: head;
	}

	body > header rt {
		display: none;
		font-size: 0.5rem;
		font-weight: 100;
		color: rgba(250, 100, 0, 0.8);
		text-shadow: none;
		font-style: oblique;
	}

	body {
		display: block;
	}
	body > nav {
		display: block;
	}
	body > nav menu {
		display: none;
	}
}
@media (min-width: 850px) {
	body {
		gap: 0.5em 2em;
		display: grid;
		grid-template-columns: 4fr 9fr;
		grid-template-rows: auto 1fr auto;
	}
	body > nav {
		grid-area: side;
		padding: 2rem 0 0;
		display: flex;
		flex-direction: column;
		align-items: end;
	}

	body > header {
		padding: 0;
		font-size: 3em;
		font-weight: 300;
		letter-spacing: 0.5rem;
		color: white;
		text-shadow: rgba(250, 100, 0, 0.8) 1px 1px 5px;
		grid-area: head;
	}

	body > header rt {
		font-size: 0.8rem;
		font-weight: 100;
		color: rgba(250, 100, 0, 0.8);
		text-shadow: none;
		font-style: oblique;
	}
	section#navigation {
		position:sticky;
		top: 0;
	}
}

@media (min-width: 1100px) {
	body {
		gap: 0.5em 2em;
		display: grid;
		grid-template-columns: 3fr 7fr;
		grid-template-rows: auto 1fr auto;
	}
}
