/* ==================================================================
    VARIABLES
================================================================== */

:root {
  --brown: #A26842;
  --yellow: #E7BB5C;
  --black: #000000;
  --grey: #a6a2a0;
}

/* ==================================================================
    DEFAULT FONT AND LAYOUT
================================================================== */
@font-face {
  font-family: "Cinzel";
  src: url('Cinzel-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Myriad";
  src: url('Myriad-Pro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-family: "Myriad", Helvetica, sans-serif;
  color: var(--black);
}

/* ==================================================================
    Header and Nav
================================================================== */
header {
  text-align: right;
  margin-top: 3em;
  margin-bottom: 3em;
  display: flex;
  align-items: center;
}

header .logo-name {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 0.1em;
}

header .logo {
/*  border: solid thin red;*/
  display: inline-block;
  padding-top: 0em;
}

header .logo img {
  width: 3em;
}

header .name {
/*  border: solid thin red;*/
  display: inline-block;
  padding-top: 0em;
}

header .name a {
  color: var(--black);
  text-decoration: none;
}

header .profession {
  width: 100%;
  display: inline-block;
  text-align: left;
  font-size: 1.7em;
  font-family: "Cinzel", Times New Roman, serif;
  padding-top: 0em;
  padding-left: 0.2em;
}

header .person {
  width: 100%;
  display: inline-block;
  text-align: left;
  font-size: 1.1em;
  font-family: "Myriad", Helvetica, sans-serif;
  padding-top: 0em;
  padding-left: 0.2em;
}

header .navigation {
}

nav {
/*  border: solid thin red;*/
  text-align: center;
  width: 65%;
  display: inline-block;
  padding-top: 0em;
}

nav ul {
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}

nav li {
  display: inline-block;
}

nav li a {
  color: var(--brown);
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-block;
/*  float: center;*/
  padding-top: 0em;
  padding-right: 0.2em;
  padding-left: 0.2em;
/*  padding-bottom: 5px;*/
  margin-left: 0.4em;
  margin-right: 0.4em;
/*  border-bottom: 2px solid #4c9cf1;*/
  transition: color 0.3s ease;
}

nav li a:hover {
  color: var(--black);
  border-bottom: 0.2em solid black;
}

#menu-icon {
  display: none;
}

header .i18n {
/*  border: solid thin red;*/
  width: 10%;
  display: inline-block;
  text-align: center;
  padding-top: 0em;
  padding-right: 1em;
  padding-left: 0em;
  font-family: "Cinzel", Times New Roman, serif;
}

header .i18n a {
  color: var(--brown);
  text-decoration: none;
}

header .i18n a:hover {
  color: var(--black);
  border-bottom: 0.2em solid black;
}

@media (max-width: 480px) {
  header {
    padding-left: 0%;
    padding-right: 0%;
  }
}

@media (min-width: 481px) {
  header {
    padding-left: 3%;
    padding-right: 3%;
  }
}
/* wide display: enforce maximum width of header to match content */
@media (min-width: 940px) {
  header {
    width: 940px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* medium display: nav goes under name */
@media (max-width: 760px) {
  header { display: block; }

  header .logo-name {
    display: block;
    width: 100%;
    padding-bottom: 0.5em;
  }

  nav {
    width: 85%;
  }
}

/* narrow display: collapse the header (don't show the menu items)
instead, display a burger menu. */
@media (max-width: 500px) {
  header {
    height: 35px;
    display: flex;
    align-items: center;
  }

  header .logo-name {
    display: inline-block;
    text-align: left;
    width: 70%;
  }

  nav {
    display: inline-block;
    width: 27%;
  }

  nav ul,
  nav:active ul {
    display: none;
    position: absolute;

    /* padding: 20px; */
    background: #fff;
    border: 1px solid #444;
    right: 50px;
    top: 60px;
    width: 30%;
    border-radius: 4px 0 4px 4px;
    z-index: 1;
  }

  nav li {
    text-align: left;
    display: block;
    padding: 0;
    margin: 0;
  }
  header li a { border-bottom: none; }
  header li a:hover { border-bottom: none; }

  nav:hover ul {
    display: block;
  }

  #menu-icon {
    display: inline-block;
    margin-right: 0.5em;
    margin-top: 0.3em;
  }
}

/* ==================================================================
    GENERAL FORMATTING
================================================================== */

/* Spacing between bullet points. */
.content li p {
  margin: 10px 0;
}

.content a {
  color: var(--brown);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
  color: var(--black);
/*  border-bottom: 0.2em solid black;*/
}

/* ==================================================================
    TITLES
================================================================== */

.content h1 { font-size: 2em; }
.content h2 { font-size: 1.2em; }
.content h3 { font-size: 1em; }

.content h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
  font-family: "Cinzel", Times New Roman, serif;
}

.content h1 {
/*  padding-bottom: 0.5em;*/
/*  border-bottom: 3px double lightgrey;*/
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1em;
}

.content h2 {
/*  padding-bottom: 0.3em;*/
/*  border-bottom: 1px solid lightgrey;*/
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.1em;
}

.content h1 a { color: inherit; }
.content h1 a:hover { text-decoration: none; }
.content h2 a { color: inherit; }
.content h2 a:hover { text-decoration: none; }
.content h3 a { color: inherit; }
.content h3 a:hover { text-decoration: none; }
.content h4 a { color: inherit; }
.content h4 a:hover { text-decoration: none; }
.content h5 a { color: inherit; }
.content h5 a:hover { text-decoration: none; }
.content h6 a { color: inherit; }
.content h6 a:hover { text-decoration: none; }

/* ==================================================================
    TEXT GEOMETRY
================================================================== */

.franklin-toc li {
  /* Avoid clickable elements being too close together. */
  margin: 0.6rem 0;
}

.content {
  position: relative;
  padding-left: 12.5%;
  padding-right: 12.5%;
  line-height: 1.35em;
}

/* On wide screens, fix content width to a max value. */
@media (min-width: 940px) {
  .content {
    width: 705px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* On narrow device, reduce margins. */
@media (max-width: 480px) {
  .content {
    padding-left: 3%;
    padding-right: 3%;
  }
}

img {
    max-width: 100%;
    max-height: 100%;
}

/* ==================================================================
    BOXES
================================================================== */

.content .colbox-blue {
  background-color: #eef3f5;
  padding-top: 5px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 5px;
  margin-left: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 0 10px 10px 0;
  border-left: 5px solid #4c9cf1;
}

/* ==================================================================
    FOOT / COPYRIGHT
================================================================== */
footer {
  font-size: 80%;
  font-family: "Cinzel", Times New Roman, serif;
  color: var(--grey);
  text-align: center;
  margin-top: 6em;
  border-top: 0.1em solid lightgrey;
  padding-top: 2em;
  margin-bottom: 4em;
}

footer a {
  color: var(--brown);
  text-decoration: none;
  font-size: 1em;
/*  font-weight: bold;*/
  display: inline-block;
/*  float: center;*/
  padding-top: 0em;
  padding-right: 0.2em;
  padding-left: 0.2em;
/*  padding-bottom: 5px;*/
  margin-left: 0.4em;
  margin-right: 0.4em;
/*  border-bottom: 2px solid #4c9cf1;*/
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--black);
/*  border-bottom: 0.2em solid black;*/
}
