@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap");

/* ==================== Variables ==================== */
:root {
  --black:  #010101;
  --gray75: #666666;
  --gray50: #999999;
  --gray25: #cccccc;
  --gray10: #eaeaea;
  --white:  #ffffff;
  --transition-speed: 0.3s;
  --header-height: 8rem;
}

/* ==================== Reset & Base ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: Raleway, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--black);
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.25;
  text-align: left;
  margin: 3rem 0;
}

h1 {
  font-size: 5rem;
  margin-top: 3rem;
}

h2 {
  font-size: 4.5rem;
}

h3 {
  font-size: 4rem;
}

h4 {
  font-size: 3.5rem;
}

h5 {
  font-size: 3rem;
}

h6 {
  font-size: 2.5rem;
}

p {
  margin: 0 0 2rem 0;
}

strong {
  font-weight: 700;
}

code {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--gray10);
}

.lead {
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1.4;
}

/* ==================== Lists ==================== */
main ul,
main ol {
  margin: 0 0 2rem 0;
  padding-left: 4rem;
}

main ul li,
main ol li {
  margin-bottom: 0.5rem;
}

main ul {
  list-style-type: disc;
}

main ol {
  list-style-type: decimal;
}

main ul ul,
main ol ul {
  list-style-type: circle;
  margin-top: 0.5rem;
}

main ul ul ul,
main ol ul ul {
  list-style-type: square;
}

.row ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

/* ==================== Layout ==================== */
.container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 0 0 2.5rem 0;
}

.row > * {
  flex: 1 1 25%;
  text-align: left;
  padding: 1rem;
  border: 0.1rem solid var(--gray25);
}

.row div.lc {
	text-align: center;
}

.row div.lc img {
	height: auto;
	max-width: 250px;
}

.row div.name {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2rem;
}

/* ==================== Header & Navigation ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  overflow: hidden;
  background-color: var(--white);
  border-bottom: 0.1rem solid var(--gray25);
  box-shadow: 0 0.1rem 0.2rem var(--gray25);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  margin: 1rem 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 0.25rem;
  margin-left: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 0.1rem dotted transparent;
  transition: border-bottom var(--transition-speed);
}

nav ul li a:hover,
nav ul li a:focus {
  border-bottom: 0.1rem dotted var(--black);
}

nav ul li a:focus {
  outline: 0.1rem solid var(--black);
  outline-offset: 0.2rem;
}

.logo {
  margin-top: 1.2rem;
}

.hero {
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--black);
  min-height: 25rem;
}

.hero-text {
  color: var(--white);
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

/* ==================== Main Content ==================== */
main {
  flex: 1 0 auto;
  text-align: justify;
  margin-top: var(--header-height);
}

main a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 0.1rem dotted var(--black);
  transition: opacity var(--transition-speed);
}

main a:hover,
main a:focus {
  opacity: 0.5;
}

main a:focus {
  outline: 0.1rem solid var(--black);
  outline-offset: 0.2rem;
}

/* ==================== Footer ==================== */
footer {
  flex-shrink: 0;
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
	margin-top: 2rem;
  background-color: var(--black);
}

footer ul {
  list-style: none;
  margin: 1rem 0;
}

footer ul li {
  display: inline;
}

footer ul li a {
  color: inherit;
  font-size: 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 0.25rem;
  margin-left: 1rem;
  padding-bottom: 0.2rem;
  border-bottom: 0.1rem dotted transparent;
  transition: border-bottom var(--transition-speed);
}

footer ul li a:hover,
footer ul li a:focus {
  border-bottom: 0.1rem dotted var(--white);
}

footer ul li a:focus {
  outline: 0.1rem dotted var(--white);
  outline-offset: 0.2rem;
}

footer ul.icons li a {
  color: inherit;
  font-size: 2rem;
  padding: 0 1rem;
  text-decoration: none;
  border: none;
}

/* ==================== Utility Classes ==================== */
.error {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fadein {
  animation: fadein 2s;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
  html {
    font-size: 56.25%; /* 9px base */
  }
  
  nav ul li a {
    margin-left: 1rem;
  }

	.logo {
		margin-top: .8rem;
	}

	.hero {
		background-color: var(--black);
		min-height: 20rem;
		width: 100%;
	}

	.hero-text {
		color: var(--white);
		text-align: center;
		padding: 1rem;
		z-index: 10;
	}

}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px base */
  }
  
  nav {
    flex-direction: column;
  }
  
  nav ul li a {
    margin-left: 0.5rem;
  }
}

@media (max-width: 576px) {
  .row {
    flex-direction: column;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3.5rem;
  }

}
