@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;0,700;1,300&display=swap');

:root {
  --background: #ffffff;
  --text: #2a2a2a;
  --accent: #666666;
  --border: #dddddd;
  --sidebar-bg: #f9f9f9;
  --link: #5555aa;
  --link-hover: #333399;
  --font-body: 'Merriweather Sans', sans-serif;
}

* {
  box-sizing: border-box;
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-size: 10pt;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--link-hover);
}

#content {
  display: flex;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 2rem;
}

/* Sidebar */
#sidebar {
  flex: 0 0 250px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
#avatar img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}
#bio {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.small-box {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
nav ul {
  list-style: none;
  padding: 0;
}
nav li {
  margin: 0.5rem 0;
}
nav a {
  font-weight: 700;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}
nav a:hover {
  background: var(--border);
}
.center {
  text-align: center;
}
.small-text {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Main blog area */
main {
  flex: 1;
}

article {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

article h4 {
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  margin-top: 1rem;
}

.post-header {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.timestamp {
  float: right;
  font-size: 0.8rem;
  color: #999;
}

/* Collapsible blog content */
details.readmore summary {
  font-weight: bold;
  cursor: pointer;
  margin: 1rem 0 0.5rem 0;
}
details.readmore[open] summary {
  margin-bottom: 1rem;
}

/* Image styling */
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}
.photosetx2, .photosetx3 {
  display: grid;
  gap: 6px;
}
.photosetx2 {
  grid-template-columns: repeat(2, 1fr);
}
.photosetx3 {
  grid-template-columns: repeat(3, 1fr);
}
.cropped {
  object-fit: cover;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  #content {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
  }
}
