@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400;1,700&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --dark-brown: hsl(43, 93%, 7%);
  --medium-brown: hsl(43, 71%, 29%);
  --cream: hsl(43, 75%, 98%);
  --teal: hsl(177, 73%, 70%);
}

body {
  margin: 0;
}

#bg_canvas {
  position: fixed;
}

#page_frame {
  position: absolute;
  left: 0px;
  right: 0px;
}

#slideshow {
  width: 600px;
  height: 600px;
  margin-top: 2.5ex;
  margin-left: auto;
  margin-right: auto;"
}


/* Fonts & text formatting */
body {
  font-family: 'Nunito', sans-serif;
}

h1, h2, h3, header {
  font-family: 'EB Garamond', 'Garamond', serif;
}

header h1 {
  font-size: 350%;
  line-height: 100%;
  padding-bottom: 0.3ex;
}

h1 {
  text-align: center;
}

#date-loc {
  font-size: 200%;
  text-align: center;
}

span.nowrap {
  white-space: nowrap;
}


/* Appearance */
main {
  outline: 15px solid rgba(250, 248, 242, 0.8);
  border: 5px solid var(--teal);
  background: var(--cream);
  color: var(--dark-brown);
}

header h1 {
  border-bottom: 1px solid var(--dark-brown);
}

header {
  border-bottom: 1px dashed var(--dark-brown);
}

h2 {
  border-top: 1px dashed var(--dark-brown);
  padding-top: 0.5em;
  margin-top: 2.5ex;
  margin-bottom: 0.67em;
}

dt {
  font-weight: bold;
  margin-top: 1ex;
}


/* Link appearance */
a, a:visited {
  color: #ff7599;
  text-decoration: underline;
}

a:hover {
  color: var(--teal);
  text-decoration: none;
}

header nav a, header nav a:visited {
  text-decoration: none;
  color: #ff7599;
}

header nav a:hover {
  text-decoration: underline;
  color: var(--teal);
}

header h1 a, header h1 a:visited {
  text-decoration: none;
  color: inherit;
}

header h1 a:hover {
  color: #ff7599;
  text-decoration: underline;
}


/* Block layout */
header h1 {
  margin-top: 0;
  margin-bottom: 0;
}

address {
  margin: 1em 0;
}

section:last-child p:last-child {
  margin-bottom: 0;
}


/* date-loc wrapping */
#date-loc p {
  display: inline-block;
  white-space: nowrap;
  margin: 0 1.5ex;
}

#date-loc p:first-child {
  margin-top: 1ex;
}

#date-loc p:last-child {
  margin-bottom: 1ex;
}


/* Header link bar */
header nav ul {
  font-size: 125%;
  max-width: 25em;
  margin-top: 0;
  margin-bottom: 1.5ex;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  text-align: center;
}

header nav ul li {
  list-style: none;
  display: inline-block;
  white-space: nowrap;
  padding: 0 1ex 0.5ex 1ex;
}


/* "More details" links */
div.more-details {
  height: 0.5em;
}

div.more-details p {
  position: relative;
  top: -0.5em;
  text-align: right;
  font-size: 90%;
  margin-top: 0;
}

section p:last-of-type {
  margin-bottom: 0.5em;
}


/* Tables */
div.scroll-x {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
}

tr:first-child {
  border-top: none;
  border-bottom: 1px solid #1d1500;
}

tr {
  border-top: 1px dotted #1d1500;
}

td, th {
  padding: 1ex;
  text-align: center;
}

td:first-child, th:first-child {
  padding-left: 0;
}

td:last-child, th:last-child {
  padding-right: 0;
}


/* Page width overrides */
@media screen, projection, tv {
  main {
    padding: 1.5em;
    width: calc(800px * 0.96 - 3em);
    margin: calc(8% - (800px * 0.05)) auto;
    margin-bottom: 15em;
  }
}
@media screen and (max-width:815px) {
  main {
    padding: 1em;
    margin: 3% 2%;
    width: auto;
  }
}
@media print {
  main {
    margin: 0px;
    padding: 0px;
  }
}

@media screen and (max-width:600px) {
  header nav ul {
    font-size: 110%;
  }
}

@media screen and (max-width:700px) {
  #date-loc {
    font-size: 160%;
  }
}

@media screen and (max-width:840px) {
  main {
    outline: none;
  }
}

@media screen and (max-width:670px) {
  #slideshow {
    width: 100%;
    height: calc(100vw - 70px);
  }
}
