body {
    font-family: "Libre Caslon Text", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.85rem; 
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    text-align: center;
  }

  a {
    color: var(--text);
  }
  
  header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
  }

  #theme-toggle {
    background: none; 
    border: none; 
    font-size: 1.4rem; 
    cursor: pointer;
    color: var(--text);
    padding: 0;
    margin-left: auto; 
    margin-top: 10px; 
    margin-right: 25px;
  } 
  
  #theme-toggle:hover {
    opacity: 0.7;
  }
  
  #feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    max-width: 600px;       
    margin: 0 auto;         
    padding: 0 1rem;        
  }

  #feed article img {
    display: block;         
    margin: 0 auto;          
    max-width: 100%;         
    height: auto;            
  }


  @media (max-width: 768px) {
    #feed {
      max-width: 90%;
    }
  }
  
 /* light and dark themes */
  :root {
    --bg: #ffffff;
    --text: #111;
  }
  
  body.dark {
    --bg: #181a1b;
    --text: #e8e6e3;
  }
  
  /* posts */
  article {
    padding: 1.5rem;
    text-align: left;
  }
  
  #more-info-tab {
    background: none;
    color: var(--text);
    border: none;
    font-family: 'Doto', sans-serif;
    font-style: normal;
    font-variation-settings: 'wght' 850;
    font-weight: bold;
    font-size: 1rem; 
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: font-size 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
  }
  
  #more-info-tab:hover {
    opacity: 0.7;
  }
  
  @media (max-width: 768px) {
    #more-info-tab {
      font-size: 0.85rem;
      padding: 0.4rem 0.8rem;
      right: 10px;
    }
  }
  
  #modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  #modal-box {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  
    width: 40%;
    max-width: 400px; 
    aspect-ratio: 1 / 1;
    padding: 2rem;
    box-sizing: border-box;
  
    font-size: 1em;
  }

  #modal-content {
    width: 90%;
    height: auto;
    overflow: hidden;
    font-size: 1em;
  }
  
  @media (max-width: 768px) {
    #modal-box {
      width: 60%;
      max-width: 300px;
      padding: 1.5rem;
      font-size: 0.9em;
    }
  }
  
  @media (max-width: 480px) {
    #modal-box {
      width: 80%;
      max-width: 250px;
      padding: 1rem;
      font-size: 0.8em;
    }
  }