@font-face {
  font-family: "Lexend";
  src: url("/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sea-green: #268140;
  --steel-azure: #044389;
  --ivory: #fffdfa;
  --pitch-black: #100c05;
  --dusty-mauve: #9d858d;
}

body {
  background-color: var(--ivory);
  color: var(--pitch-black);
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

p,
dl,
ol,
ul,
blockquote {
  font-size: 1.2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  background-color: var(--sea-green);
  color: var(--ivory);
  font-family: "Lexend", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

nav span {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}

nav a:link,
nav a:visited {
  display: block;
  padding: 1rem;
  color: var(--ivory);
  text-decoration: none;
}

nav a:hover {
  background-color: color-mix(in srgb, var(--sea-green), black 25%);
}

#nav-toggle,
nav label {
  display: none;
}

p.leader {
  position: relative;
  display: flow-root;
  isolation: isolate;
}

.leader-left {
  background-color: var(--ivory);
  padding-right: 0.3em;
}

.leader-right {
  float: right;
  background-color: var(--ivory);
  padding-left: 0.3em;
}

.leader-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.3em;
}

.leader-dots::before {
  content: "............................................................................................................................................................................................................................................................................................................";
}

article {
  width: 87.5%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 0 5rem 12.5%;
}

@media (min-width: 761px) {
  article {
    width: auto;
    padding: 5rem 1rem;
  }

  section {
    position: relative;
    width: 50%;
    margin: 0 auto;
  }

  hr,
  section > p,
  section > footer,
  section > table {
    width: 100%;
  }

  section > dl,
  section > ol,
  section > ul {
    width: 95%;
  }
}

@media (max-width: 760px) {
  body {
    width: auto;
    padding: 0;
  }

  article {
    width: 84%;
    padding: 5rem 8%;
  }

  nav {
    flex-wrap: wrap;
  }

  nav label {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    cursor: pointer;
  }

  #nav-toggle:checked + label {
    transform: rotate(180deg);
  }

  nav span {
    display: none;
    width: 100%;
  }

  #nav-toggle:checked ~ span {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}
