/* TODOs:
- look into aligning the right mugshot with the right Connects column
- there is currently no difference between header-menu and footer-menu; explore combining them (depends on if we want to keep the content list the same or change it in a way that would be better with these different)
*/

* {
  box-sizing: border-box;
}

/* Small elements */
img {
  display: block;
}

a {
  text-decoration: none;
  margin: 0;
  display: inline-block;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--body-bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--header-bg);
  background: linear-gradient(to left bottom, var(--brand), var(--header-bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  /* background-color: #333;  */
  margin: 0;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 40;
}

footer {
  /* background: linear-gradient(90deg, var(--brand), var(--brand-muted)); */
  /* border-top: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border)); */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right top, var(--brand), var(--header-bg));
  padding: 1rem 2rem;
  text-align: center;
  background-color: #333;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.home-link {
  /* background-color: blueviolet; */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.logo {
  /* background-color: lightcoral; */
  height: var(--brand-height);
}

.nameplate {
  /* background-color: lightblue; */
  height: var(--nameplate-height);
}

header-menu {
  /* background-color: lightgreen; */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;

  /* Nav links */
  a,
  a:link,
  a:visited,
  a:active,
  a:focus {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
  }

  a:hover {
    color: var(--accent);
    outline: none;
  }

}

footer-menu {
  /* background-color: lightgreen; */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;

  /* Nav links */
  a,
  a:link,
  a:visited,
  a:active,
  a:focus {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
  }

  a:hover {
    color: var(--accent);
    outline: none;
  }
}

main-footer-row {
  /* background-color: lightcyan; */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.headshot {
  /* background-color: lightseagreen; */
  display: block;
  padding: 0 20px;
  margin-top: auto;
  align-self: flex-end;

  img {
    /* background-color: lightpink; */
    height: var(--brand-height);
    display: block;
    padding: 0 20px;
    margin-top: auto;
    align-self: flex-end;
  }
}

main {
  /* background-color: antiquewhite; */
  max-width: var(--main-max-width);
  justify-content: center;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

content-left {
  /* background-color: aqua; */
  flex: 3;
  max-width: var(--left-max-width);
  min-width: var(--text-min-width);
  padding: 0 1rem;
}

content-right {
  /* background-color: lightsalmon; */
  flex: 1;
  max-width: var(--right-max-width);
  min-width: var(--text-min-width);
  padding: 0 1rem;
}


/* For social: you may want to consider this approach:
 * the flex 0 0 0 100% makes that always full row
 * the container > :not(.item-1) selector applies to all other items, making them flexible and allowing them to wrap as needed.

.container {
  display: flex;
  flex-wrap: wrap;
}

.item-1 {
  flex: 0 0 100%;
}

.container > :not(.item-1) {
  flex: 1 1 300px;
}
*/

social {
  /* background-color: yellowgreen; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: var(--brand);
  text-decoration: none;
  justify-content: center;

  p {
    /* background-color: lightcoral; */
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--accent);
    flex: 0 0 100%;
  }

  div {
    /* background-color: lightblue; */
    /* flex: 1 1 calc(var(--social-logo-size) * 8); */
    display: flex;
    justify-content: center;
    /* gap: 0.5rem; */
  }

  img {
    margin: 0.25rem;
  }

  img {
    height: var(--social-logo-size);
    width: var(--social-logo-size);
  }
}

copyright {
  /* background-color: maroon; */
  color: var(--text);
  text-align: center;
  width: 100%;
  padding: 0;
  ;
  flex: 0 0 100%;
  justify-content: center;

  p {
    /* margin-top: 1rem; */
    font-size: 0.95rem;
  }
}