@font-face {
  font-family: 'Latin Modern';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('./fonts/LM-regular.woff2') format('woff2'),
    url('./fonts/LM-regular.woff') format('woff'),
    url('./fonts/LM-regular.ttf') format('truetype');
}


@font-face {
  font-family: 'Latin Modern';
  font-style: italic;
  font-weight: normal;
  font-display: swap;
  src: url('./fonts/LM-italic.woff2') format('woff2'),
    url('./fonts/LM-italic.woff') format('woff'),
    url('./fonts/LM-italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Latin Modern';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('./fonts/LM-bold.woff2') format('woff2'),
    url('./fonts/LM-bold.woff') format('woff'),
    url('./fonts/LM-bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Latin Modern';
  font-style: italic;
  font-weight: bold;
  font-display: swap;
  src: url('./fonts/LM-bold-italic.woff2') format('woff2'),
    url('./fonts/LM-bold-italic.woff') format('woff'),
    url('./fonts/LM-bold-italic.ttf') format('truetype');
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
dl,
dd {
  margin: 0;
}


/* Make default font-size 1rem and add smooth scrolling to anchors */
html {
  font-size: 1rem;
  scroll-behavior: smooth;
}

body {
    font-family: cormorant-garamond,serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    max-width: 87ch;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0 auto;
    padding-top: 3rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    padding-bottom: 2rem;
    counter-reset: theorem;
    counter-reset: definition;
    counter-reset: footnotes;
    color: hsl(0, 5%, 10%);
    background-color: hsl(210, 20%, 98%);
    text-rendering: optimizeLegibility;
	text-align: justify;

}
a[aria-describedby="footnote-label"] {
  counter-increment: footnotes; /* 1 */
  text-decoration: none; /* 2 */
  color: black; /* 2 */
  cursor: default; /* 2 */
  outline: none; /* 2 */
	margin-top: -50px;
}

#footnote-label {
	display: none;
}
a[aria-describedby="footnote-label"]::after {
  content: '[' counter(footnotes) ']'; /* 1 */
  vertical-align: super; /* 2 */
  font-size: 0.8em; /* 3 */
  margin-left: 2px; /* 4 */
  color: inherit; /* 5 */
  cursor: pointer; /* 5 */
}
a[aria-describedby="footnote-label"]:hover {
  color: #a00; /* 5 */
  text-decoration: none; /* 5 */
  cursor: pointer; /* 5 */
}
a[aria-describedby="footnote-label"]:focus::after {
	margin-top: -50px;
}

footer :target {
  background-color: #F1F1F1;
}

[aria-label="Back to content"] {
  font-size: 0.8em;
}

/* Justify and hyphenate all paragraphs */
p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  margin-top: 1rem;
}
address {
	  font-style: normal;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make links red */
a,
a:visited {
  color: #a00;
}


/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Prevent textarea from overflowing */
textarea {
  width: 100%;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Styles for inline code or code snippets */
code,
pre,
kbd {
  font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: 85%;
}
pre {
  padding: 1rem 1.4rem;
  max-width: 100%;
  overflow: auto;
  border-radius: 4px;
  background: hsl(210, 28%, 93%);
}
pre code {
  font-size: 95%;
  position: relative;
}
kbd {
  background: hsl(210, 5%, 100%);
  border: 1px solid hsl(210, 5%, 70%);
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 75%;
}

/* Make table 100% width, add borders between rows */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  max-width: 100%;
}
th,
td {
  text-align: left;
  padding: 0.3rem;
  border-bottom: 2px solid hsl(0, 0%, 85%);
}
td {
  border-bottom: 1px solid hsl(0, 0%, 85%);
}
thead th {
  border-bottom: 2px solid hsl(0, 0%, 70%);
  }
tfoot th {
  border-top: 2px solid hsl(0, 0%, 70%);
}

/* Center align the title */
h1:first-child {
  text-align: center;
}

ol {
	padding-left: 3ch;
}
/* Nested ordered list for ToC */
nav ol {
  counter-reset: item;
  padding-left: 2rem;
}
nav li {
  display: block;
}
nav li:before {
  content: counters(item, '.') ' ';
  counter-increment: item;
  padding-right: 0.85rem;
}

/* Center definitions (most useful for display equations) */
dl dd {
  text-align: center;
}
.videolink{
  color: #a00;
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
  line-height: 1.0rem;
}
.papertitle{
  margin-block-start: 0.3em;
  margin-block-end: 0.3em;
  line-height: 1.3rem;
  font-size: 1.1rem;
  }
  a.presenter {
    font-size: 1.1rem;
    color: black;
    text-decoration: none;
    font-weight: 600;
  }
h5{
  margin-block-start: 0.8em;
  margin-block-end: 0.1em;
}
button {
  margin-top: 5px;
  display: block;
}


a.personlink {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

.footnote {
  counter-increment: footnote;
  font-style: italic;
}
.sup::before {
  content: '[<a href src="#fn' counter(footnote) '"> ' counter(footnote) ']';
  font-weight: bold;
  font-style: normal;
}
/* Theorem */
.theorem {
  counter-increment: theorem;
  display: block;
  margin: 12px 0;
  font-style: italic;
}
.theorem::before {
  content: 'Theorem ' counter(theorem) '. ';
  font-weight: bold;
  font-style: normal;
}

/* Lemma */
.lemma {
  counter-increment: theorem;
  display: block;
  margin: 12px 0;
  font-style: italic;
}
.lemma::before {
  content: 'Lemma ' counter(theorem) '. ';
  font-weight: bold;
  font-style: normal;
}

/* Proof */
.proof {
  display: block;
  margin: 12px 0;
  font-style: normal;
  position: relative;
}
.proof::before {
  content: 'Proof. ' attr(title);
  font-style: italic;
}
.proof:after {
  content: '◾️';
  position: absolute;
  right: -12px;
  bottom: -2px;
}

/* Definition */
.definition {
  counter-increment: definition;
  display: block;
  margin: 12px 0;
  font-style: normal;
}
.definition::before {
  content: 'Definition ' counter(definition) '. ';
  font-weight: bold;
  font-style: normal;
}

/* Center align author name, use small caps and add vertical spacing  */
.author {
  margin: 0.75rem 0;
  font-variant-caps: small-caps;
  text-align: center;
	line-height: 1.25;
}

/* Make footnote text smaller and left align it (looks bad with long URLs) */
.footnotes p {
  text-align: left;
  line-height: 1.5;
  font-size: 85%;
  margin-bottom: 0.4rem;
}
.footnotes {
  border-top: 1px solid hsl(0, 0%, 39%);
}

/* Center title and paragraph */
.abstract,
.abstract p {
  text-align: center;
}
.abstract {
  margin: 2.25rem 0;
}

.LSE {
  font-family: roboto,sans-serif;
  font-weight: 500;
  font-size: 40px;
  font-style: normal;
}
/* Heading typography */
h1 {
  font-family: cormorant-garamond,serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2rem;
  line-height: 3.25rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.7rem;
  line-height: 2rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

h4 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

h5 {
  font-size: 1rem;
  margin-top: 1.8rem;
}

h6 {
  font-size: 1rem;
  font-style: italic;
  font-weight: normal;
  margin-top: 2.5rem;
}

h3,
h4,
h5,
h6 {
  line-height: 1.625rem;
}

h1 + h2 {
  margin-top: 1.625rem;
}

h2 + h3,
h3 + h4,
h4 + h5 {
  margin-top: 0.8rem;
}

h5 + h6 {
  margin-top: -0.8rem;
}

h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.8rem;
}
h1.name {
	  white-space: nowrap;
}
.references {
	font-size: 85%;
}

@media screen and (max-width : 550px ){
	h1.name {
		font-size: 8vw;
}
}
.reference {
	border-top: 60px solid transparent;
	margin-top: -60px;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
}
