:root {
        --bg-color: #ffffff;
        --text-color: #333333;
        --border-color: #e0e0e0;
        --link-color: #333333;
        --link-hover-color: #000000;
      }

      @media (prefers-color-scheme: dark) {
        :root {
          --bg-color: #1a1a1a;
          --text-color: #e0e0e0;
          --border-color: #404040;
          --link-color: #e0e0e0;
          --link-hover-color: #ffffff;
        }
      }

      body {
        background-color: var(--bg-color);
        color: var(--text-color);
        margin: 0;
        padding: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      }


article, aside, details, figcaption, figure, 
footer, header, head, hgroup, menu, nav, section {
    display: block;
        vertical-align: baseline;   
}

article {
  padding: 15px 20px;
  margin: auto;
  max-width: 800px;
  width: 90%;
}

/* Mobile-first responsive design */
@media (min-width: 768px) {
  article {
    width: 80%;
    padding: 15px 0;
  }
}

@media (min-width: 1024px) {
  article {
    width: 50%;
  }
}

header {
  background: var(--bg-color);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: auto;
  max-width: 800px;
  width: 90%;
  border-bottom: .5px solid var(--border-color);
}

@media (min-width: 768px) {
  header {
    width: 80%;
    padding: 12px 0;
  }
}

@media (min-width: 1024px) {
  header {
    width: 51%;
  }
}

img {
  width: 60%;
  display: block;
  margin: 0 auto;
}

/* Responsive image sizing */
@media (min-width: 768px) {
  img {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  img {
    width: 42%;
  }
}

footer {
  background: var(--bg-color);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: auto;
  max-width: 800px;
  width: 90%;
  border-bottom: .5px solid var(--border-color);
}

@media (min-width: 768px) {
  footer {
    width: 80%;
    padding: 12px 0;
  }
}

@media (min-width: 1024px) {
  footer {
    width: 51%;
  }
}

/* Mobile typography adjustments */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  
  header a, footer a {
    font-size: 16px;
  }
  
  header, footer {
    gap: 30px;
  }
}