@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {

  --color-paper: #fdf6e3;        
  --color-background: #f5f0e1;  
  --color-text: #4a443f;          
  --color-text-muted: #8a8178;   
  --color-accent: #c8963e;       
  --color-border: #dcd5c9;     
}

body {
  background-color: var(--color-background);
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--color-text);
}


#layout-wrapper {
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  gap: 30px; 
  width: 90%;
  max-width: 950px; 
  margin: 40px auto; 
}


#container {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
  padding: 20px;
  max-width:58ch; 
}

#header h1 {
  font-family: 'VT323', monospace;
  font-size: 3em;
  margin: 0;
  font-weight: normal;
  text-align: center;
  color: var(--color-text); /* Use main text color for the header */
}

#header h1 img {
  height: 1.2em; 
  vertical-align: bottom;
}

#header p {
  text-align: center;
  margin-top: 0;
  color: var(--color-text-muted);
}

#main-content {
  line-height: 1.7;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cccccc' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h20v1H0z'/%3E%3C/g%3E%3C/svg%3E")
}

#main-content .meta {
    color: var(--color-text-muted);
    border-bottom: 1px dotted var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#sidebar {
  width: 250px; 
  flex-shrink: 0; 
}

.widget {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  padding: 10px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.widget h4 {
  font-family: 'VT323', monospace;
  font-weight: normal;
  color: var(--color-accent);
  margin: 0 0 10px 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
}
#sidebar ul {
  list-style-type: square; 
  padding-left: 20px;
  margin: 0;
  color: var(--color-text-muted); /* Color the list bullets */
}

a {
  color: var(--color-accent);
  text-decoration: underline; 
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  background-color: var(--color-accent);
  color: var(--color-paper);
  text-decoration: none;
}

#footer {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.8em;
  color: var(--color-text-muted);
}

@media (max-width: 980px) {

  body {
    font-size: 16px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
  }

  #layout-wrapper {
    flex-direction: column; 
    align-items: center;  
    width: 95%;          
    gap: 20px;          
  }

  #container, #sidebar {
    width: 100%; 
  }

  #header h1 {
    font-size: 3.1em;
  }
}
