@charset "UTF-8";

/*
See: https://edwardtufte.github.io/tufte-css/
And: https://github.com/inuitcss/inuitcss
*/

/****************************************************************************   */

/* Fonts                                                                     */

/****************************************************************************   */

@font-face {
  font-family: "et-book";
  src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
  src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "et-book";
  src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot");
  src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "et-book";
  src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot");
  src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "et-book-roman-old-style";
  src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot");
  src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/****************************************************************************   */

/* Box sizing and changes to dom elements                                                      */

/****************************************************************************   */

html {
  box-sizing: border-box;
  font-size: 21px;
  line-height: 1.8rem;
  overflow-y: scroll;
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  width: 100%;
  margin: 0;
  background-color: #fffff8;
  color: #111;
  counter-reset: aside-counter;
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

/****************************************************************************   */

/* Global layout                                                             */

/****************************************************************************   */

.page {
  padding-left: 10%;
  padding-right: 2%;
  max-width: 1260px;
}

.page__content {
  margin: 0.5rem 0;
  padding-right: 0;
  width: 61%;
  float: left;
  display: block;
}

.page__aside {
  float: right;
  display: block;
  margin: 0.5rem 0 0.5rem 5%;
  width: 34%;
  font-size: 0.8rem;
}

.page__full {
  width: 100%;
}

.page__full::after {
  content: " ";
  display: table;
  clear: both;
}

@media screen and (max-width: 1200px) {
  .page {
    max-width: 770px;
  }

  .page__content {
    width: 100%;
  }

  .page__aside {
    width: 100%;
    max-width: 560px;
    float: left;
  }
}

@media screen and (max-width: 800px) {
  .page {
    padding-left: 4%;
    padding-right: 2%;
  }
}

/****************************************************************************   */

/* Elements                                                                  */

/****************************************************************************   */

.title {
  font-weight: 400;
  margin-top: 7rem;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  line-height: 1;
}

@media screen and (max-width: 1200px) {
  .title {
    margin-top: 6rem;
  }
}

@media screen and (max-width: 800px) {
  .title {
    margin-top: 4rem;
  }
}

.subtitle {
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  display: block;
  line-height: 1;
}

.invert {
  background-color: #111;
  color: #fffff8;
}

.btn {
  border: 1px solid #111;
  display: inline-block;
  vertical-align: middle;
  font: inherit;
  text-align: center;
  margin: 0 2px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 300ms ease-in-out;
  border-radius: 3px;
  background-color: #fff;
  width: initial;
  text-decoration: none;
  color: inherit;
}

.btn:focus {
  outline: none;
}

.btn:hover {
  background-color: #ccc;
  outline: none;
}

.btn--icon {
  width: 73px;
}

@media screen and (max-width: 430px) {
  .btn--icon {
    padding: 0;
    width: 43px;
  }
}

.btn--clicked {
  border-width: 2px;
  background-color: #ccc;
}

.btn--clicked:hover {
  background-color: #fff;
}

/* https://css-tricks.com/aspect-ratio-boxes/ */
.aspect-ratio-box {
  height: 0;
  overflow: hidden;
  padding-top: calc(450 / 800 * 100%);
  background: white;
  position: relative;
}

.aspect-ratio-box-inside {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bordered {
  border: 3px solid rgb(122, 122, 122);
}

.quiz-box {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #fff;
  min-height: 200px;
}

.quiz-box--title {
  font-weight: bold;
}

.form {
  content: " ";
  display: table;
  clear: both;
}

.form__input,
.form__label {
  display: block;
  width: 100%;
  padding-bottom: 2px;
}

.form__validation {
  margin: 0;
  padding: 0;
  text-align: right;
  font-size: 0.8rem;
  max-width: 560px;
  float: right;
}

.space {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.indent {
  padding-left: 1rem;
}

.fullsize {
  width: 100%;
  height: 100%;
}

.inline-definition {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

.login-status {
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 1rem;
  border: 1px solid #111;
  background-color: #fff;
}

/* ol */.table-of-contents > li {
  list-style-type: none;
}

.undecorated_link {
  color: inherit;
  text-decoration: none;
}

.page-head {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0.5rem;
}

@media screen and (max-width: 830px) {
  .page-head {
    display: none;
  }
}

.page-head--left {
  position: fixed;
}

.page-head--right {
  padding-right: 0.5rem;
  right: 0;
  position: fixed;
}

/****************************************************************************   */

/* Messy stuff (that I want to sort)                                         */

/****************************************************************************   */

main::after,
section::after,
article::after {
  content: " ";
  display: table;
  clear: both;
}

/****************************************************************************   */

/* Utilities                                                                 */

/****************************************************************************   */

/* http://www.cssmojo.com/the-very-latest-clearfix-reloaded/ */
.clearfix::after {
  content: " ";
  display: table;
  clear: both;
}

.hidden {
  display: none !important;
}

.flexbox-centering {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visually-hidden {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
