/* ==================== FONTS ==================== */
@font-face {
  font-family: "Source Serif 4 Display";
  src: url("SourceSerif4Display-Light.ttf.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* ==================== BASE STYLES ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  display: flex;
  line-height: 1.6;
  color: #1c1e21;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background-color: #D3BFB6;
  overflow-x: hidden;
}

/* Figures & Images */
figure { margin: 1.5em auto; text-align: center; }
picture { display: block; margin: auto; width: 50%; }
picture img { max-width: 100%;  height: auto; }

figure figcaption {
  font-size: 8.5pt;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin: 4px auto;
  max-width: 90%;
}

.author { text-align: center; margin-bottom: 1em; }
.sibyl { font-size: clamp(1.5rem, 5vw, 2.5rem); font-variant: small-caps; font-weight: normal; }

figure figcaption strong { font-weight: bold; font-style: italic; }

h1 {
  color: #A30000;
}

h2 {
  font-family: "Source Serif 4 Display";
  text-align: center;
}

h2 a {
  color: #1c1e21;
}

a {
  color: #A30000;
}

img {
  display: block;
  height: 32px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.downloads {
  justify-content: center;
  margin: 1rem 0 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.downloads .btn {
  padding: .5rem .8rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
  text-decoration: none;
}

/* ==================== LAYOUT CONTAINERS ==================== */
.header-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 1400px;
}

.main-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 10px;
}

.column {
  width: 100%;
  min-width: 0;
  padding: 10px;
}

/* ==================== FOOTER ==================== */
footer {
  width: 100%;
  background-color: #fbf9f3;
  color: #2c2a2e;
  padding: 2rem;
}

footer img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 48px;
  padding: 0.4rem;
}

footer p {
  text-align: center;
}

.links {
  overflow-wrap: anywhere;
}

/* ==================== THEMATIC CLASSES ==================== */
.divine {
  font-weight: bold;
  font-variant: small-caps;
}

.fire {
  color: #A30000;
}

.green {
  color: #007a3d;
}

.water {
  color: #00509E;
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
  body {
    color: #d4d4d4;
    background-color: #2a2725;
  }

  a {
    color: #ff5757;
  }

  h1 {
    color: #ff5757;
  }

  h2 a {
    color: #d4d4d4;
    text-decoration-style: dotted;
  }

  .inline {
    color: #d4d4d4;
    text-decoration-style: dotted;
  }

  .fire {
    color: #ff5757;
  }

  .water {
    color: #5dadec;
  }

  footer {
    background: linear-gradient(180deg, #0f1014 0%, #111319 100%);
    color: #e8eaf0;
    border-top: 1px solid #2a2d34;
  }

  footer h4 {
    color: #f2f3f7;
    letter-spacing: 0.02em;
  }

  footer .footer_column,
  footer .footer_column ul,
  footer .footer_column li {
    color: inherit;
  }

  footer a {
    color: #cfd6ff;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
  }

  footer a:hover {
    color: #e7eaff;
  }

  footer a:focus-visible {
    outline: 2px solid #7f8cff;
    outline-offset: 2px;
    border-radius: 2px;
  }

  footer a.fire {
    color: #ff7a7a;
  }
  
  footer a.green {
    color: #7AFFBD;
  }

  footer a.fire:hover {
    color: #ff9a9a;
  }
  
  footer a.green:hover {
    color: #9AFFCD;
  }

  footer a.water {
    color: #9ccaff;
  }

  footer a.water:hover {
    color: #b8d7ff;
  }
}
