/* Tufte CSS-inspired homepage styles; see TUFTE-CSS-LICENSE. */
@font-face {
  font-family: "ET Book";
  src: url("../fonts/et-book/et-book-roman-line-figures.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ET Book Old Style";
  src: url("../fonts/et-book/et-book-roman-old-style-figures.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html:has(.reference-home-page) {
  font-size: 10px;
  background: #fffff8;
  -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 800px) {
  html:has(.reference-home-page) {
    font-size: 11px;
  }
}

@media screen and (min-width: 900px) {
  html:has(.reference-home-page) {
    font-size: 12px;
  }
}

@media screen and (min-width: 1000px) {
  html:has(.reference-home-page) {
    font-size: 13px;
  }
}

@media screen and (min-width: 1100px) {
  html:has(.reference-home-page) {
    font-size: 14px;
  }
}

body:has(.reference-home-page) {
  --paper: #fffff8;
  --ink: #111111;
  --link: #a00000;
  background: var(--paper);
  color: var(--ink);
  font-family: "ET Book", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  line-height: normal;
  counter-reset: sidenote-counter 0;
}

body:has(.reference-home-page) a {
  color: #a00000;
  text-decoration: none;
}

.reference-container {
  width: min(89.5vw, calc(1400px + 2vw));
  max-width: none;
  margin-right: 0;
  margin-left: max(10.5vw, calc(54.25vw - 700px));
  padding-right: 0;
  padding-left: 0;
}

body:has(.reference-home-page) .site-header {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.reference-navigation {
  display: block;
  width: 95%;
  padding-top: 2rem;
}

.reference-navigation.group::after {
  display: table;
  clear: both;
  content: "";
}

.reference-navigation a {
  display: inline-block;
  margin: 0;
  padding: 1.5rem 2rem 0 0;
  color: #a00000;
  font-family: "Gill Sans", "Gill Sans MT", Lato, Calibri, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: normal;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: baseline;
  white-space: nowrap;
  float: left;
}

.reference-navigation a.active::before {
  content: "<";
}

.reference-navigation a.active::after {
  content: ">";
}

.reference-navigation a:focus-visible,
.reference-navigation a:hover {
  text-decoration: none;
}

.reference-home-page .reference-home {
  position: relative;
  width: 55%;
  max-width: none;
  margin: 0;
  padding: 5rem 0;
}

.page-content:has(.reference-home-page) {
  padding: 0;
}

.page-content > .wrapper:has(.reference-home-page) {
  width: min(89.5vw, calc(1400px + 2vw));
  margin-right: 0;
  margin-left: max(10.5vw, calc(54.25vw - 700px));
}

.reference-home h1 {
  margin: 1.568rem 0;
  color: #111111;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.184;
}

.reference-home p,
.reference-home ul {
  margin: 1.4rem 0;
  font-size: 1.4rem;
  line-height: 2rem;
}

.reference-home p,
.reference-home li {
  text-align: justify;
}

.reference-home .content-listing {
  padding-left: 6%;
}

.reference-home .content-listing li {
  margin-bottom: 0.5em;
}

.reference-home .content-listing hr.invisible {
  width: 100%;
  height: 1px;
  margin: 1.4rem 0;
  border: 0;
}

.reference-home .content-listing h2 {
  margin: 1.86667rem 0 0;
  color: #a00000;
  font-size: 2.1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.933333;
}

.reference-home .content-listing > li > a {
  color: #a00000;
  text-decoration: none;
}

.reference-home .content-listing > li > div > p {
  width: 100%;
  padding-right: 0;
  vertical-align: baseline;
}

.reference-home .content-listing .sidenote,
.reference-home .content-listing .marginnote {
  position: relative;
  float: right;
  clear: right;
  width: 24.0625vw;
  max-width: 336.875px;
  margin: 0 -60% 1.4rem 0;
  font-size: 1rem;
  line-height: 1.4;
  text-align: start;
  vertical-align: baseline;
}

.reference-home .content-listing li .sidenote,
.reference-home .content-listing li .marginnote {
  margin-right: -63.29%;
}

.reference-home .sidenote-number {
  counter-increment: sidenote-counter;
}

.reference-home .sidenote-number::after,
.reference-home .sidenote::before {
  position: relative;
  color: #a00000;
  font-family: "ET Book Old Style", "ET Book", serif;
  vertical-align: baseline;
}

.reference-home .sidenote-number::after {
  top: -0.5rem;
  left: 0.1rem;
  font-size: 1rem;
  content: counter(sidenote-counter);
}

.reference-home .sidenote::before {
  content: counter(sidenote-counter) ". ";
}

.reference-home label {
  position: relative;
  cursor: pointer;
}

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

.reference-home input.margin-toggle {
  display: inline-block;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  vertical-align: middle;
}

.reference-home input.margin-toggle:focus-visible {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 1;
  accent-color: #a00000;
  outline: 2px solid #a00000;
  outline-offset: 2px;
}

.site-footer {
  padding: 0;
  border: 0;
}

.site-footer .wrapper {
  width: min(85.025vw, calc(1330px + 1.9vw));
  margin-right: 0;
  margin-left: max(10.5vw, calc(54.25vw - 700px));
  padding-top: 2rem;
}

.site-footer .wrapper .credits {
  color: #111111;
  font-family: "Gill Sans", "Gill Sans MT", Lato, Calibri, sans-serif;
  font-size: 1rem;
  list-style: none;
  padding: 1rem 0;
  text-align: center;
}

.site-footer .wrapper .slender {
  height: 1px;
  margin: 1.4rem 0;
  border: 0;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.75), transparent);
}

.reference-social-link {
  display: inline-block;
  width: 1.4em;
  margin: 0 0.2em;
  color: #000000 !important;
  font-size: x-large;
  line-height: normal;
  text-align: center;
  vertical-align: baseline;
}

.reference-social-link svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

@media screen and (max-width: 760px) {
  .reference-home-page .reference-home {
    width: 90%;
  }

  .reference-home .content-listing .sidenote,
  .reference-home .content-listing .marginnote {
    display: none;
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0 5%;
  }

  .reference-home label.margin-toggle:not(.sidenote-number) {
    display: inline;
    color: #a00000;
  }

  .reference-home label.sidenote-number::before {
    position: absolute;
    inset: -1rem -0.75rem;
    content: "";
  }

  .reference-home .margin-toggle:checked + .sidenote,
  .reference-home .margin-toggle:checked + .marginnote {
    display: block;
  }

  .reference-home label {
    cursor: pointer;
  }
}
