@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
  --content-width: 42rem;
  --page-gutter: 16px;
  --page-background: #f8f5ef;
  --text-color: #1a1a1a;
  --heading-color: #373332;
  --muted-color: #666;
  --accent-color: #b49162;
  --accent-fade: rgb(180 145 98 / 0.35);
  --nav-color: #3a342e;
  --link-color: #1d4f91;
  --footer-rule: #d8d2c8;
  --font-body: 'Source Serif 4', serif;
  --font-mono: "IBM Plex Mono", monospace;
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: var(--accent-color);
  width: 100%;
  z-index: 1000;
}

#progressIndicator {
  height: 100%;
  background-color: #1f1a16;
  width: 0%;
}

body {
  min-height: 100vh;
  margin: 0;
  border-top: 3px solid var(--accent-color);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--page-background);
}

nav,
main,
.site-footer {
  width: min(var(--content-width), calc(100% - (2 * var(--page-gutter))));
  margin-left: auto;
  margin-right: auto;
}

main {
  flex: 1;
}

nav {
  position: relative;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 0;
  border-bottom: 1px solid var(--footer-rule);
  padding-bottom: 10px;
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  h1 {
    line-height: 1.05;
  }
}

nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: var(--nav-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

nav a+a {
  margin-left: 1.12rem;
}

nav a:hover {
  color: var(--accent-color);
}

.nav-name {
  font-weight: 600;
  text-decoration: none;
  color: var(--heading-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-paragraph {
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted-color);
  margin-top: 0;
}

h1 {
  text-align: center;
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
}

ul {
  padding-left: 1.2rem;
}

li {
  list-style: square;
}

li+li {
  margin-top: 0.75rem;
}

.footnotes {
  margin-top: 1.5rem;
  font-size: 0.96rem;
}

.footnotes-list {
  margin: 0;
  padding-left: 1.2rem;
}

.footnotes-list>li {
  list-style: decimal;
}

.footnote-item+.footnote-item {
  margin-top: 0.25rem;
}

.footnote-item p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
}

pre code {
  font-size: 0.85rem;
}

a {
  color: var(--link-color);
}

.meta {
  color: var(--muted-color);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0;
}

.intro {
  margin-bottom: 2rem;
}

.home-title {
  margin-bottom: 1rem;
  text-align: center;
}

.home-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(2rem, 4vw, 3rem);
  margin-block: clamp(0.35rem, 1vw, 0.75rem);
}

.home-divider::before,
.home-divider::after {
  content: "";
  width: clamp(4.5rem, 16vw, 8rem);
  height: 1px;
  background: linear-gradient(to var(--divider-direction, right),
      rgb(180 145 98 / 0),
      rgb(180 145 98 / 0.5) 45%,
      rgb(180 145 98 / 0.9));
}

.home-divider::before {
  --divider-direction: right;
}

.home-divider::after {
  --divider-direction: left;
}

.home-divider-mark {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  margin-inline: 0.85rem;
  border: 1px solid rgb(180 145 98 / 0.85);
  transform: rotate(45deg);
}

.home-divider-mark::before,
.home-divider-mark::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.home-divider-mark::before {
  width: 0.28rem;
  height: 0.28rem;
  background: var(--accent-color);
}

.home-divider-mark::after {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgb(180 145 98 / 0.28);
}

.home-divider+h2 {
  margin-top: 0;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-icons a {
  color: var(--heading-color);
  display: flex;
}

.social-icons a:hover {
  color: var(--accent-color);
}

.social-icons svg {
  width: 28px;
  height: 28px;
}

.site-footer {
  margin-top: 4rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--footer-rule);
  color: var(--muted-color);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}
