/* === LIGHT MODE (DEFAULT) === */
/* === BASE FONTS === */
body {
  margin: 0;
  font-family: 'Signifier', serif;
  background-color: #D6E1D1;
  color: #1D2609;
  font-size: 18px;
}

h1 {
  font-family: 'Styrene B', sans-serif;
  font-weight: normal;
  letter-spacing: -3%;
  line-height: 100%;
  font-size: 34px;
  margin-bottom: 0.5rem;
}

h2, h3, h4, h5, h6 {
  font-family: 'Diatype', sans-serif;
  font-weight: medium;
  letter-spacing: -2%;
  line-height: 125%;
  font-size: 20px;
}

.byline,
.meta-label,
.meta-content,
.meta-content a,
.backup-block,
.footer-link,
.footer-expandable,
details.tldr summary,
details.tldr p,
.left-banner,
.right-banner {
  font-size: 18px;
}

pre {
  overflow-x: scroll;
}

/* === RESPONSIVE FONT REDUCTION FOR SMALL SCREENS === */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2, h3, h4, h5, h6 {
    font-size: 18px;
  }

  .byline,
  .meta-label,
  .meta-content,
  .meta-content a,
  .backup-block,
  .footer-link,
  .footer-expandable,
  details.tldr summary,
  details.tldr p,
  .left-banner,
  .right-banner {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2, h3, h4, h5, h6 {
    font-size: 16px;
  }

  .byline,
  .meta-label,
  .meta-content,
  .meta-content a,
  .backup-block,
  .footer-link,
  .footer-expandable,
  details.tldr summary,
  details.tldr p,
  .left-banner,
  .right-banner {
    font-size: 14px;
  }
}

/* HEADER */
.site-header {
  background-color: #1D2609;
  padding: 1.5rem 0;
}

.site-header .container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-left,
.logo-right {
  height: 40px;
}

/* BANNER */
.top-banner {
  display: flex;
  width: 100%;
  font-weight: bold;
  font-size: 18px;
}

.left-banner,
.right-banner {
  flex: 1;
  padding: 0.75rem 1rem;
  color: #1D2609;
  font-family: 'Diatype', sans-serif;
}

.left-banner {
  background-color: #36D955;
  text-align: center;
}

.right-banner {
  background-color: #C3E500;
  text-align: center;
  
  img {
    vertical-align: text-top;
  }
}

.left-banner a,
.right-banner a {
  color: inherit;
}

/* MAIN CONTENT */
.content-container {
  width: 90%;
  max-width: 1008px;
  margin: 4% auto;
  background-color: #EFF2ED;
  padding: 2%;
  border-radius: 10px;
}

.featured-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: block;
}

/* SUBHEADINGS: Diatype Bold */
.byline {
  font-family: 'Diatype', sans-serif;
  font-size: 18px;
  color: #1D2609;
}

/* TL;DR */
details.tldr {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

details.tldr summary {
  cursor: pointer;
  list-style: none;
}

details.tldr p {
  margin: 0;
}

details.tldr summary,
details.tldr p {
  font-family: 'Diatype', sans-serif;
  font-size: 18px;
  color: #1D2609;
  font-weight: bold;
}

/* BODY CONTENT */
.article-body p {
  font-family: 'Signifier', serif;
  letter-spacing: 0;
  line-height: 135%;
  margin-bottom: 1rem;
  color: #1D2609;
}

/* AUTHOR BIO */
.author-bio p {
  font-family: 'Diatype', sans-serif;
  font-size: 16px;
  color: #1D2609;
  font-weight: medium;
}

/* Meta block (author bio + tags) */
.meta-block {
  margin-top: 2rem;
  border-top: 1px solid #B2C7A9;
  padding-top: 1.5rem;
  font-family: 'Diatype', sans-serif;
  font-size: 16px;
  color: #1D2609;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.meta-label {
  font-weight: bold;
  min-width: 120px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 18px;
}

.meta-content {
  flex: 1;
  font-size: 18px;
}

.meta-content a {
  color: inherit;
  font-weight: bold;
}

/* Backup block styling */
.backup-block {
  margin-top: 4%;
  background-color: #1D2609;
  color: #EFF2ED;
  padding: 2%;
  text-align: center;
  font-family: 'Diatype', sans-serif;
  font-size: 18px;
  border-radius: 4px;
}

.backup-block a {
  text-decoration: underline;
  color: #D6E1D1;
}

/* DIVIDER */
.article-body,
.author-bio {
  margin-top: 2%;
  border-top: 1px solid #B2C7A9;
  padding-top: 1%;
}

/* === UPDATED FOOTER === */
.footer-minimal {
  background: #1D2609;
  color: #EFF2ED;
  font-family: 'Diatype', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding: 2rem 1rem;
  text-align: center;
  min-height: 6rem;
}

.footer-logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.footer-logo-link {
  position: absolute;
  display: block;
}

.footer-logo-link.left {
  left: 1rem;
}

.footer-logo-link.right {
  right: 1rem;
}

.footer-logo {
  height: 48px;
  max-width: 200px;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  z-index: 1;
}

.footer-link {
  background: none;
  border: none;
  color: #00FF00;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.footer-separator {
  color: #EFF2ED;
}

.footer-expandable {
  display: none;
  max-width: 700px;
  margin: 1.5rem auto;
  font-size: 18px;
  color: #EFF2ED;
}

.footer-expandable p strong {
  color: #00ff00;
}

.footer-expandable a {
  color: #EFF2ED;
  text-decoration: underline;
}

.footer-expandable a:hover {
  color: #00FF00;
}

.footer-expandable.active {
  display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .footer-logo-bar {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-link.left,
  .footer-logo-link.right {
    position: static;
    margin: 0.5rem 0;
  }

  .footer-expandable {
    font-size: 16px;
    padding: 0 1rem;
    text-align: center;
  }

  .footer-link {
    font-size: 16px;
  }

  .footer-logo {
    height: 48px;
    max-width: 200px;
  }
}

@media screen and (max-width: 600px) {
  .meta-row {
    flex-direction: column;
  }

  .meta-label {
    min-width: auto;
  }

  .backup-block {
    font-size: 15px;
    padding: 1.25rem 1rem;
  }
}


/* === DARK MODE OVERRIDES === */
@media (prefers-color-scheme: dark) {
/* === BASE FONTS === */
body {
    margin: 0;
    font-family: 'Signifier', serif;
    background-color: #131A06;
    color: #D6E1D1;
    font-size: 18px;
  }
  
  h1 {
    font-family: 'Styrene B', sans-serif;
    font-weight: normal;
    letter-spacing: -3%;
    line-height: 100%;
    font-size: 34px;
    margin-bottom: 0.5rem;
  }
  
  h2, h3, h4, h5, h6 {
    font-family: 'Diatype', sans-serif;
    font-weight: medium;
    letter-spacing: -2%;
    line-height: 125%;
    font-size: 20px;
  }
  
  .byline,
  .meta-label,
  .meta-content,
  .meta-content a,
  .backup-block,
  .footer-link,
  .footer-expandable,
  details.tldr summary,
  details.tldr p,
  .left-banner,
  .right-banner {
    font-size: 18px;
  }
  
  /* === RESPONSIVE FONT REDUCTION FOR SMALL SCREENS === */
  @media screen and (max-width: 768px) {
    body {
      font-size: 16px;
    }
  
    h1 {
      font-size: 28px;
    }
  
    h2, h3, h4, h5, h6 {
      font-size: 18px;
    }
  
    .byline,
    .meta-label,
    .meta-content,
    .meta-content a,
    .backup-block,
    .footer-link,
    .footer-expandable,
    details.tldr summary,
    details.tldr p,
    .left-banner,
    .right-banner {
      font-size: 16px;
    }
  }
  
  @media screen and (max-width: 480px) {
    body {
      font-size: 14px;
    }
  
    h1 {
      font-size: 24px;
    }
  
    h2, h3, h4, h5, h6 {
      font-size: 16px;
    }
  
    .byline,
    .meta-label,
    .meta-content,
    .meta-content a,
    .backup-block,
    .footer-link,
    .footer-expandable,
    details.tldr summary,
    details.tldr p,
    .left-banner,
    .right-banner {
      font-size: 14px;
    }
  }
  
  /* HEADER */
  .site-header {
    background-color: #131A06;
    padding: 1.5rem 0;
  }
  
  .site-header .container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-left,
  .logo-right {
    height: 40px;
  }
  
  /* BANNER */
  .top-banner {
    display: flex;
    width: 100%;
    font-weight: bold;
    font-size: 18px;
  }
  
  .left-banner,
  .right-banner {
    flex: 1;
    padding: 0.75rem 1rem;
    color: #131A06;
    font-family: 'Diatype', sans-serif;
  }
  
  .left-banner {
    background-color: #C3E500;
    text-align: center;
  }
  
  .right-banner {
    background-color: #36D955;
    text-align: center;
  }
  
  .left-banner a,
  .right-banner a {
    color: inherit;
  }
  
  /* MAIN CONTENT */
  .content-container {
    width: 90%;
    max-width: 1008px;
    margin: 4% auto;
    background-color: #1D2609;
    padding: 2%;
    border-radius: 10px;
  }
  
  .featured-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: block;
  }
  
  .byline {
    font-family: 'Diatype', sans-serif;
    font-size: 18px;
    color: #D6E1D1;
  }
  
  /* TL;DR */
  details.tldr {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  details.tldr summary {
    cursor: pointer;
    list-style: none;
  }
  
  details.tldr p {
    margin: 0;
  }
  
  details.tldr summary,
  details.tldr p {
    font-family: 'Diatype', sans-serif;
    font-size: 18px;
    color: #D6E1D1;
    font-weight: bold;
  }
  
  .article-body p {
    font-family: 'Signifier', serif;
    letter-spacing: 0;
    line-height: 135%;
    margin-bottom: 1rem;
    color: #D6E1D1;
  }
  
  .author-bio p {
    font-family: 'Diatype', sans-serif;
    font-size: 16px;
    color: #D6E1D1;
    font-weight: medium;
  }
  
  .meta-block {
    margin-top: 2rem;
    border-top: 1px solid #4D5A3F;
    padding-top: 1.5rem;
    font-family: 'Diatype', sans-serif;
    font-size: 16px;
    color: #D6E1D1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .meta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  
  .meta-label {
    font-weight: bold;
    min-width: 120px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 18px;
  }
  
  .meta-content {
    flex: 1;
    font-size: 18px;
  }
  
  .meta-content a {
    color: inherit;
    font-weight: bold;
  }
  
  .backup-block {
    margin-top: 4%;
    background-color: #26320C;
    color: #D6E1D1;
    padding: 2%;
    text-align: center;
    font-family: 'Diatype', sans-serif;
    font-size: 18px;
    border-radius: 4px;
  }
  
  .backup-block a {
    text-decoration: underline;
    color: #D6E1D1;
  }
  
  .article-body,
  .author-bio {
    margin-top: 2%;
    border-top: 1px solid #4D5A3F;
    padding-top: 1%;
  }

  a {
    color: #0F0;
  }
  
  .footer-minimal {
    background: #1D2609;
    color: #1D2609;
    font-family: 'Diatype', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .footer-logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
  }
  
  .footer-logo-link {
    position: absolute;
    display: block;
  }
  
  .footer-logo-link.left {
    left: 1rem;
  }
  
  .footer-logo-link.right {
    right: 1rem;
  }
  
  .footer-logo {
    height: 48px;
    max-width: 200px;
  }
  
  .footer-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    z-index: 1;
  }
  
  .footer-link {
    background: none;
    border: none;
    color: #00FF00;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
  }
  
  .footer-separator {
    color: #D6E1D1;
  }
  
  .footer-expandable {
    display: none;
    max-width: 700px;
    margin: 1.5rem auto;
    font-size: 18px;
    color: #D6E1D1;
  }
  
  .footer-expandable p strong {
    color: #00ff00;
  }
  
  .footer-expandable a {
    color: #D6E1D1;
    text-decoration: underline;
  }
  
  .footer-expandable a:hover {
    color: #00FF00;
  }
  
  .footer-expandable.active {
    display: block;
  }
  
  @media screen and (max-width: 768px) {
    .footer-logo-bar {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-logo-link.left,
    .footer-logo-link.right {
      position: static;
      margin: 0.5rem 0;
    }
  
    .footer-expandable {
      font-size: 16px;
      padding: 0 1rem;
      text-align: center;
    }
  
    .footer-link {
      font-size: 16px;
    }
  
    .footer-logo {
      height: 48px;
      max-width: 200px;
    }
  }
  
  @media screen and (max-width: 600px) {
    .meta-row {
      flex-direction: column;
    }
  
    .meta-label {
      min-width: auto;
    }
  
    .backup-block {
      font-size: 15px;
      padding: 1.25rem 1rem;
    }
  }
}
