
/*
  main.css — blandgreen.com
*/

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;

  background: linear-gradient(
    142deg,
    rgba(109, 255, 104, 1) 0%,
    rgba(40, 227, 222, 1) 60%,
    rgba(0, 185, 255, 1) 100%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

img {
  max-width: 100%;
  height: auto;
}

/* Main page layout */
.page {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
  padding: 24px 0 32px;
}

.content-section {
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow-wrap: anywhere;
}

.content-section h1,
.content-section h2,
.content-section h3 {
  line-height: 1.2;
}

.content-section p:first-child {
  margin-top: 0;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Profile picture */
.profile-image {
  display: block;
  width: 80%;
  max-width: 280px;
  height: auto;
  margin: 12px auto;
  object-fit: cover;
}

/* Server rack picture */
.server-image {
  display: block;
  width: 80%;
  max-width: 560px;
  height: auto;
  margin: 16px auto;
  object-fit: contain;
}

/* Network diagram */
.network-image {
  display: block;
  width: 80%;
  max-width: 640px;
  height: auto;
  margin: 16px auto;
  object-fit: contain;
}

/* Projects */
.project {
  margin: 18px 0;
}

.project:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  padding: 12px 0 20px;
}

footer p {
  margin: 0;
}

/* Mobile screens */
@media (max-width: 600px) {
  .page {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  .content-section {
    padding: 15px;
    margin-bottom: 16px;
  }

  .profile-image {
    max-width: 240px;
  }

  .server-image {
    max-width: 560px;
  }

  .network-image {
    max-width: 640px;
  }
}