*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lora', serif;
  font-size: 13px;
  line-height: 1.6em;
  /* color: #222; */
  color: rgb(102,102,102);
  background: #fff;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  color: #999;
}

/* Sidebar + Content Layout */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 340px;
  flex-shrink: 0;
  padding: 40px 30px 40px 40px;
}

.site-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 30px;
}

/* Navigation */
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav a {
  font-size: 12px;
}

nav a:first-child {
  font-size: 1.1em;
  margin-bottom: 20px;
}

nav a:hover {
  color: #222;
}

nav a.active {
  color: #888;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
}

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: #000;
  transition: fill 0.2s;
}

.nav-social:hover svg {
  fill: #222;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 13px;
  font-family: 'Lora', serif;
  color: #222;
  cursor: pointer;
}

/* Main content */
.content {
  flex: 1;
  max-width: 975px;
  padding: 40px 40px 60px 0;
}

.content img {
  width: 100%;
  height: auto;
  display: block;
}

.content p {
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 1.1em;
}

.caption {
  text-align: center;
  margin-top: 17px;
  font-size: 12px;
}

.caption a {
  /* font-weight: 700; */
  color: #000;
}

.italic {
  font-style: italic;
}

/* About page */
/* .about-text {
  max-width: 600px;
  margin-top: 20px;
} */

/* Contact page */
.contact-info {
  margin-top: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

/* Gallery images (project pages) */
.gallery img {
  margin-bottom: 20px;
}

.gallery-caption {
  font-style: italic;
  margin-bottom: 30px;
}

/* Responsive — collapse sidebar below 800px */
@media (max-width: 800px) {
  .site-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 20px 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 20px;
  }

  .site-title {
    margin-bottom: 0;
    margin-right: auto;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    padding: 10px 0;
  }

  nav.open {
    display: flex;
  }

  .content {
    padding: 20px 20px 40px;
  }
}
