:root {
  --white: #fff;
  --black: #000;
  --light-blue: #c0f5f9;
  --dark-blue: #394a4b;
  --coral: #ffa08b;

  --space-xxl: 64px;
  --space-xl: 48px;
  --space-lg: 24px;
  --space-md: 16px;
  --space-sm: 8px;
  --space-xs: 5px;
  --space-xxs: 2px;

  --page-padding: 10%;
}

/* typography */

body {
  font-family: "Red Hat Display", sans-serif;
  font-size: 18px;
  color: var(--dark-blue);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h2 {
  font-size: 40px;
}

h3,
.url-name-list h2,
.url-name-list_type h2 {
  font-family: "Nunito", sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--dark-blue);
}

.page-body,
.project-description {
  font-size: 1.1em;
  line-height: 1.2em;
  letter-spacing: 0.01em;
}

#home-body {
  width: 100%;
  clear: both;
}

#logo h1 {
  font-size: 2.2em;
  margin-bottom: 0.2em;
}

h2 {
  margin: var(--space-xl) 0 var(--space-xl) 0;
}

h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: 1.6em;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-weight: normal;
}

#menubar,
#header,
#slogan,
label,
input {
  font-family: "Nunito";
  font-weight: 400;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.project-title {
  font-family: "Oswald";
  text-transform: uppercase;
}

label {
  margin-right: 0.5em;
}

input[type="password"] {
  border: 0;
  border-bottom: 1px solid #000;
}

#menubar {
  font-size: 1.1em;
}

a,
a:hover,
a:visited {
  color: #7e7e7e;
  text-decoration: none;
}

a.active {
  color: #000;
}

ul {
  padding: 0;
  margin: 0;
}

ul#project-type-menu {
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--space-md);
  line-height: 1em;
}

#logo {
  margin-bottom: 1.5em;
}

#menubar {
  margin: 0 0 1.5em 0;
}

#project-type-menu li {
  display: inline;
  padding-right: var(--space-md);
  text-align: center;
}

#header {
  width: calc(100% - var(--page-padding) * 2);
  padding: 0 var(--page-padding);
  color: var(--white);
  background-color: var(--dark-blue);
  position: fixed;
  top: 0;
  height: 64px;
  z-index: 10;
  display: grid;
  justify-content: space-between;
  align-content: center;
  gap: 4px;
  grid-auto-flow: column;
  font-size: 20px;
  grid-template-columns: 33% 33% 33%;
}

#page {
  margin-top: 64px;
}

#header h1 {
  margin: 0;
  font-size: inherit;
  text-align: center;
}
#header-links {
  text-align: right;
}

#header-links a {
  padding-left: var(--space-lg);
}

#header a {
  color: var(--white);
}
#header a:hover {
  color: var(--light-blue);
}

#project-list {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  column-gap: 3px;
  row-gap: 3px;
}

#project-list li {
  list-style-type: none;
  display: block;

  aspect-ratio: 12/7;
  text-align: center;
  padding: 0;
  background-color: var(--white);
  position: relative;
}

#project-list a.project-title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 86%;
  z-index: 1;
  text-decoration: none;
  display: block;
  background-color: rgba(70, 96, 98, 0.6);
  padding: 7%;
  font-size: 28px;
  text-align: center;
  color: #fff;
  display: none;
  box-shadow: 8px 8px 8px 0 rgba(100, 100, 100, 0.15);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

#project-list li:hover a.project-title {
  display: block;
}

a.project-type {
  color: var(--dark-blue);
  font-family: "Nunito" sans-serif;
  padding-bottom: 4px;
}

a.project-type:hover,
a.project-type.active {
  border-bottom: 1px solid var(--dark-blue);
}

img.project-thumbnail {
  height: 100%;
  width: 100%;
  object-fit: contain;
  vertical-align: bottom;
}

.project-description,
.project-step-description {
  max-width: 864px;
}

.project-video div {
  position: relative;
  padding-top: 56.25%;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#copy {
  clear: both;
  font-size: 0.9em;
  font-family: "Nunito", sans-serif;
  color: rgba(92, 92, 92, 0.4);
  margin-top: var(--space-xl);
  text-align: center;
}

#page-contact a,
#page-contact a:visited,
#page-contact a:hover,
#page-about a,
#page-about a:visited,
#page-about a:hover {
  color: inherit;
  font-size: 1.2em;
  font-family: "Nunito", sans-serif;
  padding-bottom: var(--space-xs);
}

#page-about a:hover,
#page-contact a:hover {
  border-bottom: 1px solid var(--dark-blue);
}

ul.errorlist {
  color: #dd2020;
  padding: 1em 1em;
}

html,
body,
#page {
  height: 100%;
}

#content {
  padding: var(--space-xxl) var(--page-padding);
  min-height: calc(100%);
}

.project-step-title {
  padding-bottom: 4px;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--dark-blue);
}
.project-step {
  margin-bottom: var(--space-xl);
}
.project-step-description {
  margin-bottom: var(--space-lg);
}

.url-name-list,
.url-name-list_type,
.url-name-password,
.url-name-contact {
  background-color: var(--light-blue);
}

.url-name-list,
.url-name-list_type {
  background-image: url("../images/home_background.svg");
  background-repeat: no-repeat;
  background-position: -275px 183px;
}

.url-name-about {
  background-color: var(--coral);
}

.url-name-contact {
  background-color: var(--light-blue);
}
.url-name-contact .page-content {
  max-width: 600px;
}

.url-name-about .page-view {
  max-width: 600px;
  margin: 0 auto;
}

.url-name-about .page-title,
.url-name-contact .page-title {
  display: none;
}

.url-name-about .page-image {
  padding: var(--space-xl) 0;
  text-align: center;
  background-image: url("../images/about_background.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

.url-name-about .page-image img {
  border-radius: 50%;
  margin: 0 auto;
  width: 246px;
}

#home-body {
  max-width: 542px;
  padding: 140px 0 167px 0;
}

.project-image,
.project-step-image {
  max-width: 100%;
}

.project-image {
  margin-bottom: var(--space-xl);
}

@media screen and (max-width: 1000px) {
  #project-list {
    grid-template-columns: 50% 50%;
  }

  :root {
    --page-padding: 20px;
  }
}

@media screen and (max-width: 600px) {
  #project-list {
    grid-template-columns: 100%;
  }

  #home-body {
    padding: 20px 0 40px 0;
  }

  :root {
    --page-padding: 20px;
  }

  #header,
  #header h1 {
    font-size: 18px;
  }
  #header-links a {
    padding-left: var(--space-sm);
  }

  #content {
    padding: var(--space-md) var(--space-md);
  }

  #project-list {
    row-gap: var(--space-md);
  }
}
