/* Created by J. Blackburn - Jan 8 2025 */



/* CORE DESIGN ELEMENTS */
body {
  font-family: lato, sans-serif;
  font-size: clamp(12px, 0.95vw, 17px);
  line-height: 1.6;
  margin: 0px;
  background: black;
}
main {
  height: auto;
  --bg-height: 70vh;
}
	/* Background Section */
.bg-section {
  width: 100%;
  height: var(--bg-height);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}



	 /* footer styles */
footer {
  /* tall enough that hero (100vh) + bg-section + footer clears 200vh,
     so scrolling to the bottom fully hides the hero section, plus some
     extra room so the footer reads as its own full section */
  min-height: calc(100vh - var(--bg-height, 70vh) + 20vh);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 60px;
  margin: 0 30% 0 30%;
  font-style: italic;
  color: lightgrey;
  text-align: center;
}
footer h4 {
  font-size: clamp(0.8rem, 1.1vw, 1.45rem);
}
footer a {
  color: var(--accent);
}
footer a:hover {
  filter: brightness(1.3);
}
footer nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
footer nav ul li {
  display: inline;
  white-space: nowrap;
}
footer nav a {
  cursor: pointer;
  text-decoration: underline;
  font-size: clamp(0.8rem, 1.1vw, 1.45rem);
}


/* CONTENT SECTION DESIGN */
.content-section {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

		/* shared section image styles */

	.image-container {
	  height: 100vh;
	  width: 45%;
	}
	.image-container img {
	  height: 100%;
	  width: 100%;
	  object-fit: cover;
	}

		/* shared section content styles */

	.content-container {
	  height: 100vh;
	  width: 55%;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	}
	.content-container {

		.section-header {
		  width: 75%;

	          h1 {
		    text-align: center;
		    font-size: clamp(1.3rem, 2.2vw, 2.6rem);
		  }
		  h2 {
		    text-align: center;
		    font-size: clamp(1.4rem, 2.4vw, 2.8rem);
		    margin: 20px 0 10px 0;
		  }
		  h4 {
		    margin-left: 30px;
  		  }
		}
        
		.content-sub-section {
		  width: 75%;
		}

		ul {
		  list-style: none;
		  text-align: left;
		  margin-top: 20px;
		  padding: 0;
		}
		li {
		  align-items: center;
		  margin: clamp(4px, 1vh, 10px);

			h4 {
			  padding-left: 5px;
			  margin: 0;
			}
		}

		figcaption {
		  margin-top: auto;
		  width: 60%;
		  padding: 10px 25px;
		  color: grey;
		  font-size: clamp(0.65rem, 0.85vw, 1.1rem);
		  font-style: italic;

		  pre {
		    font-family: Arial, sans-serif;
		  }
		}
		.right-caption {
		  text-align: left;
		  align-self: flex-start;
		}
		.left-caption {
		  text-align: right;
		  align-self: flex-end;
		}


	} /* end content container styles */



/* CONTENT SECTION CUSTOMIZATION */

.about {

	.section-header {
	  margin: clamp(20px, 4vh, 50px) 50px 0px 50px;

		.real-name-message {
		  font-weight: normal;
		  color: lightgrey;
		  font-size: clamp(0.4rem, 0.6vw, 0.75rem);
		  padding: 0;
		  margin: 0;
		}

	.sub-heading {
	  font-size: clamp(0.95rem, 1.15vw, 1.2rem);

	  p {
	    text-indent: 2em;
	  }
	}
	}

	ul {
	  width: 20%;
	  font-size: clamp(0.85rem, 1.2vw, 1.55rem);
	  text-align: center;
	}
}

/* RESPONSIVENESS */

/* Hide figcaptions on short viewports */
@media (max-height: 700px) {
  .content-container figcaption {
    display: none;
  }
}
@media (max-height: 550px) {
  .content-container .section-header {
    margin-top: 20px;
  }
  .content-container li {
    margin: 4px;
  }
}

/* Shorter bg-sections on short viewports */
@media (max-height: 800px) {
  main {
    --bg-height: 40vh;
  }
}

/* Cap content width on ultra-wide screens */
@media (min-width: 2000px) {
  .content-container .section-header,
  .content-container .content-sub-section {
    max-width: 800px;
  }
}

/* THEME TOGGLE */
.theme-toggle {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: clamp(20px, 3vh, 40px);
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: clamp(0.75rem, 1vw, 1rem);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.theme-toggle:hover {
  opacity: 1;
}


/* Mobile layout */
@media (max-width: 600px) {
  .about.content-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .about .image-container {
    width: 100%;
    height: 40vh;
  }
  .about .content-container {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  footer {
    margin: 0 10%;
  }
  footer nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bg-section {
    background-attachment: scroll;
  }

  .content-container figcaption {
    display: none;
  }
}
