:root {
  --color-primary: #333;
  --color-secondary: #000;
  --color-accent: #a45100;
  --color-bg: #f5f5dc;
  --color-text: #000;
  --font-family: "Georgia", serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Georgia", serif;
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  /* always account for scroll bar width */
  padding-right: calc(1rem + 0.5vw);
}

img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid var(--color-accent);
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    &:hover {
      transform: scale(1.02);
    }
}


main {
  max-width: 800px;
  width: 100%;
  padding-top: 1rem;
  margin-top: 2rem;
  margin-bottom: 100px;
}

header time {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

h1 {
  cursor: pointer;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
  &:hover {
    color: var(--color-secondary);
  }
}

h1 {
  a {
    color: inherit;
  }
}

.linkify {
  text-decoration: none;
  color: var(--color-accent);
  cursor: pointer;
  &:hover {
    text-decoration: none;
    color: var(--color-secondary);
  }
  &:visited {
    text-decoration: none;
    color: var(--color-accent);
  }
  &:active &:focus {
    text-decoration: none;
    color: var(--color-primary);
  }
  transition: color 0.3s ease;
}

sup {
  font-size: 0.8rem;
  vertical-align: super;
  line-height: 0;
  color: var(--color-accent);
}

.footnote-backref {
  font-size: 0.8rem;
  line-height: 0;
  color: var(--color-primary);
}

/* @layer utilities { */
/*   article { */
/*     & header { */
/*       & h2 { */
/*         font-size: 1.5rem; */
/*       } */
/*     } */
/*   } */
/* } */

footer {
  position: fixed;
  background: var(--color-bg);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 1rem;
  border-top: 1px dotted var(--color-accent);
  font-size: 0.9rem;

  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
}

#footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-primary);
}

