html {
  --site-width: 50rem;
  --font-size-small: 0.8rem;
  --banner-width: 1178px;
  --header-font-family: "Monotype Corsiva";

  font-family: "Libre Baskerville";
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font-family);
  color: #707fc0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration: none;
  color: unset;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

article.related > header > h1 { font-size: 1.8rem; }

article h2:not(:first-child), article h3:not(:first-child), article h4:not(:first-child), article h5:not(:first-child), article h6:not(:first-child) {
  text-align: center;
}

blockquote {
  font-style: italic;
  position: relative;
  margin: 1em 2em;
  padding: 0 2em;
}

cite {
  font-style: italic;
  padding: 0 6em 0 2em;
  display: block;
  text-align: right;
  color: #888;
}

blockquote:before {
  content: "«";
  line-height: 0.2em;
  font-size: 5em;
  position: absolute;
  top: 0;
  left: 0;
  color: #eee;
}

blockquote:after {
  content: "»";
  line-height: 0.2em;
  font-size: 5em;
  position: absolute;
  right: 0;
  bottom: 0;
  color: #eee;
}

blockquote em {
  font-style: normal;
}

hr {
  border-color: transparent;
  color: unset;
  height: unset;
}

hr:before {
  display: block;
  font-size: 3rem;
  content: "☙❧";
  text-align: center;
  color: #94d9c4;
}

a:visited {
  color: #707fc0;
}

a {
  color: #707fc0;
}

/*
 * Body
 */

body {
  padding: 0;
  margin: 0;
}

header a, footer a, header a:visited, footer a:visited {
  color: inherit;
}

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

footer a {
  text-decoration: underline;
}

/*
 * body
 */

body {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  background-color: #f8f8f8;
}

/*
 * header
 */

header {
  width: 100%;
  position: relative;
}

header .title.banner {
  background-color: #fff;
  height: 283px;
  text-align: center;
  margin: 0;
  display: block;
  background: no-repeat center url(images/banner2.jpg);
  overflow: hidden; /* prevent margin collapsing */
}

header .title h1 {
  margin: 0;
  color: #707fc0;
  font-family: "Great Vibes";
  font-weight: normal;
  font-style: normal;
}

header .title h2 {
  margin: 0;
  color: #846d43;
  font-family: "Monotype Corsiva";
  font-weight: normal;
  font-style: normal;
}

header .title .author {
  color: #707fc0;
  font-family: "Monotype Corsiva";
  font-size: 24px;
  margin: 0.5rem;
}

header .title .home-link {
  color: #707fc0;
  font-family: "Monotype Corsiva";
  font-size: 24px;
  margin: 0.5rem;
  text-decoration: underline;
}

/* --banner-width */
@media (width >= 1000px) {
  header {
    width: var(--banner-width);
    margin-left: auto;
    margin-right: auto;
  }

  header .title.banner {
    width: var(--banner-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  header .title:not(.banner) {
    width: var(--banner-width);
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }

  header .title h1 {
    font-size: 100px;
    position: absolute;
    left: 260px;
    top: 90px;
  }

  header .title h2 {
    font-size: 30px;
    position: absolute;
    right: 350px;
    top: 190px;
  }

  header .title.banner .home-link {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  header .title .author {
    position: absolute;
    top: 0;
    left: 0;
  }

  header .ext-links {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (width < 1000px) {
  header .title.banner {
    background-position: left;
    position: relative;
  }

  header .title:not(.banner) {
    background-color: #c6e3dd;
    padding: 1rem;
  }

  header .title h1 {
    font-size: 10vw;
  }

  header .title h2 {
    font-size: 5vw;
  }

  header .title .home-link {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  header .title .author {
    text-align: left;
  }

  header .ext-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

header .ext-links {
  font-family: "Monotype Corsiva";
}

header .ext-links > a.ext {
  background-color: var(--alternate-bgcolor);
  border: var(--border-color) 2px solid;
  padding: 0.25rem 1rem;
}

header .ext-links > a.ext:hover {
  filter: brightness(85%);
}

header {
  --base-bgcolor: #c6e3dd;
  --alternate-bgcolor: #7ca8ff;
  --active-bgcolor: #c5d5f9;
  --hover-bgcolor: #707fc0;
  --base-color: #707fc0;
  --active-color: #846d43;
  --border-color: #002c84;
  --hover-color: #e5faf3;
}

header > nav:not(.ext-links) {
  background-color: var(--base-bgcolor);
  max-width: var(--banner-width);
  margin-left: auto;
  margin-right: auto;
  font-family: "Monotype Corsiva";
}

@media (width >= 50rem) {
  header > nav {
    font-size: 24px;
  }
}

@media (width < 50rem) {
  header .title .author,
  header > nav {
    font-size: 20px;
  }
}

header > nav ul {
  /*max-width: calc(var(--site-width) + 1rem);*/
  display: flex;
  flex-flow: row wrap;
  margin: 0 auto;
  padding: 0;
}

header > nav ul > li {
  list-style-type: none;
  margin: 0;
  text-align: center;
}

header > nav ul > li > a {
  display: block;
  padding: 0 1rem;
}

header > nav ul.main > li {
  flex: 1 1 auto;
}

header > nav ul.main > li:not(.current):not(:hover) {
  color: var(--base-color);
}

header > nav ul.main > li:not(:hover).current {
  background-color: var(--active-bgcolor);
  color: var(--active-color);
}

header > nav ul > li:hover {
  background-color: var(--hover-bgcolor);
  color: var(--hover-color);
}

header > nav ul.main > li > a {
  padding: 1rem 0.5rem;
}

header > nav ul.child {
  background-color: var(--active-bgcolor);
  color: var(--active-color);
}

header > nav ul > li.active {
  text-decoration: underline;
}

header > nav ul.child > li:not(.active) > a {
  padding: 0 1rem;
}

/*
 * nav.i18n
 */

nav.i18n {
  position: absolute;
  right: 0;
  top: 0;
}

nav.i18n ul {
  display: flex;
  flex-flow: column wrap;
  margin: 0;
  padding: 0;
  background-color: #c6e3dd;
  border-bottom-left-radius: 0.5em;
}

nav.i18n li {
  flex: 1 1 auto;
  list-style-type: none;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

nav.i18n img {
  height: 1em;
}

/*
 * main
 */

main {
  background-color: #fff;
  width: min(calc(100%), var(--banner-width));
  margin-left: auto;
  margin-right: auto;
}

main > div {
  width: min(calc(100% - 1rem), var(--site-width));
  padding: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

main p {
  text-align: justify;
}

/*
 * footer
 */

footer {
  width: 100%;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  font-size: var(--font-size-small);
  color: #888;
}

footer > * {
  width: min(calc(100% - 1rem), var(--site-width));
  padding: 0 0.5rem;
  margin-left: auto;
  margin-right: auto
}

/*
 *
 */

img.right {
  float: right;
  padding: 0.25rem;
}

/*
 * relatd articles
 */

article.related {
  display: flow-root;
  margin: 1rem;
  padding: 1rem;
  border: thin solid #707fc0;
}
