/* =========================================
   SEAN DC'S PIXEL ART SITE
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  background: #2B2420;
}

body {
  margin: 0;
  padding: 28px;
  background: #2B2420;
  color: #2B2420;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
}

/* Main two-column layout */

.page-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 12px;
  border: 3px solid #C8C0AC;
  background: #A69E8D;
}

/* Sidebar */

.sidebar {
  min-height: 720px;
  padding: 12px;
  border: 2px dotted #4C4841;
  background: #C8C0AC;
  display: flex;
  flex-direction: column;
}

.menu-title {
  margin-bottom: 18px;
  padding: 5px 8px;
  background: #4C4841;
  color: #C8C0AC;
  border: 2px solid #4C4841;
  text-align: center;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-section {
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 5px;
  padding: 3px 7px;
  background: #4C4841;
  color: #C8C0AC;
  font-weight: bold;
}

.sidebar a {
  display: block;
  padding: 4px 8px;
  color: #2B2420;
  text-decoration: none;
}

.sidebar a::before {
  content: "› ";
}

.sidebar a:hover,
.sidebar a.current {
  background: #A69E8D;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 5px;
  border: 2px dotted #4C4841;
  text-align: center;
  font-size: 13px;
}

/* Main content */

.content {
  min-width: 0;
  padding: 28px;
  border: 2px solid #4C4841;
  background: #E5E2D9;
}

.intro {
  margin: 0 auto 12px;
  max-width: 760px;
  font-weight: bold;
  text-align: left;
}

.construction-art {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.construction-art img {
  display: block;
  width: 100%;
  max-width: 1030px;
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pixel {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 3px dotted #726C61;
}

.osha {
  margin: 0 0 22px;
  font-weight: bold;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 3px double #4C4841;
  background: #C8C0AC;
  font-size: 13px;
  text-align: center;
}

/* Make the layout comfortable on phones */

@media (max-width: 700px) {

  body {
    padding: 10px;
  }

  .page-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 7px;
  }

  .sidebar {
    min-height: 0;
  }

  .sidebar-footer {
    margin-top: 15px;
  }

  .content {
    padding: 16px;
  }

  .intro {
    font-size: 14px;
  }

  .footer-box {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-divider {
    display: none;
  }

}


/* Art gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0;
}

.gallery-item {
  display: block;
  padding: 10px;
  border: 2px solid #4C4841;
  background: #C8C0AC;
  color: #2B2420;
  text-decoration: none;
}

.gallery-item:hover {
  background: #A69E8D;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  border: 1px dotted #726C61;
}

.gallery-item .caption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}