@charset "UTF-8";

/* FONTS */
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/EBGaramond-Regular.woff2) format("woff2"), url(../fonts/EBGaramond-Regular.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/EBGaramond-Italic.woff2) format("woff2"), url(../fonts/EBGaramond-Italic.otf) format("opentype");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/EBGaramond-Bold.woff2) format("woff2"), url(../fonts/EBGaramond-Bold.otf) format("opentype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
	font-family: Inconsolata;
	src: url(../fonts/Inconsolata-Regular.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: Inconsolata;
	src: url(../fonts/Inconsolata-Bold.ttf) format('truetype');
	font-weight: bold;
	font-style: normal;
}
:root {
  --serif: "EB Garamond", Georgia, serif;
  --mono: Inconsolata, Menlo, Monaco, Consolas, monospace;
}

/* COLORS */
:root[color-mode="light"] {
	--accent-color: #a00000;
	--font-color: #111111;
	--muted-color: #B2B2B2;
	--bg-color: #fefefe;
	--code-bg: #f5f5f5;
	--code-border: #ccc;
}
:root[color-mode="dark"] {
	--accent-color: #F0F0F0;
	--muted-color: #777777;
	--font-color: #bfbfbf;
	--bg-color: #121212;
	--code-bg: #222222;
	--code-border: #555555;
}
:root[color-mode="light"] .light--hidden { display: none; }
:root[color-mode="dark"] .dark--hidden { display: none; }

/* BASE */
* { box-sizing: border-box; }
html {
	height: 100%;
	text-align: baseline;
	font-size: 18px;
}
body {
	margin: 0 auto;
	padding: 0 2.5%;
	font-family: var(--serif);
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	background-color: var(--bg-color);
	color: var(--font-color);
	max-width: 1000px;
	counter-reset: sidenote-counter;
}
article {
	position: relative;
	padding: 0rem 0rem 2.5rem 0rem;
}
section {
	padding: 0 0 1rem 0;
}

/* HEADER */
header {
	display: flex;
	align-items: center;
	max-width: 650px;
	margin: 1rem 0 1rem 0;
	padding: 0;
	overflow: hidden;
}
header nav {
	float: left;
	margin: 0;
	overflow: hidden;
}
header nav:not(.toc) a {
	vertical-align: baseline;
	color: var(--accent-color);
	text-decoration: none;
	font-size: 1.5em;
	font-weight: normal;
	margin-right: 1rem;
	font-style: italic;
}

/* FOOTER */
footer {
	margin: 0;
	padding: 0 0 5em 0;
	text-align: center;
	color: var(--muted-color);
}
footer p {
	font-size: 0.9rem;
	margin: 0 auto;
	padding; 0;
}
/* HEADINGS */
h1, h2, h3 {
	font-style: italic;
	font-weight: normal;
	color: var(--accent-color);
	margin-top: 3rem;
}
h1.title {
	margin-top: 2rem;
	font-size: 1.8rem;
}
h1 { font-size: 1.8rem }
h2 { font-size: 1.5rem }
h3 { font-size: 1.3rem }

/* PARAGRAPHS */
p {
	font-size: 1.15rem;
	line-height: 1.5;
	hyphens: auto;
	-ms-hyphens: auto;
	-webkit-hyphens: auto;
}

/* LISTS */
ul, ol {
	font-size: 1.1rem;
}
li {
	line-height: 1.5;
}

/* TYPOGRAPHY */
body {
	font-variant-numeric: oldstyle-nums;
}
.smallcaps,
.nt {
	font-variant: small-caps;
}
p:has(> span.smallcaps),
p:has(> span.nt) {
	margin-top: 3rem;
}
strong { font-weight: bold }
.publications p {
	padding-left: 1rem;
	text-indent: -1rem;
}
span[lang=grc] {
	font-family: "EB Garamond", Cardo, Gentium, serif;
}
.muted {
	color: var(--muted-color);
}

/* LINKS */
a,
a.uri {
	word-break: break-word;
	hyphens: none;
	-webkit-hyphens: none;
}

:target { animation: highlight 5s ease; }
@keyframes highlight {
  0% { background-color: #ffa; }
  100% { background-color: var(--bg-color); }
}

div a, div a:visited,
p > a, p > a:visited,
.citation a, .citation a:visited,
.sidenote a, .sidenote a:visited,
.marginnote a, .marginnote a:visited,
li a, li a:visited,
nav#previous-next a, nav#previous-next a:visited,
figcaption a, figcaption a:visited {
	color: inherit;
}

div a,
p > a,
nav#previous-next a,
li a {
    text-decoration: none;
    background: -webkit-linear-gradient(var(--bg-color), var(--bg-color)), -webkit-linear-gradient(var(--bg-color), var(--bg-color)), -webkit-linear-gradient(currentColor, currentColor);
    background: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(currentColor, currentColor);
    -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    background-repeat: no-repeat, no-repeat, repeat-x;
    text-shadow: 0.03em 0 var(--bg-color), -0.03em 0 var(--bg-color), 0 0.03em var(--bg-color), 0 -0.03em var(--bg-color), 0.06em 0 var(--bg-color), -0.06em 0 var(--bg-color), 0.09em 0 var(--bg-color), -0.09em 0 var(--bg-color), 0.12em 0 var(--bg-color), -0.12em 0 var(--bg-color), 0.15em 0 var(--bg-color), -0.15em 0 var(--bg-color);
    background-position: 0% 93%, 100% 93%, 0% 93%; 
}

h3.contrast a {
	background: none;
	text-shadow: none;
	color: inherit;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
	div a,
	p > a,
	li a {
		background-position-y: 87%, 87%, 87%;
	}
	caption a,
	figcaption a {
		background-position-y: 95%, 95%, 95%;
	}
}

div a::selection,
p > a::selection,
li a::selection {
    text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
    background: #b4d5fe;
    text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
    background: #b4d5fe;
}

div a::moz-selection,
p > a::-moz-selection,
li a::-moz-selection {
	text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
	background: #b4d5fe;
}

.sidenote a,
.marginnote a {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: inherit;
  text-decoration-thickness: 1px;
}
.sidenote a:hover,
.marginnote a:hover {
	text-decoration-style: solid;
}

/* THEME BUTTON */
button {
	cursor: pointer;
}
.color-mode__btn {
	flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem 0 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #111111;
  color: var(--font-color);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
}
.color-mode__btn svg {
  width: 30px;
  height: 30px;
  margin-left: 7px;
  fill: none;
  stroke: #222222;
  stroke: var(--font-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5px;
}
.color-mode__btn:hover svg,
.color-mode__btn:focus svg, .color-mode__btn:focus {
  outline: none;
  fill: #fff7d6;
  fill: var(--tertiary, #fff7d6);
}

