@import './reset.css';
@import './theme.css';
@import './team-member.css';

html {
  scrollbar-color: var(--highlight-color) transparent;
  scrollbar-width: thin;
}
body {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  color: var(--main-text-color);
}

ul {
  list-style: none;
}

aside {
  border-right: 1px solid var(--border-color);
  padding: 1rem;
  width: var(--nav-width);
  min-width: var(--nav-width);
}

section {
  margin-bottom: 4rem;
}

main {
  padding: 1rem 3rem;
}
aside nav {
  position :fixed;
  width: 100%;
}
aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

nav ul a {
  text-decoration: none;
  color: var(--main-text-color)
}

nav ul a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading-color);
}

h3 {
  color: var(--heading-color);
  font-weight: 500;
  font-size: 1.5rem;
}


h2 {
  color: var(--heading-color);
  font-weight: 500;
  font-size: 1.75rem;
}

h4 {
  color: var(--heading-color);
  font-weight: 500;
  font-size: 1.25rem;
}

ul {
  padding-left: 1rem;
}

.tech-list {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-list ul {
  padding: 0;
  margin: 0.5em 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: var(--text-small);
}

.tech-list p {
  font-weight: 600;
  margin: 0;
  color: var(--heading-color);
}

.team-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  overflow: hidden;
  background: #fff;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.team-member h4 {
  font-weight: 600px;
  margin: 0;
}

.team-member {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.team-member_header {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.team-member_header .links {
  margin-bottom: 4px;
}
.links {
  margin-left: auto;
}

.link {
  color: var(--link-color);
  transition: all .2s ease;
}

.link.highlight {
  color: var(--highlight-color)
}


.links .link {
  font-size: 0.875rem;
}

.link:hover {
  color: var(--link-color--hover);
}

.link:visited:not(:hover) {
  color: var(--link-color);
}

.subtitles {
  /* color: var(--highlight-color); */
  color: var(--heading-color);

  font-size: 0.875rem;
  /* font-weight: 500; */
}

.team-member ul {
  /* padding: 0; */
  font-size: var(--text-small);
  list-style: circle;
}

.subtitle {
  font-weight: 500;
  color: var(--heading-color);
}

h1 .highlight {
  font-family: inherit;
  font-size: 2.25rem;
}

p {
  line-height: 1.5
}

form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
  gap: 1rem;

  .row {
    display: flex; 
    gap: 1rem;
    width: 100%;
  }

  label {
    flex-shrink: 0;
    min-width: 150px;
    width: 150px;
    font-weight: 600;
    color: var(--heading-color);
  }

  textarea, input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
  }

  textarea {
    resize: none;
  }

  input {
    height: 1.5rem;
    font-size: 1rem;
    color: var(--heading-color);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
  }
}

button {
  background-color : transparent;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  color: var(--heading-color);
  padding: 0.5rem 1rem;
  margin-left: auto;
  text-transform: uppercase;
  transition: all 0.1s ease;
}

button:hover {
  cursor: pointer;
  background-color: var(--highlight-color);
  color: var(--white);
  border-color: transparent;
}

@media screen and (max-width: 900px) {
  body {
    flex-direction: column;
    margin-top: 3rem;
  }

  :root {
    --nav-width: 100%;
  }
  aside {
    position: fixed;
    top: 0;
    background: var(--white);
    padding: 0;
    
  }

  aside nav ul {
    background-color: var(--white);
    padding: 1rem;
    flex-direction: row;
    gap: 2rem;
    text-decoration: underline;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }

  main {
    padding: 1rem 1.5rem;
  }

  .tech-list_group {
    width: 50%;
  }

  .tech-list_group p {
    white-space: nowrap;
  }

  .tech-list {
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 1rem;
  }

  .team-member {
    flex-direction: column;
  }

  .team-member_header {
    align-items: flex-start;
  }

  form .row {
    flex-direction: column;
    gap: 0.5rem;
  }
}