/* ==========================
   Base
   ========================== */

* {
  box-sizing: border-box;
}

:root {
  --paper: #f4f1e8;
  --paper-2: #f5f1e6;
  --ink: #0f1f2e;
  --text: #1e1e1e;
  --slate: #5e6a78;
  --gold: #b89c4b;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*==================================
             Fonts
  ==================================*/

body {
    background-color: var(--paper);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: var(--text);
}

h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 50px;
    color: var(--text);
    text-align: center;
}

h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 45px;
    color: var(--text);
    text-align: left;
}

h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 40px;
    color: var(--text);
    text-align: center;
}

h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 35px;
    color: var(--text);
    text-align: center;
}

h5 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    color: var(--text);
    text-align: left;
}

h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 25px;
    color: var(--text);
    text-align: left;
    font-style: italic;
}

hr {
    color: var(--gold);
    width: 40%;
}
/*========================================
            Page Intro
  ========================================*/

  .page-intro {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    font-style: italic;
    text-align: left;
  }

.page-intro p {
    margin: 0 0 1rem 0;
}
  /*===========================
            Footer
    ===========================*/

    .site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.social-links {
    list-style: none;

    display: flex;

    justify-content: center;

    gap: 24px;

    padding: 0;

    margin: 16px 0 0 0;
}

.social-links li {
    margin: 0;
}

.social-links a {

    text-decoration: none;

    color: var(--ink);

    font-family: Georgia, 'Times New Roman', Times, serif;
}

.social-links a:hover {

    color: var(--gold);

}

/*===================================
            Content
  ===================================*/

  .page-content {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    text-align: left;
  }

  .page-content p {
        margin: 0 0 1rem 0;

  }
  .article-divider {
  width: 80%;
  margin: 3rem auto;
  border: 0;
  border-top: 2px solid var(--gold);
}

/*=======================================
            Theme Cards
  =======================================*/

.theme-intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 950px;
  margin: 2rem auto;
}

.theme-cover {
  width: 320px;
  flex-shrink: 0;
}

.theme-content {
  flex: 1;
  min-width: 0;
}
.theme-content h5 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.theme-content h6 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.5rem 0 1rem;
  font-style: italic;
}

.theme-content p {
  margin-bottom: 1rem;
}
.theme-intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 950px;
  margin: 2rem auto;
}

/*=====================================
            Sidebar
=====================================*/

.issue-sidebar {
  position: fixed;
  top: 8rem;
  right: 2rem;
  width: 250px;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
}

.issue-toc summary {
  cursor: pointer;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: bold;
  text-align: center;
  list-style-position: inside;
  margin-bottom: 1rem;
}

.issue-sidebar a {
  display: block;
  margin: 0.45rem 0;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.25;
}

.issue-sidebar a:hover,
.issue-sidebar a:focus {
  color: var(--gold);
  text-decoration: underline;
}

.issue-sidebar h3 {
  margin: 1.5rem 0 1rem;
  color: var(--gold);
  font-size: 1rem;
  text-align: center;
}

.sidebar-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 0.5rem;
  margin-top: 0.75rem;
}

.sidebar-months a {
  text-align: center;
  padding: 0.35rem 0.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: bold;
  box-shadow: var(--shadow);
}

.sidebar-months a:hover,
.sidebar-months a:focus {
  background: var(--gold);
  color: var(--ink);
}

.back-link {
  margin-top: 1.5rem;
  text-align: center;
}

.mobile-issue-nav {
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

@media (max-width: 1100px) {
  .issue-sidebar {
    position: static;
    width: min(90%, 800px);
    max-height: none;
    margin: 1rem auto 2rem;
  }

  .mobile-issue-nav {
    display: flex;
    position: fixed;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--ink);
    border: 2px solid var(--gold);
    border-radius: 999px;
    box-shadow: var(--shadow);
  }

  .mobile-issue-nav a {
    color: var(--paper);
    text-decoration: none;
    font-weight: bold;
    padding: 0.35rem 0.6rem;
  }

  body {
    padding-bottom: 4rem;
  }
}

