
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-v25-latin-regular.woff2") format("woff2"),
       url("fonts/lora-v25-latin-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-v25-latin-italic.woff2") format("woff2"),
       url("fonts/lora-v25-latin-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}


/*
 * Base structure
 */

body {
  background-color: #EBEBEB;
  font-family: "Vollkorn", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.vitae-container {
  max-width: 42em;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #a3a8ad, transparent);
  opacity: 1;
  overflow: visible;
  margin-bottom: 2rem;
}

hr::after {
  content: "\2727";
  display: block;
  position: relative;
  top: -0.75em;
  width: 2em;
  margin: 0 auto;
  text-align: center;
  color: #a3a8ad;
  background-color: #EBEBEB;
}

.vitae-container.post-wide {
  max-width: 52em;
}


/*
 * Header
 */

.header-bagel {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-bottom: 3px;
}

.post-footer-brand {
  font-size: 1.17rem;
  white-space: nowrap;
}

.btn-background {
  background-color: #EBEBEB !important;
  border: none;
}

header .btn-background {
  font-size: 1.15rem;
}

.cv .btn-background {
  font-size: 1.2rem;
}

.active {
  font-weight: bold;
  border: none;
}


/*
 * Footer
 */

#footer {
  font-size: 1.1rem;
}

.scrollable-page #footer {
  padding-bottom: 50vh !important;
}


/*
 * Login page
 */

.image {
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 1%;
}

.traveler-input {
  text-align: center;
  background-color: #EBEBEB;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1.1rem;
  width: 65%;
}

.loading-text {
  font-size: 1.3rem;
  margin-top: 2rem;
}


/*
 * About page
 */

.profile-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-cv h1 {
  font-weight: normal;
  text-align: center;
}

.about-cv hr ~ p {
  font-size: 1rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.about-cv a {
  color: inherit;
}


/*
 * Essay list
 */

.cv {
  text-align: left;
}

.cv h5 {
  margin-top: 2rem;
}

.cv p {
  white-space: pre-wrap;
  font-size: 1.3rem;
  font-family: "Lora", serif;
  line-height: 1.8;
}

.cv p.small {
  font-size: 1rem;
}

.lead-desktop {
  font-size: 1.25rem;
  font-weight: inherit;
}

@media (min-width: 992px) {
  .lead-desktop {
    font-size: 1.45rem;
    font-weight: 300;
  }
}

.post-card {
  background-color: #f7f7f7;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

.post-card-img {
  height: 200px;
  object-fit: cover;
}


/*
 * Post page
 */

.post-feature-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
}

.post-body {
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-body p,
.post-body li {
  text-align: left;
  font-size: 1.2rem;
  font-family: "Lora", serif;
  margin-bottom: 1.2em;
}

.post-body a {
  color: inherit;
}

.post-body blockquote {
  font-size: 1.2rem;
  font-family: "Lora", serif;
  padding-left: 1.4rem;
  margin-left: 0;
  margin-bottom: 1.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='12'%3E%3Cpath d='M3,0 C6,3 0,9 3,12' stroke='%23aaa' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 6px 12px;
  background-position: left top;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
